:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #07111f;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --violet: #8b5cf6;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
    --radius: 24px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 28rem),
        radial-gradient(circle at 75% 8%, rgba(59, 130, 246, 0.18), transparent 24rem),
        linear-gradient(180deg, #020617 0%, #07111f 45%, #020617 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 75%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr minmax(220px, 320px) auto;
    gap: 1.25rem;
    align-items: center;
    width: min(1440px, calc(100% - 2rem));
    min-height: 76px;
    margin: 0 auto;
}

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

.brand__mark {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 1rem;
    color: white;
    font-size: 1.35rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.92), rgba(59, 130, 246, 0.92));
    box-shadow: 0 0 34px rgba(34, 211, 238, 0.24);
}

.brand__text {
    display: grid;
    gap: 0.1rem;
}

.brand__text strong,
.footer-brand strong {
    font-size: 1.18rem;
    line-height: 1;
    background: linear-gradient(135deg, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand__text small,
.footer-brand p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.desktop-nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
}

.desktop-nav a,
.mobile-nav a {
    color: var(--muted-strong);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--cyan);
    transform: translateY(-1px);
}

.header-search {
    position: relative;
}

.header-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.82);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    padding: 0.8rem 1rem;
}

.header-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(34, 211, 238, 0.58);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.search-results {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    display: none;
    width: min(420px, calc(100vw - 2rem));
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1.25rem;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: var(--shadow);
}

.search-results.is-visible {
    display: block;
}

.search-results a,
.search-results p {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    margin: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.search-results a:hover {
    background: rgba(34, 211, 238, 0.08);
}

.search-results strong {
    color: white;
}

.search-results span {
    color: var(--muted);
    font-size: 0.8rem;
}

.nav-toggle {
    display: none;
    width: 2.8rem;
    height: 2.8rem;
    align-items: center;
    justify-content: center;
    gap: 0.26rem;
    flex-direction: column;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.86);
}

.nav-toggle span {
    width: 1.2rem;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.mobile-nav {
    display: none;
    width: min(1440px, calc(100% - 2rem));
    padding: 0 0 1rem;
    margin: 0 auto;
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.mobile-nav a {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.82);
}

main {
    width: min(1440px, calc(100% - 2rem));
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: clamp(560px, 78vh, 820px);
    padding: 2rem 0 4rem;
}

.hero__slides {
    position: relative;
    min-height: clamp(520px, 72vh, 760px);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: calc(var(--radius) + 12px);
    background: #020617;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.7s ease;
}

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 24%, rgba(34, 211, 238, 0.16), transparent 24rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.58) 48%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.2));
}

.hero-slide__content {
    position: relative;
    z-index: 3;
    width: min(760px, 92%);
    padding: clamp(2rem, 5vw, 5rem);
}

.eyebrow {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 6.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-hero p {
    color: var(--muted-strong);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.85;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.3rem 0;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(34, 211, 238, 0.1);
    font-size: 0.82rem;
    font-weight: 700;
}

.tag-row--small span {
    min-height: 1.75rem;
    font-size: 0.76rem;
}

.hero-actions,
.detail-hero__meta,
.page-hero__stats,
.ranking-card__foot,
.pager-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #00111a;
    background: linear-gradient(135deg, #67e8f9, #60a5fa);
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.22);
}

.btn-ghost {
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: white;
    background: rgba(15, 23, 42, 0.66);
}

.btn-ghost:hover {
    border-color: rgba(34, 211, 238, 0.42);
    background: rgba(34, 211, 238, 0.12);
}

