:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.74);
    --bg-card-solid: #111827;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.22);
    --blue: #2563eb;
    --blue-light: #60a5fa;
    --cyan: #22d3ee;
    --yellow: #facc15;
    --green: #22c55e;
    --purple: #a855f7;
    --radius: 1rem;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.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;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.site-nav {
    width: min(1200px, calc(100% - 2rem));
    height: 4rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-logo span:last-child {
    font-size: 1.22rem;
    background: linear-gradient(90deg, var(--blue-light), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.18);
    color: var(--blue-light);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.35);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link,
.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    color: #cbd5e1;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-dropdown:hover > a,
.nav-link.active,
.nav-dropdown > a.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.9);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 12rem;
    padding: 0.45rem;
    border-radius: 0.85rem;
    background: #0f172a;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.5rem);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

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

.nav-dropdown-menu a:hover {
    background: rgba(37, 99, 235, 0.22);
    color: #ffffff;
}

.mobile-menu-button {
    display: none;
    width: 2.65rem;
    height: 2.65rem;
    border: 0;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 1.2rem;
    height: 2px;
    margin: 0.27rem auto;
    background: currentColor;
}

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

.mobile-nav.open {
    display: block;
}

.mobile-nav-link,
.mobile-nav-sub-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: #cbd5e1;
}

.mobile-nav-sub-link {
    padding-left: 2rem;
    color: #94a3b8;
}

.mobile-nav-link:hover,
.mobile-nav-sub-link:hover {
    background: rgba(37, 99, 235, 0.18);
    color: #ffffff;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
    background:
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.8) 24%, rgba(2, 6, 23, 0.16) 100%),
        var(--hero-image),
        linear-gradient(135deg, #0f172a, #172554);
    background-size: cover;
    background-position: center;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 70%, rgba(37, 99, 235, 0.35), transparent 22rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.36), rgba(2, 6, 23, 0.12));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding-bottom: clamp(6rem, 12vh, 8rem);
    max-width: 1200px;
}

.hero-content > * {
    max-width: 42rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    color: var(--yellow);
    font-weight: 800;
}

.hero-kicker::before {
    content: "★";
}

.hero-content h1,
.page-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.25rem, 5vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 15px 45px rgba(0, 0, 0, 0.55);
}

.hero-content p,
.page-hero p {
    margin: 0 0 1.5rem;
    color: #dbeafe;
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 1.8;
}

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

.hero-meta span,
.detail-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.86rem;
}

.hero-actions,
.prev-next-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.primary-button,
.ghost-button,
.text-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border: 0;
    border-radius: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
    padding: 0.75rem 1.25rem;
    background: var(--blue);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: #1d4ed8;
    box-shadow: 0 22px 50px rgba(37, 99, 235, 0.42);
}

.ghost-button {
    padding: 0.75rem 1.15rem;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.ghost-button:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.92);
}

.text-button,
.section-more {
    min-height: auto;
    color: var(--blue-light);
    font-weight: 800;
}

.text-button:hover,
.section-more:hover {
    color: var(--cyan);
}

.full-button {
    width: 100%;
}

.hero-dots {
    position: absolute;
    right: max(1rem, calc((100vw - 1200px) / 2));
    bottom: 2.2rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 0.8rem;
    height: 0.8rem;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.65);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 2rem;
    background: var(--blue);
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    z-index: 4;
    width: min(46rem, calc(100% - 2rem));
    display: flex;
    gap: 0.5rem;
    transform: translateX(-50%);
    padding: 0.45rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.28);
    backdrop-filter: blur(14px);
}

.hero-search input,
.search-panel input,
.list-toolbar input,
.list-toolbar select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    outline: none;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.85);
}

.hero-search input {
    padding: 0.8rem 1.1rem;
    border: 0;
    background: transparent;
}

.hero-search button,
.search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.4rem;
    color: #ffffff;
    background: var(--blue);
    cursor: pointer;
    font-weight: 800;
}

.content-section {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.panel-section,
.editor-section {
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.22), rgba(8, 47, 73, 0.18));
    border: 1px solid var(--line);
}

.editor-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.7));
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0.45rem 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.poster-grid,
.feature-grid,
.wide-grid,
.category-grid,
.overview-grid {
    display: grid;
    gap: 1.25rem;
}

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

