:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.13);
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.2);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--amber-50) 0%, var(--white) 34%, var(--slate-50) 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
    border-bottom: 1px solid rgba(251, 191, 36, 0.38);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 20px;
    color: #78350f;
    letter-spacing: -0.02em;
}

.brand-text small {
    color: #b45309;
    font-size: 12px;
}

.header-search,
.mobile-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search {
    flex: 1;
    max-width: 430px;
    margin-left: auto;
}

.header-search input,
.mobile-search input,
.filter-search input {
    width: 100%;
    border: 1px solid rgba(245, 158, 11, 0.42);
    background: rgba(255, 255, 255, 0.9);
    color: var(--slate-900);
    outline: none;
    border-radius: 999px;
    padding: 12px 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-search input:focus,
.mobile-search input:focus,
.filter-search input:focus {
    border-color: var(--amber-400);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.header-search button,
.mobile-search button,
.filter-search button {
    border: 0;
    color: var(--white);
    cursor: pointer;
    border-radius: 999px;
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.24);
}

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

.desktop-nav a {
    font-size: 14px;
    font-weight: 700;
    color: #78350f;
    padding: 8px 2px;
}

.desktop-nav a:hover {
    color: var(--orange-600);
}

.mobile-toggle {
    display: none;
    border: 0;
    cursor: pointer;
    border-radius: 12px;
    padding: 10px 12px;
    color: #78350f;
    background: rgba(254, 243, 199, 0.9);
}

.mobile-panel {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid rgba(251, 191, 36, 0.35);
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-panel nav a {
    padding: 12px;
    border-radius: 12px;
    color: #78350f;
    background: rgba(255, 255, 255, 0.72);
}

.hero-section {
    padding: 26px 0 36px;
}

.hero-shell {
    width: min(1240px, calc(100% - 24px));
    margin: 0 auto;
}

.hero-title {
    padding: 0 0 18px;
    color: var(--slate-800);
}

.hero-title h1,
.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-title p,
.page-hero p {
    margin: 0;
    max-width: 760px;
    color: var(--slate-600);
    line-height: 1.8;
}

.hero-slider {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    border-radius: 32px;
    background: var(--slate-900);
    box-shadow: var(--shadow-lg);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.58fr);
    gap: 36px;
    align-items: center;
    padding: clamp(28px, 5vw, 66px);
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 520ms ease, transform 720ms ease;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
    content: "";
    width: 26px;
    height: 3px;
    border-radius: 99px;
    background: currentColor;
}

.hero-copy {
    color: var(--white);
}

.hero-copy h2 {
    margin: 16px 0;
    max-width: 720px;
    font-size: clamp(36px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.85;
}

.hero-tags,
.detail-meta,
.movie-meta,
.tag-cloud {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-cloud a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 800;
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.primary-btn {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.32);
}

.ghost-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

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

.hero-poster,
.detail-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 72px rgba(0, 0, 0, 0.42);
    aspect-ratio: 3 / 4;
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster span,
.detail-poster span,
.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    color: var(--white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(245, 158, 11, 0.95);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    color: var(--slate-900);
    font-size: 36px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 7;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 220ms ease, background 220ms ease;
}

.hero-dots button.is-active {
    width: 32px;
    background: var(--amber-400);
}

.section-block {
    margin-top: 66px;
}

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

.section-head.compact {
    align-items: center;
    margin-bottom: 18px;
}

.section-head h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2 {
    color: var(--slate-900);
}

.section-head h2 {
    margin: 6px 0 0;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.section-head a,
.text-link {
    color: #b45309;
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

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

.movie-card.is-hidden {
    display: none;
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--slate-200);
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 520ms ease;
}

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

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.52));
    opacity: 0;
    transition: opacity 260ms ease;
}

.movie-card:hover .cover-shade {
    opacity: 1;
}

.movie-cover .play-badge {
    width: 54px;
    height: 54px;
    opacity: 0;
    transition: opacity 260ms ease, transform 260ms ease;
}

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

.duration,
.category-badge {
    position: absolute;
    z-index: 3;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 9px;
}

.duration {
    right: 10px;
    top: 10px;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(8px);
}

.category-badge {
    left: 10px;
    bottom: 10px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.movie-info {
    padding: 16px;
}

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

.movie-info h3 a:hover,
.rank-body h3 a:hover {
    color: var(--orange-600);
}

.movie-info p {
    min-height: 45px;
    margin: 0 0 13px;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.6;
}

.movie-meta {
    color: var(--slate-500);
    font-size: 12px;
}

.movie-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: var(--slate-300);
}

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

