:root {
    --color-bg: #fff8e6;
    --color-panel: #ffffff;
    --color-panel-soft: #fff4d6;
    --color-text: #3f2407;
    --color-muted: #8a5b1d;
    --color-primary: #d97706;
    --color-primary-dark: #92400e;
    --color-primary-soft: #fef3c7;
    --color-border: #f2d59b;
    --color-shadow: rgba(146, 64, 14, 0.18);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
    --header-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.20), transparent 32rem),
        linear-gradient(180deg, #fff8e6 0%, #fffbeb 42%, #fff7ed 100%);
    color: var(--color-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.96), rgba(255, 251, 235, 0.96));
    border-bottom: 1px solid rgba(217, 119, 6, 0.18);
    box-shadow: 0 12px 32px rgba(120, 53, 15, 0.10);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 188px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 12px 28px rgba(180, 83, 9, 0.28);
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 1.18rem;
    color: #78350f;
    letter-spacing: 0.02em;
}

.brand-copy small {
    color: #a16207;
    font-size: 0.78rem;
}

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

.nav-link,
.mobile-nav-link {
    color: #78350f;
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #92400e;
    background: rgba(251, 191, 36, 0.22);
}

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

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(251, 191, 36, 0.18);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #78350f;
    border-radius: 10px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    background: #fffaf0;
    border-top: 1px solid rgba(217, 119, 6, 0.16);
}

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

.mobile-nav-link {
    padding: 12px 16px;
}

.hero {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    background: linear-gradient(135deg, #78350f, #b45309 52%, #f59e0b);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.42;
}

.hero-track {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    background-position: center;
    background-size: cover;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: center;
    color: #ffffff;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: #fcd34d;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.7rem, 7vw, 5.9rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    text-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.hero p {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 2.4vw, 1.24rem);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #78350f;
    background: #fcd34d;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.20);
}

.btn-primary:hover {
    background: #fde68a;
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.50);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.20);
}

.hero-panel {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(22px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.35);
}

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

.hero-panel:hover .hero-poster img {
    transform: scale(1.05);
}

.hero-panel strong {
    display: block;
    margin-top: 18px;
    font-size: 1.16rem;
}

.hero-panel span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #fcd34d;
}

.search-strip {
    position: relative;
    z-index: 3;
    margin-top: -34px;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 62px rgba(146, 64, 14, 0.18);
    backdrop-filter: blur(18px);
}

.search-box input {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    color: #78350f;
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 999px;
    outline: none;
    background: #fffaf0;
}

.search-box input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.22);
}

.page-hero {
    padding: 76px 0 42px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 28rem),
        linear-gradient(135deg, #fffbeb, #fef3c7);
    border-bottom: 1px solid rgba(217, 119, 6, 0.14);
}

.page-hero h1 {
    max-width: 860px;
    margin: 0;
    color: #78350f;
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #8a5b1d;
    font-size: 1.08rem;
}

.main-section {
    padding: 62px 0;
}

.main-section.tight {
    padding-top: 34px;
}

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

.section-heading h2 {
    margin: 0;
    color: #78350f;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.08;
}

.section-heading span {
    display: block;
    margin-top: 8px;
    color: #8a5b1d;
}

.section-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 42px rgba(146, 64, 14, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 119, 6, 0.38);
    box-shadow: 0 28px 70px rgba(146, 64, 14, 0.20);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease, filter 0.42s ease;
}

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