.poster-grid-eight {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 1rem;
}

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

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

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

.movie-card,
.ranking-item {
    min-width: 0;
}

.poster-card,
.wide-card-link,
.ranking-link,
.related-card,
.overview-card,
.category-tile {
    display: block;
    height: 100%;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.14);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.poster-card:hover,
.wide-card-link:hover,
.ranking-link:hover,
.related-card:hover,
.overview-card:hover,
.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(30, 41, 59, 0.82);
    box-shadow: var(--shadow);
}

.poster-frame {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 40% 20%, rgba(96, 165, 250, 0.25), transparent 40%),
        linear-gradient(135deg, #111827, #020617);
}

.poster-card .poster-frame {
    aspect-ratio: 2 / 3;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.poster-frame img.image-missing {
    opacity: 0;
}

.poster-card:hover img,
.wide-card-link:hover img,
.ranking-link:hover img,
.related-card:hover img {
    transform: scale(1.08);
}

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

.poster-badge {
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.25rem 0.55rem;
    border-radius: 0.45rem;
    background: var(--blue);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
}

.poster-play {
    left: 50%;
    top: 50%;
    display: flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.85);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: all 0.25s ease;
}

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

.poster-card-body,
.wide-card-body,
.ranking-body,
.overview-card-body {
    padding: 0.9rem;
}

.poster-card-body h3,
.wide-card-body h3,
.ranking-body h2,
.related-card h3,
.overview-card-body h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.45;
}

.poster-card-body p,
.wide-card-body p,
.ranking-body p,
.overview-card-body p {
    margin: 0.55rem 0 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.card-meta {
    gap: 0.35rem;
}

.card-meta span {
    min-height: 1.45rem;
    padding: 0.15rem 0.45rem;
    font-size: 0.75rem;
}

.wide-card-link {
    display: grid;
    grid-template-columns: 9rem 1fr;
}

.wide-poster {
    min-height: 12rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.82);
    font-size: 0.78rem;
}

.tag-link:hover {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.75);
}

.category-tile {
    min-height: 13rem;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.18)),
        var(--tile-image),
        linear-gradient(135deg, #0f172a, #172554);
    background-size: cover;
    background-position: center;
}

.category-tile span,
.overview-card-cover span {
    width: max-content;
    margin-bottom: 0.65rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.9);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.category-tile h3 {
    margin: 0;
    font-size: 1.35rem;
}

.category-tile p {
    margin: 0.45rem 0 0;
    color: #cbd5e1;
    line-height: 1.55;
    font-size: 0.9rem;
}

.page-hero {
    min-height: 23rem;
    display: flex;
    align-items: center;
    padding: 5rem 0 4rem;
    background:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.34), transparent 24rem),
        linear-gradient(135deg, rgba(23, 37, 84, 0.95), rgba(8, 47, 73, 0.75), rgba(2, 6, 23, 0.96));
    border-bottom: 1px solid var(--line);
}

.page-hero > div {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

.compact-hero {
    min-height: 20rem;
}

.list-hero {
    min-height: 21rem;
}

.search-hero {
    min-height: 25rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-size: 0.92rem;
}

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

.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid var(--line);
}

.list-toolbar label {
    display: grid;
    gap: 0.35rem;
    flex: 1 1 15rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.list-toolbar input,
.list-toolbar select {
    min-height: 2.65rem;
    padding: 0.6rem 0.85rem;
    border-radius: 0.75rem;
}

.toolbar-count {
    margin: 0;
    color: var(--muted);
}

.overview-card {
    display: grid;
    grid-template-columns: 14rem 1fr;
}

.overview-card-cover {
    min-height: 15rem;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    border-radius: 0;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.08)),
        var(--tile-image),
        linear-gradient(135deg, #0f172a, #172554);
    background-size: cover;
    background-position: center;
}

.overview-card-body {
    padding: 1.25rem;
}

.overview-card-body ul {
    margin: 1rem 0;
    padding: 0 0 0 1.15rem;
    color: #cbd5e1;
}

.overview-card-body li + li {
    margin-top: 0.4rem;
}

.overview-card-body a:hover {
    color: var(--blue-light);
}

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

.ranking-link {
    display: grid;
    grid-template-columns: 4rem 7rem 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
}

