:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.78);
    --bg-card-strong: rgba(30, 41, 59, 0.82);
    --border: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(125, 211, 252, 0.28);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --sky: #38bdf8;
    --sky-deep: #0284c7;
    --rose: #fb7185;
    --amber: #f59e0b;
    --emerald: #34d399;
    --violet: #a78bfa;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 22px;
    --max-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 32rem),
        radial-gradient(circle at top right, rgba(244, 63, 94, 0.12), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 70%);
    z-index: -1;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.92));
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(var(--max-width), calc(100% - 32px));
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb 48%, #7c3aed);
    box-shadow: 0 14px 35px rgba(14, 165, 233, 0.28);
    color: #ffffff;
    font-size: 15px;
}

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

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #e0f2fe, #38bdf8 46%, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a {
    padding: 9px 14px;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.12);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 310px;
    padding: 5px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 8px 8px 8px 14px;
    background: transparent;
    color: var(--text);
}

.header-search button,
.primary-button,
.ghost-button,
.text-link {
    cursor: pointer;
    border: 0;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-search button,
.primary-button {
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.25);
}

.header-search button {
    padding: 8px 14px;
    font-size: 13px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
}

.primary-button:hover,
.header-search button:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.ghost-button {
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.54);
    color: #e0f2fe;
}

.ghost-button:hover {
    border-color: rgba(125, 211, 252, 0.56);
    background: rgba(56, 189, 248, 0.1);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.76);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #e2e8f0;
}

.mobile-nav {
    display: none;
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.94);
}

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

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

.hero-slider {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-backdrop {
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.22) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 45%, rgba(2, 6, 23, 0.78) 100%),
        var(--hero-poster);
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: saturate(1.05);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--max-width), calc(100% - 32px));
    min-height: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 64px;
    align-items: center;
    padding: 84px 0;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.hero-copy h1 {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 82px);
}

.hero-subtitle {
    max-width: 760px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: clamp(19px, 2vw, 25px);
    line-height: 1.65;
}

.hero-review,
.detail-line,
.page-hero p,
.section-heading p,
.movie-line,
.category-card p,
.category-overview-card p {
    color: var(--muted);
    line-height: 1.75;
}

.hero-review {
    max-width: 680px;
    margin: 18px 0 0;
    font-size: 16px;
}

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

.hero-meta {
    margin-top: 22px;
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.74);
    color: #cbd5e1;
    font-size: 13px;
}

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

.hero-poster-card {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    border: 1px solid rgba(125, 211, 252, 0.26);
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9));
    box-shadow: var(--shadow);
}

.hero-poster-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.8), transparent 46%);
}

.hero-poster-card img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.hero-poster-card span {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 2;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.88);
    color: #ffffff;
    font-weight: 900;
}

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

.hero-dots button {
    width: 32px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.38);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 54px;
    background: #38bdf8;
}

.stats-strip {
    width: min(var(--max-width), calc(100% - 32px));
    margin: -42px auto 24px;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stats-strip div {
    min-height: 105px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.stats-strip strong {
    display: block;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1;
}

.stats-strip span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}

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

.split-section {
    width: 100%;
    max-width: none;
    padding-right: max(16px, calc((100% - var(--max-width)) / 2));
    padding-left: max(16px, calc((100% - var(--max-width)) / 2));
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(2, 6, 23, 0.12));
}

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

.section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 720px;
    margin: 10px 0 0;
}

.section-heading > a,
.text-link {
    color: #7dd3fc;
    font-weight: 700;
}

.section-heading > a:hover,
.text-link:hover {
    color: #ffffff;
}

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

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

.category-movie-grid {
    margin-top: 26px;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.66), rgba(15, 23, 42, 0.88));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.38);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.96));
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        radial-gradient(circle at 35% 20%, rgba(56, 189, 248, 0.18), transparent 36%),
        linear-gradient(145deg, #0f172a, #020617);
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.25s ease;
}

.poster-image.is-missing {
    opacity: 0;
}

.movie-card:hover .poster-image,
.horizontal-card:hover .poster-image {
    transform: scale(1.07);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.88), transparent 58%);
}

