:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: rgba(15, 23, 42, 0.72);
    --line: rgba(34, 211, 238, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --weak: #64748b;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --orange: #fb923c;
    --pink: #f472b6;
    --green: #34d399;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(8, 145, 178, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.14), transparent 26rem),
        radial-gradient(circle at 88% 2%, rgba(59, 130, 246, 0.13), transparent 24rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 45px rgba(34, 211, 238, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 76px;
}

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

.brand-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #ffffff;
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}

.brand-text {
    font-size: 20px;
    background: linear-gradient(90deg, #ffffff, #a5f3fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header-search,
.search-page-form {
    display: flex;
    flex: 1;
    max-width: 520px;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
}

.header-search input,
.search-page-form input,
.mobile-search input,
.filter-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.header-search input,
.search-page-form input {
    padding: 12px 18px;
}

.header-search button,
.search-page-form button,
.mobile-search button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.header-search button,
.search-page-form button {
    padding: 0 22px;
}

.header-search button:hover,
.search-page-form button:hover,
.mobile-search button:hover {
    filter: brightness(1.08);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link,
.mobile-nav-link {
    color: var(--muted);
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.09);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.82);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.96);
}

.mobile-panel.open {
    display: block;
}

.mobile-search {
    display: flex;
    margin: 12px 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.84);
}

.mobile-search input {
    padding: 12px;
}

.mobile-search button {
    padding: 0 18px;
}

.mobile-nav,
.mobile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-nav-link,
.mobile-cats a {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
}

.mobile-cats {
    margin-top: 10px;
}

.mobile-cats a {
    color: var(--weak);
}

.hero-carousel {
    position: relative;
    height: min(82vh, 760px);
    min-height: 580px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.44;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.28) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.2) 0%, #020617 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
}

.hero-content h1,
.hero-content h2 {
    max-width: 840px;
    margin: 12px 0 20px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, #ffffff, #cffafe, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-label,
.section-kicker {
    color: var(--cyan);
    font-weight: 800;
}

.hero-desc {
    max-width: 740px;
    margin: 0 0 28px;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-meta,
.tag-list,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-meta span,
.detail-meta a,
.tag-list span,
.chip {
    padding: 7px 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.76);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 35px rgba(34, 211, 238, 0.25);
}

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

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.page-section {
    padding: 58px 0;
}

.page-main {
    padding: 34px 0 80px;
}

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

.section-head h2 {
    margin: 4px 0 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.section-more {
    color: var(--cyan);
    font-weight: 700;
}

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

.category-card,
.category-overview-card,
.sidebar-card,
.filter-panel,
.search-page-box {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.7));
    box-shadow: var(--shadow);
}

.category-card {
    padding: 20px;
    min-height: 190px;
}

.category-card span {
    display: block;
    color: var(--cyan);
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 10px;
}

.category-card strong {
    display: block;
    color: #cbd5e1;
    font-weight: 500;
}

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

.category-mini-links a {
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.84);
    font-size: 12px;
}

.rail-wrap {
    position: relative;
}

.movie-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 280px);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 0 18px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.rail-btn {
    position: absolute;
    z-index: 5;
    top: 38%;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.82);
    cursor: pointer;
}

.rail-prev {
    left: -16px;
}

.rail-next {
    right: -16px;
}

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

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

.movie-card,
.rail-card,
.feature-card,
.timeline-item,
.ranking-row {
    min-width: 0;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.64);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.34);
    box-shadow: var(--shadow);
}

.poster-link,
.rail-card a:first-child,
.feature-card a,
.timeline-item a,
.category-cover-stack,
.ranking-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.poster-link {
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.poster-link img,
.rail-card img,
.feature-card img,
.timeline-item img,
.ranking-link img,
.category-cover-stack img,
.poster-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.rail-card:hover img,
.feature-card:hover img,
.timeline-item:hover img,
.ranking-link:hover img {
    transform: scale(1.08);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(34, 211, 238, 0.86);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge,
.rail-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.year-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.82);
    color: #e2e8f0;
    font-size: 12px;
}

