:root {
    --fog-950: #070a0f;
    --fog-900: #0d1117;
    --fog-850: #151a22;
    --fog-800: #212529;
    --fog-700: #343a40;
    --fog-600: #495057;
    --fog-500: #6c757d;
    --fog-400: #adb5bd;
    --fog-300: #ced4da;
    --fog-200: #dee2e6;
    --fog-100: #e9ecef;
    --fog-50: #f8f9fa;
    --frost-600: #0877df;
    --frost-500: #1a8cff;
    --frost-400: #48a6ff;
    --frost-300: #82c4ff;
    --mist-900: #111827;
    --mist-800: #1f2937;
    --amber: #facc15;
    --radius-lg: 18px;
    --radius-md: 14px;
    --shadow-soft: 0 18px 55px rgba(0, 0, 0, 0.36);
    --shadow-card: 0 16px 35px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--fog-100);
    background:
        radial-gradient(circle at top left, rgba(26, 140, 255, 0.16), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(250, 204, 21, 0.09), transparent 30rem),
        var(--fog-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 17, 23, 0.86);
    border-bottom: 1px solid rgba(73, 80, 87, 0.55);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--frost-500), var(--frost-300));
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(26, 140, 255, 0.32);
}

.brand-name {
    font-size: 20px;
    color: var(--fog-50);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

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

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(26, 140, 255, 0.14);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(173, 181, 189, 0.25);
    border-radius: 12px;
    background: rgba(33, 37, 41, 0.72);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--fog-100);
    border-radius: 4px;
}

.hero-carousel {
    position: relative;
    width: min(1280px, calc(100% - 32px));
    height: 70vh;
    min-height: 560px;
    margin: 28px auto 0;
    overflow: hidden;
    border-radius: 24px;
    background: var(--fog-800);
    box-shadow: var(--shadow-soft);
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(13, 17, 23, 0.96) 0%, rgba(13, 17, 23, 0.78) 45%, rgba(13, 17, 23, 0.08) 100%),
        linear-gradient(0deg, rgba(13, 17, 23, 0.36), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(620px, 92%);
}

.eyebrow,
.hero-slogan {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 14px;
    margin-bottom: 18px;
    color: #ffffff;
    background: rgba(26, 140, 255, 0.86);
    border: 1px solid rgba(130, 196, 255, 0.38);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero-slogan {
    background: rgba(33, 37, 41, 0.72);
    color: var(--frost-300);
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: var(--fog-50);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(34px, 6vw, 68px);
    margin-bottom: 12px;
}

.hero-copy h2 {
    font-size: clamp(30px, 4.4vw, 56px);
    margin-bottom: 18px;
}

.hero-copy p,
.page-hero p,
.feature-copy p,
.detail-one-line {
    color: var(--fog-200);
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.hero-meta span,
.detail-meta span {
    padding: 6px 12px;
    color: var(--fog-200);
    background: rgba(33, 37, 41, 0.72);
    border: 1px solid rgba(173, 181, 189, 0.18);
    border-radius: 999px;
    font-size: 14px;
}

.hero-actions,
.detail-info .btn {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--frost-500), var(--frost-600));
    box-shadow: 0 16px 34px rgba(26, 140, 255, 0.28);
}

.btn.ghost {
    color: var(--fog-100);
    background: rgba(33, 37, 41, 0.62);
    border: 1px solid rgba(173, 181, 189, 0.22);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--fog-100);
    background: rgba(33, 37, 41, 0.78);
    backdrop-filter: blur(12px);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(52, 58, 64, 0.92);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dot {
    width: 18px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: var(--fog-500);
    transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-dot.active {
    width: 36px;
    background: var(--frost-400);
}

.quick-entry {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.quick-entry a {
    padding: 10px 15px;
    color: var(--fog-200);
    background: rgba(33, 37, 41, 0.74);
    border: 1px solid rgba(73, 80, 87, 0.72);
    border-radius: 999px;
}

.quick-entry a:hover {
    color: #ffffff;
    border-color: rgba(26, 140, 255, 0.68);
}

.page-main,
.home-search,
.split-section,
.category-showcase {
    padding-top: 56px;
    padding-bottom: 28px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 34px 0 22px;
}

.section-title div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.section-title span {
    width: 5px;
    height: 28px;
    display: inline-block;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--frost-400), var(--frost-600));
}

.section-title h2 {
    margin: 0;
    color: var(--fog-50);
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.section-title a {
    color: var(--frost-300);
    font-weight: 700;
    white-space: nowrap;
}

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

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

.catalog-grid {
    align-items: stretch;
}

.movie-card {
    overflow: hidden;
    background: rgba(33, 37, 41, 0.92);
    border: 1px solid rgba(73, 80, 87, 0.78);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(26, 140, 255, 0.72);
    box-shadow: 0 20px 45px rgba(26, 140, 255, 0.16);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--fog-700);
}

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

