
:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --amber: #f59e0b;
    --dark: #111827;
    --shadow: 0 18px 45px rgba(124, 45, 18, 0.14);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.08);
    backdrop-filter: blur(14px);
}

.nav-container {
    width: min(1200px, calc(100% - 32px));
    height: 66px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.24);
}

.brand-name {
    font-size: 21px;
    color: var(--dark);
    white-space: nowrap;
}

.header-search,
.mobile-search,
.wide-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.header-search {
    flex: 1;
    max-width: 430px;
}

.header-search input,
.mobile-search input,
.wide-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 12px 14px;
    background: transparent;
    color: var(--text);
}

.header-search button,
.mobile-search button,
.wide-search button {
    border: 0;
    color: #ffffff;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    cursor: pointer;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link,
.mobile-nav-link {
    color: #374151;
    font-weight: 650;
    transition: color .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--orange-dark);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(254, 215, 170, .45);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--dark);
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel.open {
    display: block;
}

.mobile-panel nav,
.mobile-category-row {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mobile-category-row {
    grid-template-columns: repeat(2, 1fr);
}

.mobile-category-row a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .75);
    color: var(--orange-dark);
    font-weight: 650;
}

.site-main {
    min-height: 68vh;
}

.hero {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: var(--dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .68), rgba(0, 0, 0, .12));
}

.hero-inner {
    position: absolute;
    inset: 0;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-copy,
.detail-hero-content {
    width: min(620px, 100%);
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 12px;
    color: #fff7ed;
    border-radius: 999px;
    background: rgba(249, 115, 22, .78);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}

.hero p,
.page-hero p,
.detail-hero p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 18px;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 13px;
    font-weight: 700;
}

.hero .tag-pill,
.detail-hero .tag-pill {
    color: #ffffff;
    background: rgba(249, 115, 22, .78);
    backdrop-filter: blur(8px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.section-more,
.side-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-button {
    padding: 13px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 30px rgba(249, 115, 22, .26);
}

.ghost-button {
    padding: 12px 18px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .36);
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.side-link:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, .26);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 4;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
}

.hero-dot.active {
    width: 30px;
    background: #ffffff;
}

.section-narrow,
.content-section,
.breadcrumb {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-search {
    margin-top: -34px;
    position: relative;
    z-index: 6;
    padding: 22px;
    border: 1px solid rgba(254, 215, 170, .85);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow);
}

.wide-search {
    width: 100%;
}

.wide-search input {
    padding: 16px 18px;
    font-size: 16px;
}

.wide-search button {
    padding: 16px 26px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-links a,
.related-categories a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 700;
    font-size: 14px;
}

.content-section {
    padding-top: 52px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-header.inline {
    margin-bottom: 16px;
}

.section-header h2,
.panel-head h2,
.text-card h2,
.side-card h2,
.category-overview-card h2,
.sitemap-group h2 {
    margin: 0;
    color: var(--dark);
    font-size: 25px;
    line-height: 1.25;
}

.section-header p {
    margin: 7px 0 0;
    color: var(--muted);
}

.section-more {
    color: #ffffff;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
    gap: 22px;
}

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, .7);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(124, 45, 18, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, .42);
    box-shadow: 0 22px 44px rgba(124, 45, 18, .15);
}

