:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-deep: #020617;
    --panel: rgba(15, 23, 42, 0.74);
    --panel-strong: rgba(30, 41, 59, 0.86);
    --panel-soft: rgba(30, 41, 59, 0.42);
    --border: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --cyan-deep: #0891b2;
    --orange: #fb923c;
    --purple: #c084fc;
    --green: #34d399;
    --shadow: 0 30px 90px rgba(2, 6, 23, 0.45);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --header-height: 80px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.13), transparent 30%),
        radial-gradient(circle at 82% 0%, rgba(59, 130, 246, 0.12), transparent 28%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 32%, #111827 100%);
    color: var(--text);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(15, 23, 42, 0.96);
    border-bottom-color: var(--border);
    box-shadow: 0 16px 50px rgba(8, 145, 178, 0.12);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: var(--header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.brand-mark {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.95), rgba(37, 99, 235, 0.95));
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
}

.brand-mark::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    width: 0;
    height: 0;
    transform: translate(-42%, -50%);
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #ffffff;
}

.brand-title {
    display: block;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.brand-subtitle {
    display: block;
    margin-top: 2px;
    color: rgba(34, 211, 238, 0.82);
    font-size: 12px;
    letter-spacing: 0.08em;
}

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

.nav-link {
    color: #d1d5db;
    font-weight: 650;
    font-size: 15px;
    transition: color 0.25s ease, transform 0.25s ease;
}

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

.nav-link:hover {
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(300px, 25vw);
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select,
.search-filters select {
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
}

.header-search input {
    padding: 8px 12px;
    font-size: 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.search-page-form input::placeholder,
.filter-panel input::placeholder {
    color: #64748b;
}

.header-search button,
.mobile-search button,
.search-page-form button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.header-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.22);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 14px 0;
}

.mobile-search input {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.7);
}

.mobile-search button {
    padding: 0 18px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    color: #d1d5db;
    font-weight: 700;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.quick-categories {
    display: none;
}

.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 620px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 1.3s ease;
}

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(8, 145, 178, 0.25));
}

.hero-shadow {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.72) 34%, rgba(15, 23, 42, 0.06) 100%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.42) 48%, rgba(2, 6, 23, 0.72) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 112px;
    max-width: 1180px;
}

.hero-content h1,
.hero-content h2 {
    max-width: 820px;
    margin: 16px 0 18px;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    max-width: 720px;
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.65;
}

.hero-tags,
.hero-info,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-tags span,
.detail-meta span,
.movie-meta-row span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.hero-tags span:first-child {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
    padding: 6px 13px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.22);
}

.hero-tags span:not(:first-child),
.hero-info span {
    color: #d1d5db;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    backdrop-filter: blur(8px);
}

.hero-info {
    margin: 22px 0 28px;
}

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.primary-button {
    padding: 14px 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
    box-shadow: 0 20px 45px rgba(34, 211, 238, 0.28);
}

.ghost-button {
    padding: 13px 22px;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.44);
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.ghost-button:hover {
    color: #ffffff;
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.3);
}

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

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

.hero-dots button[aria-current="true"] {
    width: 36px;
    background: var(--cyan);
}

.hero-dots span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

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

.home-container {
    padding: 68px 0 84px;
}

.standard-page {
    padding: 132px 0 86px;
    min-height: 100vh;
}

.content-section {
    margin-top: 72px;
}

.content-section:first-child {
    margin-top: 0;
}

.highlighted-section,
.rank-section,
.search-workbench,
.filter-panel,
.text-panel,
.info-panel,
.player-section {
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.52));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.highlighted-section,
.rank-section {
    padding: clamp(22px, 4vw, 42px);
}

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-head h2,
.page-title-block h1,
.text-panel h2,
.info-panel h2 {
    margin: 0;
    color: #ffffff;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 38px);
}

.section-more {
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.22);
    background: rgba(8, 145, 178, 0.08);
    padding: 9px 14px;
    white-space: nowrap;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(30, 41, 59, 0.46);
    box-shadow: 0 14px 46px rgba(2, 6, 23, 0.24);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.42);
    box-shadow: 0 24px 70px rgba(8, 145, 178, 0.15);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(8, 145, 178, 0.24));
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

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

.play-chip {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(34, 211, 238, 0.9);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 20px 44px rgba(34, 211, 238, 0.36);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), #ef4444);
    border-radius: 12px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.28);
}

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

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.movie-meta-row span {
    color: #9ca3af;
    background: rgba(15, 23, 42, 0.6);
    padding: 4px 8px;
    font-size: 12px;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a {
    color: #ffffff;
    transition: color 0.25s ease;
}

.movie-card h3 a:hover {
    color: var(--cyan);
}

.movie-card p {
    margin: 0 0 12px;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    color: #d1d5db;
    background: rgba(51, 65, 85, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    padding: 5px 9px;
    font-size: 12px;
}

.page-title-block {
    margin-bottom: 38px;
    max-width: 780px;
}

.page-title-block h1 {
    font-size: clamp(38px, 6vw, 60px);
}

.page-title-block p:not(.section-kicker) {
    color: var(--muted-strong);
    font-size: 18px;
    margin: 16px 0 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #94a3b8;
    font-size: 14px;
}

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

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

.category-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: rgba(30, 41, 59, 0.52);
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.38);
}

