:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #152033;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --orange-700: #c2410c;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-400: #fb923c;
    --orange-100: #ffedd5;
    --orange-50: #fff7ed;
    --white: #ffffff;
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 55px rgba(15, 23, 42, 0.18);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(135deg, var(--slate-50), var(--orange-50) 45%, var(--slate-50));
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.22);
}

.site-header.is-scrolled {
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.35);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    flex: 0 0 auto;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    color: var(--white);
    font-size: 16px;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
    transition: transform 0.28s ease;
}

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

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

.brand-text strong {
    font-size: 21px;
    letter-spacing: 0.04em;
}

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

.nav-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex: 1 1 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 14px;
    color: var(--slate-300);
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
    font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(249, 115, 22, 0.18);
}

.top-search {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    padding: 5px;
    min-width: 280px;
}

.top-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
    padding: 9px 12px;
}

.top-search input::placeholder {
    color: var(--slate-500);
}

.top-search button {
    border: 0;
    color: var(--white);
    background: var(--orange-500);
    border-radius: 999px;
    padding: 8px 16px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.top-search button:hover {
    background: var(--orange-600);
    transform: translateY(-1px);
}

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

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.35), transparent 28%),
        radial-gradient(circle at 15% 80%, rgba(251, 146, 60, 0.22), transparent 32%),
        linear-gradient(120deg, var(--slate-950), #30150a 52%, var(--slate-900));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 46px 46px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 160px;
    background: linear-gradient(0deg, var(--slate-50), transparent);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
    gap: 48px;
    align-items: center;
    min-height: 620px;
    padding: 72px 0 96px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: var(--orange-100);
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(251, 146, 60, 0.35);
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 22px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 5.6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero h1 span {
    display: block;
    margin-top: 14px;
    font-size: clamp(26px, 3vw, 42px);
    color: var(--orange-400);
    letter-spacing: -0.02em;
}

.hero p {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--slate-300);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.8;
}

.hero-actions,
.hero-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: var(--white);
    background: var(--orange-500);
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.36);
}

.btn-primary:hover {
    background: var(--orange-600);
    transform: translateY(-2px) scale(1.02);
}

.btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.hero-chip {
    color: var(--slate-200);
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: color 0.25s ease, background 0.25s ease;
}

.hero-chip:hover {
    color: var(--white);
    background: rgba(249, 115, 22, 0.32);
}

.hero-carousel {
    position: relative;
    min-height: 430px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.65);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.6s ease, transform 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.18) 62%, rgba(2, 6, 23, 0.34));
}

.hero-slide-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px;
}

.hero-slide-content h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.hero-slide-content p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--slate-300);
}

.slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.slide-meta span,
.card-meta span,
.detail-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    white-space: nowrap;
}

.slide-meta span {
    color: var(--white);
    background: rgba(249, 115, 22, 0.88);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hero-dots {
    position: absolute;
    right: 24px;
    top: 24px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    padding: 0;
}

.hero-dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: var(--orange-500);
}

.section {
    padding: 70px 0;
}

.section-white {
    background: var(--white);
}

.section-dark {
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

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

.section-header h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.04em;
}

.section-header p,
.page-title p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--slate-600);
    line-height: 1.75;
}

.section-dark .section-header p,
.section-dark .card-body p,
.section-dark .card-meta,
.section-dark .card-tags span {
    color: var(--slate-300);
}

.more-link {
    color: var(--orange-600);
    font-weight: 700;
}

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

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.32);
    box-shadow: var(--shadow-lg);
}

.card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--slate-200);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease, filter 0.55s ease;
}

.movie-card:hover .card-media img {
    transform: scale(1.08);
    filter: brightness(0.75);
}

.card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(249, 115, 22, 0.92);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

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

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.28);
}

.rank-wide {
    min-width: 48px;
    padding: 0 8px;
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 12px;
    margin-bottom: 12px;
}

.card-meta span {
    padding: 5px 9px;
    background: var(--slate-100);
}

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

.card-body h3 a {
    transition: color 0.22s ease;
}

.card-body h3 a:hover {
    color: var(--orange-600);
}

.card-body p {
    margin: 0 0 14px;
    color: var(--slate-600);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-tags span {
    color: var(--slate-500);
    background: var(--slate-50);
    padding: 5px 9px;
    font-size: 12px;
}

.movie-card-wide {
    display: grid;
    grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1fr);
    min-height: 260px;
}

