:root {
    color-scheme: dark;
    --page-bg: #0f172a;
    --panel-bg: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(30, 41, 59, 0.92);
    --card-bg: #1e293b;
    --card-soft: rgba(30, 41, 59, 0.68);
    --line: rgba(34, 211, 238, 0.2);
    --line-strong: rgba(34, 211, 238, 0.45);
    --text-main: #f8fafc;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;
    --cyan: #22d3ee;
    --cyan-deep: #06b6d4;
    --blue: #3b82f6;
    --purple: #c084fc;
    --shadow-cyan: 0 22px 70px rgba(6, 182, 212, 0.22);
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.16), transparent 34rem),
        radial-gradient(circle at 90% 12%, rgba(59, 130, 246, 0.14), transparent 30rem),
        linear-gradient(180deg, #0f172a 0%, #172033 48%, #0f172a 100%);
    color: var(--text-main);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.72;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    z-index: 60;
    inset: 0 0 auto 0;
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--cyan-deep), var(--blue));
    box-shadow: 0 12px 34px rgba(34, 211, 238, 0.26);
    color: #ffffff;
    font-size: 14px;
}

.brand-text {
    font-size: 21px;
    background: linear-gradient(90deg, var(--cyan), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    position: relative;
    padding: 8px 4px;
    color: #d1d5db;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--cyan);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.8);
    color: #ffffff;
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    padding: 12px 16px 18px;
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid var(--line);
}

.mobile-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #d1d5db;
    font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
    background: rgba(34, 211, 238, 0.1);
    color: var(--cyan);
}

.page {
    padding-top: 68px;
}

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

.hero-section {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    align-items: center;
    gap: 58px;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    padding: 76px 0 64px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

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

.hero-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    opacity: 0.74;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 55% 45%, rgba(34, 211, 238, 0.17), transparent 31rem);
}

.star-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.star-layer span {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    animation: starPulse 3s linear infinite;
}

.star-layer span:nth-child(1) { top: 13%; left: 8%; animation-delay: .1s; }
.star-layer span:nth-child(2) { top: 24%; left: 19%; animation-delay: .6s; }
.star-layer span:nth-child(3) { top: 62%; left: 12%; animation-delay: 1.2s; }
.star-layer span:nth-child(4) { top: 78%; left: 26%; animation-delay: .4s; }
.star-layer span:nth-child(5) { top: 18%; left: 34%; animation-delay: 1.8s; }
.star-layer span:nth-child(6) { top: 46%; left: 39%; animation-delay: .8s; }
.star-layer span:nth-child(7) { top: 72%; left: 47%; animation-delay: 2.1s; }
.star-layer span:nth-child(8) { top: 9%; left: 52%; animation-delay: 1.3s; }
.star-layer span:nth-child(9) { top: 31%; left: 61%; animation-delay: .2s; }
.star-layer span:nth-child(10) { top: 66%; left: 66%; animation-delay: 1.6s; }
.star-layer span:nth-child(11) { top: 20%; left: 74%; animation-delay: .9s; }
.star-layer span:nth-child(12) { top: 84%; left: 79%; animation-delay: 2.2s; }
.star-layer span:nth-child(13) { top: 14%; left: 86%; animation-delay: .5s; }
.star-layer span:nth-child(14) { top: 54%; left: 92%; animation-delay: 1.1s; }
.star-layer span:nth-child(15) { top: 37%; left: 5%; animation-delay: 1.9s; }
.star-layer span:nth-child(16) { top: 88%; left: 8%; animation-delay: .7s; }
.star-layer span:nth-child(17) { top: 28%; left: 27%; animation-delay: 2.5s; }
.star-layer span:nth-child(18) { top: 57%; left: 31%; animation-delay: .3s; }
.star-layer span:nth-child(19) { top: 81%; left: 37%; animation-delay: 1.5s; }
.star-layer span:nth-child(20) { top: 12%; left: 43%; animation-delay: 2.3s; }
.star-layer span:nth-child(21) { top: 40%; left: 49%; animation-delay: .4s; }
.star-layer span:nth-child(22) { top: 70%; left: 55%; animation-delay: 1.4s; }
.star-layer span:nth-child(23) { top: 24%; left: 69%; animation-delay: 2s; }
.star-layer span:nth-child(24) { top: 74%; left: 71%; animation-delay: .6s; }
.star-layer span:nth-child(25) { top: 42%; left: 82%; animation-delay: 1.7s; }
.star-layer span:nth-child(26) { top: 91%; left: 88%; animation-delay: .2s; }
.star-layer span:nth-child(27) { top: 7%; left: 96%; animation-delay: 2.4s; }
.star-layer span:nth-child(28) { top: 60%; left: 97%; animation-delay: 1s; }
.star-layer span:nth-child(29) { top: 96%; left: 23%; animation-delay: 2.1s; }
.star-layer span:nth-child(30) { top: 5%; left: 14%; animation-delay: .9s; }
.star-layer span:nth-child(31) { top: 51%; left: 18%; animation-delay: 1.8s; }
.star-layer span:nth-child(32) { top: 36%; left: 58%; animation-delay: .5s; }
.star-layer span:nth-child(33) { top: 88%; left: 60%; animation-delay: 1.1s; }
.star-layer span:nth-child(34) { top: 16%; left: 64%; animation-delay: 2.7s; }
.star-layer span:nth-child(35) { top: 48%; left: 73%; animation-delay: .8s; }
.star-layer span:nth-child(36) { top: 83%; left: 92%; animation-delay: 1.6s; }
.star-layer span:nth-child(37) { top: 29%; left: 90%; animation-delay: .3s; }
.star-layer span:nth-child(38) { top: 64%; left: 84%; animation-delay: 2.3s; }
.star-layer span:nth-child(39) { top: 19%; left: 2%; animation-delay: 1.2s; }
.star-layer span:nth-child(40) { top: 72%; left: 3%; animation-delay: .6s; }
.star-layer span:nth-child(41) { top: 11%; left: 38%; animation-delay: 2s; }
.star-layer span:nth-child(42) { top: 44%; left: 44%; animation-delay: 1.7s; }
.star-layer span:nth-child(43) { top: 68%; left: 43%; animation-delay: .1s; }
.star-layer span:nth-child(44) { top: 33%; left: 77%; animation-delay: 1.3s; }
.star-layer span:nth-child(45) { top: 58%; left: 6%; animation-delay: 2.5s; }
.star-layer span:nth-child(46) { top: 97%; left: 69%; animation-delay: .4s; }

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