.category-preview {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 8px;
    padding: 12px;
    height: 190px;
    background: rgba(2, 6, 23, 0.46);
}

.category-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(8, 145, 178, 0.24));
}

.category-preview img:first-child {
    grid-row: span 2;
}

.category-card-body {
    padding: 24px;
}

.category-card-body h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 28px;
}

.category-card-body p:not(.section-kicker) {
    margin: 0 0 18px;
    color: var(--muted-strong);
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
}

.filter-panel label,
.search-filters select,
.search-page-form input {
    color: #d1d5db;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select,
.search-filters select {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.54);
}

.search-workbench {
    display: grid;
    gap: 16px;
}

.search-page-form {
    display: flex;
    gap: 12px;
}

.search-page-form input {
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.54);
}

.search-page-form button {
    padding: 0 28px;
    min-height: 54px;
}

.search-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-filters select {
    width: min(240px, 100%);
}

.search-summary {
    min-height: 26px;
    margin-bottom: 22px;
    color: var(--muted-strong);
}

.detail-page {
    background: linear-gradient(180deg, #020617 0%, #0f172a 42%, #111827 100%);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 142px 0 70px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.36;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) saturate(1.1);
    transform: scale(1.06);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72)),
        linear-gradient(0deg, #0f172a, rgba(15, 23, 42, 0.1));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(8, 145, 178, 0.24));
}

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

.detail-main h1 {
    margin: 8px 0 16px;
    color: #ffffff;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 780px;
    margin: 0 0 22px;
    color: #cbd5e1;
    font-size: 20px;
}

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

.detail-meta span {
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 8px 12px;
}

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

.detail-content {
    padding-bottom: 86px;
}

.player-section,
.text-panel,
.info-panel {
    padding: clamp(22px, 4vw, 34px);
    margin-bottom: 26px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

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

.play-control {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.04), rgba(2, 6, 23, 0.18));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-control span {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
    box-shadow: 0 18px 55px rgba(34, 211, 238, 0.4);
    position: relative;
    transition: transform 0.25s ease;
}

.play-control span::before {
    content: "";
    position: absolute;
    left: 35px;
    top: 27px;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid #ffffff;
}

.play-control:hover span {
    transform: scale(1.08);
}

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

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    min-height: 0;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    padding: 0;
    font-size: 14px;
}

.player-status:not(:empty) {
    padding: 8px 13px;
}

.text-panel h2,
.info-panel h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.text-panel p {
    margin: 0;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.9;
}

.info-panel dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.info-panel dl > div {
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.46);
}

.info-panel dt {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 6px;
}

.info-panel dd {
    margin: 0;
    color: #ffffff;
    font-weight: 700;
}

.info-panel dd a {
    color: var(--cyan);
}

.related-section {
    margin-top: 46px;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.62);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
    display: grid;
    gap: 20px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.footer-inner p {
    margin: 0;
    color: var(--muted);
}

.footer-links,
.footer-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

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

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

.footer-copy {
    font-size: 14px;
}

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

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

    .mobile-menu-button {
        display: block;
    }

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

    .quick-categories {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 0 16px 12px;
        background: rgba(15, 23, 42, 0.86);
    }

    .quick-categories a {
        flex: 0 0 auto;
        color: #cbd5e1;
        border: 1px solid var(--border);
        border-radius: 999px;
        padding: 7px 12px;
        font-size: 13px;
    }

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

    .detail-hero-inner {
        grid-template-columns: 240px minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 70px;
    }

    .brand-title {
        font-size: 20px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .hero-slider {
        min-height: 680px;
        height: 92vh;
    }

    .hero-content {
        padding-bottom: 96px;
    }

    .hero-actions {
        width: 100%;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .hero-dots {
        left: 16px;
        right: auto;
        bottom: 34px;
    }

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

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

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

    .detail-hero {
        padding-top: 122px;
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

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

    .info-panel dl {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .page-container,
    .footer-inner,
    .hero-content {
        width: min(100% - 24px, 1180px);
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 42px;
    }

    .hero-content p,
    .detail-one-line,
    .page-title-block p:not(.section-kicker) {
        font-size: 16px;
    }

    .grid-five,
    .grid-four,
    .grid-three,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .search-page-form {
        flex-direction: column;
    }

    .search-page-form button {
        width: 100%;
    }

    .category-preview {
        height: 160px;
    }

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

    .play-control span {
        width: 72px;
        height: 72px;
    }

    .play-control span::before {
        left: 29px;
        top: 22px;
    }
}
