:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.76);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(168, 85, 247, 0.24);
    --line-strong: rgba(245, 158, 11, 0.42);
    --text: #f8fafc;
    --muted: #c4b5fd;
    --dim: rgba(226, 232, 240, 0.72);
    --amber: #f59e0b;
    --pink: #ec4899;
    --purple: #a855f7;
    --blue: #38bdf8;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --max: 1200px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(168, 85, 247, 0.24), transparent 34rem),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    color: var(--text);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.header-inner {
    width: min(var(--max), calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber), var(--pink));
    color: #fff;
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.38);
    transform: translateZ(0);
}

.brand-title {
    display: block;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #fbbf24, #fb7185, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    display: block;
    margin-top: 1px;
    font-size: 12px;
    color: rgba(216, 180, 254, 0.82);
}

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

.nav-link,
.mobile-nav-link {
    border-radius: 999px;
    color: rgba(237, 233, 254, 0.84);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 15px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #fff;
    background: rgba(168, 85, 247, 0.18);
}

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

.header-search {
    width: min(320px, 28vw);
}

.header-search input,
.mobile-search input,
.local-search input,
.filter-row select {
    width: 100%;
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.46);
    color: var(--text);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input,
.mobile-search input {
    padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.local-search input:focus,
.filter-row select:focus {
    border-color: rgba(245, 158, 11, 0.66);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
    background: rgba(15, 23, 42, 0.8);
}

.header-search button,
.mobile-search button,
.local-search button,
.primary-btn,
.ghost-btn,
.section-more,
.rank-action,
.compact-btn {
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

.header-search button,
.mobile-search button,
.local-search button,
.primary-btn {
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, var(--amber), var(--pink));
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.local-search button:hover,
.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.3);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    padding: 9px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: #fff;
}

.mobile-panel {
    display: none;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

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

.mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-nav-link {
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(168, 85, 247, 0.16);
}

.hero-carousel {
    position: relative;
    min-height: clamp(560px, 78vh, 820px);
    overflow: hidden;
    isolation: isolate;
}

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

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.06) contrast(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.36) 78%, rgba(2, 6, 23, 0.84) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.22) 48%, rgba(2, 6, 23, 0.78) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
}

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

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker span,
.section-kicker {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.26);
    background: rgba(245, 158, 11, 0.12);
}

.hero-copy h1 {
    margin: 24px 0 18px;
    font-size: clamp(40px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-copy p {
    max-width: 650px;
    margin: 0 0 22px;
    color: rgba(237, 233, 254, 0.92);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.card-meta span {
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.56);
    color: rgba(237, 233, 254, 0.86);
}

.hero-tags span,
.detail-meta span {
    padding: 8px 12px;
}

.tag-row span,
.card-meta span {
    padding: 5px 9px;
    font-size: 12px;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
}

.ghost-btn,
.section-more,
.rank-action {
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #e9d5ff;
    background: rgba(15, 23, 42, 0.58);
    transition: border 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ghost-btn:hover,
.section-more:hover,
.rank-action:hover {
    transform: translateY(-1px);
    color: #fff;
    border-color: rgba(245, 158, 11, 0.54);
    background: rgba(245, 158, 11, 0.15);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 40px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border: 1px solid rgba(168, 85, 247, 0.28);
    background: rgba(15, 23, 42, 0.68);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
}

.hero-dot.active {
    width: 32px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber), var(--pink));
}

.hero-rank-card {
    position: absolute;
    right: max(24px, calc((100% - var(--max)) / 2));
    bottom: 110px;
    z-index: 6;
    width: min(340px, calc(100% - 48px));
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.58);
    box-shadow: var(--shadow);
    padding: 22px;
    backdrop-filter: blur(16px);
}

.rank-label {
    color: #fbbf24;
    font-weight: 800;
    font-size: 13px;
}

.hero-rank-card h2 {
    margin: 8px 0 16px;
    font-size: 24px;
}

.hero-rank-list {
    display: grid;
    gap: 10px;
}

.hero-rank-list a {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.4);
    color: rgba(237, 233, 254, 0.9);
}

.hero-rank-list span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--amber), var(--pink));
    font-weight: 900;
}

.rank-more {
    display: inline-flex;
    margin-top: 18px;
    color: #fbbf24;
    font-weight: 800;
}

.content-section,
.quick-categories,
.page-main,
.inner-section {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.content-section,
.quick-categories {
    padding: 72px 0 0;
}

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

.center-head {
    display: grid;
    place-items: center;
    text-align: center;
}

.section-head h2,
.page-hero h1,
.detail-info-card h1 {
    margin: 10px 0 10px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-head p,
.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--dim);
    line-height: 1.8;
}

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

.category-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.4s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.92));
}

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

.category-card strong {
    font-size: 22px;
    margin-bottom: 9px;
}

.category-card p {
    margin: 0;
    color: rgba(237, 233, 254, 0.84);
    line-height: 1.65;
    font-size: 14px;
}

.category-enter {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.74));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
    transition: transform 0.24s ease, border 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(2, 6, 23, 0.86));
}

.poster-play {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), var(--pink));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

.card-body {
    padding: 18px;
}

.card-meta {
    margin-bottom: 12px;
}

.movie-card h3,
.compact-card h3,
.rank-info h2 {
    margin: 0 0 10px;
    line-height: 1.3;
}

.movie-card h3 {
    font-size: 19px;
}

