:root {
    --bg: #f8fafc;
    --paper: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --dark: #020617;
    --card-shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.97), rgba(8, 47, 73, 0.97));
    color: #fff;
    box-shadow: 0 16px 38px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.35);
}

.brand-text {
    font-size: 20px;
}

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

.main-nav > a,
.nav-dropdown > a {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #67e8f9;
}

.nav-dropdown {
    position: relative;
    padding: 28px 0;
}

.dropdown-panel {
    position: absolute;
    top: 68px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 210px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.dropdown-panel a {
    display: block;
    padding: 11px 12px;
    color: #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
}

.dropdown-panel a:hover {
    background: rgba(14, 165, 233, 0.16);
    color: #fff;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-search input {
    width: 210px;
    border: 0;
    color: #fff;
    background: transparent;
    outline: none;
    padding: 7px 10px;
}

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

.nav-search button,
.primary-btn,
.ghost-btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.primary-btn {
    color: #fff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
}

.nav-search button {
    padding: 8px 16px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
}

.primary-btn:hover,
.ghost-btn:hover,
.nav-search button:hover {
    transform: translateY(-2px);
}

.primary-btn.full {
    width: 100%;
}

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.ghost-btn.light {
    color: #0f172a;
    background: #fff;
    border-color: #e2e8f0;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.hero-slider {
    position: relative;
    height: 640px;
    overflow: hidden;
    color: #fff;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 35%, rgba(6, 182, 212, 0.18), transparent 28%), linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(2, 6, 23, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 740px;
    margin-left: max(16px, calc((100vw - 1240px) / 2));
    padding-top: 64px;
}

.hero-kicker {
    width: max-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(250, 204, 21, 0.14);
    border: 1px solid rgba(250, 204, 21, 0.32);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    margin: 24px 0 0;
    max-width: 650px;
    color: #dbeafe;
    font-size: clamp(18px, 2.3vw, 23px);
    line-height: 1.75;
}

.hero-tags,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

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

.hero-tags span,
.detail-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 13px;
    font-weight: 700;
}

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

.hero-panel {
    position: absolute;
    right: max(16px, calc((100vw - 1240px) / 2));
    bottom: 86px;
    z-index: 4;
    width: min(420px, calc(100% - 32px));
    padding: 18px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
}

.hero-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    padding: 10px 12px;
}

.hero-search input::placeholder {
    color: #bfdbfe;
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
}

.hero-mini-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 10px;
    color: #dbeafe;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.hero-mini-card.active,
.hero-mini-card:hover {
    color: #fff;
    border-color: rgba(103, 232, 249, 0.45);
    background: rgba(14, 165, 233, 0.20);
}

.hero-mini-card img {
    width: 52px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-mini-card span {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 36px;
    height: 36px;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

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

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

.hero-dot.active {
    width: 28px;
    background: #67e8f9;
}

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

.soft-panel {
    width: min(1240px, calc(100% - 32px));
    margin-top: 38px;
    padding: 44px;
    border-radius: 34px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.10);
}

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

.section-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 9px 0 0;
    color: var(--muted);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-weight: 900;
}

.section-more span {
    transition: transform 0.2s ease;
}

.section-more:hover span {
    transform: translateX(4px);
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 26px;
    background: var(--paper);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

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

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

.card-play {
    position: absolute;
    left: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
}

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

.card-body {
    padding: 20px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.card-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.card-body h3 {
    margin: 14px 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

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

.card-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.card-tags {
    margin-top: 16px;
}

.card-tags span {
    color: #0e7490;
    background: #ecfeff;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.movie-card.compact {
    width: 285px;
    flex: 0 0 auto;
}

.movie-card.compact .card-cover {
    aspect-ratio: 3 / 4;
}

.movie-card.wide {
    display: grid;
    grid-template-columns: 42% 1fr;
}

.movie-card.wide .card-cover {
    aspect-ratio: auto;
    min-height: 230px;
}

.horizontal-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 2px 24px;
}

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

.horizontal-scroll::-webkit-scrollbar {
    height: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

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

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

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 26px;
    color: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
}

.category-tile img,
.category-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-tile img {
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-overlay {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.82));
}

.category-tile:hover img {
    transform: scale(1.06);
}

.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 2;
}

.category-tile strong {
    font-size: 24px;
    line-height: 1.2;
}

.category-tile em {
    margin-top: 8px;
    color: #dbeafe;
    font-size: 14px;
    line-height: 1.65;
    font-style: normal;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.split-section.reverse {
    grid-template-columns: 330px 1fr;
}

.ranking-card {
    border-radius: 30px;
    padding: 26px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}

.ranking-card.sticky {
    position: sticky;
    top: 104px;
}

.ranking-card h2 {
    margin: 0;
    font-size: 28px;
}

.ranking-card p {
    margin: 8px 0 20px;
    color: #93c5fd;
}

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

.rank-line,
.fast-rank a {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
}

.rank-line:hover,
.fast-rank a:hover {
    background: rgba(14, 165, 233, 0.18);
}

.rank-line span,
.fast-rank span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-weight: 900;
}