.category-card,
.category-overview-card {
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.category-card {
    display: grid;
    gap: 8px;
    min-height: 134px;
    padding: 24px;
    background: linear-gradient(135deg, #fff7ed, var(--white));
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.category-card span {
    color: var(--slate-900);
    font-size: 20px;
    font-weight: 900;
}

.category-card small {
    color: var(--slate-600);
    line-height: 1.7;
}

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

.split-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 30px;
    align-items: start;
}

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

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

.rank-list.full {
    margin-top: 24px;
}

.rank-item {
    display: grid;
    grid-template-columns: 56px 96px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.rank-item.is-hidden {
    display: none;
}

.rank-no {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--white);
    font-size: 18px;
    font-weight: 900;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.rank-poster {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 10;
}

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

.rank-body h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-body p {
    margin: 0 0 8px;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.5;
}

.score {
    color: var(--orange-600);
    font-size: 20px;
}

.page-main {
    padding: 44px 0 20px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 42px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--slate-900), #451a03 76%);
    box-shadow: var(--shadow-md);
}

.page-hero.slim h1,
.page-hero.slim p {
    color: var(--white);
}

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

.category-overview-card {
    display: grid;
    gap: 18px;
    padding: 18px;
}

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

.category-thumb-row img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-card h2 {
    margin: 0 0 8px;
}

.category-overview-card p {
    margin: 0 0 14px;
    color: var(--slate-600);
    line-height: 1.7;
}

.filter-panel {
    position: relative;
    margin: 0 0 28px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

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

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-row button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--slate-700);
    background: var(--slate-100);
}

.filter-row button.is-active,
.filter-row button:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.no-results {
    display: none;
    margin: 16px 0 0;
    color: var(--slate-600);
}

.no-results.is-visible {
    display: block;
}

.detail-main {
    background: linear-gradient(180deg, var(--slate-900) 0, var(--slate-900) 620px, var(--slate-50) 620px, var(--slate-50) 100%);
}

.detail-hero {
    min-height: 560px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 320px;
    gap: 42px;
    align-items: center;
    padding: 52px 0;
}

.detail-copy {
    color: var(--white);
}

.detail-copy h1 {
    margin: 16px 0;
    color: var(--white);
    font-size: clamp(38px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.detail-copy p {
    max-width: 780px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.85;
}

.detail-meta {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.72);
}

.detail-content {
    margin-top: -94px;
    position: relative;
    z-index: 4;
}

.player-shell {
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

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

.player-stage video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.72));
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    color: var(--white);
    font-size: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.player-overlay.is-hidden {
    display: none;
}

.detail-article {
    display: grid;
    gap: 22px;
    margin-top: 32px;
    padding: 30px;
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.detail-article h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.detail-article p {
    margin: 0;
    color: var(--slate-700);
    line-height: 1.95;
}

.tag-cloud a {
    color: #92400e;
    background: var(--amber-100);
    border-color: rgba(245, 158, 11, 0.26);
}

.related-section {
    margin-top: 34px;
}

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

.site-footer {
    margin-top: 78px;
    color: var(--slate-300);
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 1fr;
    gap: 34px;
    padding: 42px 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--amber-400);
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    color: var(--slate-300);
    line-height: 1.8;
}

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

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

.footer-links a {
    color: var(--slate-300);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--amber-400);
}

.footer-bottom {
    padding: 18px 16px;
    color: var(--slate-500);
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

    .detail-poster {
        max-width: 300px;
    }
}

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

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 28px;
    }

    .hero-poster {
        max-width: 220px;
    }

    .category-grid,
    .overview-grid,
    .related-grid,
    .movie-grid,
    .library-grid,
    .side-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rank-item {
        grid-template-columns: 42px 82px minmax(0, 1fr);
    }

    .rank-item .score {
        grid-column: 3;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 20px, 1180px);
    }

    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 17px;
    }

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

    .hero-slider {
        border-radius: 22px;
    }

    .hero-copy h2,
    .detail-copy h1 {
        font-size: 36px;
    }

    .hero-arrow {
        display: none;
    }

    .movie-grid,
    .library-grid,
    .side-grid,
    .category-grid,
    .overview-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .filter-search {
        flex-direction: column;
    }

    .page-hero,
    .detail-article {
        padding: 24px;
        border-radius: 22px;
    }

    .detail-content {
        margin-top: -42px;
    }

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