:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --teal-600: #0d9488;
    --blue-600: #2563eb;
    --cyan-600: #0891b2;
    --rose-600: #e11d48;
    --amber-400: #fbbf24;
    --text: #1e293b;
    --muted: #64748b;
    --card: #ffffff;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, var(--slate-50), #ffffff);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark,
.footer-brand span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--slate-900);
    background: var(--emerald-400);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 24px;
    letter-spacing: 0.03em;
}

.brand-text em {
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--emerald-400);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    border-radius: 12px;
    font-size: 24px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    border-top: 1px solid rgba(226, 232, 240, 0.16);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
}

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

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

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-slide::after {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    content: "";
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.94), transparent);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 40px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1 {
    max-width: 780px;
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 740px;
    margin: 0 0 28px;
    color: #e2e8f0;
    font-size: clamp(18px, 2.6vw, 26px);
    line-height: 1.7;
}

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

.hero-meta span,
.detail-meta span {
    padding: 7px 12px;
    color: #d1fae5;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 14px;
}

.hero-tags {
    margin: 20px 0 32px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    padding: 6px 10px;
    color: var(--emerald-700);
    background: #d1fae5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.primary-button,
.ghost-button,
.side-button,
.category-overview-copy a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.side-button,
.category-overview-copy a {
    color: #ffffff;
    background: var(--emerald-600);
    box-shadow: 0 14px 30px rgba(5, 150, 105, 0.28);
}

.primary-button:hover,
.side-button:hover,
.category-overview-copy a:hover {
    background: var(--emerald-700);
    transform: translateY(-2px);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    z-index: 5;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 44px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-panel {
    position: relative;
    z-index: 4;
    margin-top: -54px;
    padding-bottom: 42px;
}

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

.quick-card,
.category-chip,
.category-overview-card,
.side-card,
.article-block,
.player-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.78);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quick-card {
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-card:hover,
.category-chip:hover,
.movie-card:hover,
.wide-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.quick-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--slate-900);
    font-size: 20px;
}

.quick-card span {
    color: var(--muted);
    line-height: 1.6;
}

.section {
    padding: 72px 0;
}

.white-section {
    background: #ffffff;
}

.soft-section,
.page-shell,
.detail-shell {
    background: linear-gradient(180deg, var(--slate-50), #ffffff);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 34px;
}

.section-title h2 {
    margin: 0;
    color: var(--slate-800);
    font-size: clamp(30px, 4vw, 44px);
}

.section-title p {
    margin: 6px 0 0;
    color: var(--muted);
}

.title-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #ffffff;
    border-radius: 16px;
    font-size: 24px;
    font-weight: 900;
}

.title-icon.emerald {
    background: var(--emerald-600);
}

.title-icon.blue {
    background: var(--blue-600);
}

.title-icon.rose {
    background: var(--rose-600);
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card {
    position: relative;
    display: block;
    overflow: hidden;
    color: var(--slate-800);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: radial-gradient(circle at 28% 20%, rgba(52, 211, 153, 0.42), transparent 34%), linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.poster-frame img,
.side-poster img,
.wide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-frame img {
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.06);
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: grid;
    min-width: 32px;
    height: 32px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-600), #f97316);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(225, 29, 72, 0.3);
}

.movie-info {
    display: block;
    padding: 14px;
}

.movie-info strong {
    display: block;
    overflow: hidden;
    color: var(--slate-800);
    font-size: 17px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-info small {
    display: block;
    margin: 6px 0 10px;
    color: var(--muted);
}

.tag-row {
    gap: 6px;
}

.tag-row span:nth-child(n + 3) {
    display: none;
}

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

.category-chip {
    display: block;
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-chip strong {
    display: block;
    margin-bottom: 10px;
    color: var(--slate-900);
    font-size: 20px;
}

.category-chip span {
    color: var(--muted);
    line-height: 1.6;
}

.shelves {
    display: grid;
    gap: 46px;
}

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

.shelf-head h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--slate-800);
    font-size: 28px;
}

.shelf-head h3 span {
    width: 5px;
    height: 34px;
    background: var(--emerald-600);
    border-radius: 999px;
}

.shelf-head a {
    color: var(--emerald-700);
    font-weight: 800;
}

.page-hero {
    padding: 70px 0;
    color: #ffffff;
}

.page-hero h1 {
    max-width: 820px;
    margin: 20px 0 14px;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.8;
}

.emerald-hero {
    background: linear-gradient(135deg, var(--emerald-600), var(--teal-600));
}

.blue-hero {
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-600));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.detail-main .breadcrumb {
    color: var(--muted);
}

.breadcrumb a {
    font-weight: 800;
}

.category-overview {
    display: grid;
    gap: 28px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 26px;
    padding: 26px;
}

.category-overview-copy h2 {
    margin: 0 0 12px;
    color: var(--slate-900);
    font-size: 28px;
}