.movie-poster {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1f2937;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.movie-card-link:hover .movie-poster img {
    transform: scale(1.08);
}

.year-badge,
.play-hover {
    position: absolute;
    z-index: 2;
}

.year-badge {
    top: 10px;
    right: 10px;
    padding: 3px 9px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(17, 24, 39, .72);
    font-size: 12px;
    font-weight: 800;
}

.play-hover {
    left: 50%;
    top: 50%;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: rgba(249, 115, 22, .88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(.72);
    transition: opacity .2s ease, transform .2s ease;
}

.movie-card-link:hover .play-hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
    padding: 14px;
}

.movie-card-title {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--dark);
    font-size: 17px;
    line-height: 1.4;
    font-weight: 800;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-desc {
    display: -webkit-box;
    min-height: 42px;
    margin: 8px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-meta {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.movie-card .tag-list {
    margin-top: 10px;
}

.movie-card .tag-pill {
    font-size: 12px;
    padding: 2px 8px;
}

.category-grid,
.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.category-tile,
.category-overview-card {
    display: block;
    padding: 22px;
    border: 1px solid rgba(254, 215, 170, .75);
    border-radius: var(--radius);
    background: linear-gradient(145deg, #ffffff, #fff7ed);
    box-shadow: 0 14px 32px rgba(124, 45, 18, .09);
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile span,
.category-count {
    display: inline-flex;
    padding: 5px 11px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    font-size: 13px;
    font-weight: 800;
}

.category-tile h3,
.category-overview-card h2 {
    margin: 14px 0 8px;
}

.category-tile p,
.category-overview-card p,
.footer-column p,
.footer-brand p {
    color: var(--muted);
    margin: 0;
}

.category-tile small {
    display: block;
    margin-top: 14px;
    color: #9a3412;
    font-weight: 700;
}

.category-overview-card ul {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.category-overview-card li {
    margin-top: 8px;
}

.category-overview-card li a {
    color: #9a3412;
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
}

.ranking-panel,
.side-card,
.text-card,
.player-section,
.search-page-panel,
.filter-panel {
    border: 1px solid rgba(254, 215, 170, .76);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 32px rgba(124, 45, 18, .08);
}

.ranking-panel {
    position: sticky;
    top: 88px;
    padding: 20px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.panel-head a {
    color: var(--orange-dark);
    font-weight: 800;
}

.rank-list,
.ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rank-list li a {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #ffedd5;
}

.rank-number {
    color: var(--orange-dark);
    font-weight: 900;
}

.rank-list strong,
.ranking-row strong {
    display: block;
    color: var(--dark);
}

.rank-list em,
.ranking-row em,
.ranking-row small {
    display: block;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    margin: 34px auto 0;
    width: min(1200px, calc(100% - 32px));
    min-height: 260px;
    display: flex;
    align-items: center;
    padding: 46px;
    overflow: hidden;
    border-radius: 28px;
    background: radial-gradient(circle at top right, rgba(251, 146, 60, .72), transparent 34%), linear-gradient(135deg, #111827, #7c2d12 58%, #f97316);
    box-shadow: var(--shadow);
}

.page-hero div {
    max-width: 760px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--orange-dark);
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 160px auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
    padding: 16px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 12px;
    outline: none;
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus,
.wide-search input:focus,
.header-search input:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .16);
}

.filter-count {
    color: #9a3412;
    font-weight: 900;
    text-align: right;
}

.related-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    align-items: center;
}

.ranking-row a {
    display: grid;
    grid-template-columns: 60px 136px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(254, 215, 170, .72);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(124, 45, 18, .08);
}

.ranking-row img {
    width: 136px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
}

.search-page-panel {
    margin-top: -28px;
    position: relative;
    z-index: 4;
    padding: 20px;
}

.search-summary {
    margin: 12px 0 0;
    color: var(--muted);
}

.detail-hero {
    min-height: 470px;
    display: flex;
    align-items: center;
    margin-top: 18px;
    padding: 54px max(16px, calc((100% - 1200px) / 2));
    background-position: center;
    background-size: cover;
}

.detail-hero-content {
    padding: 0 16px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
}

.player-section,
.text-card,
.side-card {
    padding: 22px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #050816;
    box-shadow: 0 24px 60px rgba(17, 24, 39, .22);
}

.video-element {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050816;
}

.video-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(249, 115, 22, .28), rgba(0, 0, 0, .54));
    cursor: pointer;
}

.video-start.is-hidden {
    display: none;
}

.video-start-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 38px rgba(249, 115, 22, .28);
    font-size: 34px;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 3;
    color: #ffffff;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .46);
    font-size: 13px;
}

.text-card {
    margin-top: 22px;
}

.text-card p {
    margin: 12px 0 0;
    color: #374151;
    font-size: 16px;
}

.side-card {
    margin-bottom: 18px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px 12px;
    margin: 14px 0 0;
}

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    font-weight: 750;
}

.side-tags {
    margin-top: 14px;
}

.side-link {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    color: #9a3412;
    background: #ffedd5;
}

.sitemap-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.sitemap-group {
    padding: 18px;
    border: 1px solid rgba(254, 215, 170, .7);
    border-radius: 18px;
    background: #ffffff;
}

.sitemap-group ul {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.sitemap-group li {
    margin-bottom: 9px;
}

.sitemap-group a {
    color: #374151;
    font-weight: 700;
}

.sitemap-group span {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 70px;
    color: #d1d5db;
    background: linear-gradient(135deg, #1f2937, #111827);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 46px 0;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a:hover {
    color: #fdba74;
}

[hidden] {
    display: none !important;
}

@media (max-width: 980px) {
    .header-search,
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .hero {
        height: 560px;
    }

    .hero-inner {
        align-items: flex-end;
        padding-bottom: 78px;
    }

    .split-section,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

    .filter-count {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .nav-container {
        width: min(100% - 22px, 1200px);
    }

    .brand-name {
        font-size: 18px;
    }

    .hero {
        height: 610px;
    }

    .hero h1,
    .hero h2,
    .page-hero h1,
    .detail-hero h1 {
        font-size: 34px;
    }

    .hero p,
    .page-hero p,
    .detail-hero p {
        font-size: 16px;
    }

    .hero-arrow {
        display: none;
    }

    .page-hero {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .ranking-row a {
        grid-template-columns: 42px 92px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .ranking-row img {
        width: 92px;
        height: 56px;
    }

    .side-card dl {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        min-height: 560px;
    }
}
