:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-50: #fff7ed;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-900: #7c2d12;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(180, 83, 9, 0.18);
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(252, 211, 77, 0.32), transparent 34rem),
        linear-gradient(180deg, var(--amber-50), var(--orange-50));
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "PingFang SC",
        "Hiragino Sans GB",
        "Microsoft YaHei",
        sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 247, 237, 0.95));
    box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--amber-800);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

.brand-text {
    overflow: hidden;
    font-size: 22px;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: linear-gradient(90deg, var(--amber-800), var(--orange-600), var(--amber-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 10px 14px;
    color: var(--amber-800);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: var(--amber-600);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.18);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    color: var(--amber-800);
    border-radius: 12px;
    background: var(--amber-100);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 235, 0.96);
}

.mobile-nav.is-open {
    display: grid;
    gap: 6px;
}

.main-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 72px;
}

.hero {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    isolation: isolate;
    background: var(--amber-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(120, 53, 15, 0.94), rgba(124, 45, 18, 0.72), rgba(0, 0, 0, 0.24)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 55%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
    color: #fff7ed;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    color: #fffbeb;
    border: 1px solid rgba(253, 230, 138, 0.42);
    border-radius: 999px;
    background: rgba(146, 64, 14, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.hero-title {
    max-width: 760px;
    margin: 0;
    font-size: clamp(44px, 8vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.07em;
    text-shadow: 0 16px 35px rgba(0, 0, 0, 0.32);
}

.hero-copy {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--amber-100);
    font-size: clamp(18px, 2.6vw, 24px);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 16px 30px rgba(217, 119, 6, 0.28);
}

.button-light {
    color: var(--amber-900);
    background: rgba(255, 251, 235, 0.9);
}

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

.hero-dot {
    width: 42px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 251, 235, 0.5);
}

.hero-dot.is-active {
    background: var(--amber-300);
}

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

.section-title {
    margin: 0;
    color: var(--amber-900);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-copy {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-link {
    color: var(--amber-700);
    font-weight: 800;
}

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

.movie-grid.compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(217, 119, 6, 0.28);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.card-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin: 0;
    background: linear-gradient(135deg, var(--amber-200), var(--orange-50));
}

.card-cover.landscape {
    aspect-ratio: 16 / 9;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-badge,
.card-duration,
.score-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(120, 53, 15, 0.82);
}

.card-badge {
    left: 10px;
    top: 10px;
}

.card-duration {
    right: 10px;
    top: 10px;
}

.score-badge {
    left: 10px;
    bottom: 10px;
    color: var(--amber-900);
    background: var(--amber-300);
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.card-title {
    margin: 0;
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card:hover .card-title {
    color: var(--amber-700);
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    color: var(--amber-800);
    border-radius: 999px;
    background: var(--amber-100);
    font-size: 12px;
    font-weight: 800;
}

.feature-card {
    display: grid;
    grid-template-columns: 44% 1fr;
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.feature-card .card-cover {
    aspect-ratio: auto;
    min-height: 260px;
}

.feature-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
}

.feature-body h3 {
    margin: 0 0 12px;
    color: var(--amber-900);
    font-size: 26px;
    line-height: 1.2;
}

.feature-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    display: flex;
    min-height: 188px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    overflow: hidden;
    position: relative;
    color: var(--amber-900);
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(252, 211, 77, 0.5), transparent 9rem),
        #ffffff;
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.page-banner {
    padding: 62px 0;
    color: #fff7ed;
    background:
        linear-gradient(100deg, rgba(120, 53, 15, 0.96), rgba(234, 88, 12, 0.84)),
        radial-gradient(circle at 20% 20%, rgba(253, 230, 138, 0.32), transparent 20rem);
}

.page-banner-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-title {
    max-width: 900px;
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-intro {
    max-width: 800px;
    margin: 16px 0 0;
    color: var(--amber-100);
    font-size: 18px;
    line-height: 1.75;
}

.tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.07);
}

.input,
.select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(180, 83, 9, 0.18);
    border-radius: 14px;
    outline: none;
    padding: 0 14px;
    color: var(--text);
    background: #ffffff;
}

.input:focus,
.select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.empty-state {
    display: none;
    padding: 50px 20px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(217, 119, 6, 0.22);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.7);
}

.empty-state.is-visible {
    display: block;
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 74px 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(120, 53, 15, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.rank-num {
    color: var(--amber-700);
    font-size: 28px;
    font-weight: 950;
    text-align: center;
}

.rank-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: var(--amber-100);
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-title {
    margin: 0 0 8px;
    color: #111827;
    font-size: 19px;
    font-weight: 900;
}

.rank-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.rank-side {
    display: grid;
    gap: 8px;
    justify-items: end;
    color: var(--amber-800);
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--amber-800);
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 30px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.26);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000000;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.player-cover.is-hidden {
    display: none;
}

.play-mark {
    position: absolute;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    font-size: 34px;
    transform: translateZ(0);
}

.player-title {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.48);
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: none;
    padding: 12px 14px;
    color: #ffffff;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.74);
}

.player-message.is-visible {
    display: block;
}

.info-panel,
.side-panel {
    margin-top: 20px;
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.info-panel h1 {
    margin: 0 0 16px;
    color: #111827;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.content-block {
    margin-top: 24px;
}

.content-block h2 {
    margin: 0 0 12px;
    color: var(--amber-900);
    font-size: 22px;
}

.content-block p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
}

.side-panel {
    margin-top: 0;
}

.side-cover {
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 3 / 4;
    background: var(--amber-100);
}

.side-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.related-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(120, 53, 15, 0.08);
}

.related-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.related-card span {
    display: block;
    padding: 10px;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.footer {
    color: var(--amber-100);
    background: linear-gradient(180deg, var(--amber-900), #451a03);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
}

.footer h3,
.footer h4 {
    margin: 0 0 12px;
    color: #fffbeb;
}

.footer p,
.footer a {
    color: var(--amber-200);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.copyright {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(253, 230, 138, 0.2);
    color: var(--amber-200);
    font-size: 14px;
}

.mt-section {
    margin-top: 68px;
}

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

    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .brand-text {
        max-width: 56vw;
        font-size: 18px;
    }

    .hero {
        min-height: 500px;
    }

    .movie-grid,
    .movie-grid.compact,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        gap: 22px;
    }

    .tools {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 54px 92px minmax(0, 1fr);
    }

    .rank-side {
        grid-column: 2 / -1;
        justify-items: start;
        grid-auto-flow: column;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .header-inner {
        width: min(100% - 22px, 1180px);
    }

    .main-shell {
        width: min(100% - 22px, 1180px);
        padding-top: 36px;
    }

    .hero-content {
        width: min(100% - 22px, 1180px);
        padding: 58px 0;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-copy {
        font-size: 16px;
    }

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

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

    .feature-card .card-cover {
        min-height: 220px;
    }

    .rank-item {
        grid-template-columns: 48px 78px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .rank-num {
        font-size: 22px;
    }

    .rank-title {
        font-size: 16px;
    }

    .rank-desc {
        display: none;
    }

    .info-panel,
    .side-panel {
        padding: 20px;
    }

    .play-mark {
        width: 72px;
        height: 72px;
    }
}
