:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-500: #f97316;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --slate-950: #020617;
    --white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.14);
    --shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.2);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(135deg, #f8fafc 0%, #fffbeb 55%, #fff7ed 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "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(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 76px;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
}

.brand-text,
.footer-brand {
    font-size: 25px;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--amber-700), var(--orange-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.main-nav > a,
.nav-dropdown > button {
    border: 0;
    background: transparent;
    color: var(--gray-700);
    cursor: pointer;
    font-weight: 700;
    padding: 10px 0;
    transition: color 0.2s ease;
}

.main-nav > a:hover,
.main-nav > a.is-active,
.nav-dropdown:hover > button {
    color: var(--amber-600);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: -20px;
    min-width: 190px;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 700;
}

.dropdown-panel a:hover {
    color: var(--amber-700);
    background: var(--amber-50);
}

.header-search,
.mobile-search,
.home-search-panel form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.home-search-panel input,
.filter-bar input {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: #fff;
    padding: 12px 16px;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.home-search-panel input:focus,
.filter-bar input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
}

.header-search button,
.mobile-search button,
.home-search-panel button {
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--amber-600);
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    cursor: pointer;
    place-items: center;
    gap: 4px;
    flex-direction: column;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 4px;
    background: var(--gray-700);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--gray-200);
    background: rgba(255, 255, 255, 0.96);
    padding: 18px 24px 24px;
}

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

.mobile-nav,
.mobile-category {
    display: grid;
    gap: 10px;
}

.mobile-nav a {
    font-weight: 800;
    color: var(--gray-700);
    padding: 10px 0;
}

.mobile-nav a.is-active,
.mobile-nav a:hover {
    color: var(--amber-600);
}

.mobile-category {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 0;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    color: #fff;
    background: var(--slate-950);
}

.hero-slides {
    position: relative;
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-backdrop,
.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 35%, rgba(245, 158, 11, 0.33), transparent 26%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.25));
    backdrop-filter: blur(3px);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 360px);
    align-items: center;
    gap: 64px;
    width: min(var(--container), calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    padding: 92px 0 118px;
}

.hero-kicker,
.section-kicker,
.page-hero p,
.home-search-panel p {
    margin: 0 0 12px;
    color: var(--amber-500);
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 740px;
    margin: 0;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-summary {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 12px;
}

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

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
    box-shadow: 0 18px 36px rgba(217, 119, 6, 0.34);
}

.btn-glass {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 18px;
    transform: translateX(-50%);
}

.hero-controls button {
    border: 0;
    color: #fff;
    cursor: pointer;
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 30px;
    line-height: 1;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--amber-500);
}

.hero-strip {
    position: absolute;
    right: max(24px, calc((100vw - var(--container)) / 2));
    bottom: 30px;
    z-index: 5;
    display: flex;
    gap: 12px;
}

.hero-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 180px;
    padding: 8px 10px;
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 900;
}

.hero-mini img {
    width: 42px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.hero-mini-more {
    justify-content: center;
    padding-inline: 18px;
}

.home-search-panel {
    margin-top: -36px;
    position: relative;
    z-index: 7;
}

.search-panel-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-md);
}

.search-panel-inner h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.05em;
}

.content-section {
    padding: 66px 0 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.section-heading p:last-child,
.page-hero h2,
.category-card p,
.movie-card-body p,
.story-card p,
.info-card dd,
.site-footer p {
    color: var(--gray-500);
}

.section-more {
    flex: 0 0 auto;
    color: var(--amber-700);
    font-weight: 900;
}

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

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

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

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #fef3c7);
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.8), transparent);
}

.watch-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
}

.watch-pill {
    right: 12px;
    bottom: 12px;
    background: rgba(217, 119, 6, 0.92);
    padding: 7px 11px;
    font-size: 12px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.34);
}

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