.movie-card-wide .card-media {
    aspect-ratio: auto;
    height: 100%;
}

.movie-card-wide .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
}

.movie-card-wide .card-body h3 {
    font-size: 26px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: var(--radius-lg);
    padding: 24px;
    color: var(--white);
    background: linear-gradient(145deg, var(--slate-900), var(--slate-800));
    box-shadow: var(--shadow-md);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.52), transparent 70%);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.category-card h3,
.category-card p,
.category-card span {
    position: relative;
    z-index: 1;
}

.category-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--slate-300);
    line-height: 1.7;
}

.category-card span {
    color: var(--orange-300);
    font-weight: 700;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: var(--shadow-md);
}

.rank-number {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    font-weight: 800;
}

.rank-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--slate-200);
}

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

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--slate-600);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-action {
    color: var(--orange-600);
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--orange-50);
}

.page-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 80% 25%, rgba(249, 115, 22, 0.34), transparent 30%),
        linear-gradient(120deg, var(--slate-950), var(--slate-800));
    padding: 52px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--slate-300);
    font-size: 14px;
}

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

.page-title h1 {
    color: inherit;
}

.page-title p {
    color: var(--slate-300);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 48px 0 70px;
}

.player-shell {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--slate-950);
    border: 1px solid rgba(15, 23, 42, 0.4);
}

.video-frame {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.75), rgba(2, 6, 23, 0.36));
    z-index: 5;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-cover .play-round {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--orange-500);
    box-shadow: 0 18px 44px rgba(249, 115, 22, 0.42);
    font-size: 30px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.player-cover:hover .play-round {
    transform: scale(1.08);
    background: var(--orange-600);
}

.player-cover strong {
    font-size: clamp(20px, 3vw, 32px);
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 6;
    max-width: min(520px, calc(100% - 36px));
    color: var(--white);
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    display: none;
}

.player-message.is-show {
    display: block;
}

.content-panel {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: clamp(24px, 4vw, 44px);
}

.content-panel h2 {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--slate-200);
    font-size: 26px;
}

.content-panel p {
    color: var(--slate-700);
    line-height: 2;
    font-size: 17px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--slate-200);
}

.detail-tags span {
    padding: 8px 12px;
    color: var(--orange-600);
    background: var(--orange-50);
    font-weight: 700;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 0.8fr));
    gap: 14px;
    padding: 16px;
    margin: 26px 0 30px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.filter-bar label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 700;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    color: var(--slate-900);
    background: var(--slate-50);
    outline: 0;
    padding: 0 12px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.empty-state {
    display: none;
    padding: 30px;
    text-align: center;
    color: var(--slate-500);
    background: var(--white);
    border-radius: 18px;
    border: 1px dashed var(--slate-300);
}

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

.site-footer {
    color: var(--slate-300);
    background: linear-gradient(135deg, var(--slate-950), var(--slate-900));
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1.1fr;
    gap: 36px;
}

.footer-brand p {
    max-width: 420px;
    line-height: 1.8;
}

.brand-footer {
    margin-bottom: 18px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h3 {
    color: var(--white);
    margin: 0 0 8px;
}

.footer-column a:hover {
    color: var(--orange-400);
}

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

.footer-cats h3 {
    grid-column: 1 / -1;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 42px;
    padding: 22px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: var(--slate-400);
    font-size: 14px;
}

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

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-carousel {
        min-height: 380px;
    }

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

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

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

@media (max-width: 820px) {
    .menu-toggle {
        display: block;
    }

    .nav-panel {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid rgba(148, 163, 184, 0.25);
        box-shadow: var(--shadow-lg);
    }

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

    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        border-radius: 12px;
    }

    .top-search {
        min-width: 0;
        width: 100%;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .movie-card-wide .card-media {
        aspect-ratio: 16 / 9;
    }

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

    .rank-action {
        grid-column: 3;
        justify-self: start;
    }

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

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

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

    .hero {
        min-height: auto;
    }

    .hero-grid {
        min-height: auto;
        padding: 48px 0 74px;
    }

    .hero-carousel {
        min-height: 320px;
        border-radius: 22px;
    }

    .hero-slide-content {
        padding: 22px;
    }

    .section {
        padding: 48px 0;
    }

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

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

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

    .rank-thumb {
        display: none;
    }

    .rank-action {
        grid-column: 2;
    }
}
