:root {
    --color-bg: #020617;
    --color-panel: #0f172a;
    --color-panel-soft: rgba(15, 23, 42, 0.72);
    --color-panel-muted: rgba(30, 41, 59, 0.72);
    --color-border: #1e293b;
    --color-text: #f8fafc;
    --color-muted: #94a3b8;
    --color-dim: #64748b;
    --color-cyan: #22d3ee;
    --color-cyan-strong: #06b6d4;
    --color-teal: #14b8a6;
    --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.36);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 10px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 32rem),
        radial-gradient(circle at 80% 12%, rgba(20, 184, 166, 0.12), transparent 34rem),
        var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
}

body.is-nav-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

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

.skip-link {
    position: fixed;
    left: 16px;
    top: 10px;
    z-index: 1000;
    transform: translateY(-150%);
    padding: 10px 14px;
    background: var(--color-cyan-strong);
    border-radius: 999px;
    color: white;
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-cyan-strong), var(--color-teal));
    color: white;
    font-size: 16px;
    box-shadow: 0 14px 35px rgba(6, 182, 212, 0.22);
    transition: transform 0.25s ease;
}

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

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 20px;
    letter-spacing: -0.03em;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 12px;
}

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

.nav-link {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.header-search,
.mobile-search,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-bar input {
    width: 240px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.92);
    color: white;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus {
    border-color: var(--color-cyan-strong);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14);
}

.header-search button,
.mobile-search button,
.search-page-form button {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-cyan-strong), var(--color-teal));
    color: white;
    padding: 11px 16px;
    font-weight: 700;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #1e293b;
    color: white;
    padding: 11px;
    cursor: pointer;
}

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

.mobile-panel {
    display: none;
    border-top: 1px solid var(--color-border);
    padding: 16px;
    background: rgba(15, 23, 42, 0.98);
}

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

.mobile-search {
    margin-bottom: 14px;
}

.mobile-search input {
    width: 100%;
}

.mobile-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #cbd5e1;
    font-weight: 600;
}

.mobile-link:hover {
    background: rgba(30, 41, 59, 0.9);
    color: var(--color-cyan);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 540px;
    overflow: hidden;
    background: #020617;
}

.hero-slides,
.hero-slide,
.hero-slide img,
.hero-gradient {
    position: absolute;
    inset: 0;
}

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

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

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

.hero-gradient-side {
    background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.88) 42%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-gradient-bottom {
    background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.28) 34%, transparent 70%);
}

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

.hero-copy {
    width: min(680px, 100%);
}

.hero-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    margin: 0 0 18px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--color-cyan);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin: 0 0 22px;
    max-width: 640px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-meta span {
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
    padding: 8px 14px;
    font-size: 14px;
}

.hero-meta span:first-child {
    background: var(--color-cyan-strong);
    border-color: var(--color-cyan-strong);
    color: white;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--color-cyan-strong), var(--color-teal));
    color: white;
    box-shadow: 0 18px 36px rgba(6, 182, 212, 0.22);
}

.btn-primary:hover,
.btn-ghost:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-ghost {
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
}

.btn-ghost.small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.5);
    color: white;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(15, 23, 42, 0.86);
    transform: translateY(-50%) scale(1.08);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: -48px;
    position: relative;
    z-index: 6;
}

.stat-strip div {
    border: 1px solid rgba(30, 41, 59, 0.88);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.86);
    padding: 22px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.stat-strip strong {
    display: block;
    font-size: 28px;
    color: white;
}

.stat-strip span {
    display: block;
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 14px;
}

.home-layout,
.content-section {
    margin-top: 54px;
}

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

.section-heading.compact {
    align-items: center;
}

.section-heading .eyebrow,
.sub-hero .eyebrow,
.detail-hero .eyebrow {
    margin-bottom: 10px;
}

.section-heading h2,
.sub-hero h1,
.detail-title-row h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.section-heading p,
.sub-hero p,
.detail-title-row p {
    margin: 10px 0 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.section-more {
    color: var(--color-cyan);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(30, 41, 59, 0.82);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.38);
    background: rgba(30, 41, 59, 0.78);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.movie-card.large .card-cover {
    aspect-ratio: 16 / 9;
}

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

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.86) 100%);
    opacity: 0.82;
}

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

.play-badge {
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.9);
    color: white;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.rank-badge {
    right: 12px;
    top: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-kicker,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--color-dim);
    font-size: 12px;
}

.card-kicker span {
    color: var(--color-cyan);
    font-weight: 800;
}

.card-kicker em {
    font-style: normal;
}

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

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

.card-summary {
    display: -webkit-box;
    margin: 0 0 12px;
    min-height: 48px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.7;
}

.card-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #475569;
}

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

.category-tile,
.category-overview-card {
    overflow: hidden;
    border: 1px solid rgba(30, 41, 59, 0.86);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.category-posters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 130px;
    background: #0f172a;
}

.category-posters img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.category-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

.category-copy strong {
    font-size: 20px;
}

.category-copy em,
.category-copy small {
    color: var(--color-muted);
    font-style: normal;
    line-height: 1.6;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 78px 1fr auto;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(30, 41, 59, 0.72);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.68);
    padding: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    background: rgba(30, 41, 59, 0.86);
    transform: translateX(4px);
}