.movie-card-body {
    padding: 14px;
}

.movie-card h2,
.rail-card h2,
.feature-card h2,
.timeline-item h2 {
    margin: 0 0 7px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h2 a:hover,
.rail-card h2 a:hover,
.feature-card h2:hover,
.timeline-item h2:hover {
    color: var(--cyan);
}

.movie-meta,
.rail-card p,
.movie-line,
.feature-card p,
.timeline-item p,
.category-overview-card p {
    color: var(--muted);
}

.movie-meta,
.rail-card p {
    margin: 0 0 8px;
    font-size: 13px;
}

.movie-line {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
}

.tag-list span {
    padding: 5px 9px;
    font-size: 12px;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.08);
}

.rail-card h2 {
    margin-top: 10px;
}

.rail-card img {
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: #0f172a;
}

.wide-panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.78));
}

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

.feature-card {
    border-radius: 24px;
    overflow: hidden;
}

.feature-card a {
    aspect-ratio: 21 / 9;
}

.feature-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.18));
}

.feature-card div {
    position: absolute;
    z-index: 2;
    left: 28px;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
}

.feature-card span {
    color: var(--green);
    font-weight: 900;
}

.feature-card p {
    max-width: 560px;
    margin: 0;
}

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

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

.rank-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.55);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: translateX(4px);
}

.rank-number {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), #ef4444);
}

.rank-item img {
    flex: 0 0 96px;
    width: 96px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
}

.rank-item strong,
.rank-item em {
    display: block;
}

.rank-item strong {
    margin-bottom: 4px;
}

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

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

.timeline-item a {
    padding: 14px;
    border-left: 2px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.52);
}

.timeline-item img {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: #0f172a;
}

.timeline-item span {
    display: block;
    margin-top: 12px;
    color: var(--pink);
    font-weight: 800;
}

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

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

.breadcrumb span::before,
.breadcrumb a + a::before,
.breadcrumb a + span::before {
    content: "/";
    margin-right: 8px;
    color: var(--weak);
}

.page-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 10% 20%, rgba(34, 211, 238, 0.22), transparent 18rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.82));
    box-shadow: var(--shadow);
}

.small-hero {
    padding: clamp(32px, 6vw, 66px);
    margin-bottom: 26px;
}

.small-hero p {
    margin: 0 0 8px;
    color: var(--cyan);
    font-weight: 900;
}

.small-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
}

.small-hero strong {
    display: block;
    max-width: 860px;
    color: #cbd5e1;
    font-weight: 500;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 20px;
    padding: 18px;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    border-radius: 18px;
}

.category-cover-stack img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    background: #0f172a;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.chip-row {
    margin-bottom: 22px;
}

.chip.active,
.chip:hover {
    border-color: rgba(34, 211, 238, 0.34);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.26), rgba(59, 130, 246, 0.22));
}

.filter-panel,
.search-page-box {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px;
}

.filter-panel label {
    color: var(--cyan);
    font-weight: 900;
}

.filter-input {
    padding: 13px 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.48);
}

.category-grid-list {
    align-items: start;
}

.ranking-board {
    display: grid;
    gap: 14px;
}

.ranking-link {
    display: grid;
    grid-template-columns: 58px 180px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.58);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-link:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.32);
}

.ranking-index {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), #ef4444);
}

.ranking-link img {
    width: 180px;
    height: 100px;
    border-radius: 16px;
    background: #0f172a;
}

.ranking-info strong,
.ranking-info em,
.ranking-info small {
    display: block;
}

.ranking-info strong {
    font-size: 20px;
}

.ranking-info em {
    display: -webkit-box;
    margin: 6px 0;
    overflow: hidden;
    color: var(--muted);
    font-style: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ranking-info small {
    color: var(--weak);
}

.ranking-link b {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.1);
}

