:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --border: rgba(34, 211, 238, 0.22);
    --border-soft: rgba(148, 163, 184, 0.18);
    --text: #e5e7eb;
    --muted: #94a3b8;
    --dim: #64748b;
    --cyan: #22d3ee;
    --cyan-soft: rgba(34, 211, 238, 0.16);
    --blue: #60a5fa;
    --orange: #fb923c;
    --green: #34d399;
    --purple: #c084fc;
    --shadow: 0 22px 55px rgba(8, 145, 178, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 36px rgba(34, 211, 238, 0.08);
    backdrop-filter: blur(16px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 26px rgba(34, 211, 238, 0.32);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08);
    box-shadow: 0 0 36px rgba(34, 211, 238, 0.48);
}

.brand-text {
    display: grid;
    line-height: 1.05;
}

.brand-text strong {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: transparent;
    background: linear-gradient(90deg, var(--cyan), var(--blue), #a5f3fc);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-text em {
    margin-top: 4px;
    color: rgba(34, 211, 238, 0.72);
    font-size: 12px;
    font-style: normal;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 650;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #a5f3fc;
    background: rgba(34, 211, 238, 0.14);
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.22), 0 10px 24px rgba(34, 211, 238, 0.08);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--cyan);
    background: rgba(15, 23, 42, 0.78);
}

.mobile-nav {
    border-top: 1px solid var(--border);
    padding: 16px;
    background: rgba(2, 6, 23, 0.96);
}

.mobile-nav-grid,
.mobile-category-grid {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-category-grid {
    margin-top: 12px;
}

.mobile-category-link {
    padding: 12px;
    border-radius: 12px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.66);
    border: 1px solid var(--border-soft);
    text-align: center;
}

main {
    min-height: 68vh;
}

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

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.12)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.98), transparent 42%, rgba(2, 6, 23, 0.3));
}

.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;
    align-items: flex-start;
    padding: 48px 0 90px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(34, 211, 238, 0.14);
    border: 1px solid rgba(34, 211, 238, 0.24);
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.12);
}

.hero-content h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(38px, 8vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: #fff;
    text-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.hero-content p {
    max-width: 700px;
    margin: 24px 0 0;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.75;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(34, 211, 238, 0.22);
}

.hero-tags span {
    padding: 7px 12px;
    font-size: 14px;
}

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

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

.primary-btn,
.ghost-btn,
.home-search button,
.filter-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 750;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn,
.home-search button,
.filter-panel button {
    color: white;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.25);
}

.ghost-btn {
    color: #a5f3fc;
    background: rgba(15, 23, 42, 0.62);
    border-color: rgba(34, 211, 238, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.home-search button:hover,
.filter-panel button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(34, 211, 238, 0.24);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: white;
    font-size: 34px;
    line-height: 1;
    background: rgba(2, 6, 23, 0.54);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(34, 211, 238, 0.72);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.search-band {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid rgba(34, 211, 238, 0.12);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(18px);
}

.search-band-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    gap: 24px;
    align-items: center;
}

.search-band h2,
.search-band p {
    margin: 0;
}

.search-band h2 {
    font-size: clamp(22px, 3vw, 32px);
}

.search-band p {
    margin-top: 8px;
    color: var(--muted);
}

.home-search {
    display: flex;
    gap: 10px;
}

.home-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.64);
    outline: none;
    padding: 0 14px;
    transition: border 0.25s ease, box-shadow 0.25s ease;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

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

.home-shell {
    display: grid;
    gap: 72px;
}

.content-section {
    min-width: 0;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
}

.section-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 36px);
    color: transparent;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
}

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

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding: 2px 0 18px;
    scroll-snap-type: x mandatory;
}

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

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

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

.movie-card-link,
.movie-list-card a {
    height: 100%;
    display: block;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.44);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
    transition: transform 0.28s ease, border 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-card-link:hover,
.movie-list-card a:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.52);
    background: rgba(15, 23, 42, 0.68);
    box-shadow: var(--shadow);
}

.poster-wrap,
.list-poster {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(37, 99, 235, 0.08));
}

.poster-wrap {
    aspect-ratio: 3 / 4;
}

.poster-wrap img,
.list-poster img,
.side-poster img,
.category-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card-link:hover img,
.movie-list-card a:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 56%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.movie-card-link:hover .poster-shade {
    opacity: 1;
}

.play-badge,
.list-poster span {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: rgba(34, 211, 238, 0.84);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.36);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.movie-card-link:hover .play-badge,
.movie-list-card a:hover .list-poster span {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    background: rgba(6, 182, 212, 0.88);
}

.card-body {
    padding: 14px;
}

.card-body h3,
.card-body h4,
.list-content h3 {
    margin: 0;
    color: #f8fafc;
    line-height: 1.35;
    transition: color 0.25s ease;
}

.card-body h3 {
    font-size: 16px;
}

.card-body h4 {
    font-size: 15px;
}

.movie-card-link:hover h3,
.movie-card-link:hover h4,
.movie-list-card a:hover h3 {
    color: #67e8f9;
}

.card-body p,
.list-content p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.meta-line,
.list-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--dim);
}