.category-overview-copy p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.75;
}

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

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

.wide-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 18px;
    min-height: 178px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wide-card img {
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.wide-card strong,
.wide-card em,
.wide-card small,
.wide-card i {
    display: block;
}

.wide-card strong {
    margin-bottom: 8px;
    color: var(--slate-900);
    font-size: 22px;
}

.wide-card em {
    color: var(--slate-600);
    font-style: normal;
    line-height: 1.6;
}

.wide-card small {
    margin: 10px 0;
    color: var(--muted);
}

.wide-card i span {
    display: inline-flex;
    margin: 0 6px 6px 0;
    padding: 5px 9px;
    color: var(--emerald-700);
    background: #d1fae5;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.space-top {
    margin-top: 54px;
}

.rank-list {
    display: grid;
    gap: 10px;
    margin-top: 34px;
}

.rank-line {
    display: grid;
    grid-template-columns: 54px 1fr minmax(240px, 380px);
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    transition: border 0.2s ease, transform 0.2s ease;
}

.rank-line:hover {
    border-color: var(--emerald-400);
    transform: translateX(4px);
}

.rank-line b {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #ffffff;
    background: var(--slate-800);
    border-radius: 999px;
}

.rank-line span {
    overflow: hidden;
    color: var(--slate-900);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-line em {
    overflow: hidden;
    color: var(--muted);
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--slate-700);
    font-size: 14px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: var(--slate-800);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.filter-panel button {
    height: 46px;
    padding: 0 18px;
    color: #ffffff;
    background: var(--slate-800);
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

.filter-state {
    margin-bottom: 24px;
    color: var(--muted);
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

.player-card {
    overflow: hidden;
    padding: 0;
    background: #000000;
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 18px;
    overflow: hidden;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.48));
    border: 0;
    cursor: pointer;
}

.player-start span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    padding-left: 6px;
    color: #ffffff;
    background: var(--emerald-600);
    border-radius: 999px;
    font-size: 36px;
    box-shadow: 0 22px 45px rgba(5, 150, 105, 0.38);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-start:hover span {
    background: var(--emerald-700);
    transform: scale(1.08);
}

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

.movie-heading,
.article-block,
.side-card {
    margin-top: 24px;
}

.movie-heading h1 {
    margin: 0 0 12px;
    color: var(--slate-900);
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.16;
}

.movie-heading p {
    margin: 0 0 18px;
    color: var(--slate-600);
    font-size: 20px;
    line-height: 1.75;
}

.detail-meta span {
    color: var(--slate-700);
    background: var(--slate-100);
    border-color: var(--slate-200);
}

.detail-tags {
    margin-top: 18px;
}

.article-block,
.side-card {
    padding: 28px;
}

.article-block h2,
.side-card h2 {
    margin: 0 0 16px;
    color: var(--slate-900);
    font-size: 26px;
}

.article-block p {
    margin: 0;
    color: var(--slate-700);
    font-size: 17px;
    line-height: 1.9;
}

.detail-side {
    position: sticky;
    top: 104px;
}

.side-poster {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px 14px;
    margin: 0 0 22px;
}

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    color: var(--slate-800);
    font-weight: 800;
}

.side-button {
    width: 100%;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 54px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 22px;
}

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

.site-footer p,
.site-footer a {
    color: #cbd5e1;
    line-height: 1.75;
}

.site-footer a:hover {
    color: var(--emerald-400);
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom {
    padding: 18px;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid rgba(226, 232, 240, 0.1);
}

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

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

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

    .detail-side {
        position: static;
    }

    .side-poster {
        max-width: 360px;
    }
}

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

    .menu-button {
        display: block;
    }

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

    .hero {
        min-height: 600px;
    }

    .quick-grid,
    .filter-panel,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .movie-grid.six,
    .movie-grid.four,
    .movie-grid.three,
    .mini-grid,
    .category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rank-line {
        grid-template-columns: 44px 1fr;
    }

    .rank-line em {
        grid-column: 2;
    }
}

@media (max-width: 520px) {
    .container,
    .hero-copy,
    .mobile-nav {
        width: min(100% - 22px, 1180px);
    }

    .header-inner {
        min-height: 66px;
    }

    .brand-mark,
    .footer-brand span {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .brand-text em {
        display: none;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .section,
    .page-hero {
        padding: 48px 0;
    }

    .movie-grid.six,
    .movie-grid.four,
    .movie-grid.three,
    .mini-grid,
    .category-list {
        gap: 14px;
    }

    .movie-info {
        padding: 11px;
    }

    .movie-info strong {
        font-size: 15px;
    }

    .article-block,
    .side-card {
        padding: 20px;
    }

    .wide-card {
        grid-template-columns: 92px 1fr;
        gap: 14px;
    }
}
