/*
 * Static movie site theme.
 * The visual system follows the uploaded source style: night background,
 * cyan-blue gradient, glass panels, rounded cards, hover glow and a 70vh hero.
 */

:root {
    --color-night-darker: #0a0e1a;
    --color-night-dark: #0f1420;
    --color-night-medium: #1a1f2e;
    --color-night-light: #252b3d;
    --color-accent-blue: #3b82f6;
    --color-accent-cyan: #06b6d4;
    --color-accent-teal: #14b8a6;
    --color-text-primary: #e5e7eb;
    --color-text-secondary: #9ca3af;
    --color-text-muted: #6b7280;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.055);
    --shadow-glow: 0 25px 50px -12px rgba(6, 182, 212, 0.2);
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.12), transparent 36rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34rem),
        var(--color-night-darker);
    color: var(--color-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.glass-effect {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gradient-text {
    background: linear-gradient(90deg, #22d3ee, #3b82f6, #2dd4bf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-hover {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: var(--shadow-glow);
}

.btn-primary,
.btn-ghost,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    border-radius: 0.75rem;
    padding: 0.72rem 1.15rem;
    font-weight: 700;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-accent-cyan), #2563eb);
    color: white;
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.22);
}

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

.btn-ghost,
.section-more {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #dbeafe;
}

.btn-ghost:hover,
.section-more:hover {
    border-color: rgba(6, 182, 212, 0.65);
    color: #67e8f9;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 14, 26, 0.82);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.35);
    box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.12);
}

.brand-text {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #d1d5db;
}

.desktop-nav > a,
.nav-dropdown > button {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > button:hover {
    color: #22d3ee;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    width: 14rem;
    border-radius: 1rem;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    border-radius: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: #d1d5db;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #22d3ee;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-search input,
.mobile-panel input,
.filter-panel input,
.filter-panel select {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.055);
    color: #e5e7eb;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.header-search input {
    width: 17rem;
    padding: 0.7rem 0.9rem;
}

.header-search button,
.mobile-panel button {
    border: 0;
    border-radius: 0.75rem;
    padding: 0.7rem 1rem;
    background: rgba(6, 182, 212, 0.16);
    color: #67e8f9;
    font-weight: 700;
}

.header-search input:focus,
.mobile-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(6, 182, 212, 0.75);
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    border: 0;
    background: transparent;
    padding: 0.25rem;
}

.mobile-menu-button span {
    width: 1.55rem;
    height: 2px;
    border-radius: 99px;
    background: #d1d5db;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
}

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

.mobile-panel form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-panel input {
    flex: 1;
    padding: 0.75rem 0.85rem;
}

.mobile-panel nav,
.mobile-category-links {
    display: grid;
    gap: 0.5rem;
}

.mobile-panel a {
    border-radius: 0.75rem;
    padding: 0.65rem 0.75rem;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.04);
}

.mobile-category-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.5rem;
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 32rem;
    overflow: hidden;
}

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

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

.hero-slide > img,
.detail-hero > img,
.category-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(59, 130, 246, 0.1));
}

.hero-slide > img.is-missing,
.detail-hero > img.is-missing,
.category-hero > img.is-missing,
.poster-link img.is-missing,
.detail-poster img.is-missing,
.rank-thumb img.is-missing,
.category-card img.is-missing {
    opacity: 0;
}

