:root {
    --golden-50: #fffbeb;
    --golden-100: #fef3c7;
    --golden-200: #fde68a;
    --golden-300: #fcd34d;
    --golden-400: #fbbf24;
    --golden-500: #f59e0b;
    --golden-600: #d97706;
    --golden-700: #b45309;
    --golden-800: #92400e;
    --golden-900: #78350f;
    --sunshine-50: #fff9f0;
    --ink-900: #111827;
    --ink-800: #1f2937;
    --ink-700: #374151;
    --ink-600: #4b5563;
    --ink-500: #6b7280;
    --paper: #ffffff;
    --soft: rgba(255, 255, 255, 0.78);
    --border: rgba(245, 158, 11, 0.18);
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
    --gold-shadow: 0 12px 30px rgba(251, 191, 36, 0.36);
    --gradient-golden: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    --gradient-soft: linear-gradient(135deg, #fffbeb 0%, #ffffff 48%, #fff9f0 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink-900);
    background: var(--gradient-soft);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background: var(--gradient-golden);
    box-shadow: var(--gold-shadow);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #ffffff;
    font-weight: 650;
}

.nav-links a {
    position: relative;
    opacity: 0.94;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-links a:hover {
    color: var(--golden-100);
    opacity: 1;
}

.nav-links a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    content: "";
    background: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 99px;
}

main {
    padding-top: 68px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #1f1302;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: saturate(1.08) brightness(0.72);
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 25%, rgba(251, 191, 36, 0.46), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.74) 46%, rgba(17, 24, 39, 0.22) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 56px;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 86px 0 70px;
    color: #ffffff;
}

.eyebrow,
.section-heading span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 14px;
    padding: 6px 12px;
    color: var(--golden-800);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(254, 243, 199, 0.92);
    border-radius: 999px;
}

.hero h1 {
    max-width: 920px;
    margin: 0 0 18px;
    font-size: clamp(34px, 5.8vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.hero h2 {
    margin: 0 0 14px;
    color: var(--golden-200);
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.16;
}

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

.hero-tags,
.tag-row,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    color: var(--golden-800);
    font-size: 13px;
    font-weight: 700;
    background: var(--golden-100);
    border-radius: 999px;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    font-weight: 800;
    border-radius: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: var(--gradient-golden);
    box-shadow: var(--gold-shadow);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    transform: rotate(1deg);
}

.hero-poster::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    border-radius: inherit;
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 34px;
    left: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.25s ease, background 0.25s ease;
}

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

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

.intro-section {
    padding-bottom: 28px;
}

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

.section-heading.center-heading {
    display: grid;
    justify-items: center;
    text-align: center;
}

.section-heading h2,
.page-hero h1,
.content-card h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.section-heading p,
.page-hero p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--ink-600);
    font-size: 17px;
}

.section-heading > a {
    flex: 0 0 auto;
    color: var(--golden-700);
    font-weight: 800;
}

.tool-panel {
    display: grid;
    gap: 14px;
    margin: 28px 0 34px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.search-box span {
    color: var(--golden-700);
    font-size: 22px;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    color: var(--ink-800);
    border: 0;
    outline: 0;
    background: transparent;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button {
    min-height: 38px;
    padding: 0 14px;
    color: var(--ink-700);
    font-weight: 750;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
    color: #ffffff;
    border-color: transparent;
    background: var(--gradient-golden);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(146, 64, 14, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--golden-100);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.62), transparent);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    background: var(--gradient-golden);
    border-radius: 12px;
    box-shadow: var(--gold-shadow);
}

.card-body {
    padding: 16px;
}

.card-meta {
    gap: 6px;
    margin-bottom: 10px;
}

.card-meta span {
    padding: 4px 8px;
    font-size: 12px;
}

.movie-card h2 {
    margin: 0 0 8px;
    color: var(--ink-900);
    font-size: 18px;
    line-height: 1.32;
}

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

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

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    color: var(--ink-500);
    font-size: 13px;
    font-weight: 700;
}

