:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(30, 41, 59, 0.72);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --cyan-deep: #0891b2;
    --blue: #3b82f6;
    --orange: #fb923c;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
    --radius: 1.35rem;
    --radius-sm: 0.8rem;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 32rem),
        radial-gradient(circle at 80% 12%, rgba(59, 130, 246, 0.14), transparent 26rem),
        linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.glass-effect {
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.text-gradient {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
}

.nav-shell {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 210px;
}

.brand-mark {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #00111a;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.32);
    transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(10deg);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: clamp(1.05rem, 1.6vw, 1.45rem);
    letter-spacing: 0.02em;
}

.brand-copy small {
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.8rem, 1.65vw, 1.8rem);
    flex: 1;
}

.nav-link {
    position: relative;
    color: var(--muted-strong);
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -0.45rem;
    height: 2px;
    border-radius: 999px;
    background: var(--cyan);
    transition: right 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    right: 0;
}

.nav-link.subtle {
    color: #8aa4bc;
    font-size: 0.92rem;
}

.mobile-toggle {
    width: 2.7rem;
    height: 2.7rem;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.32rem;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    color: var(--text);
    background: rgba(15, 23, 42, 0.88);
    cursor: pointer;
}

.mobile-toggle span {
    width: 1.25rem;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 1rem;
    padding: 1rem;
    border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
    display: grid;
    gap: 0.9rem;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.section-link,
.inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
    padding: 0.86rem 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    box-shadow: 0 16px 40px rgba(8, 145, 178, 0.25);
}

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

.btn-secondary {
    padding: 0.82rem 1.2rem;
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: rgba(34, 211, 238, 0.08);
}

.btn-secondary.small {
    padding: 0.62rem 0.95rem;
    font-size: 0.9rem;
}

.btn-ghost {
    padding: 0.82rem 1.2rem;
    color: var(--muted-strong);
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.58);
}

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) brightness(0.44);
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.32) 100%),
        linear-gradient(0deg, #020617 0%, transparent 32%, rgba(2, 6, 23, 0.68) 100%);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    min-height: 760px;
    padding-top: 80px;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker,
.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted-strong);
}

.hero-kicker span,
.movie-meta-line span,
.tag-row span,
.poster-year {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
    color: #bff4ff;
    font-size: 0.82rem;
    line-height: 1;
}

.hero-kicker span,
.movie-meta-line span {
    padding: 0.36rem 0.64rem;
}

.hero-copy h1 {
    margin: 1.2rem 0 1rem;
    max-width: 900px;
    font-size: clamp(2.5rem, 8vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-one-line {
    max-width: 760px;
    margin: 0 0 1rem;
    color: #e2e8f0;
    font-size: clamp(1.08rem, 2.2vw, 1.45rem);
    font-weight: 700;
}

.hero-summary {
    max-width: 720px;
    margin: 0;
    color: var(--muted-strong);
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.65rem;
}

.hero-poster-card {
    position: relative;
    display: block;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.28);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster-card img {
    aspect-ratio: 3 / 4.18;
    width: 100%;
    object-fit: cover;
}

.hero-poster-card span {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 1rem;
    text-align: center;
    font-weight: 800;
    color: #04111e;
    background: linear-gradient(135deg, var(--cyan), #93c5fd);
}

.hero-panel {
    position: absolute;
    right: max(1rem, calc((100vw - 1280px) / 2));
    bottom: 6.5rem;
    width: min(440px, calc(100% - 2rem));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 0.85rem;
    border-radius: 1.2rem;
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.62);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-mini-card:hover {
    transform: translateY(-2px);
    background: rgba(34, 211, 238, 0.1);
}

.hero-mini-card img {
    width: 62px;
    height: 78px;
    border-radius: 0.7rem;
    object-fit: cover;
}

.hero-mini-card strong,
.hero-mini-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-mini-card small {
    color: var(--muted);
    font-size: 0.78rem;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 2.25rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 2.65rem;
    height: 2.65rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    background: rgba(15, 23, 42, 0.72);
    font-size: 1.9rem;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 0.45rem;
}

.hero-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.35);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 2.1rem;
    background: var(--cyan);
}

.content-section {
    padding: clamp(3.2rem, 7vw, 6.25rem) 0;
}

.section-dark {
    background: rgba(15, 23, 42, 0.38);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.6rem;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 0.5rem;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-heading h2,
.rank-head h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.detail-side h2,
.next-panel h2 {
    margin: 0;
    letter-spacing: -0.04em;
}

.section-heading h2,
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1.05;
}

.section-heading p,
.page-hero p {
    max-width: 720px;
    margin: 0.5rem 0 0;
    color: var(--muted);
}

.section-link,
.inline-link {
    color: var(--cyan);
    font-weight: 800;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.23);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(15, 23, 42, 0.95);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 35%, rgba(2, 6, 23, 0.88) 100%);
}

