:root {
    color-scheme: light;
    --amber-950: #431407;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --orange-700: #c2410c;
    --orange-100: #ffedd5;
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(67, 20, 7, 0.15);
    --shadow-card: 0 12px 30px rgba(28, 25, 23, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--stone-900);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fafaf9 100%);
    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;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-950), var(--amber-800), var(--orange-700));
    box-shadow: 0 12px 28px rgba(67, 20, 7, 0.25);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    color: var(--amber-950);
    background: linear-gradient(135deg, #fde68a, #f97316);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.25);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    font-weight: 650;
    font-size: 15px;
}

.nav-links a,
.mobile-menu a {
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
    color: #fde68a;
    opacity: 1;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 12px;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu.is-open {
    display: flex;
}

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    color: var(--white);
    background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.35), transparent 28%), linear-gradient(135deg, #140802 0%, #431407 45%, #7c2d12 100%);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 10, 9, 0.84), rgba(12, 10, 9, 0.38), rgba(12, 10, 9, 0.8));
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

.hero-slide img {
    position: absolute;
    right: 0;
    top: 0;
    width: 62%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
    filter: saturate(1.12) contrast(1.08);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    align-content: center;
    padding: 76px 0 92px;
}

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

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: #fde68a;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: var(--amber-500);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p {
    margin: 18px 0 0;
    max-width: 620px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
}

.hero-tags span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    color: #7c2d12;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 700;
}

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

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), #ea580c);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

.btn-secondary {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

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

.hero-cards {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 34px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.hero-tab {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 13px 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-tab.is-active,
.hero-tab:hover {
    background: rgba(245, 158, 11, 0.26);
    transform: translateY(-2px);
}

.hero-tab strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-tab span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

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

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

.section-head h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: var(--stone-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-head p,
.page-hero p {
    margin: 8px 0 0;
    color: var(--stone-600);
}

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

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

.category-tile {
    min-height: 160px;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-900), var(--orange-700));
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(180, 83, 9, 0.28);
}

.category-tile h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(28, 25, 23, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stone-900), var(--amber-900));
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 0.32s ease, opacity 0.32s ease;
}

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

.type-badge,
.rank-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--white);
    background: rgba(217, 119, 6, 0.94);
    font-size: 12px;
    font-weight: 800;
}

.rank-pill {
    left: 10px;
    right: auto;
    background: rgba(12, 10, 9, 0.72);
}

.play-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--amber-600);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card-body h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card-body h3 a:hover {
    color: var(--amber-700);
}

.movie-card-body p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 45px;
    margin: 8px 0 12px;
    color: var(--stone-600);
    font-size: 14px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--stone-600);
    font-size: 12px;
}

.movie-meta span {
    border-radius: 999px;
    padding: 3px 8px;
    background: var(--stone-100);
}

.wide-card {
    display: grid;
    grid-template-columns: 150px 1fr;
}

.wide-card .poster-link {
    aspect-ratio: auto;
    min-height: 210px;
}

.wide-card .movie-card-body {
    padding: 20px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(180, 83, 9, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--stone-700);
    font-size: 13px;
    font-weight: 750;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #fed7aa;
    border-radius: 13px;
    padding: 0 13px;
    outline: none;
    color: var(--stone-900);
    background: var(--white);
}

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

.empty-state {
    padding: 24px;
    border-radius: var(--radius-lg);
    color: var(--stone-600);
    background: var(--white);
    text-align: center;
}

.page-hero {
    background: radial-gradient(circle at 80% 0%, rgba(251, 146, 60, 0.26), transparent 30%), linear-gradient(135deg, #fff7ed, #ffffff);
}

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

.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    color: var(--stone-600);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--amber-700);
    font-weight: 750;
}

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 70px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
}

.player-card,
.detail-panel,
.info-panel {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.player-card {
    overflow: hidden;
    background: var(--stone-950);
}

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

.video-player video,
.video-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-player video {
    position: absolute;
    inset: 0;
}

.video-cover {
    position: absolute;
    inset: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-player.is-playing .video-cover {
    opacity: 0;
    visibility: hidden;
}

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), #ea580c);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.video-player.is-playing .play-button {
    display: none;
}

.player-status {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 4;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    text-align: center;
}

.detail-title {
    padding: 26px 28px;
    color: var(--white);
    background: linear-gradient(135deg, var(--stone-900), var(--amber-900));
}

.detail-title p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.detail-panel {
    margin-top: 24px;
    padding: 30px;
}

.detail-panel h2,
.info-panel h2,
.related-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 24px;
}

.detail-panel h2::before,
.info-panel h2::before,
.related-section h2::before {
    content: "";
    width: 5px;
    height: 26px;
    border-radius: 999px;
    background: var(--amber-600);
}

.detail-panel p {
    margin: 0 0 18px;
    color: var(--stone-700);
}

.info-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
}

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

.info-list div {
    display: grid;
    gap: 4px;
}

.info-list dt {
    color: var(--stone-600);
    font-size: 13px;
}

.info-list dd {
    margin: 0;
    color: var(--stone-900);
    font-weight: 750;
}

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

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

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

.site-footer {
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(90deg, var(--stone-950), var(--stone-800));
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr;
    gap: 34px;
    padding: 48px 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 20px;
}

.site-footer p {
    margin: 0;
}

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

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

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: var(--amber-600);
    box-shadow: var(--shadow-card);
}

.back-top.is-visible {
    display: block;
}

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

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

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

    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .info-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .home-hero,
    .hero-content {
        min-height: 620px;
    }

    .hero-slide img {
        width: 100%;
        opacity: 0.34;
    }

    .hero-cards {
        position: relative;
        left: auto;
        bottom: auto;
        width: min(1180px, calc(100% - 32px));
        margin: -88px auto 34px;
        transform: none;
        grid-template-columns: 1fr;
    }

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

    .section-head {
        display: block;
    }

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

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

    .wide-card {
        grid-template-columns: 112px 1fr;
    }

    .wide-card .poster-link {
        min-height: 178px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
