:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-soft: rgba(30, 41, 59, 0.72);
    --line: rgba(59, 130, 246, 0.28);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --cyan: #22d3ee;
    --blue: #2563eb;
    --deep-blue: #1e3a8a;
    --amber: #f59e0b;
    --radius: 22px;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.22), transparent 34%),
        radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.18), transparent 30%),
        linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
}

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.94));
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.24);
}

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

.desktop-nav > a,
.nav-menu > button {
    padding: 10px 13px;
    border: 0;
    color: #cbd5e1;
    border-radius: 12px;
    background: transparent;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-menu:hover > button {
    color: var(--cyan);
    background: rgba(37, 99, 235, 0.22);
}

.nav-menu {
    position: relative;
}

.nav-menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 190px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.2s ease;
}

.nav-menu:hover .nav-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu-panel a {
    display: block;
    padding: 9px 10px;
    color: #cbd5e1;
    border-radius: 10px;
}

.nav-menu-panel a:hover {
    color: var(--cyan);
    background: rgba(37, 99, 235, 0.18);
}

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

.nav-search input,
.wide-search input,
.channel-search input,
.search-console input,
.filter-bar input,
.filter-bar select,
.mobile-nav input {
    min-width: 0;
    color: #e2e8f0;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: rgba(15, 23, 42, 0.72);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
    width: 230px;
    padding: 10px 12px;
}

.nav-search input:focus,
.wide-search input:focus,
.channel-search input:focus,
.search-console input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.mobile-nav input:focus {
    border-color: rgba(34, 211, 238, 0.72);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
    background: rgba(15, 23, 42, 0.92);
}

.nav-search button,
.wide-search button,
.channel-search button,
.search-console button,
.mobile-nav button {
    border: 0;
    color: white;
    border-radius: 14px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    color: white;
    border-radius: 13px;
    background: rgba(15, 23, 42, 0.8);
}

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

.mobile-nav.open {
    display: grid;
    gap: 10px;
}

.mobile-nav a,
.mobile-nav form {
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
}

.mobile-nav form {
    display: flex;
    gap: 8px;
}

.mobile-nav input {
    flex: 1;
    padding: 10px 12px;
}

main {
    overflow: hidden;
}

.hero-slider {
    position: relative;
    min-height: 620px;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    background-image:
        radial-gradient(circle at 72% 35%, rgba(34, 211, 238, 0.28), transparent 24%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 45%, rgba(2, 6, 23, 0.44) 100%),
        var(--backdrop);
    background-size: cover;
    background-position: center;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #020617 0%, transparent 36%),
        linear-gradient(120deg, rgba(37, 99, 235, 0.22), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) 360px;
    gap: 58px;
    align-items: center;
    padding: 76px 0 86px;
}

.hero-text {
    max-width: 740px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-text h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 900;
    background: linear-gradient(90deg, #ffffff, #dbeafe 45%, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text p,
.page-hero p,
.detail-info .lead {
    margin: 22px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.78;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 10px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    color: #cffafe;
    font-size: 12px;
    background: rgba(8, 145, 178, 0.14);
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: white;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 18px 36px rgba(6, 182, 212, 0.25);
}

.btn.ghost {
    border: 1px solid var(--line);
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.56);
}

.btn.ghost:hover {
    border-color: rgba(34, 211, 238, 0.62);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.28);
}

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

.btn.full {
    width: 100%;
}

.hero-poster {
    position: relative;
    height: 500px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 30px;
    overflow: hidden;
    background-image:
        linear-gradient(180deg, rgba(14, 165, 233, 0.16), rgba(2, 6, 23, 0.78)),
        var(--poster);
    background-size: cover;
    background-position: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
    transform: rotate(1.5deg);
}

.hero-poster span,
.poster-play,
.big-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    box-shadow: 0 16px 44px rgba(34, 211, 238, 0.28);
}

.hero-poster span {
    position: absolute;
    left: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
}

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

.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.42);
}

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

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

.content-section {
    padding: 48px 0;
}

.quick-search-panel {
    margin-top: -34px;
    position: relative;
    z-index: 7;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.84);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.wide-search,
.channel-search,
.search-console {
    display: flex;
    gap: 10px;
}

.wide-search input,
.channel-search input,
.search-console input {
    flex: 1;
    padding: 14px 16px;
}

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

.quick-links a {
    padding: 8px 13px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.78);
}

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

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

.section-head.compact {
    align-items: start;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.12;
    font-weight: 900;
}

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

.section-link {
    min-width: max-content;
    color: var(--cyan);
    font-weight: 800;
}

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

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

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

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

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

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.52);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.poster,
.rank-cover,
.ranking-thumb,
.detail-poster,
.category-covers span {
    background-image:
        linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(2, 6, 23, 0.68)),
        var(--poster);
    background-size: cover;
    background-position: center;
}

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

.poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 35%, rgba(34, 211, 238, 0.18), transparent 34%);
    opacity: 0;
    transition: opacity 0.24s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #dffbff;
    font-size: 12px;
    background: rgba(8, 47, 73, 0.72);
    backdrop-filter: blur(10px);
}

.poster-play {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.86);
    transition: 0.22s ease;
}

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

.card-body {
    padding: 16px;
}

.card-meta {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

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

.card-body p {
    margin: 10px 0 12px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-grid .card-body p,
.movie-card .tag-row:empty {
    display: none;
}

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

.category-tile,
.category-card-large {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.78));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.category-tile {
    padding: 22px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.56);
}

.category-tile span {
    display: block;
    color: white;
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 9px;
}

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