.search-page-box .search-page-form {
    max-width: none;
    width: 100%;
}

.search-empty {
    grid-column: 1 / -1;
    padding: 42px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    color: var(--muted);
    text-align: center;
    background: rgba(15, 23, 42, 0.52);
}

.detail-main {
    padding: 28px 0 70px;
}

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

.player-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 28px 90px rgba(34, 211, 238, 0.12);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: #000000;
    cursor: pointer;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.86));
}

.player-cover span {
    position: relative;
    z-index: 2;
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 42px rgba(34, 211, 238, 0.45);
    font-size: 34px;
}

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

.player-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
}

.player-controls button {
    min-width: 44px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.7);
    cursor: pointer;
}

.video-progress {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    cursor: pointer;
}

.video-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.video-progress-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    transform: translate(-50%, -50%);
}

.video-time {
    color: #e2e8f0;
    font-size: 13px;
    white-space: nowrap;
}

.movie-detail-copy {
    margin-top: 24px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.56);
}

.movie-detail-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.1;
}

.lead-text {
    margin: 22px 0;
    color: #dbeafe;
    font-size: 18px;
}

.movie-detail-copy h2,
.sidebar-card h2 {
    margin: 28px 0 10px;
    font-size: 22px;
}

.movie-detail-copy p {
    color: #cbd5e1;
}

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

.detail-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.sidebar-card {
    padding: 18px;
}

.poster-panel img {
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    background: #0f172a;
}

.poster-panel h2 {
    margin: 14px 0 4px;
}

.poster-panel p {
    margin: 0;
    color: var(--muted);
}

.related-rail {
    grid-auto-columns: minmax(220px, 260px);
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.92);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
    padding: 46px 0 28px;
}

.footer-grid p {
    max-width: 520px;
    color: var(--muted);
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

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

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

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

.footer-bottom {
    padding: 18px 16px 28px;
    color: var(--weak);
    text-align: center;
}

@media (max-width: 1080px) {
    .category-grid,
    .movie-grid,
    .timeline-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .detail-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

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

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

    .category-grid,
    .movie-grid,
    .feature-grid,
    .rank-list,
    .category-overview-grid,
    .timeline-list,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .ranking-link {
        grid-template-columns: 44px 110px 1fr;
    }

    .ranking-link b {
        display: none;
    }

    .ranking-link img {
        width: 110px;
        height: 70px;
    }

    .player-controls {
        grid-template-columns: auto 1fr auto;
    }

    .mute-toggle,
    .fullscreen-toggle {
        display: none;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .header-inner {
        min-height: 66px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
        border-radius: 13px;
    }

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

    .hero-carousel {
        height: 70vh;
        min-height: 520px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 39px;
    }

    .hero-tags,
    .hero-actions {
        gap: 9px;
    }

    .btn {
        width: 100%;
    }

    .page-section {
        padding: 38px 0;
    }

    .category-grid,
    .movie-grid,
    .feature-grid,
    .rank-list,
    .category-overview-grid,
    .timeline-list,
    .footer-grid,
    .detail-sidebar {
        grid-template-columns: 1fr;
    }

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

    .movie-card-body {
        padding: 12px;
    }

    .movie-card h2 {
        font-size: 15px;
    }

    .movie-line,
    .tag-list {
        display: none;
    }

    .rail-btn {
        display: none;
    }

    .feature-card a {
        aspect-ratio: 4 / 3;
    }

    .feature-card div {
        left: 18px;
        right: 18px;
    }

    .ranking-link {
        grid-template-columns: 40px 92px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .ranking-index {
        width: 38px;
        height: 38px;
        border-radius: 14px;
        font-size: 16px;
    }

    .ranking-info strong {
        font-size: 16px;
    }

    .ranking-info em {
        -webkit-line-clamp: 1;
    }

    .player-controls {
        gap: 8px;
        padding: 10px;
    }

    .video-time {
        display: none;
    }
}
