:root {
    color-scheme: dark;
    --bg: #030712;
    --bg-soft: #08111f;
    --panel: rgba(15, 23, 42, 0.76);
    --panel-strong: rgba(15, 23, 42, 0.95);
    --line: rgba(34, 211, 238, 0.22);
    --line-strong: rgba(34, 211, 238, 0.42);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-light: #cbd5e1;
    --cyan: #22d3ee;
    --pink: #f472b6;
    --yellow: #facc15;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 34rem),
        radial-gradient(circle at 82% 8%, rgba(244, 114, 182, 0.13), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #030712 48%, #070b16 100%);
    color: var(--text);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 70%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(3, 7, 18, 0.78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1280px, calc(100% - 32px));
    height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.03em;
    font-size: 1.26rem;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.82rem;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.38);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    color: var(--muted-light);
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.09);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-search {
    position: relative;
    width: 278px;
}

.nav-search input,
.mobile-search input,
.wide-search input,
.filter-search input {
    width: 100%;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--line);
    outline: none;
    border-radius: 999px;
    transition: border 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-search input {
    height: 42px;
    padding: 0 48px 0 18px;
}

.nav-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-search input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
    background: rgba(15, 23, 42, 0.94);
}

.nav-search button {
    position: absolute;
    right: 7px;
    top: 50%;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    color: var(--cyan);
    background: transparent;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--cyan);
    background: rgba(15, 23, 42, 0.7);
    cursor: pointer;
}

.mobile-panel {
    border-top: 1px solid var(--line);
    padding: 14px 20px 20px;
    background: rgba(3, 7, 18, 0.96);
}

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-search input {
    height: 42px;
    padding: 0 16px;
}

.mobile-search button,
.wide-search button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--cyan), var(--pink));
    cursor: pointer;
    padding: 0 20px;
}

.mobile-link {
    display: block;
    margin-top: 4px;
}

.hero-carousel {
    position: relative;
    min-height: clamp(640px, 78vh, 860px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

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

.hero-slide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
    padding: 88px max(24px, calc((100% - 1280px) / 2)) 80px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-slide::before {
    position: absolute;
    inset: 0;
    z-index: -3;
    content: "";
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    filter: blur(8px) saturate(1.15);
    transform: scale(1.08);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.97) 0%, rgba(3, 7, 18, 0.78) 46%, rgba(3, 7, 18, 0.38) 100%),
        radial-gradient(circle at 70% 30%, rgba(244, 114, 182, 0.22), transparent 24rem),
        radial-gradient(circle at 25% 60%, rgba(34, 211, 238, 0.18), transparent 25rem);
}

.hero-content {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.08);
    font-weight: 900;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.hero-content h1,
.inner-hero h1,
.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.hero-content p,
.inner-hero p,
.detail-line {
    color: #dbeafe;
    font-size: clamp(1rem, 1.8vw, 1.34rem);
    line-height: 1.78;
    margin: 0;
}

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

.hero-meta,
.detail-meta {
    margin: 28px 0 18px;
}

.hero-meta span,
.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-tags,
.detail-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.16);
}

.hero-tags span,
.detail-tags span {
    padding: 7px 12px;
    font-weight: 700;
}

.tag-row span {
    padding: 5px 9px;
    font-size: 0.78rem;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--pink));
    box-shadow: 0 14px 36px rgba(34, 211, 238, 0.24);
}

.ghost-button,
.section-link {
    color: #dbeafe;
    border: 1px solid var(--line-strong);
    background: rgba(15, 23, 42, 0.58);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 46px rgba(34, 211, 238, 0.22);
}

.hero-poster {
    position: relative;
    width: min(100%, 360px);
    aspect-ratio: 2 / 3;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transform: rotate(2deg);
}

.hero-poster::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to top, rgba(0, 0, 0, 0.38), transparent 52%);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.62);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    font-size: 2rem;
    line-height: 1;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: linear-gradient(90deg, var(--cyan), var(--pink));
}

.search-band,
.content-section,
.inner-hero,
.detail-shell,
.player-section,
.detail-content,
.footer-grid,
.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.search-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    margin-top: -48px;
    padding: 28px;
    position: relative;
    z-index: 8;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 17, 31, 0.88));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-band h2,
.section-heading h2,
.article-card h2,
.filter-heading span {
    margin: 8px 0 0;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1.15;
}

.wide-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.wide-search input {
    height: 54px;
    padding: 0 20px;
}

.content-section {
    padding: 64px 0 20px;
}

.dark-panel {
    width: min(1320px, calc(100% - 24px));
    margin-top: 52px;
    padding: 42px clamp(14px, 3vw, 30px);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(3, 7, 18, 0.72));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

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

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

.category-card {
    min-height: 198px;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    background:
        linear-gradient(to top, rgba(3, 7, 18, 0.96), rgba(3, 7, 18, 0.32)),
        var(--category-image) center / cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: 0 22px 65px rgba(34, 211, 238, 0.15);
}

.category-sheen {
    position: absolute;
    inset: -80% auto auto -40%;
    width: 80%;
    height: 160%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: rotate(22deg);
    transition: left 0.55s ease;
}

.category-card:hover .category-sheen {
    left: 100%;
}

.category-card strong {
    position: relative;
    font-size: 1.34rem;
    z-index: 1;
}

.category-card em,
.category-card small {
    position: relative;
    z-index: 1;
    color: #cbd5e1;
    font-style: normal;
    line-height: 1.55;
}