.poster-category,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.poster-category {
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

.rank-badge {
    top: 12px;
    right: 12px;
    padding: 7px 10px;
    background: linear-gradient(135deg, #f97316, #e11d48);
    box-shadow: 0 12px 25px rgba(225, 29, 72, 0.28);
}

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

.movie-card h3,
.horizontal-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.horizontal-card h3 a:hover {
    color: #7dd3fc;
}

.movie-line {
    min-height: 48px;
    margin: 10px 0 14px;
    font-size: 14px;
}

.movie-meta {
    gap: 7px;
}

.movie-meta span {
    min-height: 23px;
    padding: 0 8px;
    background: rgba(2, 6, 23, 0.56);
    color: #94a3b8;
    font-size: 12px;
}

.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.movie-tags span,
.detail-tags span {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.1);
    color: #bae6fd;
    font-size: 12px;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
    min-height: 126px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.horizontal-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.34);
    background: rgba(30, 41, 59, 0.72);
}

.horizontal-poster {
    min-height: 126px;
    overflow: hidden;
    background: linear-gradient(145deg, #0f172a, #020617);
}

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

.horizontal-content {
    min-width: 0;
    padding: 16px 16px 16px 0;
}

.horizontal-rank {
    margin-bottom: 8px;
    color: #38bdf8;
    font-size: 13px;
    font-weight: 900;
}

.horizontal-card p {
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
}

.category-card {
    min-height: 250px;
    padding: 22px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(125, 211, 252, 0.38);
}

.category-card::before,
.category-overview-card::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, var(--accent-glow, rgba(56, 189, 248, 0.18)), transparent 48%);
    pointer-events: none;
}

.category-card strong,
.category-overview-card h2 {
    position: relative;
    display: block;
    color: #ffffff;
    font-size: 22px;
}

.category-card em {
    position: relative;
    display: inline-flex;
    margin-top: 8px;
    color: #7dd3fc;
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
}

.category-card p {
    position: relative;
    margin: 18px 0;
    font-size: 14px;
}

.category-card div {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-card div span {
    max-width: 100%;
    overflow: hidden;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.category-overview-card {
    padding: 26px;
}

.category-overview-head {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    color: #7dd3fc;
    font-weight: 800;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.mini-list {
    position: relative;
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

.page-hero {
    position: relative;
    overflow: hidden;
    width: min(var(--max-width), calc(100% - 32px));
    margin: 34px auto 0;
    padding: 74px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 42%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.92));
    box-shadow: var(--shadow);
}

.page-hero > div {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.page-hero h1 {
    font-size: clamp(42px, 6vw, 72px);
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    font-size: 18px;
}

.category-hero,
.ranking-hero,
.search-hero {
    min-height: 340px;
    display: flex;
    align-items: center;
}

.filter-toolbar,
.search-panel {
    display: grid;
    gap: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.68);
}

.filter-toolbar {
    grid-template-columns: minmax(0, 1fr) 240px;
    padding: 18px;
}

.search-panel {
    grid-template-columns: minmax(0, 1.4fr) 220px 200px auto;
    align-items: end;
    padding: 22px;
}

.filter-toolbar label,
.search-panel label {
    display: grid;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
}

.filter-toolbar input,
.filter-toolbar select,
.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    outline: 0;
    padding: 0 14px;
    background: rgba(2, 6, 23, 0.64);
    color: var(--text);
}

.filter-toolbar input:focus,
.filter-toolbar select:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: rgba(56, 189, 248, 0.55);
}

.search-summary {
    margin: 24px 0 0;
    color: var(--muted);
}