.hero-shade,
.category-card-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0a0e1a 0%, rgba(10, 14, 26, 0.82) 38%, rgba(10, 14, 26, 0.2) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 7rem;
    transform: translateX(-50%);
    max-width: var(--container);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border: 1px solid rgba(6, 182, 212, 0.36);
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    background: rgba(6, 182, 212, 0.16);
    color: #67e8f9;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    max-width: 52rem;
    margin: 1rem 0;
    color: white;
    font-size: clamp(2.5rem, 6vw, 5.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
    max-width: 48rem;
    margin: 0 0 1.4rem;
    color: #d1d5db;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.hero-tags,
.detail-meta,
.card-meta,
.card-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tags span,
.detail-meta span,
.card-meta span,
.card-foot span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.6rem;
    color: #cbd5e1;
    font-size: 0.82rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hero-dots,
.hero-arrows {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hero-dot {
    width: 2.4rem;
    height: 0.35rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.is-active {
    width: 3.2rem;
    background: #22d3ee;
}

.hero-arrows button {
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1.75rem;
    line-height: 1;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    border-radius: 1.2rem;
    padding: 1.2rem;
}

.stat-card strong {
    display: block;
    color: white;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    line-height: 1;
}

.stat-card span {
    color: var(--color-text-secondary);
}

.section-block {
    padding: 3.5rem 0 0;
}

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

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

.section-title,
.section-heading h2 {
    margin: 0.45rem 0 0;
    color: white;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.2;
}

.movie-grid {
    display: grid;
    gap: 1.25rem;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.055);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(59, 130, 246, 0.08));
}

.compact-card .poster-link {
    aspect-ratio: 3 / 4;
}

.poster-link img,
.category-card img,
.rank-thumb img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.poster-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 25% 15%, rgba(34, 211, 238, 0.3), transparent 38%),
        linear-gradient(135deg, rgba(15, 20, 32, 0.9), rgba(26, 31, 46, 0.65));
}

.poster-link img {
    position: relative;
    z-index: 1;
}

.movie-card:hover .poster-link img,
.category-card:hover img {
    transform: scale(1.08);
}

.poster-link::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
}

.play-badge {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.88);
    color: white;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-category {
    position: absolute;
    z-index: 3;
    left: 0.75rem;
    bottom: 0.75rem;
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.18);
    color: #67e8f9;
    padding: 0.25rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.card-body {
    padding: 1rem;
}

.card-body h3 {
    margin: 0.7rem 0 0.45rem;
    color: white;
    font-size: 1.05rem;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: #22d3ee;
}

.card-body p {
    display: -webkit-box;
    min-height: 3.05rem;
    margin: 0 0 0.9rem;
    overflow: hidden;
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-foot {
    justify-content: space-between;
}

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

.category-card {
    position: relative;
    min-height: 13rem;
    overflow: hidden;
    border-radius: 1.2rem;
    padding: 1rem;
}

.category-card img,
.category-card-mask,
.category-card .poster-backdrop {
    position: absolute;
    inset: 0;
}

.category-card strong,
.category-card small,
.category-card em {
    position: relative;
    z-index: 3;
    display: block;
}

.category-card strong {
    margin-top: 5.4rem;
    color: white;
    font-size: 1.3rem;
}

.category-card small {
    margin-top: 0.25rem;
    color: #67e8f9;
    font-style: normal;
}

.category-card em {
    margin-top: 0.5rem;
    color: #d1d5db;
    font-size: 0.88rem;
    font-style: normal;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 22rem;
    gap: 1.25rem;
    align-items: start;
}

.ranking-panel {
    position: sticky;
    top: 5.5rem;
    border-radius: 1.2rem;
    padding: 1.1rem;
}

.rank-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.9rem;
    padding: 0.75rem;
    margin-top: 0.55rem;
}

.rank-number {
    color: #67e8f9;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    color: white;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    color: #facc15;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(16rem, 2fr) repeat(4, minmax(9rem, 1fr)) auto;
    gap: 0.85rem;
    align-items: end;
    border-radius: 1.2rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.filter-panel label {
    display: grid;
    gap: 0.35rem;
    color: var(--color-text-secondary);
    font-size: 0.86rem;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 0.72rem 0.85rem;
}

.result-count {
    min-width: 7.5rem;
    color: #67e8f9;
    font-weight: 700;
    text-align: right;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
}

.compact-hero {
    padding: 7rem 0 4rem;
    background:
        radial-gradient(circle at 18% 20%, rgba(6, 182, 212, 0.18), transparent 30rem),
        linear-gradient(135deg, rgba(15, 20, 32, 0.92), rgba(10, 14, 26, 0.98));
}

.category-hero {
    min-height: 28rem;
}

.category-hero .container {
    position: relative;
    z-index: 2;
    padding: 8rem 0 4rem;
}

.category-overview-list {
    display: grid;
    gap: 1.25rem;
    padding-top: 3rem;
}

.category-overview-card {
    border-radius: 1.25rem;
    padding: 1rem;
}

.category-overview-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-overview-head h2 {
    margin: 0.5rem 0 0.25rem;
    color: white;
    font-size: 1.6rem;
}

.category-overview-head p {
    margin: 0;
    color: var(--color-text-secondary);
}

.mini-poster-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

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

.ranking-list-row {
    display: grid;
    grid-template-columns: 4.4rem 5.5rem 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
}

.rank-number.big {
    color: #67e8f9;
    font-size: 1.2rem;
    font-weight: 900;
    text-align: center;
}

.rank-thumb {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.06);
}