.category-card small {
    color: #93c5fd;
}

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

.large-categories .category-card {
    min-height: 280px;
}

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

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

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

.movie-card {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 16px 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(-6px);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 24px 66px rgba(34, 211, 238, 0.14);
}

.movie-card.is-hidden {
    display: none;
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
}

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

.movie-card:hover .card-cover img {
    transform: scale(1.06);
    filter: saturate(1.12) brightness(1.05);
}

.card-glow {
    position: absolute;
    inset: auto 0 0;
    height: 52%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
}

.card-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    border-radius: 50%;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--yellow), #fb7185);
    font-size: 0.92rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.card-body {
    padding: 16px;
}

.card-meta {
    color: var(--muted);
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.card-meta span:first-child {
    color: var(--yellow);
}

.card-body h3 {
    margin: 0 0 9px;
    font-size: 1.06rem;
    line-height: 1.35;
}

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

.card-body p {
    margin: 0 0 12px;
    color: var(--muted-light);
    font-size: 0.92rem;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.compact-card .card-body p {
    -webkit-line-clamp: 2;
}

.inner-hero {
    padding: 92px 0 28px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inner-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.inner-hero p {
    max-width: 860px;
    color: var(--muted-light);
}

.filter-panel {
    margin-bottom: 28px;
    padding: 22px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.filter-heading span {
    font-weight: 900;
}

.reset-button,
.filter-button {
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.reset-button {
    padding: 9px 14px;
}

.filter-button {
    padding: 8px 12px;
    margin: 6px 6px 0 0;
}

.filter-button:hover,
.filter-button.is-active,
.reset-button:hover {
    color: #ffffff;
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(34, 211, 238, 0.14);
    transform: translateY(-1px);
}

.filter-search {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    color: var(--muted-light);
    font-weight: 800;
}

.filter-search input {
    height: 48px;
    padding: 0 18px;
    border-radius: 16px;
}

.filter-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.filter-groups strong {
    display: block;
    color: var(--cyan);
    margin-bottom: 5px;
}

.empty-state {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    color: var(--muted-light);
    background: rgba(244, 114, 182, 0.09);
    border: 1px solid rgba(244, 114, 182, 0.22);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.detail-hero::before {
    position: absolute;
    inset: 0;
    z-index: -3;
    content: "";
    background-image: var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: blur(9px) saturate(1.12);
    transform: scale(1.08);
}

.detail-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.98), rgba(3, 7, 18, 0.76), rgba(3, 7, 18, 0.44)),
        radial-gradient(circle at 78% 24%, rgba(244, 114, 182, 0.22), transparent 28rem);
}

.detail-shell {
    padding: 102px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--muted-light);
    margin-bottom: 28px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
}

.detail-poster {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 38px 90px rgba(0, 0, 0, 0.58);
}

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

.detail-info h1 {
    max-width: 900px;
}

.detail-line {
    max-width: 900px;
}

.player-section {
    padding: 62px 0 24px;
}

.player-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 32px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(to top, rgba(3, 7, 18, 0.88), rgba(3, 7, 18, 0.32)),
        radial-gradient(circle at center, rgba(34, 211, 238, 0.24), transparent 18rem);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-wrap.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-ring {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    box-shadow: 0 0 0 12px rgba(34, 211, 238, 0.12), 0 26px 60px rgba(0, 0, 0, 0.42);
    font-size: 2rem;
}

.player-overlay strong {
    font-size: clamp(1.5rem, 4vw, 2.6rem);
}

.player-overlay small {
    color: #bfdbfe;
    font-size: 1rem;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.article-card {
    padding: 28px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.article-card p {
    margin: 16px 0 0;
    color: var(--muted-light);
    line-height: 1.92;
    font-size: 1.02rem;
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid var(--line);
    background: rgba(3, 7, 18, 0.74);
}

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

.footer-grid p,
.footer-bottom {
    color: var(--muted);
    line-height: 1.75;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--cyan);
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: var(--muted-light);
}

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

.footer-bottom {
    padding: 18px 0 26px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

@media (max-width: 1180px) {
    .movie-grid,
    .search-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 86px 20px 86px;
    }

    .hero-poster {
        display: none;
    }

    .hero-control {
        display: none;
    }

    .search-band {
        grid-template-columns: 1fr;
        margin-top: -28px;
    }

    .wide-search {
        grid-template-columns: 1fr;
    }

    .wide-search button {
        min-height: 48px;
    }

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

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

    .filter-groups,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .nav-shell {
        width: min(100% - 24px, 1280px);
        height: 64px;
    }

    .brand,
    .footer-brand {
        font-size: 1.05rem;
    }

    .hero-carousel {
        min-height: 660px;
    }

    .hero-content h1 {
        font-size: clamp(2.2rem, 12vw, 3.6rem);
    }

    .hero-meta span,
    .detail-meta span {
        font-size: 0.82rem;
    }

    .hero-actions,
    .detail-actions {
        flex-direction: column;
    }

    .primary-button,
    .ghost-button,
    .section-link {
        width: 100%;
    }

    .section-heading,
    .filter-heading {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .card-body {
        padding: 12px;
    }

    .card-body p,
    .tag-row {
        display: none;
    }

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

    .detail-poster {
        width: min(240px, 70vw);
    }

    .detail-info h1,
    .inner-hero h1 {
        font-size: clamp(2.1rem, 12vw, 3.6rem);
    }

    .player-wrap {
        border-radius: 20px;
    }

    .article-card {
        padding: 22px;
    }
}