.hero__controls {
    position: absolute;
    right: clamp(1rem, 3vw, 3rem);
    bottom: clamp(2rem, 4vw, 4rem);
    left: clamp(1rem, 3vw, 3rem);
    z-index: 5;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero__thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
    padding: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1rem;
    color: var(--muted-strong);
    background: rgba(2, 6, 23, 0.62);
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.hero-thumb img {
    width: 54px;
    height: 54px;
    border-radius: 0.75rem;
    object-fit: cover;
}

.hero-thumb span {
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 800;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-thumb.is-active {
    border-color: rgba(34, 211, 238, 0.55);
    color: white;
    background: rgba(34, 211, 238, 0.16);
}

.hero-arrow {
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    color: white;
    background: rgba(2, 6, 23, 0.72);
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.section {
    padding: clamp(2.25rem, 5vw, 5rem) 0;
}

.section--lifted {
    margin-top: -2rem;
}

.section--no-top {
    padding-top: 1rem;
}

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

.section-heading--compact {
    align-items: center;
    margin-bottom: 1rem;
}

.section-heading h2,
.category-overview-card h2,
.ranking-panel h2,
.detail-content h2,
.detail-sidebar h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    line-height: 1.05;
}

.text-link {
    color: var(--cyan);
    font-weight: 900;
}

.text-link:hover {
    color: #67e8f9;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(34, 211, 238, 0.42);
    box-shadow: 0 26px 72px rgba(8, 145, 178, 0.16);
}

.movie-card__poster {
    position: relative;
    aspect-ratio: 2 / 3;
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 22%, rgba(34, 211, 238, 0.28), transparent 36%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
}

.movie-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease, opacity 0.32s ease;
}

.movie-card:hover .movie-card__poster img {
    transform: scale(1.06);
    opacity: 0.82;
}

.movie-card__poster figcaption {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    gap: 0.45rem;
    align-items: center;
    padding: 3rem 0.9rem 0.9rem;
    color: white;
    font-size: 0.84rem;
    font-weight: 900;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover figcaption {
    opacity: 1;
}

.play-dot {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 999px;
    color: #00111a;
    background: var(--cyan);
}

.movie-card__body {
    display: grid;
    gap: 0.65rem;
    padding: 0.95rem;
}

.movie-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.movie-card__meta span:last-child {
    color: var(--cyan);
}

.movie-card h3,
.movie-card p {
    margin: 0;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 2.55em;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.9em;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.movie-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.82rem;
}

.rating {
    color: #facc15;
    font-weight: 900;
}

.section-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.25rem;
    align-items: start;
}

.section-panel,
.ranking-panel,
.filter-panel,
.prose-card,
.detail-content,
.detail-sidebar,
.player-shell,
.category-overview-card,
.ranking-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
}

.section-panel,
.ranking-panel,
.prose-card,
.detail-content,
.detail-sidebar {
    padding: clamp(1.1rem, 2vw, 1.6rem);
}

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

.category-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 1.25rem;
    background: rgba(2, 6, 23, 0.42);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.category-card__posters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
}

.category-card__posters img {
    aspect-ratio: 2 / 3;
    border-radius: 0.55rem;
    object-fit: cover;
    background: #0f172a;
}

.category-card__body h3,
.category-card__body p {
    margin: 0;
}

.category-card__body h3 {
    margin-bottom: 0.35rem;
}

.category-card__body p {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.category-card__body span {
    display: inline-block;
    margin-top: 0.65rem;
    color: var(--cyan);
    font-size: 0.82rem;
    font-weight: 900;
}

.ranking-list {
    display: grid;
    gap: 0.6rem;
}

.ranking-row {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(2, 6, 23, 0.42);
}

.ranking-row:hover {
    background: rgba(34, 211, 238, 0.1);
}

.ranking-row__num {
    color: var(--cyan);
    font-weight: 900;
}

.ranking-row__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-row__score {
    color: #facc15;
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin: 2rem 0 1rem;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: calc(var(--radius) + 8px);
    background:
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.18), transparent 24rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.94));
    box-shadow: var(--shadow);
}

.page-hero--compact {
    min-height: 280px;
}

.page-hero--with-art {
    min-height: 340px;
}

.page-hero__stats span,
.detail-hero__meta span {
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(2, 6, 23, 0.34);
}

.category-overview-grid {
    display: grid;
    gap: 1.25rem;
}

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

.category-overview-card__media {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    min-height: 260px;
    padding: 1rem;
    background:
        radial-gradient(circle at top, rgba(34, 211, 238, 0.14), transparent 70%),
        rgba(2, 6, 23, 0.52);
}

.category-overview-card__media img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border-radius: 1rem;
    object-fit: cover;
}

.category-overview-card__body {
    display: grid;
    align-content: center;
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.category-overview-card__body p,
.prose-card p,
.detail-content p {
    color: var(--muted-strong);
    line-height: 1.85;
}

.filter-panel {
    position: sticky;
    top: 88px;
    z-index: 20;
    margin: 1rem 0 1.5rem;
    padding: 1rem;
}

.filter-panel__row {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 0.55fr));
    gap: 0.85rem;
    align-items: end;
}