.poster-year {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.4rem 0.58rem;
    background: rgba(2, 6, 23, 0.68);
}

.poster-play {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #00111a;
    background: var(--cyan);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.42);
}

.movie-card-body {
    padding: 1rem;
}

.movie-card h3 {
    margin: 0.5rem 0 0.45rem;
    color: #fff;
    font-size: 1.02rem;
    line-height: 1.25;
}

.movie-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.15rem;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.9rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card.compact p {
    min-height: 2.8rem;
}

.movie-meta-line {
    gap: 0.35rem;
}

.movie-meta-line span {
    padding: 0.26rem 0.5rem;
    font-size: 0.72rem;
}

.movie-meta-line.strong span {
    color: #dff9ff;
    background: rgba(15, 23, 42, 0.58);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-top: 0.85rem;
}

.tag-row span {
    padding: 0.35rem 0.55rem;
    font-size: 0.74rem;
}

.large-tags span {
    padding: 0.46rem 0.72rem;
    font-size: 0.86rem;
}

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

.category-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0f172a;
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18) 0%, rgba(2, 6, 23, 0.92) 100%);
}

.category-copy {
    position: absolute;
    inset: auto 1rem 1rem;
}

.category-copy strong {
    display: block;
    font-size: 1.45rem;
}

.category-copy small {
    display: -webkit-box;
    margin-top: 0.45rem;
    overflow: hidden;
    color: var(--muted-strong);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 1.5rem;
    align-items: start;
}

.rank-panel,
.next-panel,
.detail-article,
.detail-side,
.player-card {
    border-radius: var(--radius);
}

.rank-panel {
    position: sticky;
    top: calc(var(--header-height) + 1.25rem);
    padding: 1rem;
}

.rank-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.rank-head a {
    color: var(--cyan);
    font-weight: 800;
}

.rank-list {
    display: grid;
    gap: 0.58rem;
}

.rank-item {
    display: grid;
    grid-template-columns: 44px 56px minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem;
    border-radius: 0.95rem;
    background: rgba(15, 23, 42, 0.62);
    transition: transform 0.25s ease, background 0.25s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: rgba(34, 211, 238, 0.1);
}

.rank-number {
    color: var(--cyan);
    font-size: 1.15rem;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    width: 56px;
    height: 74px;
    border-radius: 0.7rem;
    object-fit: cover;
}

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

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

.rank-copy small {
    color: var(--muted);
    font-size: 0.78rem;
}

.page-main {
    padding-top: var(--header-height);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.16), transparent 24rem),
        radial-gradient(circle at 78% 20%, rgba(59, 130, 246, 0.14), transparent 24rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.95));
}

.simple-hero h1 {
    max-width: 820px;
}

.filter-bar {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px 160px 170px;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.9rem;
    border-radius: 1.15rem;
}

.filter-input,
.filter-select {
    width: 100%;
    height: 3.1rem;
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-radius: 0.85rem;
    outline: none;
    color: var(--text);
    background: rgba(2, 6, 23, 0.55);
}

.filter-input {
    padding: 0 1rem;
}

.filter-select {
    padding: 0 0.9rem;
}

.filter-input:focus,
.filter-select:focus {
    border-color: rgba(34, 211, 238, 0.75);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.empty-state {
    display: none;
    padding: 2rem;
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
    background: rgba(15, 23, 42, 0.72);
}

.empty-state.is-visible {
    display: block;
}

.category-overview-grid {
    display: grid;
    gap: 1rem;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1rem;
    border-radius: var(--radius);
}

.category-overview-cover img {
    width: 220px;
    aspect-ratio: 16 / 11;
    border-radius: 1rem;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 0 0 0.4rem;
}

.category-overview-card p {
    margin: 0 0 0.75rem;
    color: var(--muted-strong);
}

.category-preview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-preview-links a {
    padding: 0.35rem 0.62rem;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(148, 163, 184, 0.1);
}

.channel-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 2rem;
}

.channel-cover-stack {
    position: relative;
    min-height: 300px;
}

