:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --surface: #ffffff;
    --surface-strong: #fff1d6;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fde68a;
    --brand: #d97706;
    --brand-strong: #b45309;
    --brand-soft: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 22px 60px rgba(146, 64, 14, 0.16);
    --shadow-card: 0 14px 35px rgba(146, 64, 14, 0.12);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffbeb 100%);
}

body.locked {
    overflow: hidden;
}

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: 60;
    border-bottom: 1px solid rgba(251, 191, 36, 0.28);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(146, 64, 14, 0.08);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    color: var(--brand-strong);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

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

.logo-mark svg {
    width: 22px;
    height: 22px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--brand-strong);
    background: #fff7ed;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--brand-strong);
    background: #fff7ed;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    margin: 4px auto;
    display: block;
    border-radius: 2px;
    background: currentColor;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(251, 191, 36, 0.35);
    background: #ffffff;
}

.mobile-panel a {
    display: block;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
    color: #4b5563;
    font-weight: 800;
    border-bottom: 1px solid #fef3c7;
}

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.5), transparent 34%), linear-gradient(135deg, #92400e 0%, #d97706 44%, #f59e0b 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero::before {
    width: 440px;
    height: 440px;
    right: -160px;
    top: -120px;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(4px);
}

.hero::after {
    width: 360px;
    height: 360px;
    left: -160px;
    bottom: -150px;
    background: rgba(253, 230, 138, 0.32);
    filter: blur(2px);
}

.hero-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 42px;
    padding: 72px 0 62px;
}

.hero-copy {
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #78350f;
    background: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 16px 36px rgba(120, 53, 15, 0.16);
}

.hero h1 {
    max-width: 720px;
    margin: 24px 0 18px;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.hero-lead {
    max-width: 650px;
    color: #fff7ed;
    font-size: 19px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 30px 0 26px;
}

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

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

.btn-primary {
    color: var(--brand-strong);
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(120, 53, 15, 0.18);
}

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

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
}

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

.hero-search {
    max-width: 620px;
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 45px rgba(120, 53, 15, 0.14);
    backdrop-filter: blur(16px);
}

.hero-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: #78350f;
    background: #ffffff;
    border-radius: 999px;
    padding: 0 18px;
    height: 46px;
    font-weight: 700;
}

.hero-search input::placeholder {
    color: #a16207;
}

.hero-search button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 900;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-chips a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 14px;
    font-weight: 800;
}

.hero-slider {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 18px;
    opacity: 0;
    transform: translateX(20px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    align-self: stretch;
    min-height: 470px;
    border-radius: 30px;
    box-shadow: 0 34px 70px rgba(120, 53, 15, 0.36);
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.5)), var(--poster);
    background-size: cover;
    background-position: center;
}

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

.hero-card {
    align-self: end;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 28px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 50px rgba(120, 53, 15, 0.22);
    backdrop-filter: blur(18px);
}

.hero-card h2 {
    margin: 12px 0 10px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 950;
}

.hero-card p {
    color: #fff7ed;
    line-height: 1.75;
}

.slide-meta,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 900;
}

.hero-card .pill {
    color: #78350f;
    background: rgba(255, 255, 255, 0.82);
}

.slider-controls {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.slider-controls button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

.section-soft {
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

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

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 950;
    color: #1f2937;
    letter-spacing: -0.03em;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.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));
    gap: 18px;
}

.movie-card {
    min-width: 0;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.78);
    box-shadow: 0 22px 48px rgba(146, 64, 14, 0.18);
}

.poster-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #fef3c7;
}

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    font-size: 12px;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 950;
    color: #1f2937;
}

.card-body p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-list span {
    border-radius: 999px;
    padding: 5px 8px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 22px;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 26px;
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 56%, #fef3c7 100%);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -48px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
}

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

.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 950;
    color: #92400e;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #6b7280;
    line-height: 1.65;
}

.rank-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 90px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(251, 191, 36, 0.38);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: #f59e0b;
}

.rank-num {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-size: 19px;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.24);
}

.rank-thumb {
    width: 90px;
    height: 118px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 950;
}

.rank-item p {
    margin: 0;
    color: #6b7280;
    line-height: 1.55;
    font-size: 14px;
}

.feature-box {
    padding: 28px;
    border-radius: 30px;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 35%), linear-gradient(135deg, #92400e, #d97706 50%, #f97316);
    box-shadow: var(--shadow);
}

.feature-box h2,
.feature-box h3 {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 950;
}

.feature-box p {
    color: #fff7ed;
    line-height: 1.8;
}

.page-hero {
    padding: 70px 0 54px;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 30%), linear-gradient(135deg, #92400e, #d97706 50%, #f59e0b);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #fff7ed;
    font-size: 18px;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #fde68a;
    font-weight: 800;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
    gap: 12px;
    padding: 14px;
    margin-bottom: 28px;
    border: 1px solid #fde68a;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    height: 46px;
    border: 1px solid #fcd34d;
    border-radius: 16px;
    outline: 0;
    padding: 0 14px;
    color: #374151;
    background: #fffbeb;
    font-weight: 700;
}

.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 70px;
}

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

.player-card,
.detail-card {
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 30px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.player-stage {
    position: relative;
    overflow: hidden;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.player-stage video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background-image: linear-gradient(135deg, rgba(17, 24, 39, 0.68), rgba(120, 53, 15, 0.52)), var(--poster);
    background-size: cover;
    background-position: center;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    padding: 15px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-size: 18px;
    font-weight: 950;
    box-shadow: 0 20px 45px rgba(239, 68, 68, 0.32);
}

.play-button svg {
    width: 22px;
    height: 22px;
}

.detail-main {
    padding: 28px;
}

.detail-main h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.14;
    font-weight: 950;
    color: #1f2937;
    letter-spacing: -0.03em;
}

.detail-main .lead {
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
}

.detail-side {
    position: sticky;
    top: 90px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.side-body {
    padding: 20px;
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 10px;
    color: #4b5563;
    line-height: 1.6;
}

.info-list dt {
    color: #92400e;
    font-weight: 950;
}

.info-list dd {
    margin: 0;
}

.content-card {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 950;
}

.content-card p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 2;
}

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

.site-footer {
    padding: 44px 0;
    border-top: 1px solid rgba(251, 191, 36, 0.35);
    background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 28px;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 12px;
    color: #92400e;
    font-size: 20px;
    font-weight: 950;
}

.footer-grid p,
.footer-grid a {
    color: #6b7280;
    line-height: 1.8;
}

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

.empty-state {
    display: none;
    padding: 34px;
    border-radius: 22px;
    text-align: center;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-weight: 900;
}

.empty-state.show {
    display: block;
}

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

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

    .hero-shell,
    .detail-grid,
    .rank-panel {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 540px;
    }

    .detail-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .nav-shell {
        height: 62px;
    }

    .primary-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

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

    .logo {
        font-size: 20px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero-shell {
        min-height: auto;
        padding: 46px 0;
    }

    .hero-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .hero-search input,
    .hero-search button {
        width: 100%;
    }

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

    .hero-poster {
        min-height: 330px;
    }

    .hero-card {
        padding: 22px;
    }

    .hero-card h2 {
        font-size: 26px;
    }

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

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

    .section-head {
        display: block;
    }

    .rank-item {
        grid-template-columns: 44px 74px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-thumb {
        width: 74px;
        height: 98px;
    }

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

@media (max-width: 520px) {
    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .detail-main,
    .content-card {
        padding: 20px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