.rank-line strong,
.fast-rank strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-line em,
.fast-rank em {
    grid-column: 2;
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.page-hero {
    color: #fff;
    background: radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.32), transparent 28%), linear-gradient(120deg, #0f172a, #1e3a8a 48%, #164e63);
}

.page-hero > div {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 76px 0;
}

.compact-hero > div {
    padding: 58px 0;
}

.page-hero span {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #bfdbfe;
    font-weight: 900;
}

.page-hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.05em;
    line-height: 1.05;
}

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

.tag-cloud-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tag-cloud-box {
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.09);
}

.tag-cloud-box h2 {
    margin: 0 0 18px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a,
.filter-buttons button {
    border: 0;
    color: #0f172a;
    background: #f1f5f9;
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.tag-cloud a:hover,
.filter-buttons button:hover,
.filter-buttons button.active {
    color: #fff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.filter-panel,
.search-panel {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    margin-bottom: 28px;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.filter-panel input,
.search-panel input {
    width: 100%;
    border: 1px solid #dbe3ed;
    border-radius: 18px;
    outline: 0;
    padding: 14px 16px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.search-panel input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.clear-search {
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: #0f172a;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 900;
}

.detail-top {
    color: #fff;
    background: radial-gradient(circle at 75% 25%, rgba(6, 182, 212, 0.30), transparent 30%), linear-gradient(120deg, #020617, #172554 55%, #0f172a);
    padding: 32px 0 58px;
}

.breadcrumb,
.detail-layout {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: #bfdbfe;
    margin-bottom: 30px;
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: center;
}

.poster-panel {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.40);
}

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

.detail-kicker {
    color: #67e8f9;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.detail-line {
    max-width: 820px;
    margin: 22px 0 0;
    color: #dbeafe;
    line-height: 1.85;
    font-size: 19px;
}

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

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

.detail-section {
    padding-top: 42px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.28);
}

.player-box video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.78));
    border: 0;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 24px 54px rgba(37, 99, 235, 0.38);
    font-size: 34px;
    padding-left: 5px;
}

.player-cover strong {
    max-width: min(720px, calc(100% - 40px));
    font-size: clamp(22px, 3.2vw, 42px);
    line-height: 1.2;
    text-align: center;
}

.detail-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.text-card,
.meta-card {
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.text-card {
    padding: 30px;
}

.text-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.text-card p {
    margin: 0;
    color: #334155;
    line-height: 1.9;
    white-space: pre-line;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding-top: 0;
}

.meta-card {
    padding: 22px;
}

.meta-card strong {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.meta-card span {
    font-weight: 900;
    line-height: 1.5;
}

.neighbor-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding-top: 0;
    padding-bottom: 0;
}

.neighbor-links a {
    padding: 18px 22px;
    border-radius: 20px;
    background: #fff;
    color: var(--blue);
    font-weight: 900;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.neighbor-links a:last-child {
    text-align: right;
}

.site-footer {
    margin-top: 42px;
    color: #cbd5e1;
    background: #020617;
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 36px;
    padding: 50px 0;
}

.footer-logo {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 520px;
    line-height: 1.8;
    color: #94a3b8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: #cbd5e1;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
    color: #fff;
    background: rgba(14, 165, 233, 0.20);
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    font-size: 14px;
}

.hidden-by-filter {
    display: none !important;
}

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

    .hero-panel {
        right: 16px;
        bottom: 76px;
    }

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

    .split-section,
    .split-section.reverse {
        grid-template-columns: 1fr;
    }

    .ranking-card.sticky {
        position: static;
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        min-height: 66px;
        gap: 14px;
    }

    .brand-text {
        font-size: 18px;
    }

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

    .main-nav {
        position: absolute;
        top: 66px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        border-radius: 22px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav > a,
    .nav-dropdown > a {
        display: block;
        padding: 13px 12px;
    }

    .nav-dropdown {
        padding: 0;
    }

    .dropdown-panel {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
    }

    .hero-slider {
        height: auto;
        min-height: 720px;
    }

    .hero-content {
        width: min(100% - 32px, 100%);
        margin: 0 auto;
        justify-content: flex-start;
        padding-top: 112px;
    }

    .hero-panel {
        left: 16px;
        right: 16px;
        bottom: 86px;
        width: auto;
    }

    .hero-mini-list {
        grid-template-columns: 1fr;
        max-height: 170px;
        overflow-y: auto;
    }

    .content-section,
    .soft-panel {
        width: min(100% - 28px, 100%);
        padding: 38px 0;
    }

    .soft-panel {
        padding: 28px;
    }

    .section-heading {
        display: block;
    }

    .section-more {
        margin-top: 14px;
    }

    .movie-grid.three,
    .movie-grid.two,
    .category-grid,
    .category-grid.large,
    .tag-cloud-panel,
    .detail-text-grid,
    .detail-meta-grid,
    .neighbor-links {
        grid-template-columns: 1fr;
    }

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

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

    .poster-panel {
        max-width: 300px;
    }

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

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