.rank-info h3 {
    margin: 0 0 0.35rem;
    color: white;
}

.rank-info p {
    display: -webkit-box;
    margin: 0 0 0.55rem;
    overflow: hidden;
    color: var(--color-text-secondary);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.detail-hero {
    min-height: 40rem;
}

.detail-hero > img {
    position: absolute;
    inset: 0;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 7rem 0 4rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
    font-size: 0.92rem;
}

.breadcrumbs a:hover {
    color: #22d3ee;
}

.detail-layout {
    display: grid;
    grid-template-columns: 19rem 1fr;
    gap: 2rem;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
}

.detail-copy h1 {
    margin-top: 0.8rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag-list a {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.35rem 0.65rem;
    color: #d1d5db;
    font-size: 0.86rem;
}

.tag-list a:hover {
    border-color: rgba(6, 182, 212, 0.55);
    color: #67e8f9;
}

.player-shell {
    overflow: hidden;
    border-radius: 1.25rem;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 50% 40%, rgba(6, 182, 212, 0.14), transparent 28rem),
        #030712;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 0;
    background: rgba(2, 6, 23, 0.44);
    color: white;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.player-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-accent-cyan), #2563eb);
    color: white;
    font-size: 2rem;
    box-shadow: 0 15px 45px rgba(6, 182, 212, 0.3);
}

.player-overlay strong {
    font-size: 1.35rem;
}

.player-overlay small,
.player-status {
    color: #cbd5e1;
}

.player-status {
    margin: 0;
    padding: 0.9rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.detail-content {
    padding-top: 2rem;
}

.detail-article {
    border-radius: 1.25rem;
    padding: clamp(1.2rem, 3vw, 2rem);
}

.detail-article h2 {
    margin: 0 0 0.75rem;
    color: white;
    font-size: 1.35rem;
}

.detail-article h2:not(:first-child) {
    margin-top: 1.6rem;
}

.detail-article p {
    margin: 0;
    color: #d1d5db;
    font-size: 1.02rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.6rem 0 0;
}

.info-grid div {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
}

.info-grid dt {
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.info-grid dd {
    margin: 0.25rem 0 0;
    color: white;
}

.site-footer {
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 20, 32, 0.88);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

.footer-grid p,
.footer-links a,
.footer-bottom {
    color: var(--color-text-secondary);
}

.footer-grid h2 {
    margin: 0 0 0.9rem;
    color: white;
    font-size: 1rem;
}

.footer-links {
    display: grid;
    gap: 0.45rem;
}

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

.footer-links a:hover {
    color: #22d3ee;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 1rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

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

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

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

    .ranking-panel {
        position: static;
    }

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

    .filter-search-wrap {
        grid-column: 1 / -1;
    }

    .result-count {
        text-align: left;
    }
}

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

    .mobile-menu-button {
        display: flex;
    }

    .hero-carousel {
        height: 72vh;
        min-height: 34rem;
    }

    .hero-content {
        bottom: 6.25rem;
    }

    .stats-strip,
    .featured-grid,
    .wide-grid,
    .library-grid,
    .related-grid,
    .category-grid,
    .mini-poster-row,
    .footer-grid,
    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .category-overview-head,
    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .detail-poster {
        max-width: 16rem;
    }

    .ranking-list-row {
        grid-template-columns: 3.5rem 4.5rem 1fr;
    }

    .ranking-list-row .rank-score {
        grid-column: 3;
        justify-self: start;
    }
}

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

    .brand-text {
        font-size: 1.05rem;
    }

    .hero-carousel {
        min-height: 36rem;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 2.35rem;
    }

    .hero-controls {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-strip,
    .featured-grid,
    .wide-grid,
    .library-grid,
    .related-grid,
    .category-grid,
    .mini-poster-row,
    .footer-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

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

    .ranking-list-row {
        grid-template-columns: 3rem 1fr;
    }

    .rank-thumb {
        display: none;
    }

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