:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #1e293b;
    --panel-border: #243244;
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #06b6d4;
    --cyan-strong: #0891b2;
    --blue: #2563eb;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    --ring: 0 0 0 2px rgba(6, 182, 212, 0.5);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(30, 41, 59, 0.9);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
}

.nav-shell,
.section-shell,
.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-shell {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 14px 28px rgba(6, 182, 212, 0.24);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-title {
    color: #f1f5f9;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 12px;
}

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

.desktop-nav > a,
.nav-dropdown > button {
    border: 0;
    background: transparent;
    color: var(--muted-strong);
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > button:hover {
    color: #22d3ee;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 12px);
    min-width: 176px;
    padding: 8px;
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--muted-strong);
}

.nav-dropdown-menu a:hover {
    background: rgba(30, 41, 59, 0.95);
    color: #22d3ee;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 250px;
}

.nav-search input,
.mobile-panel input,
.search-panel input {
    width: 100%;
    border: 1px solid rgba(51, 65, 85, 0.88);
    border-radius: 14px;
    background: #0f172a;
    color: var(--text);
    outline: none;
    padding: 10px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-panel input:focus,
.search-panel input:focus {
    border-color: rgba(34, 211, 238, 0.8);
    box-shadow: var(--ring);
}

.nav-search button,
.mobile-panel button,
.search-panel button {
    border: 0;
    border-radius: 14px;
    background: var(--cyan);
    color: white;
    font-weight: 700;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.mobile-panel button:hover,
.search-panel button:hover {
    background: var(--cyan-strong);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(30, 41, 59, 0.9);
    padding: 16px;
    background: #0f172a;
}

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

.mobile-panel form {
    display: flex;
    gap: 8px;
    margin: 0 0 14px;
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
}

.mobile-panel a {
    color: var(--muted-strong);
    padding: 9px 2px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-overlay-side {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.76) 45%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-overlay-bottom {
    background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 52%);
}

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

.hero-content h1 {
    margin: 0;
    max-width: 720px;
    color: #f8fafc;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-pill,
.movie-category {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.16);
    color: #22d3ee;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-pill {
    padding: 7px 14px;
    backdrop-filter: blur(10px);
}

.movie-category {
    padding: 5px 10px;
    font-size: 12px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 14px;
    background: var(--cyan);
    color: #ffffff;
    font-weight: 800;
    padding: 0 22px;
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.28);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    background: var(--cyan-strong);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.34);
}

.hero-score {
    color: #fde68a;
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    right: max(24px, calc((100% - 1180px) / 2));
    bottom: 34px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arrow,
.rail-btn {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover,
.rail-btn:hover {
    background: rgba(30, 41, 59, 0.92);
    transform: scale(1.06);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 18px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--cyan);
}

.hero-search {
    position: absolute;
    left: max(16px, calc((100% - 1180px) / 2));
    bottom: 34px;
    z-index: 6;
    width: min(520px, calc(100% - 32px));
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px);
}

.hero-search input {
    flex: 1;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    outline: none;
    padding: 12px 14px;
}

.hero-search button {
    border: 0;
    border-radius: 12px;
    background: var(--cyan);
    color: white;
    font-weight: 800;
    padding: 0 18px;
    cursor: pointer;
}

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

.section-gradient {
    background: linear-gradient(180deg, #020617, #0f172a);
}

.section-gradient-reverse {
    background: linear-gradient(180deg, #0f172a, #1e293b);
}

.section-solid {
    background: #1e293b;
}

.section-solid-dark {
    background: #020617;
}

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

.section-heading h2 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.15;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-heading a,
.category-preview-head a {
    color: #22d3ee;
    font-weight: 800;
}

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.75);
    border-radius: 18px;
    background: #0f172a;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    border-color: rgba(34, 211, 238, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(6, 182, 212, 0.13);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent 60%);
}

.poster-badge {
    position: absolute;
    z-index: 2;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.62);
    color: #ffffff;
    font-size: 12px;
    padding: 5px 8px;
    backdrop-filter: blur(10px);
}

.poster-badge-top {
    right: 10px;
    top: 10px;
    color: #fde68a;
}

.poster-badge-bottom {
    right: 10px;
    bottom: 10px;
}

