:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-soft: #1e293b;
    --bg-card: #273449;
    --bg-panel: #111827;
    --cyan: #06b6d4;
    --cyan-soft: #22d3ee;
    --blue: #3b82f6;
    --orange: #f97316;
    --red: #ef4444;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
    color: var(--text);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.96), rgba(51, 65, 85, 0.96), rgba(30, 41, 59, 0.96));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    box-shadow: 0 0 22px rgba(6, 182, 212, 0.42);
    transform: translateZ(0);
}

.brand:hover .brand-mark {
    transform: scale(1.06);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-subtitle {
    margin-top: 5px;
    font-size: 12px;
    color: var(--cyan-soft);
}

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

.desktop-nav a,
.mobile-panel a {
    color: #e2e8f0;
    font-weight: 650;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel a:hover {
    color: var(--cyan-soft);
}

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

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select,
.hero-search input {
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    background: rgba(15, 23, 42, 0.72);
    color: var(--text);
    border-radius: 999px;
    padding: 11px 16px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
    width: 200px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.hero-search input:focus {
    border-color: rgba(34, 211, 238, 0.72);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.header-search button,
.mobile-search button,
.hero-search button,
.filter-panel button,
.primary-action,
.ghost-action,
.home-intro a,
.ranking-copy a,
.category-panel-head a {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 750;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.18);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.filter-panel button:hover,
.primary-action:hover,
.ghost-action:hover,
.home-intro a:hover,
.ranking-copy a:hover,
.category-panel-head a:hover {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.08);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--line);
    color: white;
    background: rgba(15, 23, 42, 0.82);
    border-radius: 12px;
    padding: 8px 12px;
}

.mobile-panel {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 20px;
}

.mobile-panel a {
    display: block;
    padding: 12px 0;
}

.mobile-search {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.mobile-search input {
    flex: 1;
}

.hero-carousel {
    position: relative;
    height: min(74vh, 720px);
    min-height: 620px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

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

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(6, 182, 212, 0.25), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0.1)),
        linear-gradient(0deg, #0f172a, transparent 45%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    top: 50%;
    transform: translateY(-46%);
    width: min(680px, calc(100% - 48px));
}

.hero-badge,
.pill,
.section-heading span,
.ranking-copy span,
.page-hero span,
.home-intro span,
.category-panel-head span {
    display: inline-block;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.03em;
}

.hero-content h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 640px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-meta span,
.hero-meta a,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

.ghost-action {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hero-prev,
.hero-next {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    color: white;
    font-size: 28px;
    line-height: 1;
    backdrop-filter: blur(12px);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    padding: 0;
}

.hero-dot.is-active {
    width: 28px;
    background: var(--cyan-soft);
}

.hero-search {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 28px;
    z-index: 5;
    display: flex;
    gap: 10px;
    width: min(520px, 46vw);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(16px);
}

.hero-search input {
    flex: 1;
    background: rgba(2, 6, 23, 0.58);
}

.home-intro {
    max-width: 1280px;
    margin: -36px auto 0;
    position: relative;
    z-index: 8;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.95));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.home-intro h2 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
}

.home-intro p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-block,
.category-panels,
.ranking-page,
.filter-shell,
.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.section-muted {
    max-width: none;
    padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    background: rgba(51, 65, 85, 0.42);
}

.section-heading {
    text-align: center;
    margin-bottom: 42px;
}

.section-heading h2 {
    margin: 16px 0 10px;
    font-size: clamp(30px, 4vw, 44px);
}

.section-heading p {
    margin: 0 auto;
    max-width: 680px;
    color: var(--muted);
    line-height: 1.75;
}

.section-heading i {
    display: block;
    width: 82px;
    height: 4px;
    border-radius: 999px;
    margin: 20px auto 0;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

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

.poster-card {
    min-width: 0;
}

.poster-card a,
.wide-link,
.compact-card,
.rank-card a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.poster-card a:hover,
.wide-link:hover,
.compact-card:hover,
.rank-card a:hover {
    transform: translateY(-7px);
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 28px 60px rgba(6, 182, 212, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.poster-wrap img,
.compact-card img,
.wide-poster img,
.rank-card img,
.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.poster-card a:hover img,
.compact-card:hover img,
.wide-link:hover img,
.rank-card a:hover img,
.category-tile:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12) 65%);
}

.poster-play,
.play-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%) scale(0.85);
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-year {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 750;
    color: white;
    background: var(--cyan);
}

.poster-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
}

.poster-body strong {
    min-height: 2.8em;
    color: white;
    font-size: 15px;
    line-height: 1.4;
}

.poster-body span {
    display: -webkit-box;
    min-height: 3.2em;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.poster-body em,
.wide-info .meta-line,
.compact-card em,
.rank-card em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
}

.wide-list {
    display: grid;
    gap: 18px;
}

.movie-card-wide .wide-link {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    min-height: 210px;
}

.wide-poster {
    position: relative;
    overflow: hidden;
}

.wide-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 13px;
    padding: 26px;
}

.wide-info strong {
    font-size: clamp(22px, 3vw, 30px);
}

.wide-desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.75;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--line);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.08));
}