.channel-cover-stack img {
    position: absolute;
    width: 210px;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 1.2rem;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.channel-cover-stack img:nth-child(1) {
    right: 130px;
    top: 35px;
    transform: rotate(-7deg);
}

.channel-cover-stack img:nth-child(2) {
    right: 60px;
    top: 0;
    z-index: 2;
}

.channel-cover-stack img:nth-child(3) {
    right: 0;
    top: 55px;
    transform: rotate(7deg);
}

.ranking-list-page {
    display: grid;
    gap: 1rem;
}

.ranking-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
}

.ranking-cover {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1rem;
}

.ranking-cover img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.ranking-cover span {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #00111a;
    background: var(--cyan);
    font-weight: 900;
}

.ranking-card h2 {
    margin: 0.5rem 0;
    font-size: clamp(1.25rem, 2.3vw, 1.8rem);
}

.ranking-card p {
    margin: 0;
    color: var(--muted-strong);
}

.detail-main {
    padding-top: 0;
}

.detail-hero {
    position: relative;
    min-height: 720px;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding-top: var(--header-height);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) brightness(0.42) saturate(1.1);
    transform: scale(1.04);
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.66) 65%, rgba(2, 6, 23, 0.38) 100%),
        linear-gradient(0deg, #020617 0%, transparent 45%, rgba(2, 6, 23, 0.72) 100%);
}

.detail-hero-inner {
    position: relative;
    padding: 7rem 0 4rem;
}

.breadcrumb {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--cyan);
    font-weight: 800;
}

.detail-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.6rem);
    align-items: end;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

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

.detail-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #00111a;
    background: var(--cyan);
    box-shadow: 0 0 46px rgba(34, 211, 238, 0.55);
    transform: translate(-50%, -50%);
}

.detail-copy h1 {
    margin-top: 0.8rem;
    max-width: 900px;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1;
}

.detail-one-line {
    max-width: 820px;
    color: #e2e8f0;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 700;
}

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
    align-items: start;
}

.player-card {
    padding: 0.75rem;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #000;
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #00111a;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.58));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    width: clamp(4.2rem, 10vw, 6.4rem);
    height: clamp(4.2rem, 10vw, 6.4rem);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #93c5fd);
    box-shadow: 0 0 70px rgba(34, 211, 238, 0.44);
    font-size: 2.4rem;
}

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

.next-panel {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.next-panel a {
    padding: 0.75rem;
    border-radius: 0.9rem;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.72);
}

.next-panel a:hover {
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.1);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.25rem;
    align-items: start;
}

.detail-article,
.detail-side {
    padding: clamp(1rem, 3vw, 1.6rem);
}

.detail-article h2,
.detail-side h2 {
    margin-bottom: 0.7rem;
}

.detail-article p {
    margin: 0 0 1.25rem;
    color: var(--muted-strong);
    font-size: 1.05rem;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 0.75rem 1rem;
    margin: 0;
}

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

.detail-side dd {
    margin: 0;
    color: #e2e8f0;
}

.site-footer {
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.86);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 1.2rem;
}

.footer-brand {
    display: inline-flex;
    margin-bottom: 0.7rem;
    font-size: 1.35rem;
    font-weight: 900;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.footer-links a {
    color: var(--muted-strong);
}

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

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 1.6rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 41, 59, 0.62);
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 1180px) {
    .featured-grid,
    .archive-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .rank-panel {
        position: static;
    }
}

@media (max-width: 960px) {
    :root {
        --header-height: 68px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: 740px;
    }

    .hero-poster-card {
        display: none;
    }

    .hero-panel {
        display: none;
    }

    .channel-hero-inner,
    .detail-grid,
    .footer-grid,
    .category-overview-card,
    .ranking-card {
        grid-template-columns: 1fr;
    }

    .channel-cover-stack {
        display: none;
    }

    .category-overview-cover img {
        width: 100%;
    }

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

    .filter-bar {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .container-custom {
        width: min(100% - 24px, 1280px);
    }

    .brand {
        min-width: auto;
    }

    .brand-copy small {
        display: none;
    }

    .hero-wrap,
    .hero-inner {
        min-height: 690px;
    }

    .hero-copy h1 {
        letter-spacing: -0.05em;
    }

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

    .hero-actions a {
        width: 100%;
    }

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

    .movie-grid,
    .featured-grid,
    .latest-grid,
    .archive-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .movie-card-body {
        padding: 0.78rem;
    }

    .movie-card p,
    .tag-row {
        display: none;
    }

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

    .detail-hero {
        min-height: auto;
    }

    .detail-hero-inner {
        padding: 6rem 0 3rem;
    }

    .detail-copy h1 {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
    }

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

@media (max-width: 440px) {
    .movie-grid,
    .featured-grid,
    .latest-grid,
    .archive-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-controls {
        bottom: 1rem;
    }
}