.movie-card-body {
    display: flex;
    min-height: 168px;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.movie-card strong {
    color: #f8fafc;
    font-size: 17px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover strong {
    color: #22d3ee;
}

.movie-meta,
.movie-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

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

.rail {
    position: relative;
}

.rail-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 16px;
}

.rail-track::-webkit-scrollbar {
    display: none;
}

.rail-track .movie-card {
    width: 300px;
    flex: 0 0 300px;
}

.rail-btn {
    position: absolute;
    top: 42%;
    z-index: 5;
    opacity: 0;
}

.rail:hover .rail-btn {
    opacity: 1;
}

.rail-prev {
    left: -12px;
}

.rail-next {
    right: -12px;
}

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

.category-card {
    position: relative;
    min-height: 172px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.75);
    border-radius: 20px;
    background: #0f172a;
    padding: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.category-card:hover:before {
    opacity: 0.12;
}

.category-card > * {
    position: relative;
    z-index: 1;
}

.category-card strong {
    color: #f8fafc;
    font-size: 20px;
}

.category-card span:last-child {
    color: var(--muted);
    line-height: 1.65;
}

.category-icon {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    font-weight: 900;
}

.accent-0:before,
.accent-0.category-icon { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.accent-1:before,
.accent-1.category-icon { background: linear-gradient(135deg, #10b981, #0d9488); }
.accent-2:before,
.accent-2.category-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.accent-3:before,
.accent-3.category-icon { background: linear-gradient(135deg, #f97316, #dc2626); }
.accent-4:before,
.accent-4.category-icon { background: linear-gradient(135deg, #ec4899, #e11d48); }
.accent-5:before,
.accent-5.category-icon { background: linear-gradient(135deg, #6366f1, #2563eb); }
.accent-6:before,
.accent-6.category-icon { background: linear-gradient(135deg, #22c55e, #059669); }
.accent-7:before,
.accent-7.category-icon { background: linear-gradient(135deg, #f59e0b, #ea580c); }

.feature-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
}

.feature-layout > .movie-card-wide {
    min-height: 100%;
}

.feature-layout > .movie-card-wide .poster-wrap {
    aspect-ratio: auto;
    min-height: 520px;
}

.feature-list {
    display: grid;
    gap: 18px;
}

.feature-list .movie-card {
    display: grid;
    grid-template-columns: 180px 1fr;
}

.feature-list .poster-wrap {
    aspect-ratio: auto;
    height: 100%;
}

.page-main {
    background: #020617;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(30, 41, 59, 0.9);
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.18), transparent 34%),
        linear-gradient(135deg, #020617, #0f172a 52%, #111827);
}

.compact-hero {
    padding: 88px 0 76px;
}

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

.page-hero-copy > span {
    display: inline-flex;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.16);
    color: #22d3ee;
    padding: 7px 14px;
    font-weight: 800;
}

.page-hero-copy h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
}

.page-hero-copy p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.75;
}

.category-overview {
    display: grid;
    gap: 36px;
    padding: 56px 0 80px;
}

.category-preview {
    border: 1px solid rgba(51, 65, 85, 0.75);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.85);
    padding: 24px;
}

.category-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.category-preview-head > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    align-items: center;
}

.category-preview-head .category-icon {
    grid-row: span 2;
}

.category-preview-head h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 28px;
}

.category-preview-head p {
    margin: 0;
    color: var(--muted);
}

.compact-grid .movie-card:nth-child(n+5) {
    display: none;
}

.search-panel {
    display: flex;
    gap: 10px;
    max-width: 760px;
    margin-top: 26px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.filter-chip {
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: var(--muted-strong);
    padding: 9px 14px;
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    border-color: rgba(34, 211, 238, 0.8);
    background: rgba(6, 182, 212, 0.18);
    color: #67e8f9;
}

.rank-shell {
    max-width: 980px;
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-row {
    display: grid;
    grid-template-columns: 62px 120px 1fr auto;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(51, 65, 85, 0.75);
    border-radius: 18px;
    background: #0f172a;
    padding: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.8);
}

.rank-number {
    color: #67e8f9;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 120px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-main {
    display: grid;
    gap: 6px;
}

.rank-main strong {
    color: #f8fafc;
    font-size: 18px;
}

.rank-main span {
    color: var(--muted);
    font-size: 13px;
}

.rank-score {
    color: #fde68a;
    font-weight: 900;
    padding-right: 12px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 44px 0 74px;
    background: #020617;
}

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

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    transform: scale(1.05);
}

.detail-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.72), #020617 92%);
}

.detail-hero-shell {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 26px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #67e8f9;
}

.detail-intro {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: var(--shadow);
}

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

.detail-copy h1 {
    margin: 18px 0 18px;
    color: #f8fafc;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.08;
}

.detail-copy p {
    max-width: 760px;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 640px;
    margin: 22px 0;
}

.detail-meta-grid span {
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.68);
    color: var(--muted-strong);
    padding: 12px 14px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.detail-tags span {
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #cbd5e1;
    padding: 7px 12px;
}

.detail-content-shell {
    display: grid;
    gap: 34px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.86);
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow);
}

.player-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    align-content: center;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.72));
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--cyan);
    color: white;
    font-size: 28px;
    box-shadow: 0 20px 44px rgba(6, 182, 212, 0.28);
}