.movie-card p,
.compact-card p,
.rank-info p {
    margin: 0 0 14px;
    color: rgba(226, 232, 240, 0.75);
    line-height: 1.7;
}

.movie-card p {
    display: -webkit-box;
    min-height: 72px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 340px);
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}

.horizontal-scroll .movie-card {
    scroll-snap-align: start;
}

.page-main {
    padding-top: 42px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 10px);
    padding: clamp(32px, 7vw, 76px);
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(135deg, rgba(88, 28, 135, 0.86), rgba(15, 23, 42, 0.76)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 34rem);
    box-shadow: var(--shadow);
}

.category-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05) contrast(1.08);
}

.category-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.6), rgba(2, 6, 23, 0.88));
}

.small-hero {
    min-height: 300px;
}

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

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

.local-search input {
    padding: 13px 16px;
}

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

.filter-row label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.filter-row select {
    border-radius: 14px;
    padding: 12px 14px;
}

.empty-state {
    padding: 64px 24px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.66);
}

.rank-list {
    display: grid;
    gap: 16px;
}

.rank-item {
    display: grid;
    grid-template-columns: 56px 150px 1fr auto;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.7);
    padding: 16px;
}

.rank-num {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--amber), var(--pink));
    font-weight: 900;
}

.rank-poster {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 22px;
    color: rgba(216, 180, 254, 0.84);
}

.breadcrumb a:hover {
    color: #fbbf24;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.detail-primary {
    min-width: 0;
}

.player-card,
.detail-info-card,
.side-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
    overflow: hidden;
}

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

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    gap: 10px;
    min-width: 150px;
    min-height: 150px;
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 50%;
    color: #fff;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.9), rgba(236, 72, 153, 0.76));
    box-shadow: 0 24px 60px rgba(236, 72, 153, 0.28);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-start span {
    font-size: 38px;
}

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

.player-shell.playing .player-start {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.94);
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 4;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.74);
    color: rgba(237, 233, 254, 0.9);
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.detail-info-card {
    margin-top: 24px;
    padding: clamp(22px, 4vw, 34px);
}

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

.detail-info-card h1 {
    margin-bottom: 0;
}

.detail-meta {
    margin: 20px 0;
}

.lead-text {
    font-size: 19px;
    line-height: 1.8;
    color: #ede9fe;
}

.detail-tags {
    margin: 16px 0 28px;
}

.article-block {
    border-top: 1px solid rgba(168, 85, 247, 0.18);
    padding-top: 24px;
    margin-top: 24px;
}

.article-block h2,
.side-card h2 {
    margin: 0 0 14px;
}

.article-block p {
    margin: 0;
    color: rgba(226, 232, 240, 0.82);
    line-height: 1.92;
    font-size: 17px;
}

.detail-sidebar {
    display: grid;
    gap: 18px;
    align-content: start;
}

.side-card {
    padding: 18px;
}

.poster-side img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 14px;
}

.poster-side strong,
.poster-side span {
    display: block;
}

.poster-side span {
    margin-top: 6px;
    color: var(--muted);
}

.info-side dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.info-side dt {
    color: var(--muted);
}

.info-side dd {
    margin: 0;
    color: rgba(248, 250, 252, 0.9);
}

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

.side-list a {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.35);
}

.side-list img {
    width: 78px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
}

.related-section {
    padding-bottom: 72px;
}

.compact-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.68);
    padding: 12px;
}

.compact-poster {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
}

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

.compact-card span {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.78);
}

.footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 34px;
}

.footer-brand p {
    max-width: 520px;
    color: rgba(226, 232, 240, 0.72);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-links h3 {
    margin: 0 0 8px;
}

.footer-links a {
    color: rgba(216, 180, 254, 0.78);
}

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

.footer-bottom {
    border-top: 1px solid rgba(168, 85, 247, 0.16);
    padding: 18px;
    text-align: center;
    color: rgba(226, 232, 240, 0.58);
}

[hidden] {
    display: none !important;
}

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

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

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

    .hero-rank-card {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(var(--max), calc(100% - 32px));
        margin: -110px auto 0;
    }

    .hero-controls {
        bottom: 146px;
    }

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

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

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-inner {
        min-height: 62px;
    }

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

    .hero-content {
        align-items: flex-start;
        padding-top: 72px;
    }

    .hero-copy h1 {
        font-size: clamp(34px, 12vw, 58px);
    }

    .hero-controls {
        bottom: 170px;
    }

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

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

    .section-head,
    .detail-title-row {
        display: grid;
        align-items: start;
    }

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

    .rank-item {
        grid-template-columns: 44px 100px 1fr;
    }

    .rank-action {
        grid-column: 2 / -1;
        justify-self: start;
    }

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

@media (max-width: 560px) {
    .content-section,
    .quick-categories {
        padding-top: 48px;
    }

    .brand-subtitle {
        display: none;
    }

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

    .hero-tags span:nth-child(n+3) {
        display: none;
    }

    .hero-rank-card {
        margin-top: -130px;
    }

    .category-grid,
    .movie-grid,
    .filter-row,
    .detail-sidebar {
        grid-template-columns: 1fr;
    }

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

    .player-start {
        min-width: 118px;
        min-height: 118px;
    }

    .rank-item {
        grid-template-columns: 40px 1fr;
    }

    .rank-poster {
        grid-column: 1 / -1;
    }

    .rank-info,
    .rank-action {
        grid-column: 1 / -1;
    }
}
