:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: #111827;
    --panel-2: #1e293b;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --emerald: #10b981;
    --emerald-dark: #059669;
    --cyan: #22d3ee;
    --rose: #fb7185;
    --yellow: #facc15;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 32rem), linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.nav-shell {
    width: min(1240px, calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.28);
}

.brand-text {
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    background: linear-gradient(90deg, #34d399, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.nav-link {
    padding: 9px 13px;
    border-radius: 999px;
    color: #cbd5e1;
    font-weight: 650;
    font-size: 0.95rem;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(16, 185, 129, 0.16);
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.82);
}

.nav-search input {
    width: 180px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 8px 10px 8px 14px;
}

.nav-search input::placeholder {
    color: #94a3b8;
}

.nav-search button,
.primary-btn,
.ghost-btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-search button,
.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    box-shadow: 0 14px 34px rgba(16, 185, 129, 0.28);
}

.nav-search button {
    padding: 8px 16px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
}

.primary-btn:hover,
.ghost-btn:hover,
.nav-search button:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(12px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.9);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    background: #020617;
}

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

.hero-slide {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 700ms ease, transform 900ms ease;
    pointer-events: none;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.88) 38%, rgba(2, 6, 23, 0.42) 68%, rgba(2, 6, 23, 0.12) 100%), linear-gradient(0deg, #020617 0%, transparent 32%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
    padding: 80px 0 140px;
}

.eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.eyebrow span,
.eyebrow.single {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 13px;
    border: 1px solid rgba(16, 185, 129, 0.36);
    border-radius: 999px;
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.12);
    font-weight: 800;
    font-size: 0.88rem;
}

.hero-content h1 {
    margin: 0 0 20px;
    max-width: 760px;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    text-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 28px;
    color: #cbd5e1;
    font-size: clamp(1.08rem, 2.4vw, 1.45rem);
}

.hero-tags,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-bottom: 32px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.82rem;
    font-weight: 650;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

.hero-controls button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    font-size: 2rem;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(12px);
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    background: rgba(255, 255, 255, 0.36) !important;
}

.hero-dot.active {
    width: 26px;
    background: var(--emerald) !important;
}

.hero-rail {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 24px;
    z-index: 6;
    width: min(1240px, calc(100% - 32px));
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    transform: translateX(-50%);
}

.hero-thumb {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(18px);
    transition: transform 180ms ease, background 180ms ease;
}

.hero-thumb:hover {
    transform: translateY(-3px);
    background: rgba(16, 185, 129, 0.2);
}

.hero-thumb img {
    width: 54px;
    height: 42px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 10px;
}

.hero-thumb span {
    overflow: hidden;
    color: #e2e8f0;
    font-weight: 750;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.section-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 74px 0;
}

.intro-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-top: 48px;
}

.intro-card,
.content-card,
.rank-panel,
.filter-panel,
.cta-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.92));
    box-shadow: var(--shadow);
}

.intro-card {
    padding: 26px;
}

.intro-card span {
    color: #a7f3d0;
    font-weight: 850;
}

.intro-card strong {
    display: block;
    margin: 8px 0;
    font-size: 1.22rem;
}

.intro-card p,
.content-card p,
.category-copy p,
.cta-panel p {
    color: var(--muted);
    margin: 0;
}

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

.section-title h2 {
    margin: 0;
    flex: 1;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    line-height: 1.05;
}

.section-title a {
    color: #a7f3d0;
    font-weight: 800;
}

.title-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.24);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.72);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(16, 185, 129, 0.44);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(16, 185, 129, 0.15);
}

.cover-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.poster-frame img,
.wide-cover img,
.rank-poster img,
.mini-poster img,
.detail-cover img,
.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.movie-card:hover .poster-frame img,
.wide-card:hover img,
.mini-card:hover img,
.rank-row:hover img,
.category-overview-card:hover img {
    transform: scale(1.09);
}

.poster-shadow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.74));
    opacity: 0;
    transition: opacity 240ms ease;
}

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

.play-bubble {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--emerald);
    box-shadow: 0 18px 36px rgba(16, 185, 129, 0.36);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    transition: opacity 240ms ease, transform 240ms ease;
}

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

.badge {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(16, 185, 129, 0.9);
    font-size: 0.78rem;
    font-weight: 850;
}

.badge-top {
    top: 12px;
    left: 12px;
}

.badge-bottom {
    right: 12px;
    bottom: 12px;
    background: rgba(2, 6, 23, 0.78);
}