.hero-kicker,
.detail-kicker,
.page-hero p,
.section-heading p,
.category-card-large p {
    margin: 0 0 12px;
    color: var(--cyan);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    line-height: 1.06;
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 950;
    background: linear-gradient(90deg, var(--cyan), #60a5fa, var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-summary,
.page-hero span,
.detail-one-line {
    max-width: 680px;
    margin: 24px 0 0;
    color: #dbe4ef;
    font-size: clamp(17px, 2.1vw, 22px);
}

.hero-tags,
.detail-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 11px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    color: #b8f3ff;
    font-size: 12px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.primary-btn {
    padding: 0 25px;
    background: linear-gradient(90deg, var(--cyan-deep), var(--blue));
    color: #ffffff;
    box-shadow: var(--shadow-cyan);
}

.ghost-btn {
    padding: 0 22px;
    border: 1px solid var(--line-strong);
    background: rgba(15, 23, 42, 0.58);
    color: #cffafe;
}

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

.hero-cover {
    position: relative;
    z-index: 2;
    min-height: 520px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 38px 100px rgba(0, 0, 0, 0.42), var(--shadow-cyan);
    transform: perspective(1100px) rotateY(-7deg);
}

.hero-cover img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.12));
}

.hero-cover span {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(12px);
    font-weight: 900;
}

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

.hero-dot {
    width: 32px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.28);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

.intro-card,
.ranking-card,
.filter-panel,
.category-card-large,
.detail-copy article {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel-bg);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.intro-card {
    padding: 24px;
}

.intro-card strong {
    display: block;
    font-size: 19px;
}

.intro-card span {
    color: var(--text-muted);
}

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

.section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.16;
}

.section-more,
.text-link {
    color: var(--cyan);
    font-weight: 900;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.23);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--line-strong);
    box-shadow: 0 22px 70px rgba(6, 182, 212, 0.18);
}

.poster-box {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(59, 130, 246, 0.18));
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.78));
}

.duration,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.66);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.duration {
    right: 12px;
}

