:root {
    --amber: #d97706;
    --amber-dark: #b45309;
    --orange: #ea580c;
    --slate: #0f172a;
    --slate-soft: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 34%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button, input, select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(226, 232, 240, 0.9);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.3);
}

.brand-name {
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

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

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown button:hover {
    color: var(--amber);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 190px;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
}

.nav-dropdown-menu a:hover {
    background: #fffbeb;
}

.header-search {
    display: flex;
    align-items: center;
    width: min(270px, 24vw);
    height: 42px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0 0 0 18px;
    background: transparent;
}

.header-search button {
    width: 44px;
    border: 0;
    color: var(--amber);
    background: transparent;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--gray-900);
    cursor: pointer;
}

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

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

.mobile-nav a {
    padding: 10px 0;
    font-weight: 700;
}

.mobile-nav input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0 16px;
    outline: 0;
}

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

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

.section-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.section-heading h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
}

.section-heading p,
.page-hero p,
.detail-title p {
    margin: 10px 0 0;
    color: var(--gray-500);
}

.link-more {
    color: var(--amber);
    font-weight: 800;
    white-space: nowrap;
}

.hero-wrap {
    padding: 30px 0 46px;
}

.hero-carousel {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--slate);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.45) 52%, rgba(2, 6, 23, 0.08) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: clamp(28px, 5vw, 58px);
    color: #fff;
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 18px;
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-meta {
    color: #e2e8f0;
    font-size: 18px;
    margin: 0 0 10px;
}

.hero-line {
    max-width: 680px;
    margin: 0 0 26px;
    color: #cbd5e1;
    font-size: 18px;
}

.hero-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

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

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

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

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.btn-light {
    color: var(--gray-900);
    background: #fff;
}

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

.hero-controls button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.hero-dots {
    position: absolute;
    left: clamp(28px, 5vw, 58px);
    bottom: 24px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

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

.hero-dot.is-active {
    background: var(--amber);
}

.category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    color: #9a3412;
    background: #fff7ed;
    font-weight: 800;
}

.category-chip:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

.movie-card {
    min-width: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    display: block;
    height: 100%;
}

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

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

.movie-card:hover .poster-frame img,
.rank-card:hover img,
.related-card:hover img {
    transform: scale(1.08);
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 60%);
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::after {
    opacity: 1;
}

.poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: #fff;
    background: var(--amber);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: 0.25s ease;
}

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

.poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 3px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
    font-weight: 800;
}

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

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

.movie-card:hover h3,
.rank-card:hover h3,
.related-card:hover h3 {
    color: var(--amber);
}

.movie-meta,
.rank-body p,
.related-card p {
    margin: 6px 0;
    color: var(--gray-500);
    font-size: 13px;
}

.movie-line {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    color: var(--gray-700);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span,
.detail-tag {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    font-size: 12px;
    font-weight: 700;
}

.feature-band {
    background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

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

.rank-card {
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.rank-link {
    display: flex;
    gap: 16px;
    padding: 12px;
}

.rank-cover {
    width: 92px;
    height: 122px;
    flex: 0 0 auto;
    border-radius: 13px;
    overflow: hidden;
    background: #f8fafc;
}

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

.rank-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rank-title-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-number {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, var(--amber));
    font-weight: 900;
}

.rank-body span {
    display: -webkit-box;
    color: var(--gray-700);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-hero {
    padding: 54px 0 30px;
}

.page-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: clamp(28px, 5vw, 56px);
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.45), transparent 28%),
        linear-gradient(135deg, #0f172a, #1e293b 58%, #92400e);
    box-shadow: var(--shadow);
}

.page-hero-card::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.page-hero-card h1,
.page-hero-card p,
.page-hero-card .inline-actions {
    position: relative;
    z-index: 2;
}

.page-hero-card p {
    max-width: 760px;
    color: #cbd5e1;
}

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

.category-card {
    display: block;
    min-height: 210px;
    padding: 22px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #1e293b, #92400e);
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

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

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
}

.category-card span {
    color: #fde68a;
    font-weight: 800;
}

.category-card p {
    margin: 0 0 20px;
    color: #e2e8f0;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    margin: 0 0 26px;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0 16px;
    background: #fff;
    outline: 0;
}

.detail-shell {
    padding: 38px 0 54px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--amber);
}

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

.player-card,
.detail-info-card,
.related-panel {
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.player-stage video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(2, 6, 23, 0.28);
    transition: opacity 0.22s ease;
    cursor: pointer;
}

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

.player-overlay img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.big-play {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
    font-size: 32px;
    cursor: pointer;
}

.detail-title {
    padding: 24px 26px 26px;
}

.detail-title h1 {
    font-size: clamp(30px, 5vw, 50px);
}

.detail-info-card {
    padding: 24px;
}

.detail-cover {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 3 / 4;
    margin-bottom: 18px;
    background: #f8fafc;
}

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

.detail-facts {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.detail-facts div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--gray-200);
}

.detail-facts span {
    color: var(--gray-500);
}

.article-content {
    padding: 0 0 18px;
}

.article-block {
    margin-top: 26px;
}

.article-block h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.article-block p {
    margin: 0;
    color: var(--gray-700);
}

.related-panel {
    margin-top: 28px;
    padding: 24px;
}

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

.related-card {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.related-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.related-card div {
    padding: 12px;
}

.site-footer {
    margin-top: 38px;
    padding: 44px 0 22px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 1.1fr;
    gap: 34px;
}

.footer-brand {
    color: #fff;
    font-size: 20px;
}

.site-footer p {
    max-width: 460px;
    color: #94a3b8;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #fff;
}

.site-footer a {
    display: block;
    margin: 6px 0;
    color: #cbd5e1;
}

.site-footer a:hover {
    color: #fbbf24;
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: #94a3b8;
    font-size: 14px;
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 20px;
    color: var(--gray-500);
    background: #fff;
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

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

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

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

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

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .hero-carousel {
        min-height: 500px;
    }

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

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

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

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

    .brand-name {
        font-size: 20px;
    }

    .hero-wrap {
        padding-top: 18px;
    }

    .hero-carousel {
        min-height: 480px;
        border-radius: 18px;
    }

    .hero-content {
        padding: 24px;
    }

    .hero-line,
    .hero-meta {
        font-size: 15px;
    }

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

    .hero-dots {
        display: none;
    }

    .section-heading {
        display: block;
    }

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

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

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

    .rank-link {
        gap: 12px;
    }

    .rank-cover {
        width: 78px;
        height: 104px;
    }

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