:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-soft: #111827;
    --panel: rgba(30, 41, 59, 0.58);
    --panel-strong: rgba(15, 23, 42, 0.86);
    --line: rgba(148, 163, 184, 0.2);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --blue: #2563eb;
    --cyan: #22d3ee;
    --shadow: 0 24px 70px rgba(2, 8, 23, 0.45);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 8%, rgba(37, 99, 235, 0.25), transparent 30%),
        radial-gradient(circle at 85% 18%, rgba(34, 211, 238, 0.18), transparent 28%),
        linear-gradient(180deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.top-nav {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.94), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(59, 130, 246, 0.22);
    box-shadow: 0 16px 50px rgba(2, 8, 23, 0.28);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);
    font-size: 15px;
}

.brand-name {
    font-size: clamp(19px, 2vw, 28px);
    background: linear-gradient(90deg, #60a5fa, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.search-form {
    flex: 1;
    display: flex;
    min-width: 180px;
    max-width: 560px;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
}

.search-form input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    padding: 10px 14px 10px 18px;
    background: transparent;
}

.search-form input::placeholder {
    color: #94a3b8;
}

.search-form button,
.primary-btn,
.ghost-btn,
.panel-more,
.rank-action,
.small-btn {
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(90deg, var(--blue), #06b6d4);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.26);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.search-form button {
    padding: 9px 18px;
    white-space: nowrap;
}

.primary-btn,
.ghost-btn,
.panel-more,
.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    font-weight: 700;
}

.small-btn {
    min-height: 38px;
    padding: 0 18px;
    font-size: 14px;
}

.ghost-btn {
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.32);
    box-shadow: none;
}

.primary-btn:hover,
.ghost-btn:hover,
.panel-more:hover,
.search-form button:hover,
.rank-action:hover,
.small-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 42px rgba(34, 211, 238, 0.25);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a,
.category-strip a,
.mobile-menu a {
    color: var(--muted);
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a {
    padding: 9px 12px;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.is-active,
.category-strip a:hover,
.mobile-menu a:hover {
    color: #67e8f9;
    background: rgba(37, 99, 235, 0.18);
}

.category-strip {
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.strip-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
}

.category-strip a {
    flex: 0 0 auto;
    padding: 7px 14px;
    font-size: 14px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.62);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #f8fafc;
    border-radius: 999px;
}

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

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

.mobile-menu a {
    padding: 11px 14px;
    background: rgba(15, 23, 42, 0.55);
}

.hero-carousel {
    position: relative;
    height: clamp(520px, 70vh, 650px);
    overflow: hidden;
    background: #020617;
}

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 25%, transparent 0, rgba(2, 8, 23, 0.18) 24%, rgba(2, 8, 23, 0.55) 56%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1180px;
}

.hero-content > * {
    max-width: 680px;
}

.hero-pill,
.section-kicker {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    color: white;
    background: rgba(37, 99, 235, 0.86);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
    font-size: 14px;
    font-weight: 700;
}

.section-kicker {
    color: #67e8f9;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.22);
    box-shadow: none;
}

.hero-content h1,
.sub-hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.58);
}

.hero-content p,
.sub-hero p {
    margin: 0;
    color: #e2e8f0;
    font-size: clamp(17px, 2.1vw, 21px);
    line-height: 1.8;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.genre-row span,
.detail-tags a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 13px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: width 0.28s ease, background 0.28s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: white;
}

.page-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0;
}

.intro-panel,
.category-overview-card,
.detail-card,
.side-card,
.ranking-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.intro-panel {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    margin-top: -54px;
    position: relative;
    z-index: 5;
}

.intro-copy h2,
.section-heading h2,
.panel-title h2,
.detail-card h1,
.side-card h2,
.category-overview-card h2 {
    margin: 12px 0 0;
    color: white;
    letter-spacing: -0.04em;
}

.intro-copy h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.intro-copy p,
.section-heading p,
.category-overview-card p,
.detail-card p,
.side-card p,
.movie-card p,
.rank-row p {
    color: var(--muted);
    line-height: 1.75;
}

.intro-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.section-heading {
    display: flex;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: clamp(28px, 3.8vw, 38px);
}

.heading-line {
    flex: 1;
    height: 1px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.5), transparent);
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: #020617;
    box-shadow: 0 18px 45px rgba(2, 8, 23, 0.28);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.category-tile span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 8, 23, 0.28) 42%, rgba(2, 8, 23, 0.95) 100%);
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 18px;
    right: 18px;
}

.category-tile strong {
    bottom: 48px;
    font-size: 21px;
}

.category-tile em {
    bottom: 16px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.45;
}

.category-tile:hover img,
.poster-link:hover img,
.overview-cover:hover img,
.rank-cover:hover img,
.horizontal-cover:hover img,
.poster-side:hover img {
    transform: scale(1.08);
}

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.54);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 16px 44px rgba(2, 8, 23, 0.25);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 22px 62px rgba(2, 8, 23, 0.4);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #020617;
}

.poster-link img,
.horizontal-cover img,
.rank-cover img,
.overview-cover img,
.poster-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.84));
}

.play-mark {
    position: absolute;
    inset: 0;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: auto;
    border-radius: 999px;
    color: white;
    background: rgba(37, 99, 235, 0.88);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: scale(1);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
}

.card-body {
    padding: 16px;
}

.card-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #67e8f9;
    font-size: 13px;
}

.card-meta-line span:not(:first-child)::before {
    content: "";
}