.compact-card img {
    width: 78px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

.compact-info strong,
.compact-info small {
    display: block;
}

.compact-info small {
    margin-top: 6px;
    color: var(--color-muted);
    font-size: 12px;
}

.compact-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.14);
    color: var(--color-cyan);
    font-weight: 900;
}

.sub-hero {
    position: relative;
    padding: 74px 0 58px;
    border-bottom: 1px solid rgba(30, 41, 59, 0.82);
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.14), transparent 48%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.42));
}

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

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

.two-column-section {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 28px;
    align-items: start;
}

.side-panel,
.detail-card,
.info-box,
.tag-box,
.player-panel {
    border: 1px solid rgba(30, 41, 59, 0.82);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.side-panel {
    position: sticky;
    top: 94px;
    padding: 20px;
}

.side-panel h2,
.detail-card h2,
.info-box h2,
.tag-box h2 {
    margin: 0 0 18px;
    font-size: 20px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    border: 1px solid rgba(30, 41, 59, 0.82);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.62);
    padding: 14px;
}

.filter-bar label {
    color: var(--color-cyan);
    font-weight: 900;
}

.filter-bar input {
    flex: 1;
    width: auto;
}

.filter-bar span {
    color: var(--color-muted);
    font-size: 14px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px 1fr;
}

.category-cover-stack {
    min-height: 260px;
    background: #0f172a;
}

.category-cover-stack .main-cover {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.mini-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.mini-covers img {
    width: 100%;
    height: 90px;
    object-fit: cover;
}

.category-overview-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.category-overview-copy h2 {
    margin: 0 0 12px;
}

.category-overview-copy p {
    color: var(--color-muted);
    line-height: 1.7;
}

.detail-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
}

.detail-bg,
.detail-mask {
    position: absolute;
    inset: 0;
}

.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.04);
}

.detail-mask {
    background:
        linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.88) 50%, rgba(2, 6, 23, 0.24) 100%),
        linear-gradient(0deg, #020617 0%, transparent 70%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 74px;
}

.detail-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.detail-title-row > div {
    max-width: 780px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 30px;
    margin-top: -70px;
    position: relative;
    z-index: 4;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.player-panel {
    overflow: hidden;
}

.player-frame {
    position: relative;
    background: #000;
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.8));
    color: white;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-start span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-cyan-strong), var(--color-teal));
    box-shadow: 0 22px 46px rgba(6, 182, 212, 0.28);
    font-size: 24px;
}

.player-start strong {
    font-size: 22px;
}

.player-start small {
    color: #cbd5e1;
}

.player-tip {
    margin: 0;
    padding: 14px 18px;
    color: var(--color-muted);
    font-size: 14px;
}

.detail-card {
    padding: 24px;
}

.detail-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 2;
}

.detail-sidebar {
    display: grid;
    gap: 18px;
    align-self: start;
    position: sticky;
    top: 94px;
}

.detail-poster {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(30, 41, 59, 0.82);
    box-shadow: var(--shadow-card);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #0f172a;
}

.info-box,
.tag-box {
    padding: 20px;
}

.info-box dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-box dl div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
}

.info-box dt {
    color: var(--color-dim);
}

.info-box dd {
    margin: 0;
    color: #e2e8f0;
}

.info-box a,
.tag-box span {
    color: var(--color-cyan);
}

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

.tag-box span {
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}

.ranking-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ranking-winner {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.76);
    padding: 12px;
    min-width: 330px;
}

.ranking-winner img {
    width: 110px;
    height: 146px;
    border-radius: 16px;
    object-fit: cover;
}

.ranking-winner em,
.ranking-winner strong {
    display: block;
}

.ranking-winner em {
    color: #fbbf24;
    font-style: normal;
    font-weight: 900;
}

.ranking-winner strong {
    margin-top: 8px;
    font-size: 22px;
}

.search-page-form {
    margin-top: 28px;
    max-width: 720px;
}

.search-page-form input {
    flex: 1;
    width: auto;
    min-height: 52px;
}

.search-page-form button {
    min-height: 52px;
    padding-inline: 24px;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid rgba(30, 41, 59, 0.9);
    background: rgba(15, 23, 42, 0.78);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding: 42px 0;
}

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

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 16px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: var(--color-muted);
    line-height: 1.8;
    font-size: 14px;
}

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

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(30, 41, 59, 0.72);
    padding: 18px 0 24px;
}

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

    .nav-toggle {
        display: block;
    }

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

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

    .two-column-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .side-panel,
    .detail-sidebar {
        position: static;
    }
}

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

    .hero {
        height: auto;
        min-height: 560px;
    }

    .hero-arrow {
        display: none;
    }

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

    .hero-gradient-side {
        background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.72) 70%, rgba(2, 6, 23, 0.22) 100%);
    }

    .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: -34px;
    }

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

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

    .detail-title-row,
    .ranking-hero-inner,
    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .ranking-winner {
        width: 100%;
        min-width: 0;
    }
}

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

    .brand-copy small {
        display: none;
    }

    .brand-copy strong {
        font-size: 17px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .hero-copy p {
        font-size: 15px;
    }

    .stat-strip,
    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar,
    .search-page-form,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .compact-card {
        grid-template-columns: 66px 1fr auto;
    }

    .compact-card img {
        width: 66px;
        height: 52px;
    }

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