.movie-body {
    padding: 18px;
}

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.1em;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 850;
    font-size: 1.08rem;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 180ms ease;
}

.movie-card:hover .movie-title,
.wide-card:hover strong,
.rank-row:hover strong,
.mini-card:hover .mini-title {
    color: #34d399;
}

.movie-line {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.1em;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-band,
.recommend-band {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9));
    border-block: 1px solid var(--line);
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 24px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    isolation: isolate;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.category-tile:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.category-tile span,
.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 2;
    display: block;
}

.category-tile span {
    margin-bottom: 9px;
    font-size: 1.35rem;
    font-weight: 900;
}

.category-tile strong {
    color: rgba(255, 255, 255, 0.86);
}

.category-tile em {
    max-width: 230px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
    font-size: 0.9rem;
}

.category-tile img {
    position: absolute;
    inset: auto -10% -18% auto;
    z-index: 1;
    width: 55%;
    height: 78%;
    object-fit: cover;
    opacity: 0.32;
    border-radius: 22px;
    transform: rotate(8deg);
}

.tile-1 { background: linear-gradient(135deg, #f43f5e, #a855f7); }
.tile-2 { background: linear-gradient(135deg, #8b5cf6, #2563eb); }
.tile-3 { background: linear-gradient(135deg, #0ea5e9, #14b8a6); }
.tile-4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.tile-5 { background: linear-gradient(135deg, #10b981, #0891b2); }
.tile-6 { background: linear-gradient(135deg, #64748b, #111827); }

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.9fr);
    gap: 30px;
    align-items: start;
}

.compact-title h2 {
    font-size: 1.75rem;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.72);
    transition: background 180ms ease, transform 180ms ease;
}

.wide-card:hover {
    background: rgba(30, 41, 59, 0.96);
    transform: translateX(4px);
}

.wide-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.wide-cover span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.24);
}

.wide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 18px 22px;
}

.wide-content strong {
    color: #ffffff;
    font-size: 1.2rem;
    transition: color 180ms ease;
}

.wide-content em,
.rank-info em,
.mini-meta {
    color: var(--muted);
    font-style: normal;
    font-size: 0.9rem;
}

.wide-content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 0;
    color: #cbd5e1;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-panel {
    position: sticky;
    top: 94px;
    padding: 24px;
}

.rank-row {
    display: grid;
    grid-template-columns: 48px 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.78);
    transition: background 180ms ease, transform 180ms ease;
}

.rank-row:hover {
    background: rgba(16, 185, 129, 0.12);
    transform: translateX(4px);
}

.rank-no {
    color: #facc15;
    font-size: 1.1rem;
    font-weight: 900;
    text-align: center;
}

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

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info em {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-score {
    color: #a7f3d0;
    font-weight: 900;
}

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

.mini-card {
    display: block;
}

.mini-poster {
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    margin-bottom: 10px;
    border-radius: 16px;
    background: #0f172a;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.mini-title,
.mini-meta {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mini-title {
    color: #ffffff;
    font-weight: 800;
    transition: color 180ms ease;
}

.cta-panel {
    margin-top: 74px;
    padding: 54px;
    text-align: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.94), rgba(34, 211, 238, 0.86));
}

.cta-panel h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.cta-panel p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
}

.cta-actions {
    justify-content: center;
    margin-top: 28px;
}

.page-hero,
.movie-detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    background: #020617;
}

.soft-hero {
    display: flex;
    align-items: center;
    min-height: 340px;
    padding: 82px max(16px, calc((100vw - 1240px) / 2));
    background: radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.24), transparent 34rem), linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
    border-bottom: 1px solid var(--line);
}

.soft-hero h1,
.page-hero h1 {
    margin: 16px 0 14px;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.soft-hero p,
.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 1.12rem;
}

.category-hero {
    display: flex;
    align-items: center;
    padding: 80px max(16px, calc((100vw - 1240px) / 2));
}

.category-hero > img,
.movie-detail-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1);
}

.page-hero-fade,
.detail-hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.85) 42%, rgba(2, 6, 23, 0.22) 100%), linear-gradient(0deg, #020617 0%, transparent 45%);
}

.category-hero > div:last-child,
.detail-hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.card-section {
    padding-top: 44px;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 22px;
}

.inline-filter {
    box-shadow: none;
}

.filter-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.filter-heading h2 {
    flex: 1;
    margin: 0;
}

.filter-heading span {
    color: #a7f3d0;
    font-weight: 800;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px 220px;
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.88);
    padding: 0 18px;
}

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