.rank-number {
    display: flex;
    width: 3.2rem;
    height: 3.2rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--yellow), #f97316);
    color: #1e293b;
    font-weight: 900;
    box-shadow: 0 14px 35px rgba(250, 204, 21, 0.22);
}

.ranking-poster {
    aspect-ratio: 16 / 10;
    border-radius: 0.75rem;
}

.search-panel {
    display: flex;
    gap: 0.6rem;
    width: min(46rem, 100%);
    padding: 0.5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.search-panel input {
    min-height: 3rem;
    padding: 0.7rem 1rem;
    border: 0;
    background: transparent;
}

.quick-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.quick-keywords button {
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.7);
    cursor: pointer;
}

.quick-keywords button:hover {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.78);
}

.search-status {
    margin-bottom: 1rem;
    color: var(--muted);
}

.detail-layout {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.82fr);
    gap: 1.5rem;
}

.detail-main,
.detail-sidebar {
    display: grid;
    gap: 1.25rem;
    align-content: start;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #000000;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-card video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(0, 0, 0, 0.34);
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

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

.player-overlay span {
    display: flex;
    width: 5rem;
    height: 5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding-left: 0.25rem;
    color: #ffffff;
    background: var(--blue);
    font-size: 2rem;
    box-shadow: 0 22px 60px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease;
}

.player-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.player-overlay:hover span {
    transform: scale(1.08);
}

.detail-card,
.sidebar-card {
    border-radius: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.detail-card h1,
.detail-card h2,
.sidebar-card h2 {
    margin: 0 0 0.9rem;
}

.detail-card h1 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.detail-card p {
    margin: 0;
    color: #d1d5db;
    line-height: 1.9;
    white-space: pre-wrap;
}

.lead-text {
    color: #ffffff !important;
    font-size: 1.08rem;
    font-weight: 700;
}

.review-card {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.24), rgba(8, 47, 73, 0.2));
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.detail-meta,
.detail-tags {
    margin-top: 1rem;
}

.detail-sidebar {
    position: sticky;
    top: 5.25rem;
}

.cover-card .poster-frame {
    aspect-ratio: 2 / 3;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

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

.related-card {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.55rem;
}

.related-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 0.6rem;
}

.related-card h3 {
    font-size: 0.95rem;
}

.related-card p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.nav-card .prev-next-row {
    margin-top: 0;
}

.site-footer {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), #000000);
    border-top: 1px solid var(--line);
    color: #cbd5e1;
}

.footer-grid {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
    color: #ffffff;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.7;
}

.site-footer h3 {
    margin: 0 0 1rem;
    color: #ffffff;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 0.55rem;
}

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

.footer-bottom {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    text-align: center;
}

.footer-count {
    font-weight: 800;
    color: #dbeafe !important;
}

@media (max-width: 1100px) {
    .poster-grid-six,
    .poster-grid-eight {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .detail-sidebar {
        position: static;
        grid-template-columns: 20rem 1fr;
    }
}

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

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

    .hero-slider {
        min-height: 78vh;
    }

    .hero-content {
        padding-bottom: 9rem;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 1.1rem;
    }

    .hero-search button,
    .search-panel button {
        width: 100%;
    }

    .hero-dots {
        left: 1rem;
        right: auto;
        bottom: 1rem;
    }

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

    .poster-grid-six,
    .poster-grid-eight,
    .feature-grid,
    .wide-grid,
    .category-grid,
    .overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wide-card-link,
    .ranking-link,
    .overview-card,
    .related-card {
        grid-template-columns: 1fr;
    }

    .wide-poster,
    .ranking-poster,
    .related-thumb {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .ranking-link {
        align-items: start;
    }

    .rank-number {
        width: 3rem;
        height: 3rem;
    }

    .search-panel {
        flex-direction: column;
        border-radius: 1.1rem;
    }

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

    .detail-title-row {
        flex-direction: column;
    }

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

@media (max-width: 460px) {
    .poster-grid-six,
    .poster-grid-eight,
    .feature-grid,
    .wide-grid,
    .category-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .content-section,
    .detail-layout,
    .site-nav,
    .mobile-nav,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 1rem, 1200px);
    }

    .page-hero {
        min-height: 18rem;
        padding: 3rem 0;
    }
}