.card-meta {
    display: flex;
    gap: 8px;
    color: var(--amber-700);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h2 {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.28;
    letter-spacing: -0.035em;
}

.movie-card-compact h2 {
    font-size: 16px;
}

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

.movie-card-body p {
    display: -webkit-box;
    min-height: 4.8em;
    margin: 0 0 14px;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.tag-row span {
    color: var(--amber-700);
    background: var(--amber-50);
    padding: 5px 8px;
}

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

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

.category-card a {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 220px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-orb {
    position: absolute;
    right: -38px;
    top: -38px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(249, 115, 22, 0.18));
}

.category-card h2 {
    position: relative;
    margin: 0 0 12px;
    font-size: 26px;
    letter-spacing: -0.05em;
}

.category-card p {
    position: relative;
    margin: 0 0 18px;
}

.category-samples {
    position: relative;
    display: grid;
    gap: 6px;
}

.category-samples a {
    display: inline;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--amber-700);
    font-weight: 900;
}

.page-hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.42), transparent 28%),
        linear-gradient(135deg, #020617, #111827 58%, #78350f);
    padding: 90px 0;
}

.page-hero-compact {
    padding: 72px 0;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.07em;
}

.page-hero h2 {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 20px;
    font-weight: 500;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-weight: 800;
}

.crumbs a {
    color: var(--amber-500);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-actions button {
    border: 0;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 900;
}

.filter-actions button.is-active,
.filter-actions button:hover {
    color: #fff;
    background: var(--amber-600);
}

.rank-block + .rank-block {
    margin-top: 34px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-image: var(--detail-image);
    background-size: cover;
    background-position: center;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 440px;
    padding: 74px 0 60px;
}

.detail-headline {
    max-width: 880px;
    margin-top: 48px;
}

.detail-headline p {
    margin: 0 0 14px;
    color: var(--amber-500);
    font-weight: 900;
}

.detail-headline h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-headline h2 {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 20px;
    font-weight: 500;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 30px;
    padding-top: 48px;
}

.detail-main,
.detail-aside {
    display: grid;
    align-content: start;
    gap: 22px;
}

.player-card,
.story-card,
.info-card {
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.player-card {
    overflow: hidden;
    background: #050505;
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #050505;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.74));
    cursor: pointer;
    font-weight: 900;
    font-size: 18px;
}

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

.play-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
    box-shadow: 0 18px 38px rgba(217, 119, 6, 0.38);
    font-size: 30px;
    padding-left: 4px;
}

.story-card,
.info-card {
    padding: 28px;
}

.story-card h2,
.info-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    letter-spacing: -0.05em;
}

.story-card p {
    margin: 0;
    font-size: 17px;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #f8fafc, #fef3c7);
}

.info-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.info-card dt {
    color: var(--gray-900);
    font-weight: 900;
}

.info-card dd {
    margin: 0;
}

.site-footer {
    margin-top: 72px;
    color: rgba(255, 255, 255, 0.8);
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
    gap: 28px;
    padding: 52px 0;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 18px;
}

.site-footer a {
    display: block;
    margin-top: 8px;
}

.site-footer a:hover {
    color: var(--amber-500);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

[data-card].is-hidden {
    display: none;
}

@media (max-width: 1180px) {
    .movie-grid,
    .movie-grid-dense {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .hero-strip {
        display: none;
    }
}

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

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .hero-carousel,
    .hero-slides {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: 720px;
        padding: 80px 0 120px;
    }

    .hero-poster {
        max-width: 260px;
        transform: none;
    }

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

    .detail-aside {
        grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    }

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }
}

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

    .brand-text {
        font-size: 22px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-headline h1 {
        letter-spacing: -0.055em;
    }

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

    .movie-card-body {
        padding: 13px;
    }

    .movie-card h2 {
        font-size: 16px;
    }

    .movie-card-body p {
        font-size: 13px;
    }

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

    .category-card a,
    .story-card,
    .info-card {
        padding: 20px;
    }

    .detail-aside {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        max-width: 260px;
    }
}

@media (max-width: 420px) {
    .movie-grid,
    .movie-grid-dense,
    .category-grid,
    .category-grid-large {
        grid-template-columns: 1fr;
    }

    .home-search-panel form,
    .mobile-search {
        align-items: stretch;
        flex-direction: column;
    }
}