.movie-card h3,
.rank-row h3 {
    margin: 10px 0 8px;
    color: white;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card p {
    margin: 0 0 14px;
    font-size: 14px;
}

.tag-row span {
    padding: 4px 8px;
    font-size: 12px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 14px;
    padding: 10px;
}

.horizontal-cover {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    background: #020617;
}

.horizontal-body {
    min-width: 0;
    padding: 4px 4px 4px 0;
}

.horizontal-body h3 {
    margin-top: 8px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: start;
}

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

.ranking-panel {
    position: sticky;
    top: 120px;
    padding: 18px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-title span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.panel-title h2 {
    font-size: 24px;
}

.panel-more {
    width: 100%;
    margin-top: 14px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-chip {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.46);
    padding: 9px 14px;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: white;
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(37, 99, 235, 0.42);
}

.sub-hero {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(2, 8, 23, 0.95), rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.42)),
        var(--sub-hero-image, radial-gradient(circle at 70% 20%, rgba(37, 99, 235, 0.35), transparent 30%));
    background-size: cover;
    background-position: center;
}

.sub-hero > div {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.compact-hero {
    min-height: 320px;
}

.ranking-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.22), transparent 36%),
        linear-gradient(135deg, #0f172a, #1e3a8a 48%, #0f172a);
}

.category-overview {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
    padding: 20px;
}

.overview-cover {
    overflow: hidden;
    border-radius: 20px;
    min-height: 360px;
    background: #020617;
}

.overview-body {
    min-width: 0;
    align-self: center;
}

.overview-body h2 {
    font-size: clamp(28px, 3vw, 36px);
}

.overview-samples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.overview-samples .movie-card-horizontal {
    grid-template-columns: 92px minmax(0, 1fr);
}

.overview-samples .tag-row,
.overview-samples p {
    display: none;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 92px 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px 16px 12px 12px;
}

.rank-cover {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
}

.rank-index {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 900;
    color: white;
    background: rgba(37, 99, 235, 0.4);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.rank-content h3 {
    font-size: 20px;
}

.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 40px;
    border-radius: 999px;
    font-weight: 700;
}

.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--subtle);
    font-size: 14px;
}

.breadcrumb a {
    color: #67e8f9;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: black;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.movie-video,
.player-cover,
.player-cover img,
.player-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    z-index: 1;
    object-fit: contain;
    background: black;
}

.player-cover {
    z-index: 3;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.player-cover img {
    object-fit: cover;
}

.player-shade {
    background:
        radial-gradient(circle at 50% 42%, rgba(37, 99, 235, 0.2), transparent 26%),
        linear-gradient(180deg, rgba(2, 8, 23, 0.15), rgba(2, 8, 23, 0.78));
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    margin: auto;
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 24px 56px rgba(37, 99, 235, 0.35);
    font-size: 28px;
    transition: transform 0.28s ease;
}

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

.player-controls {
    position: absolute;
    z-index: 5;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.86));
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.player-shell:hover .player-controls,
.player-shell.is-playing .player-controls {
    opacity: 1;
    transform: translateY(0);
}

.player-controls button {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    color: white;
    background: rgba(15, 23, 42, 0.72);
    padding: 8px 14px;
}

.detail-card,
.side-card {
    margin-top: 22px;
    padding: 26px;
}

.detail-card h1 {
    font-size: clamp(30px, 4vw, 46px);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 18px;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #c4b5fd;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.22);
}

.one-line {
    color: #67e8f9;
    font-size: 19px;
    font-weight: 700;
}

.detail-card section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.detail-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-side {
    position: sticky;
    top: 112px;
}

.poster-side {
    display: grid;
    gap: 16px;
}

.poster-side img {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

.side-related .movie-card-horizontal {
    grid-template-columns: 96px minmax(0, 1fr);
}

.side-related .tag-row,
.side-related p {
    display: none;
}

.site-footer {
    color: var(--muted);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), #020617);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 30px;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 28px;
}

.footer-logo {
    color: white;
    font-size: 22px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 18px;
}

.site-footer p {
    color: var(--subtle);
    line-height: 1.75;
}

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

.site-footer a:hover {
    color: #67e8f9;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 30px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.back-top {
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(37, 99, 235, 0.58);
    padding: 8px 14px;
}

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

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

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

    .split-section,
    .detail-shell,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .ranking-panel,
    .detail-side {
        position: static;
    }
}

@media (max-width: 860px) {
    .nav-inner {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .search-form {
        order: 3;
        width: 100%;
        max-width: none;
        flex-basis: 100%;
    }

    .nav-links,
    .category-strip {
        display: none;
    }

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

    .hero-carousel {
        height: 560px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.92));
    }

    .hero-content {
        justify-content: end;
        padding-bottom: 100px;
    }

    .intro-panel,
    .category-overview-card {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .intro-panel {
        display: grid;
    }

    .category-grid,
    .movie-grid,
    .dense-grid,
    .horizontal-list,
    .overview-samples,
    .podium-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-overview-card {
        display: grid;
    }

    .overview-cover {
        min-height: 260px;
    }

    .rank-row {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .rank-index,
    .rank-action {
        display: none;
    }

    .rank-cover {
        grid-row: span 1;
    }
}

@media (max-width: 560px) {
    .page-section {
        padding: 42px 0;
    }

    .hero-content h1,
    .sub-hero h1 {
        font-size: 38px;
    }

    .hero-actions,
    .intro-actions,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .category-grid,
    .movie-grid,
    .dense-grid,
    .horizontal-list,
    .overview-samples,
    .podium-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .detail-card,
    .side-card,
    .intro-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .player-start {
        width: 68px;
        height: 68px;
    }

    .footer-inner {
        gap: 18px;
    }
}