.category-overview-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.78);
    box-shadow: var(--shadow);
}

.category-cover {
    position: relative;
    min-height: 230px;
    overflow: hidden;
}

.category-cover span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    font-weight: 900;
}

.category-copy {
    padding: 24px;
}

.category-copy h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.category-copy strong {
    display: inline-flex;
    margin: 16px 0;
    color: #a7f3d0;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.62);
    font-size: 0.86rem;
}

.rank-page-list {
    padding-top: 0;
}

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

.movie-detail-hero {
    min-height: 620px;
}

.detail-hero-content {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    color: #cbd5e1;
}

.breadcrumb a {
    color: #a7f3d0;
}

.detail-grid-head {
    display: grid;
    grid-template-columns: 280px minmax(0, 760px);
    gap: 34px;
    align-items: end;
}

.detail-cover {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.detail-copy p {
    margin: 0 0 22px;
    color: #dbeafe;
    font-size: 1.15rem;
}

.detail-tags {
    margin-bottom: 26px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: start;
    padding-top: 44px;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 22px;
}

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

.player-card,
.content-card {
    overflow: hidden;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow);
}

.player-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.28), rgba(0, 0, 0, 0.54));
    transition: opacity 180ms ease, visibility 180ms ease;
}

.player-overlay span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--emerald);
    font-size: 2.7rem;
    box-shadow: 0 24px 50px rgba(16, 185, 129, 0.34);
}

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

.content-card {
    padding: 28px;
}

.content-card h2 {
    margin: 0 0 16px;
    font-size: 1.45rem;
}

.content-card p {
    color: #cbd5e1;
    white-space: pre-line;
}

.meta-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 0;
}

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

.meta-card dd {
    margin: 0;
    color: #ffffff;
    font-weight: 750;
}

.meta-card a {
    color: #a7f3d0;
}

.related-card .mini-list {
    gap: 12px;
}

.related-card .mini-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
}

.related-card .mini-poster {
    margin: 0;
    border-radius: 12px;
    aspect-ratio: 16 / 10;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), #020617);
}

.footer-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
    padding: 54px 0;
}

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

.footer-brand p {
    max-width: 560px;
    color: var(--muted);
    margin: 0;
}

.footer-block h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}

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

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #34d399;
}

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

@media (max-width: 1100px) {
    .nav-shell {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .site-nav {
        order: 4;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .nav-search {
        margin-left: auto;
    }

    .hero-rail {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

    .rank-panel,
    .detail-side {
        position: static;
    }

    .all-rank {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .nav-shell {
        width: min(100% - 24px, 1240px);
    }

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

    .site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        order: 5;
        width: 100%;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(15, 23, 42, 0.98);
    }

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

    .nav-link {
        border-radius: 14px;
    }

    .nav-search {
        order: 4;
        width: 100%;
    }

    .nav-search input {
        width: 100%;
    }

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

    .hero-content {
        padding: 78px 0 230px;
    }

    .hero-content h1 {
        font-size: clamp(2.6rem, 15vw, 4rem);
    }

    .hero-rail {
        grid-template-columns: repeat(2, 1fr);
        bottom: 20px;
    }

    .hero-controls {
        bottom: 178px;
    }

    .section-shell {
        width: min(100% - 24px, 1240px);
        padding: 48px 0;
    }

    .intro-strip,
    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .wide-card,
    .category-overview-card,
    .detail-grid-head {
        grid-template-columns: 1fr;
    }

    .wide-card {
        display: block;
    }

    .wide-cover {
        aspect-ratio: 16 / 9;
    }

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

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

    .soft-hero,
    .category-hero {
        padding: 64px 16px;
    }

    .detail-cover {
        width: min(260px, 76vw);
    }

    .movie-detail-hero,
    .detail-hero-content {
        min-height: auto;
    }

    .detail-hero-content {
        padding: 52px 0;
    }

    .detail-copy h1 {
        font-size: clamp(2.4rem, 14vw, 4rem);
    }

    .content-card {
        padding: 22px;
    }

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

    .rank-score {
        display: none;
    }

    .cta-panel {
        padding: 34px 22px;
    }
}

@media (max-width: 460px) {
    .hero-thumb img {
        display: none;
    }

    .hero-thumb {
        min-height: 44px;
    }

    .hero-controls {
        width: calc(100% - 24px);
        justify-content: center;
    }

    .player-overlay span {
        width: 68px;
        height: 68px;
        font-size: 2rem;
    }
}
