:root {
    color-scheme: light;
    --page-bg: #fff8ed;
    --panel-bg: rgba(255, 255, 255, 0.86);
    --panel-strong: #ffffff;
    --text-main: #3f2410;
    --text-soft: #8a5a21;
    --brand: #d97706;
    --brand-deep: #b45309;
    --brand-light: #fbbf24;
    --border-soft: rgba(217, 119, 6, 0.16);
    --shadow-soft: 0 18px 50px rgba(120, 53, 15, 0.12);
    --shadow-card: 0 16px 30px rgba(120, 53, 15, 0.10);
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(253, 230, 138, 0.55), transparent 32rem),
        linear-gradient(135deg, #fffbeb 0%, #fff7ed 42%, #ffffff 100%);
    font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

img {
    width: 100%;
}

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

button,
input,
select {
    font: inherit;
}

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

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

.header-inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--brand-deep);
}

.logo-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.22);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #78350f;
    font-weight: 700;
}

.primary-nav a {
    position: relative;
    padding: 8px 0;
}

.primary-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    border-radius: 2px;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    transition: transform 0.22s ease;
}

.primary-nav a:hover::after {
    transform: scaleX(1);
}

.header-search {
    display: flex;
    min-width: 240px;
    align-items: center;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 11px 8px 11px 18px;
    color: var(--text-main);
    background: transparent;
}

.header-search button,
.search-submit {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.20);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--brand-deep);
    background: rgba(251, 191, 36, 0.16);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border-soft);
    background: rgba(255, 251, 235, 0.96);
}

.mobile-nav-inner {
    display: grid;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 20px;
    gap: 10px;
}

.mobile-nav a {
    padding: 11px 12px;
    border-radius: 12px;
    color: #78350f;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: rgba(251, 191, 36, 0.16);
}

.mobile-nav.is-open {
    display: block;
}

.hero {
    position: relative;
    overflow: hidden;
    margin: 28px auto 54px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 34px;
    background: linear-gradient(135deg, #451a03, #92400e 48%, #f59e0b);
    box-shadow: 0 30px 70px rgba(120, 53, 15, 0.18);
}

.hero::before {
    position: absolute;
    inset: -20%;
    content: "";
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.22), transparent 26rem),
        radial-gradient(circle at 88% 24%, rgba(251, 191, 36, 0.36), transparent 22rem),
        linear-gradient(90deg, rgba(69, 26, 3, 0.92), rgba(120, 53, 15, 0.55));
}

.hero-track {
    position: relative;
    min-height: 72vh;
}

.hero-slide {
    display: none;
    min-height: 72vh;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
    align-items: center;
    gap: 46px;
    padding: 58px;
}

.hero-slide.is-active {
    display: grid;
}

.hero-copy {
    position: relative;
    z-index: 2;
    color: #fff7ed;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    padding: 7px 13px;
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.section-kicker {
    color: var(--brand-deep);
    border-color: rgba(217, 119, 6, 0.18);
    background: rgba(253, 230, 138, 0.28);
}

.hero h1 {
    max-width: 820px;
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.075em;
}

.hero-lead {
    max-width: 690px;
    margin: 0 0 28px;
    color: rgba(255, 251, 235, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.82;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.rank-meta span,
.tag {
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(255, 251, 235, 0.16);
    color: inherit;
    font-size: 13px;
    font-weight: 800;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 18px 34px rgba(234, 88, 12, 0.28);
}

.btn-soft {
    color: #fff7ed;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.13);
}

.btn-light {
    color: var(--brand-deep);
    background: rgba(255, 255, 255, 0.86);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(120, 53, 15, 0.18);
}

.hero-poster {
    position: relative;
    z-index: 2;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 10px solid rgba(255, 255, 255, 0.16);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 64px rgba(69, 26, 3, 0.36);
}

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

.hero-poster::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 45%, rgba(69, 26, 3, 0.64));
}

.hero-controls {
    position: absolute;
    right: 36px;
    bottom: 30px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-controls button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

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

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

.section {
    margin: 56px 0;
}

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

.section-title {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.section-desc,
.page-desc,
.detail-summary p,
.detail-review p {
    color: var(--text-soft);
    line-height: 1.86;
}

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

.category-card {
    display: flex;
    min-height: 148px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(254, 243, 199, 0.56));
    box-shadow: var(--shadow-card);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    color: #78350f;
    font-size: 22px;
    font-weight: 950;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    background: var(--panel-bg);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(120, 53, 15, 0.16);
}

.movie-card.is-hidden {
    display: none;
}

.card-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

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

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.88);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 17px;
}