.movie-card:hover .card-cover img,
.rail-card:hover img,
.category-tile:hover img {
    transform: scale(1.08);
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(13, 17, 23, 0.88), transparent 55%);
}

.year-pill,
.play-badge {
    position: absolute;
    z-index: 2;
}

.year-pill {
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    color: var(--fog-50);
    background: rgba(13, 17, 23, 0.82);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

.play-badge {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(26, 140, 255, 0.88);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-cover-text {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 2;
}

.card-cover-text strong,
.card-cover-text em,
.card-body h3,
.card-body p {
    display: block;
}

.card-cover-text strong {
    color: var(--fog-50);
    font-size: 15px;
    line-height: 1.35;
}

.card-cover-text em,
.card-body p,
.rail-card em,
.rank-info em,
.category-tile em {
    color: var(--fog-400);
    font-style: normal;
    font-size: 13px;
}

.card-body {
    padding: 15px;
}

.card-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--frost-300);
    font-size: 12px;
    font-weight: 800;
}

.card-kicker span:last-child {
    color: var(--fog-400);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-body h3 {
    margin: 0 0 8px;
    color: var(--fog-50);
    font-size: 16px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--frost-300);
}

.card-body p {
    display: -webkit-box;
    min-height: 40px;
    overflow: hidden;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 12px;
    padding: 16px;
    margin-bottom: 24px;
    background: rgba(33, 37, 41, 0.76);
    border: 1px solid rgba(73, 80, 87, 0.64);
    border-radius: var(--radius-lg);
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: var(--fog-300);
    font-size: 13px;
    font-weight: 700;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    color: var(--fog-50);
    background: rgba(13, 17, 23, 0.72);
    border: 1px solid rgba(73, 80, 87, 0.9);
    border-radius: 12px;
    outline: 0;
    padding: 0 14px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--frost-500);
    box-shadow: 0 0 0 4px rgba(26, 140, 255, 0.12);
}

.rail-wrapper {
    position: relative;
}

.movie-rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 4px 0 16px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

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

.rail-card {
    width: 260px;
    flex: 0 0 auto;
}

.rail-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 15px;
    background: var(--fog-700);
}

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

.rail-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(13, 17, 23, 0.78), transparent 60%);
}

.rail-poster span {
    position: absolute;
    left: 10px;
    bottom: 8px;
    z-index: 2;
    color: var(--frost-300);
    font-size: 12px;
    font-weight: 800;
}

.rail-card strong {
    display: block;
    color: var(--fog-50);
    line-height: 1.4;
}

.rail-card:hover strong {
    color: var(--frost-300);
}

.rail-button {
    position: absolute;
    top: 42%;
    z-index: 4;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--fog-100);
    background: rgba(33, 37, 41, 0.9);
    font-size: 30px;
}

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

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

.feature-banner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    overflow: hidden;
    margin: 46px 0 20px;
    border: 1px solid rgba(73, 80, 87, 0.72);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.92), rgba(33, 37, 41, 0.98));
}

.feature-media {
    min-height: 420px;
    overflow: hidden;
}

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

.feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 56px);
}

.feature-copy span {
    width: fit-content;
    margin-bottom: 20px;
    padding: 7px 14px;
    color: var(--frost-300);
    background: rgba(26, 140, 255, 0.15);
    border: 1px solid rgba(26, 140, 255, 0.38);
    border-radius: 999px;
    font-weight: 800;
}