.movie-score {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    color: #78350f;
    border-radius: 999px;
    background: #fcd34d;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.movie-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #78350f;
    border-radius: 50%;
    background: rgba(252, 211, 77, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-body {
    padding: 16px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #a16207;
    font-size: 0.82rem;
    font-weight: 700;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fef3c7;
}

.movie-body h3 {
    margin: 12px 0 8px;
    color: #78350f;
    font-size: 1.08rem;
    line-height: 1.28;
}

.movie-body h3 a:hover {
    color: #b45309;
}

.movie-body p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: #7c4a12;
    font-size: 0.94rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-list span {
    padding: 4px 8px;
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 999px;
    background: rgba(254, 243, 199, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(217, 119, 6, 0.16);
    background:
        radial-gradient(circle at top right, rgba(252, 211, 77, 0.42), transparent 10rem),
        #ffffff;
    box-shadow: 0 18px 48px rgba(146, 64, 14, 0.13);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(146, 64, 14, 0.20);
}

.category-card h2,
.category-card h3 {
    margin: 0;
    color: #78350f;
    font-size: 1.55rem;
}

.category-card p {
    margin: 12px 0 20px;
    color: #8a5b1d;
}

.category-card .pill {
    display: inline-flex;
    padding: 8px 12px;
    color: #92400e;
    border-radius: 999px;
    background: #fef3c7;
    font-weight: 800;
}

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

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 18px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(217, 119, 6, 0.16);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 48px rgba(146, 64, 14, 0.14);
}

.rank-panel h2 {
    margin: 0 0 14px;
    color: #78350f;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 36px 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff7ed;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: #fef3c7;
    transform: translateX(3px);
}

.rank-index {
    color: #b45309;
    font-size: 1.05rem;
    font-weight: 900;
}

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

.rank-copy {
    min-width: 0;
}

.rank-copy strong {
    display: block;
    overflow: hidden;
    color: #78350f;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy small {
    display: block;
    overflow: hidden;
    color: #a16207;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-hero {
    padding: 44px 0;
    background:
        radial-gradient(circle at 12% 10%, rgba(252, 211, 77, 0.22), transparent 24rem),
        linear-gradient(135deg, #78350f, #92400e 48%, #d97706);
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: #fcd34d;
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
}

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

.detail-copy h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.detail-copy p {
    max-width: 780px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.player-section {
    padding: 54px 0 28px;
}

.player-shell {
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(217, 119, 6, 0.18);
    background: #0f172a;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #111827;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.68));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 999px;
    color: #78350f;
    background: #fcd34d;
    font-size: 1.12rem;
    font-weight: 900;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.content-panel {
    padding: 32px;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 48px rgba(146, 64, 14, 0.13);
}

.content-panel + .content-panel {
    margin-top: 24px;
}

.content-panel h2 {
    margin: 0 0 16px;
    color: #78350f;
    font-size: 1.75rem;
}

.content-panel p {
    margin: 0;
    color: #6f4212;
    font-size: 1.02rem;
}

.content-panel p + p {
    margin-top: 14px;
}

.archive-list {
    columns: 4 220px;
    column-gap: 28px;
}

.archive-list a {
    display: block;
    break-inside: avoid;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    color: #78350f;
    font-weight: 700;
}

.archive-list a:hover {
    background: #fef3c7;
}

.search-results {
    display: grid;
    gap: 14px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
}

.search-result-card img {
    width: 86px;
    height: 116px;
    border-radius: 14px;
    object-fit: cover;
}

.search-result-card h2 {
    margin: 0 0 6px;
    color: #78350f;
    font-size: 1.2rem;
}

.search-result-card p {
    margin: 0;
    color: #7c4a12;
}

.site-footer {
    margin-top: 40px;
    color: #fffbeb;
    background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 52px 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fcd34d;
    font-size: 1.18rem;
}

.site-footer p {
    margin: 0;
    color: rgba(255, 251, 235, 0.78);
}

.footer-links {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 251, 235, 0.78);
}

.footer-links a:hover {
    color: #fde68a;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    color: rgba(255, 251, 235, 0.66);
    font-size: 0.92rem;
}

@media (max-width: 1024px) {
    .movie-grid,
    .movie-grid.compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-panel {
        display: none;
    }

    .rank-panel {
        position: static;
    }

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

@media (max-width: 760px) {
    :root {
        --header-height: 64px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-block;
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 14vw, 4.4rem);
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

    .section-link {
        margin-top: 16px;
    }

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

    .movie-body {
        padding: 13px;
    }

    .detail-poster {
        max-width: 280px;
    }

    .content-panel {
        padding: 22px;
    }

    .archive-list {
        columns: 2 160px;
    }

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

    .footer-bottom-inner {
        display: grid;
    }
}

@media (max-width: 460px) {
    .container {
        width: min(100% - 22px, var(--container));
    }

    .brand-copy small {
        display: none;
    }

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

    .rank-row {
        grid-template-columns: 32px 54px 1fr;
    }
}