.meta-line {
    margin: 10px 0;
    font-size: 12px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.rank-panel,
.side-card,
.detail-card,
.player-card,
.filter-panel,
.category-card a,
.rank-section {
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.54);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.rank-panel {
    position: sticky;
    top: 100px;
    padding: 20px;
}

.rank-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.rank-panel-head h2,
.rank-title-block h2,
.side-card h2 {
    margin: 0;
    color: #a5f3fc;
}

.rank-panel-head a,
.section-more a {
    color: var(--cyan);
    font-weight: 700;
}

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

.rank-link,
.rank-row {
    display: grid;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.34);
    transition: background 0.25s ease, transform 0.25s ease;
}

.rank-link {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 12px;
}

.rank-link:hover,
.rank-row:hover {
    transform: translateX(4px);
    background: rgba(34, 211, 238, 0.1);
}

.rank-no,
.rank-row-no {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    color: #f8fafc;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-meta {
    grid-column: 2;
    color: var(--dim);
    font-size: 12px;
}

.section-more {
    margin-top: 18px;
    text-align: right;
}

.inner-hero {
    position: relative;
    min-height: 330px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(34, 211, 238, 0.16);
    background: radial-gradient(circle at 28% 18%, rgba(34, 211, 238, 0.22), transparent 32rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
}

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

.inner-hero-content {
    width: min(1180px, calc(100% - 32px));
    padding: 54px 0;
}

.inner-hero-content span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(34, 211, 238, 0.13);
    border: 1px solid rgba(34, 211, 238, 0.22);
}

.inner-hero-content h1 {
    max-width: 780px;
    margin: 18px 0 0;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.inner-hero-content p {
    max-width: 820px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.8;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.quick-links a {
    padding: 9px 12px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid var(--border-soft);
}

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

.category-card a {
    display: grid;
    gap: 14px;
    padding: 22px;
    min-height: 100%;
    overflow: hidden;
}

.category-card h2,
.category-card p {
    margin: 0;
}

.category-card h2 {
    color: #a5f3fc;
    font-size: 24px;
}

.category-card p {
    color: var(--muted);
    line-height: 1.7;
}

.category-card span {
    color: var(--cyan);
    font-weight: 800;
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    min-height: 120px;
}

.category-preview img {
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    background: rgba(34, 211, 238, 0.1);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 180px)) auto;
    gap: 12px;
    margin-bottom: 36px;
    padding: 18px;
}

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

.movie-list-card a {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 18px;
    padding: 12px;
}

.list-poster {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
}

.list-content {
    align-self: center;
    min-width: 0;
}

.list-content h3 {
    font-size: 22px;
}

.list-meta {
    margin: 12px 0;
    font-size: 13px;
}

.empty-state {
    margin-top: 24px;
    padding: 30px;
    border: 1px dashed rgba(34, 211, 238, 0.34);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
}

.rank-shell {
    display: grid;
    gap: 28px;
}

.rank-section {
    padding: 22px;
}

.rank-title-block {
    margin-bottom: 18px;
}

.rank-title-block p {
    margin: 8px 0 0;
    color: var(--muted);
}

.rank-row {
    grid-template-columns: 48px 72px minmax(0, 1fr) auto;
    padding: 10px 14px;
}

.rank-row img {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-row-title {
    min-width: 0;
    overflow: hidden;
    color: #f8fafc;
    font-weight: 750;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-row-meta {
    color: var(--dim);
    font-size: 13px;
}

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

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

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

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

.player-card {
    overflow: hidden;
}

.video-frame {
    position: relative;
    background: black;
}

.video-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: black;
}

.video-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.4));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-start span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.86);
    box-shadow: 0 0 38px rgba(34, 211, 238, 0.46);
    font-size: 34px;
}

.video-frame.playing .video-start {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.detail-card h1 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.detail-meta {
    margin-top: 18px;
}

.detail-tags {
    margin-top: 18px;
}

.detail-tags span {
    padding: 7px 11px;
    font-size: 13px;
}

.detail-card section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
}

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

.detail-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
    font-size: 16px;
}

.detail-side {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 18px;
}

.side-poster {
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.54);
}

.side-poster img {
    aspect-ratio: 3 / 4;
}

.side-card {
    padding: 18px;
}

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

.side-related .movie-card-link {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    min-height: 126px;
}

.side-related .poster-wrap {
    height: 100%;
    aspect-ratio: auto;
}

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

.side-related .card-body {
    padding: 12px;
}

.site-footer {
    border-top: 1px solid rgba(34, 211, 238, 0.16);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.98));
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
}

.footer-logo {
    color: #a5f3fc;
    font-size: 24px;
    font-weight: 850;
}

.footer-brand p,
.footer-column p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

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

.footer-column h2 {
    margin: 0 0 8px;
    color: #a5f3fc;
    font-size: 18px;
}

.footer-column a {
    color: var(--muted);
    transition: color 0.25s ease;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 34px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--dim);
    font-size: 13px;
    text-align: center;
}

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

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

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

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

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

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav-shell {
        height: 66px;
    }

    .hero-carousel {
        height: 620px;
    }

    .hero-content {
        padding-left: 8px;
        padding-right: 8px;
    }

    .hero-arrow {
        display: none;
    }

    .search-band-inner,
    .home-search,
    .category-grid,
    .movie-list-card a,
    .rank-row {
        grid-template-columns: 1fr;
    }

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

    .scroll-row {
        grid-auto-columns: 72%;
    }

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

    .rank-row img {
        width: 100%;
        height: 180px;
    }

    .rank-row-meta {
        justify-self: start;
    }

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

@media (max-width: 460px) {
    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

    .card-body {
        padding: 12px;
    }

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