.filter-panel label {
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    min-height: 2.75rem;
    padding: 0.65rem 0.85rem;
}

.filter-panel__count {
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 1.25rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: end;
    min-height: 560px;
    padding: clamp(1.5rem, 4vw, 3rem);
    margin: 1rem 0 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: calc(var(--radius) + 8px);
    background:
        radial-gradient(circle at 24% 16%, rgba(34, 211, 238, 0.16), transparent 24rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
    box-shadow: var(--shadow);
}

.detail-hero__poster {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: rgba(2, 6, 23, 0.5);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-hero__content {
    display: grid;
    align-content: end;
}

.section--player {
    padding-bottom: 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    gap: 1rem;
    place-items: center;
    align-content: center;
    border: 0;
    color: white;
    background:
        radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 28rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.player-overlay.is-hidden {
    display: none;
}

.player-overlay__icon {
    display: grid;
    width: 5.5rem;
    height: 5.5rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: #00111a;
    font-size: 2rem;
    background: linear-gradient(135deg, #67e8f9, #60a5fa);
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.32);
}

.player-message {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    margin: 0;
    color: var(--muted-strong);
    text-align: center;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.25rem;
    align-items: start;
}

.detail-content h2 + p {
    margin-top: 0.75rem;
}

.detail-sidebar dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.85rem;
    margin: 0;
}

.detail-sidebar dt {
    color: var(--muted);
}

.detail-sidebar dd {
    margin: 0;
    color: var(--text);
}

.pager-links {
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
}

.ranking-page-list {
    display: grid;
    gap: 1rem;
}

.ranking-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 1.2rem;
    overflow: hidden;
    padding: 1rem;
}

.ranking-card__poster {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.ranking-card__poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.ranking-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 2;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    color: #00111a;
    font-weight: 900;
    background: #67e8f9;
}

.ranking-card__body {
    display: grid;
    align-content: center;
    gap: 0.85rem;
}

.ranking-card__body h2,
.ranking-card__body p {
    margin: 0;
}

.ranking-card__body p {
    color: var(--muted-strong);
    line-height: 1.75;
}

.site-footer {
    width: min(1440px, calc(100% - 2rem));
    padding: 3rem 0 2rem;
    margin: 3rem auto 0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
}

.site-footer h2 {
    margin: 0 0 1rem;
    color: var(--text);
    font-size: 1rem;
}

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

.site-footer a,
.site-footer p,
.site-footer__bottom {
    color: var(--muted);
}

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

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.9rem;
}

@media (max-width: 1180px) {
    .site-header__inner {
        grid-template-columns: auto 1fr auto;
    }

    .desktop-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .ranking-panel {
        order: -1;
    }
}

@media (max-width: 860px) {
    .site-header__inner {
        grid-template-columns: 1fr auto;
        min-height: auto;
        padding: 0.8rem 0;
    }

    .header-search {
        grid-column: 1 / -1;
        order: 3;
    }

    .hero {
        min-height: auto;
        padding-top: 1rem;
    }

    .hero__slides {
        min-height: 660px;
    }

    .hero-slide {
        align-items: center;
    }

    .hero-slide__content {
        width: 100%;
        padding: 2rem;
    }

    .hero__controls {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
    }

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

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

    .category-grid,
    .filter-panel__row,
    .site-footer__grid,
    .category-overview-card,
    .detail-hero,
    .ranking-card {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        position: static;
    }

    .category-overview-card__media {
        grid-template-columns: repeat(3, 1fr);
        min-height: auto;
    }

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

@media (max-width: 560px) {
    main,
    .site-header__inner,
    .mobile-nav,
    .site-footer {
        width: min(100% - 1rem, 1440px);
    }

    .brand__text small {
        display: none;
    }

    .hero__slides {
        min-height: 600px;
        border-radius: 1.5rem;
    }

    .hero h1,
    .page-hero h1,
    .detail-hero h1 {
        font-size: clamp(2.15rem, 14vw, 3.6rem);
    }

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

    .hero-thumb {
        grid-template-columns: 44px 1fr;
    }

    .hero-thumb img {
        width: 44px;
        height: 44px;
    }

    .movie-card__body {
        padding: 0.75rem;
    }

    .movie-card h3 {
        font-size: 0.92rem;
    }

    .site-footer__bottom,
    .pager-links {
        display: grid;
        gap: 0.85rem;
    }
}
