:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #111827;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --white: #ffffff;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.16);
    --shadow-dark: 0 30px 90px rgba(0, 0, 0, 0.38);
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--slate-50);
    color: var(--slate-900);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, var(--slate-950), var(--slate-900) 45%, #0e7490);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.28);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
    box-shadow: 0 14px 32px rgba(6, 182, 212, 0.3);
    font-size: 18px;
}

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

.brand-text strong,
.footer-brand strong {
    color: var(--white);
    font-size: 24px;
    letter-spacing: 0.04em;
}

.brand-text small {
    color: var(--slate-300);
    margin-top: 5px;
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    color: var(--slate-300);
    padding: 10px 13px;
    border-radius: 12px;
    white-space: nowrap;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--white);
    background: rgba(15, 23, 42, 0.62);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.hero-carousel {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: var(--slate-900);
}

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

.hero-slide {
    opacity: 0;
    transition: opacity 900ms ease;
    pointer-events: none;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 28%, rgba(34, 211, 238, 0.26), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.78) 38%, rgba(15, 23, 42, 0.18)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent 46%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100% - var(--max-width)) / 2));
    bottom: 12%;
    width: min(680px, calc(100% - 48px));
    color: var(--white);
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan-400);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.hero-content h1 {
    margin: 14px 0;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    text-shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
}

.hero-content p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.detail-tags {
    margin-top: 18px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 18px 42px rgba(6, 182, 212, 0.42);
}

.btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.08);
}

.btn-ghost-dark {
    color: var(--slate-900);
    border-color: rgba(15, 23, 42, 0.18);
    background: rgba(255, 255, 255, 0.75);
}

.btn-light {
    color: var(--slate-900);
    background: var(--white);
}

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

.hero-dot {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--cyan-400);
}

.quick-search {
    position: relative;
    z-index: 8;
    margin-top: -46px;
}

.quick-search-card,
.filter-panel {
    display: grid;
    grid-template-columns: 1.1fr 1.6fr auto;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.quick-search-card h2 {
    margin: 4px 0 0;
    font-size: clamp(20px, 3vw, 30px);
    line-height: 1.2;
}

.quick-search-card label,
.filter-panel label,
.filter-panel select {
    width: 100%;
}

.quick-search-card label,
.search-box {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    border: 1px solid #dbe4ef;
    outline: none;
    border-radius: 16px;
    padding: 13px 15px;
    color: var(--slate-900);
    background: var(--white);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.13);
}

.category-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.category-chip-row a {
    padding: 10px 15px;
    border-radius: 999px;
    background: var(--white);
    color: var(--slate-700);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.category-chip-row a:hover {
    color: var(--white);
    background: var(--slate-900);
}

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

.content-section-dark {
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 30%),
        linear-gradient(180deg, var(--slate-900), var(--slate-950));
    color: var(--white);
}

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

.section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 10px 0 0;
    max-width: 660px;
    color: var(--slate-600);
}

.content-section-dark .section-heading p {
    color: rgba(255, 255, 255, 0.68);
}

.section-link {
    color: var(--cyan-600);
    font-weight: 800;
    white-space: nowrap;
}

.content-section-dark .section-link {
    color: var(--cyan-400);
}

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

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

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

.movie-card:hover .card-cover img,
.category-thumb-wall a:hover img,
.feature-poster:hover img,
.detail-poster:hover img {
    transform: scale(1.08);
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), transparent 54%);
}

.card-badge,
.rank-index {
    position: absolute;
    z-index: 2;
    left: 12px;
    bottom: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 800;
}

.rank-index {
    top: 12px;
    bottom: auto;
    background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
}

.card-body {
    padding: 15px;
}

.card-title {
    display: -webkit-box;
    min-height: 52px;
    overflow: hidden;
    color: var(--slate-900);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title:hover {
    color: var(--cyan-600);
}

.card-meta,
.card-desc {
    margin: 8px 0 0;
    color: var(--slate-500);
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-body .tag-row {
    margin-top: 12px;
}

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #0e7490;
    background: rgba(6, 182, 212, 0.12);
    font-size: 12px;
    font-weight: 700;
}

.horizontal-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 24px;
    scroll-snap-type: x mandatory;
}

.movie-card-compact {
    scroll-snap-align: start;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    gap: 28px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 68px minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateX(3px);
}

.rank-number {
    color: var(--cyan-400);
    font-size: 22px;
    font-weight: 900;
}

.rank-row img {
    width: 68px;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 12px;
}

.rank-title {
    overflow: hidden;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-meta,
.rank-score {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    white-space: nowrap;
}

.editor-panel {
    position: sticky;
    top: 106px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.28), transparent 42%),
        rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-dark);
}

.editor-panel h2 {
    margin: 12px 0;
    font-size: 32px;
    line-height: 1.2;
}

.editor-panel p {
    color: rgba(255, 255, 255, 0.72);
}

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