.feature-copy h2 {
    margin: 0 0 18px;
    color: var(--fog-50);
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.compact-meta {
    margin-top: 0;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
}

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

.rank-row a {
    display: grid;
    grid-template-columns: 58px 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(33, 37, 41, 0.78);
    border: 1px solid rgba(73, 80, 87, 0.66);
    border-radius: 16px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row a:hover {
    transform: translateX(4px);
    border-color: rgba(26, 140, 255, 0.66);
}

.rank-number {
    color: var(--frost-300);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

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

.rank-info {
    min-width: 0;
}

.rank-info strong {
    display: block;
    overflow: hidden;
    color: var(--fog-50);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-heat {
    color: var(--amber);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

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

.category-mini-list a {
    display: block;
    padding: 18px;
    background: rgba(33, 37, 41, 0.75);
    border: 1px solid rgba(73, 80, 87, 0.66);
    border-radius: 16px;
}

.category-mini-list strong,
.category-mini-list span {
    display: block;
}

.category-mini-list strong {
    color: var(--fog-50);
    margin-bottom: 6px;
}

.category-mini-list span {
    color: var(--fog-400);
    font-size: 13px;
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--fog-800);
    border: 1px solid rgba(73, 80, 87, 0.7);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.category-tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(13, 17, 23, 0.96), rgba(13, 17, 23, 0.16));
}

.category-tile-content {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
}

.category-tile strong,
.category-tile em,
.category-tile b {
    display: block;
}

.category-tile strong {
    color: var(--fog-50);
    font-size: 20px;
    margin-bottom: 7px;
}

.category-tile b {
    margin-top: 12px;
    color: var(--frost-300);
}

.page-hero {
    padding: 48px;
    margin-bottom: 30px;
    border: 1px solid rgba(73, 80, 87, 0.72);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(26, 140, 255, 0.16), transparent 46%),
        rgba(33, 37, 41, 0.82);
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 60px);
    margin-bottom: 16px;
}

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

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

.category-preview {
    margin-top: 44px;
}

.category-preview > p {
    margin: -8px 0 20px;
    color: var(--fog-300);
}

.catalog-shell {
    margin-top: 26px;
}

.detail-main {
    padding-top: 36px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(73, 80, 87, 0.72);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.94), rgba(13, 17, 23, 0.68));
}

.detail-poster {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

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

.detail-info h1 {
    font-size: clamp(34px, 5vw, 60px);
    margin-bottom: 18px;
}

.detail-meta {
    margin: 20px 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 28px;
}

.tag-list span {
    padding: 7px 12px;
    color: var(--frost-300);
    background: rgba(26, 140, 255, 0.12);
    border: 1px solid rgba(26, 140, 255, 0.28);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    border: 1px solid rgba(73, 80, 87, 0.74);
    box-shadow: var(--shadow-soft);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(26, 140, 255, 0.22), rgba(0, 0, 0, 0.42));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    border-radius: 999px;
    background: rgba(26, 140, 255, 0.92);
    box-shadow: 0 20px 55px rgba(26, 140, 255, 0.32);
    font-size: 36px;
}

.player-shell.player-started .player-overlay {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 34px;
}

.detail-content > div {
    padding: 24px;
    background: rgba(33, 37, 41, 0.76);
    border: 1px solid rgba(73, 80, 87, 0.66);
    border-radius: 20px;
}

.detail-content h2 {
    margin: 0 0 12px;
    color: var(--fog-50);
    font-size: 24px;
}

.detail-content p {
    margin: 0;
    color: var(--fog-200);
    line-height: 1.9;
}

.related-section {
    padding-bottom: 40px;
}

.site-footer {
    margin-top: 56px;
    padding: 42px 0 22px;
    background: rgba(7, 10, 15, 0.82);
    border-top: 1px solid rgba(73, 80, 87, 0.68);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 28px;
}

.footer-brand {
    color: var(--fog-50);
    font-size: 20px;
}

.site-footer p {
    color: var(--fog-400);
    margin: 10px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.footer-links a {
    padding: 8px 12px;
    color: var(--fog-300);
    background: rgba(33, 37, 41, 0.72);
    border-radius: 999px;
}

.footer-links a:hover {
    color: var(--frost-300);
}

.footer-copy {
    width: min(1280px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 20px;
    color: var(--fog-500);
    border-top: 1px solid rgba(73, 80, 87, 0.42);
    text-align: center;
    font-size: 14px;
}

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

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

    .split-section,
    .feature-banner,
    .detail-content {
        grid-template-columns: 1fr;
    }
}

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

    .nav-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        padding: 16px;
        background: rgba(13, 17, 23, 0.96);
        border: 1px solid rgba(73, 80, 87, 0.72);
        border-radius: 18px;
        box-shadow: var(--shadow-soft);
    }

    body.nav-open .nav-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-carousel {
        height: auto;
        min-height: 640px;
    }

    .hero-gradient {
        background: linear-gradient(0deg, rgba(13, 17, 23, 0.98) 0%, rgba(13, 17, 23, 0.76) 58%, rgba(13, 17, 23, 0.18) 100%);
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 86px;
    }

    .hero-arrow {
        display: none;
    }

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

    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(330px, 100%);
        margin: 0 auto;
    }

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

    .rank-heat {
        grid-column: 3;
    }
}

@media (max-width: 620px) {
    .container,
    .hero-carousel,
    .footer-copy {
        width: min(100% - 22px, 1280px);
    }

    .brand-name {
        font-size: 18px;
    }

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

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

    .page-hero,
    .detail-hero {
        padding: 24px;
    }

    .card-body {
        padding: 12px;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}