.player-overlay span:last-child {
    font-size: 20px;
    font-weight: 900;
}

.detail-article {
    display: grid;
    gap: 14px;
    border: 1px solid rgba(51, 65, 85, 0.75);
    border-radius: 24px;
    background: #0f172a;
    padding: 28px;
}

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

.detail-article h2:first-child {
    margin-top: 0;
}

.detail-article p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.info-table div {
    display: grid;
    gap: 5px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.76);
    padding: 14px;
}

.info-table span {
    color: var(--muted);
    font-size: 13px;
}

.info-table strong {
    color: #f8fafc;
}

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

.detail-pager a {
    border: 1px solid rgba(51, 65, 85, 0.75);
    border-radius: 16px;
    background: #0f172a;
    color: #cbd5e1;
    padding: 14px 16px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.detail-pager a:hover {
    border-color: rgba(34, 211, 238, 0.8);
    color: #67e8f9;
}

.site-footer {
    border-top: 1px solid rgba(30, 41, 59, 0.9);
    background: #020617;
}

.footer-shell {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 42px;
    padding: 48px 0 34px;
}

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

.footer-links {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-links h2 {
    margin: 0 0 8px;
    color: #f8fafc;
    font-size: 17px;
}

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

.footer-links a:hover {
    color: #22d3ee;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    border-top: 1px solid rgba(30, 41, 59, 0.9);
    color: #64748b;
    padding: 20px 0 28px;
    font-size: 13px;
    text-align: center;
}

.is-hidden {
    display: none !important;
}

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

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

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

    .detail-intro {
        grid-template-columns: 260px 1fr;
    }
}

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

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .brand {
        min-width: 0;
    }

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

    .hero-content {
        padding-top: 64px;
        padding-bottom: 170px;
    }

    .hero-search {
        bottom: 94px;
    }

    .hero-controls {
        left: 16px;
        right: auto;
        bottom: 30px;
    }

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

    .feature-layout,
    .footer-shell,
    .detail-intro,
    .info-table,
    .detail-pager {
        grid-template-columns: 1fr;
    }

    .feature-layout > .movie-card-wide .poster-wrap {
        min-height: 260px;
        aspect-ratio: 16 / 9;
    }

    .feature-list .movie-card {
        grid-template-columns: 140px 1fr;
    }

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

    .rank-row {
        grid-template-columns: 46px 92px 1fr;
    }

    .rank-score {
        grid-column: 3;
        padding: 0;
    }
}

@media (max-width: 560px) {
    .nav-shell,
    .section-shell,
    .footer-shell,
    .page-hero-copy {
        width: min(100% - 24px, 1180px);
    }

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

    .brand-subtitle {
        display: none;
    }

    .hero-search,
    .search-panel,
    .mobile-panel form {
        flex-direction: column;
    }

    .section-heading,
    .category-preview-head {
        align-items: start;
        flex-direction: column;
    }

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

    .feature-list .movie-card {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 42px 86px 1fr;
        gap: 10px;
    }

    .rank-row img {
        width: 86px;
        height: 56px;
    }

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