.rank-badge {
    left: 12px;
    background: linear-gradient(135deg, var(--cyan-deep), var(--blue));
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-meta-line a {
    color: var(--cyan);
}

.movie-card h2 {
    margin: 10px 0 8px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.26;
}

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

.movie-card-compact h2 {
    font-size: 17px;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: start;
}

.ranking-card {
    position: sticky;
    top: 92px;
    padding: 20px;
}

.ranking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-weight: 900;
}

.ranking-head a {
    color: var(--cyan);
    font-size: 14px;
}

.rank-list,
.full-rank-list {
    display: grid;
    gap: 10px;
}

.rank-row {
    display: grid;
    grid-template-columns: 36px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.46);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    transform: translateX(3px);
    border-color: var(--line-strong);
}

.rank-num {
    color: var(--cyan);
    font-size: 18px;
    font-weight: 950;
}

.rank-row img {
    width: 58px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(34, 211, 238, 0.12);
}

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

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

.rank-info strong {
    color: #ffffff;
    font-size: 14px;
}

.rank-info em {
    color: var(--text-muted);
    font-size: 12px;
    font-style: normal;
}

.rank-views {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile {
    min-height: 156px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(59, 130, 246, 0.08)),
        rgba(30, 41, 59, 0.74);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}

.category-tile span {
    display: block;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 950;
}

.category-tile strong {
    display: block;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.category-tile em {
    display: block;
    margin-top: 16px;
    color: var(--cyan);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.page-inner {
    min-height: 80vh;
}

.page-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 92px 0 34px;
}

.small-hero {
    position: relative;
}

.small-hero::before {
    content: "";
    position: absolute;
    inset: 48px -20px 0 auto;
    width: min(420px, 50vw);
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 70%);
    z-index: -1;
}

.page-actions {
    margin-top: 24px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 160px 160px auto;
    gap: 12px;
    padding: 18px;
    margin-bottom: 26px;
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap span {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyan);
    font-weight: 900;
}

.movie-search,
.filter-year,
.filter-type,
.filter-reset {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    outline: none;
}

.movie-search {
    padding: 0 16px 0 42px;
}

.filter-year,
.filter-type {
    padding: 0 14px;
}

.filter-reset {
    padding: 0 18px;
    cursor: pointer;
    font-weight: 900;
}

.movie-search:focus,
.filter-year:focus,
.filter-type:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.category-preview img {
    width: 100%;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(34, 211, 238, 0.12);
}

.category-card-large h2 {
    margin: 0 0 10px;
    font-size: 25px;
}

.category-card-large span {
    display: block;
    margin-bottom: 16px;
    color: var(--text-soft);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.86;
}

.detail-layout {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    padding: 92px 0 62px;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.detail-poster {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: rgba(34, 211, 238, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42), var(--shadow-cyan);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

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

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 22px;
}

.detail-stats span {
    padding: 7px 11px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.66);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 800;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #020617;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.4);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2), rgba(15, 23, 42, 0.72));
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan-deep), var(--blue));
    box-shadow: var(--shadow-cyan);
    font-size: 28px;
}

.player-overlay strong {
    font-size: 20px;
}

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

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

.detail-copy article {
    padding: 26px;
}

.detail-copy h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 24px;
}

.detail-copy p {
    margin: 0;
    color: var(--text-soft);
}

.site-footer {
    margin-top: 42px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.92);
}

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

.footer-grid p,
.footer-links a {
    color: var(--text-muted);
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

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

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

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
    font-size: 13px;
}

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

@keyframes starPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.7);
    }
    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}

@media (max-width: 1120px) {
    .archive-grid,
    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-slide,
    .two-column-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-cover {
        display: none;
    }

    .ranking-card {
        position: static;
    }
}

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

    .mobile-toggle {
        display: block;
    }

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

    .nav-wrap,
    .content-section,
    .page-hero,
    .detail-layout,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, 1240px);
    }

    .hero-section {
        min-height: 76vh;
    }

    .hero-slide {
        padding: 56px 0 72px;
    }

    .intro-strip,
    .footer-grid,
    .detail-copy,
    .category-large-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

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

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

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

    .detail-layout {
        min-height: 0;
        padding-top: 54px;
    }

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

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

    .rank-views {
        display: none;
    }
}