.category-tile div,
.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-tile div a,
.mini-links a {
    color: #bae6fd;
    font-size: 13px;
}

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

.ranking-panel {
    position: sticky;
    top: 88px;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 22px;
    background: rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow);
}

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

.rank-item,
.ranking-row {
    display: grid;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.56);
    transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.rank-item:hover,
.ranking-row:hover {
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(30, 58, 138, 0.42);
    transform: translateX(3px);
}

.rank-item {
    grid-template-columns: 38px 58px minmax(0, 1fr);
    padding: 10px;
}

.rank-no,
.ranking-number {
    color: var(--cyan);
    font-size: 18px;
    font-weight: 900;
}

.rank-cover {
    width: 58px;
    height: 78px;
    border-radius: 12px;
}

.rank-main {
    min-width: 0;
}

.rank-main strong,
.ranking-info strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-main em,
.ranking-info em,
.ranking-info small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    margin-top: 4px;
}

.page-shell {
    padding: 34px 0 64px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: 46px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(circle at 82% 24%, rgba(34, 211, 238, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(30, 58, 138, 0.52), rgba(15, 23, 42, 0.88));
    box-shadow: var(--shadow);
}

.page-hero.slim h1 {
    font-size: clamp(36px, 5vw, 58px);
}

.page-hero.channel {
    min-height: 280px;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.62)),
        var(--backdrop);
    background-size: cover;
    background-position: center;
}

.channel-search {
    width: min(560px, 100%);
    margin-top: 26px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    margin-bottom: 18px;
}

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

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

.category-card-large {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
}

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

.category-covers span {
    min-height: 124px;
    border-radius: 16px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.7);
}

.filter-bar input,
.filter-bar select {
    min-height: 44px;
    padding: 10px 13px;
}

.filter-bar input {
    flex: 1 1 260px;
}

.filter-bar select {
    flex: 0 1 180px;
}

.ranking-page {
    padding-top: 0;
}

.ranking-row {
    grid-template-columns: 56px 82px minmax(0, 1fr) 88px;
    padding: 12px 14px;
}

.ranking-thumb {
    width: 82px;
    height: 112px;
    border-radius: 16px;
}

.ranking-info small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    line-height: 1.55;
}

.ranking-action {
    justify-self: end;
    padding: 8px 13px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(8, 145, 178, 0.18);
}

.search-page {
    padding-top: 0;
}

.search-console {
    margin-bottom: 14px;
}

.detail-shell {
    padding-top: 24px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background-image:
        radial-gradient(circle at 78% 28%, rgba(34, 211, 238, 0.2), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.7)),
        var(--backdrop);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.detail-poster {
    min-height: 460px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 26px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.detail-info h1 {
    font-size: clamp(34px, 4.6vw, 62px);
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(30, 41, 59, 0.72);
}

.player-section {
    margin-top: 32px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: white;
    background:
        radial-gradient(circle at center, rgba(37, 99, 235, 0.34), transparent 34%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.32), rgba(2, 6, 23, 0.88));
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.big-play {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    font-size: 28px;
}

.player-overlay strong {
    font-size: clamp(20px, 3vw, 34px);
}

.player-overlay em {
    color: #bae6fd;
    font-style: normal;
}

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

.detail-content,
.detail-side {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.detail-content {
    padding: 30px;
}

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

.detail-content h2:not(:first-child) {
    margin-top: 28px;
}

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

.detail-side {
    padding: 24px;
    align-self: start;
    position: sticky;
    top: 88px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    margin: 0 0 22px;
}

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

.detail-side dd {
    margin: 0;
    color: #e2e8f0;
}

.related-section {
    width: 100%;
}

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

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

.footer-brand {
    margin-bottom: 14px;
}

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

.site-footer h3 {
    margin: 0 0 14px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

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

.footer-links a {
    color: #cbd5e1;
}

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

.footer-bottom {
    border-top: 1px solid rgba(59, 130, 246, 0.16);
    padding: 18px 16px;
    color: var(--muted);
    text-align: center;
}

[data-hidden-card="true"] {
    display: none !important;
}

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

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

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

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

    .hero-poster {
        display: none;
    }

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

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-slider,
    .hero-content {
        min-height: 560px;
    }

    .hero-content {
        padding: 58px 0 76px;
    }

    .hero-text p,
    .page-hero p,
    .detail-info .lead {
        font-size: 16px;
    }

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

    .category-card-large {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        min-height: 360px;
    }

    .ranking-row {
        grid-template-columns: 42px 64px minmax(0, 1fr);
    }

    .ranking-thumb {
        width: 64px;
        height: 88px;
    }

    .ranking-action {
        display: none;
    }
}

@media (max-width: 560px) {
    .nav-wrap,
    .mobile-nav,
    .content-section,
    .page-shell,
    .footer-grid {
        width: min(100% - 22px, 1240px);
    }

    .brand {
        font-size: 18px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero-slider,
    .hero-content {
        min-height: 610px;
    }

    .hero-actions,
    .wide-search,
    .channel-search,
    .search-console,
    .mobile-nav form {
        flex-direction: column;
    }

    .movie-grid.four-col,
    .movie-grid.three-col,
    .movie-grid.six-col,
    .category-grid,
    .category-overview,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .quick-search-panel,
    .page-hero,
    .detail-hero,
    .detail-content,
    .detail-side {
        border-radius: 20px;
    }

    .page-hero,
    .detail-hero {
        padding: 24px;
    }

    .detail-poster {
        min-height: 320px;
    }

    .player-box {
        border-radius: 18px;
    }
}