.card-foot a {
    color: var(--golden-700);
}

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

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 24px;
    color: #ffffff;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.82), rgba(217, 119, 6, 0.62)),
        var(--category-image) center / cover;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.category-card p {
    max-width: 300px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    position: relative;
    display: grid;
    min-height: 360px;
    align-items: center;
    padding: 88px max(16px, calc((100vw - 1180px) / 2)) 70px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(255, 255, 255, 0.9)),
        var(--page-hero-image, linear-gradient(135deg, #fbbf24, #fff7ed));
    background-position: center;
    background-size: cover;
}

.page-hero::after {
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 420px;
    height: 420px;
    content: "";
    background: radial-gradient(circle, rgba(251, 191, 36, 0.36), transparent 64%);
    border-radius: 50%;
}

.page-hero > div {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.category-hero,
.ranking-hero {
    color: var(--ink-900);
}

.compact-actions {
    margin-top: 22px;
}

.compact-actions .ghost-button {
    color: var(--golden-800);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px var(--border);
}

.split-section {
    padding-top: 40px;
}

.ranking-list {
    display: grid;
    gap: 12px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 54px 64px minmax(0, 1fr) auto 56px;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(146, 64, 14, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
    box-shadow: var(--gold-shadow);
}

.ranking-number {
    color: var(--golden-700);
    font-size: 22px;
    font-weight: 950;
}

.ranking-item img {
    width: 64px;
    height: 82px;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-title {
    overflow: hidden;
    color: var(--ink-900);
    font-size: 17px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-info {
    color: var(--ink-500);
    font-size: 13px;
    font-weight: 700;
}

.ranking-score {
    display: grid;
    width: 48px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    background: var(--gradient-golden);
    border-radius: 12px;
}

.detail-hero {
    position: relative;
    padding: 92px max(16px, calc((100vw - 1180px) / 2)) 72px;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.76), rgba(17, 24, 39, 0.42)),
        var(--detail-hero-image) center / cover;
}

.detail-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    backdrop-filter: blur(2px);
}

.breadcrumbs,
.detail-layout {
    position: relative;
    z-index: 2;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--golden-200);
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.detail-meta {
    margin-bottom: 14px;
}

.tag-row span {
    background: rgba(254, 243, 199, 0.92);
}

.player-section {
    padding-bottom: 28px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(17, 24, 39, 0.22);
}

.video-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    gap: 14px;
    place-items: center;
    align-content: center;
    padding: 0;
    color: #ffffff;
    border: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.42), rgba(217, 119, 6, 0.22));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    padding-left: 6px;
    color: #ffffff;
    font-size: 34px;
    background: var(--gradient-golden);
    border-radius: 999px;
    box-shadow: var(--gold-shadow);
}

.play-overlay span:last-child {
    font-size: 18px;
    font-weight: 850;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
}

.content-section {
    padding-top: 36px;
}

.content-card {
    padding: clamp(24px, 4vw, 44px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.content-card h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

.content-card h2:not(:first-child) {
    margin-top: 34px;
}

.content-card p {
    margin: 0;
    color: var(--ink-700);
    font-size: 17px;
}

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

.site-footer {
    margin-top: 44px;
    padding: 54px max(16px, calc((100vw - 1180px) / 2)) 34px;
    color: var(--golden-100);
    background: linear-gradient(135deg, var(--golden-900), var(--golden-800));
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 580px;
    margin: 0;
    color: var(--golden-200);
}

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

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 9px 0;
    color: var(--golden-200);
}

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

.copyright {
    margin-top: 34px !important;
    padding-top: 24px;
    text-align: center;
    border-top: 1px solid rgba(254, 243, 199, 0.18);
}

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

@media (max-width: 1024px) {
    .hero-content,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-cover {
        max-width: 320px;
    }

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

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

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 76px;
        right: 12px;
        left: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        color: var(--ink-900);
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--border);
        border-radius: 22px;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 12px;
        color: var(--ink-800);
        border-radius: 14px;
    }

    .nav-links a:hover {
        color: var(--golden-800);
        background: var(--golden-50);
    }

    .nav-links a::after {
        display: none;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        gap: 28px;
        padding-top: 58px;
    }

    .hero p,
    .detail-one-line {
        font-size: 16px;
    }

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

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

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

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

    .page-hero,
    .detail-hero {
        padding-top: 62px;
    }

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

    .ranking-info {
        display: none;
    }

    .ranking-item img {
        width: 54px;
        height: 70px;
    }

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

@media (max-width: 520px) {
    .brand {
        font-size: 18px;
    }

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

    .hero {
        min-height: 800px;
    }

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

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

    .card-body {
        padding: 14px;
    }

    .tool-panel {
        padding: 14px;
    }

    .filter-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .filter-button {
        flex: 0 0 auto;
    }
}