.category-tile span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-tile strong {
    font-size: 20px;
}

.category-tile em {
    color: #cbd5e1;
    font-size: 13px;
    font-style: normal;
}

.ranking-band {
    max-width: 1280px;
    margin: 30px auto 86px;
    padding: 28px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(239, 68, 68, 0.08), rgba(15, 23, 42, 0.92));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.ranking-copy h2 {
    margin: 16px 0 10px;
    font-size: clamp(30px, 4vw, 46px);
}

.ranking-copy p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.ranking-copy span {
    background: linear-gradient(135deg, var(--orange), var(--red));
}

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

.ranking-list a {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 13px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ranking-list span,
.rank-number {
    color: var(--cyan-soft);
    font-weight: 900;
    letter-spacing: 0.04em;
}

.ranking-list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-list em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.22), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(59, 130, 246, 0.18), transparent 30%),
        linear-gradient(135deg, #0f172a, #1e293b 56%, #111827);
}

.small-hero {
    min-height: 330px;
    display: flex;
    align-items: center;
    padding: 72px 24px;
}

.small-hero > div {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.page-hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(40px, 6vw, 66px);
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.filter-shell {
    padding-top: 34px;
    padding-bottom: 0;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 220px 220px auto;
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.filter-panel label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border-radius: 14px;
}

.filter-panel button {
    align-self: end;
    min-height: 45px;
}

.library-block {
    padding-top: 52px;
}

.empty-state {
    margin: 28px 0 0;
    padding: 24px;
    text-align: center;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.56);
}

.category-panels {
    display: grid;
    gap: 26px;
}

.category-panel {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid var(--line);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.18);
}

.category-panel-head h2 {
    margin: 16px 0 10px;
    font-size: 30px;
}

.category-panel-head p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.75;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
}

.compact-card img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
}

.compact-card span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.compact-card strong {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.compact-card em {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-page ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.ranking-row a {
    display: grid;
    grid-template-columns: 70px 82px 1fr minmax(180px, auto);
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row a:hover {
    transform: translateX(6px);
    border-color: rgba(34, 211, 238, 0.56);
}

.ranking-row img {
    width: 82px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.rank-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rank-main strong {
    font-size: 19px;
}

.rank-main em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-meta {
    color: #cbd5e1;
    font-size: 14px;
    text-align: right;
}

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--muted);
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
    padding-top: 28px;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    color: white;
    background: #000;
    overflow: hidden;
}

.player-cover[hidden] {
    display: none;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.72);
}

.player-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 44%, rgba(34, 211, 238, 0.2), transparent 24%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
}

.player-button {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 82px;
    height: 82px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    font-size: 32px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 42px rgba(6, 182, 212, 0.55);
}

.player-cover strong {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 24px;
    text-align: left;
    font-size: clamp(22px, 4vw, 38px);
}

.detail-card,
.side-card {
    padding: 26px;
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid var(--line);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.detail-card h1 {
    margin: 16px 0;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.15;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.detail-card p {
    color: #d1d5db;
    line-height: 1.9;
    margin: 0 0 14px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
}

.tag-cloud a {
    border-radius: 999px;
    padding: 7px 12px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 22px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px 14px;
    margin: 0;
}

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

.side-card dd {
    margin: 0;
    color: #e5e7eb;
}

.side-card dd a {
    color: var(--cyan-soft);
}

.compact-grid-single {
    grid-template-columns: 1fr;
}

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

.footer-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 38px;
}

.footer-brand p {
    max-width: 420px;
    color: var(--muted);
    line-height: 1.75;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-links h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

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

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

.footer-bottom {
    padding: 18px 24px;
    text-align: center;
    color: #64748b;
    border-top: 1px solid var(--line);
}

[hidden] {
    display: none !important;
}

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

    .nav-toggle {
        display: inline-flex;
    }

    .hero-search {
        left: 24px;
        right: 24px;
        width: auto;
    }

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

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

    .ranking-band,
    .detail-layout,
    .category-panel {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }

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

@media (max-width: 760px) {
    .nav-shell {
        padding: 14px 16px;
    }

    .brand-title {
        font-size: 19px;
    }

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

    .hero-content {
        top: 42%;
        left: 18px;
        width: calc(100% - 36px);
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-controls {
        bottom: 96px;
    }

    .hero-search {
        bottom: 22px;
        left: 16px;
        right: 16px;
        border-radius: 20px;
        flex-direction: column;
    }

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

    .home-intro {
        margin: 0 16px;
        border-radius: 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .section-block,
    .category-panels,
    .ranking-page,
    .filter-shell,
    .detail-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .movie-card-wide .wide-link {
        grid-template-columns: 1fr;
    }

    .wide-poster {
        aspect-ratio: 16 / 9;
    }

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

    .ranking-band {
        margin: 20px 16px 58px;
    }

    .ranking-list a,
    .ranking-row a {
        grid-template-columns: 48px 1fr;
    }

    .ranking-list em,
    .ranking-row img,
    .rank-meta {
        display: none;
    }

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

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

    .detail-card,
    .side-card {
        padding: 20px;
    }

    .player-card {
        border-radius: 16px;
    }

    .player-button {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }
}