.category-card,
.category-overview-card,
.detail-panel {
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.category-card {
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

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

.category-card h3 {
    margin: 16px 0 8px;
    font-size: 21px;
}

.category-card p {
    color: var(--slate-600);
    font-size: 14px;
}

.mini-links {
    display: grid;
    gap: 7px;
    margin: 16px 0;
}

.mini-links a {
    overflow: hidden;
    color: var(--slate-700);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
}

.mini-links a:hover,
.category-enter:hover {
    color: var(--cyan-600);
}

.category-enter {
    color: var(--slate-900);
    font-weight: 900;
}

.page-hero {
    padding: 86px 0 72px;
    color: var(--white);
    background:
        radial-gradient(circle at 70% 10%, rgba(34, 211, 238, 0.24), transparent 34%),
        linear-gradient(135deg, var(--slate-950), var(--slate-900) 62%, #164e63);
}

.page-hero h1 {
    margin: 12px 0;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 18px;
}

.page-hero-category {
    color: var(--slate-900);
    background:
        radial-gradient(circle at 78% 18%, rgba(34, 211, 238, 0.22), transparent 32%),
        linear-gradient(135deg, #ecfeff, var(--slate-50));
}

.page-hero-category p {
    color: var(--slate-600);
}

.split-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    align-items: center;
}

.feature-poster {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--slate-900);
    box-shadow: var(--shadow-soft);
}

.feature-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.feature-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
}

.filter-panel {
    grid-template-columns: minmax(240px, 1fr) 160px 160px 160px;
    margin-bottom: 28px;
}

.category-overview-grid {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    overflow: hidden;
}

.category-thumb-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--slate-900);
}

.category-thumb-wall a {
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.category-thumb-wall img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-overview-body {
    padding: 30px;
}

.category-overview-body h2 {
    margin: 8px 0;
    font-size: 32px;
}

.category-overview-body p {
    color: var(--slate-600);
    max-width: 650px;
}

.rank-hero {
    background:
        radial-gradient(circle at 20% 18%, rgba(34, 211, 238, 0.28), transparent 30%),
        linear-gradient(135deg, var(--slate-950), #111827 52%, #164e63);
}

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

.rank-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.rank-card-cover {
    position: relative;
    background: var(--slate-900);
}

.rank-card-cover img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
}

.rank-card-body {
    padding: 22px 22px 22px 0;
}

.rank-card-title {
    font-size: 24px;
    font-weight: 900;
}

.rank-card-title:hover {
    color: var(--cyan-600);
}

.rank-card-body p {
    color: var(--slate-600);
}

.rank-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 12px;
}

.rank-card-meta span {
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-size: 13px;
    font-weight: 800;
}

.detail-top {
    padding: 28px 0 58px;
    color: var(--white);
    background:
        radial-gradient(circle at 72% 15%, rgba(34, 211, 238, 0.2), transparent 34%),
        linear-gradient(135deg, var(--slate-950), var(--slate-900));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
    margin-top: 34px;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--slate-800);
    box-shadow: var(--shadow-dark);
}

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

.detail-info h1 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 850px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
}

.watch-section {
    margin-top: -34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    background: var(--slate-950);
    box-shadow: var(--shadow-dark);
}

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--slate-950);
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: var(--white);
    background:
        radial-gradient(circle at center, rgba(6, 182, 212, 0.28), rgba(2, 6, 23, 0.58) 45%, rgba(2, 6, 23, 0.82)),
        rgba(2, 6, 23, 0.52);
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-symbol {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
    box-shadow: 0 22px 48px rgba(6, 182, 212, 0.32);
    font-size: 34px;
    text-indent: 4px;
}

.play-layer strong {
    font-size: 20px;
    letter-spacing: 0.1em;
}

.detail-content {
    display: grid;
    gap: 24px;
    padding: 44px 0 72px;
}

.detail-panel {
    padding: 28px;
}

.detail-panel h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.detail-paragraph {
    margin: 0 0 14px;
    color: var(--slate-700);
    font-size: 17px;
}

.site-footer {
    color: var(--slate-300);
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-inner {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 46px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr;
    gap: 32px;
}

.footer-grid p {
    max-width: 520px;
    color: var(--slate-300);
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 17px;
}

.footer-grid ul {
    display: grid;
    gap: 9px;
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.copyright {
    margin: 32px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--slate-500);
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .movie-grid,
    .movie-grid-featured,
    .movie-grid-related,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rank-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .editor-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .header-inner {
        min-height: 68px;
    }

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

    .site-nav {
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.97);
        box-shadow: var(--shadow-dark);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 14px;
    }

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

    .brand-text small {
        display: none;
    }

    .hero-carousel {
        min-height: 78vh;
    }

    .hero-content {
        bottom: 14%;
    }

    .quick-search-card,
    .filter-panel {
        grid-template-columns: 1fr;
    }

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

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

    .split-hero,
    .category-overview-card,
    .detail-hero,
    .rank-card {
        grid-template-columns: 1fr;
    }

    .feature-poster {
        max-width: 320px;
    }

    .rank-card-body {
        padding: 0 20px 22px;
    }

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

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

    .rank-row .rank-meta,
    .rank-row .rank-score {
        display: none;
    }
}

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

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        letter-spacing: -0.03em;
    }

    .hero-actions,
    .detail-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .movie-grid,
    .movie-grid-featured,
    .movie-grid-related,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

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

    .play-symbol {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