.card-title {
    display: -webkit-box;
    min-height: 54px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #451a03;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 950;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title a:hover {
    color: var(--brand);
}

.card-meta span,
.rank-meta span,
.detail-meta span,
.tag {
    color: var(--brand-deep);
    background: rgba(253, 230, 138, 0.55);
}

.card-desc {
    display: -webkit-box;
    min-height: 74px;
    margin: 12px 0 0;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.75;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.filter-panel,
.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    margin: 26px 0;
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-card);
}

.search-panel {
    grid-template-columns: minmax(0, 1fr) auto;
}

.filter-panel input,
.filter-panel select,
.search-panel input {
    width: 100%;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 16px;
    outline: 0;
    padding: 13px 15px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.88);
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-panel input:focus {
    border-color: rgba(245, 158, 11, 0.74);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.22);
}

.page-hero {
    margin: 30px 0 38px;
    border: 1px solid var(--border-soft);
    border-radius: 32px;
    padding: 42px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(254, 243, 199, 0.58));
    box-shadow: var(--shadow-soft);
}

.page-hero h1 {
    max-width: 860px;
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.06em;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-card);
}

.rank-number {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-size: 20px;
    font-weight: 950;
}

.rank-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    background: #fef3c7;
}

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

.rank-content h2,
.rank-content h3 {
    margin: 0 0 10px;
    color: #451a03;
    font-size: 22px;
    font-weight: 950;
}

.rank-content p {
    margin: 0 0 12px;
    color: var(--text-soft);
    line-height: 1.75;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 34px;
    margin: 32px 0 42px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 34px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(69, 26, 3, 0.96), rgba(146, 64, 14, 0.88));
    box-shadow: 0 30px 70px rgba(120, 53, 15, 0.20);
}

.detail-cover {
    overflow: hidden;
    border: 9px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.10);
}

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

.detail-copy {
    align-self: center;
    color: #fff7ed;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 251, 235, 0.72);
    font-weight: 700;
}

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

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.detail-one-line {
    margin: 0 0 24px;
    color: rgba(255, 251, 235, 0.85);
    font-size: 18px;
    line-height: 1.86;
}

.detail-copy .detail-meta span,
.detail-copy .tag {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
}

.player-section,
.content-card {
    border: 1px solid var(--border-soft);
    border-radius: 30px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.player-section h2,
.content-card h2 {
    margin: 0 0 18px;
    color: #451a03;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
    cursor: pointer;
}

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

.play-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 999px;
    padding: 15px 24px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-size: 18px;
    font-weight: 950;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.32);
}

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

.detail-summary,
.detail-review {
    margin-top: 26px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.aside-card {
    position: sticky;
    top: 98px;
    border: 1px solid var(--border-soft);
    border-radius: 26px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-card);
}

.aside-card h2 {
    margin: 0 0 16px;
    color: #451a03;
    font-size: 24px;
    font-weight: 950;
}

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

.mini-link {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.mini-link img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    object-fit: cover;
    background: #fef3c7;
}

.mini-link strong {
    display: -webkit-box;
    overflow: hidden;
    color: #451a03;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mini-link span {
    display: block;
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 13px;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--border-soft);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.92), rgba(255, 237, 213, 0.78));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
    gap: 32px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 14px;
    color: #451a03;
    font-weight: 950;
}

.footer-inner p,
.footer-inner a {
    color: var(--text-soft);
    line-height: 1.8;
}

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

.search-results {
    margin-top: 24px;
}

.empty-state {
    border: 1px dashed rgba(217, 119, 6, 0.26);
    border-radius: 22px;
    padding: 28px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.64);
    text-align: center;
}

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

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

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

    .hero-poster {
        max-width: 420px;
        margin: 0 auto;
    }

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

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

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

    .hero {
        margin-top: 16px;
        border-radius: 24px;
    }

    .hero-track,
    .hero-slide {
        min-height: auto;
    }

    .hero-slide {
        padding: 28px;
        gap: 28px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-controls {
        right: 20px;
        bottom: 18px;
    }

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

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

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

    .rank-item .btn {
        grid-column: 1 / -1;
    }

    .rank-number {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 16px;
    }

    .page-hero,
    .detail-hero,
    .player-section,
    .content-card {
        border-radius: 24px;
        padding: 22px;
    }

    .aside-card {
        position: static;
    }

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

@media (max-width: 460px) {
    .logo {
        font-size: 22px;
    }

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

    .hero-slide {
        padding: 22px;
    }

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

    .section-head {
        display: block;
    }
}