.search-results {
    margin-top: 24px;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.breadcrumb {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 28px auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #7dd3fc;
}

.breadcrumb strong {
    color: #ffffff;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    margin-top: 26px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.24)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 62%, #020617 100%),
        var(--detail-poster);
    background-size: cover;
    background-position: center;
    filter: blur(2px) saturate(1.05);
    transform: scale(1.04);
}

.detail-grid {
    position: relative;
    z-index: 2;
    width: min(var(--max-width), calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 54px;
    align-items: center;
    padding: 70px 0;
}

.detail-poster {
    overflow: hidden;
    min-height: 470px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 28px;
    background: linear-gradient(145deg, #0f172a, #020617);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
}

.detail-copy h1 {
    font-size: clamp(42px, 5vw, 78px);
}

.detail-line {
    max-width: 860px;
    margin: 20px 0;
    color: #e0f2fe;
    font-size: 20px;
}

.detail-meta span {
    min-height: 30px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(14, 165, 233, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.86));
    color: #ffffff;
    cursor: pointer;
}

.player-shell.is-playing .player-cover {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 82px;
    height: 82px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 18px 42px rgba(14, 165, 233, 0.34);
    font-size: 32px;
}

.player-cover strong {
    font-size: clamp(22px, 4vw, 36px);
}

.player-cover em,
.player-message {
    color: var(--muted-strong);
    font-style: normal;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    margin: 0;
    text-align: center;
    font-size: 14px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
}

.detail-article,
.detail-side-card,
.review-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.detail-article,
.review-card {
    padding: 32px;
}

.detail-article h2,
.detail-side-card h2,
.review-card h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 28px;
}

.detail-article p,
.review-card p {
    margin: 0 0 18px;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.9;
}

.detail-side-card {
    height: fit-content;
    padding: 26px;
}

.detail-side-card dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.detail-side-card div {
    display: grid;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.detail-side-card dt {
    color: var(--muted);
    font-size: 13px;
}

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

.review-card {
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.1), transparent 36%),
        rgba(15, 23, 42, 0.72);
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.88);
}

.footer-grid {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1.7fr 0.8fr;
    gap: 36px;
    padding: 48px 0;
}

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

.footer-grid p {
    max-width: 420px;
    color: var(--muted);
    line-height: 1.75;
}

.footer-category-links,
.footer-links {
    display: grid;
    gap: 10px;
}

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

.footer-category-links a,
.footer-links a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted-strong);
    font-size: 14px;
}

.footer-category-links a:hover,
.footer-links a:hover {
    color: #7dd3fc;
}

.footer-bottom {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0 30px;
    color: var(--muted);
    font-size: 13px;
}

.accent-sky { --accent-glow: rgba(56, 189, 248, 0.22); }
.accent-rose { --accent-glow: rgba(251, 113, 133, 0.22); }
.accent-amber { --accent-glow: rgba(245, 158, 11, 0.22); }
.accent-violet { --accent-glow: rgba(167, 139, 250, 0.22); }
.accent-pink { --accent-glow: rgba(244, 114, 182, 0.22); }
.accent-emerald { --accent-glow: rgba(52, 211, 153, 0.22); }
.accent-orange { --accent-glow: rgba(249, 115, 22, 0.22); }
.accent-cyan { --accent-glow: rgba(34, 211, 238, 0.22); }
.accent-lime { --accent-glow: rgba(163, 230, 53, 0.22); }
.accent-indigo { --accent-glow: rgba(129, 140, 248, 0.22); }

[hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .header-search {
        width: 260px;
    }

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

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

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

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 110px;
    }

    .hero-poster-card {
        min-height: 360px;
        max-width: 330px;
    }

    .hero-poster-card img {
        min-height: 360px;
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 20px;
    }

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

    .horizontal-list,
    .category-overview-grid,
    .detail-content-grid,
    .footer-grid,
    .search-panel,
    .filter-toolbar {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

@media (max-width: 720px) {
    .brand-text em {
        display: none;
    }

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

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

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.035em;
    }

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

    .content-section {
        padding: 48px 0;
    }

    .page-hero {
        padding: 42px 24px;
        border-radius: 24px;
    }

    .horizontal-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .horizontal-poster {
        min-height: 126px;
    }

    .horizontal-content {
        padding: 14px 14px 14px 0;
    }

    .horizontal-card p {
        display: none;
    }

    .detail-grid {
        min-height: auto;
        padding: 42px 0;
    }

    .player-shell {
        border-radius: 18px;
    }

    .footer-category-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
