:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-deep: 0 25px 80px rgba(2, 6, 23, 0.28);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 45%, #f8fafc 100%);
    color: var(--slate-900);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

img {
    background: #e2e8f0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #fff;
    background: linear-gradient(90deg, #020617 0%, #0f172a 50%, #020617 100%);
    box-shadow: 0 12px 40px rgba(2, 6, 23, 0.28);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    color: #fff;
    box-shadow: 0 16px 28px rgba(6, 182, 212, 0.32);
}

.site-logo-text {
    font-size: 1.35rem;
}

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

.nav-link,
.mobile-nav-link {
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #fff;
    background: rgba(6, 182, 212, 0.18);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #fff;
}

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

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

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 0.7s ease, transform 1.2s ease;
    pointer-events: none;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(6, 182, 212, 0.22), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.22) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.06) 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 22px;
    color: #fff;
}

.hero-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 14px;
    color: #cffafe;
    background: rgba(6, 182, 212, 0.16);
    border: 1px solid rgba(103, 232, 249, 0.26);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.hero-content h1 {
    max-width: 760px;
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.06em;
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

.hero-content p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.18rem;
    line-height: 1.9;
}

.hero-actions,
.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.primary-button,
.outline-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.26);
}

.outline-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.ghost-button {
    color: var(--slate-700);
    border: 1px solid #cbd5e1;
    background: #fff;
}

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

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

.hero-dot {
    width: 34px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 58px;
    background: #22d3ee;
}

.search-band,
.content-section,
.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.search-band {
    position: relative;
    z-index: 10;
    margin-top: -48px;
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(14px);
}

.search-band h2 {
    font-size: clamp(1.35rem, 2.4vw, 2.1rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.search-band p,
.section-heading p,
.category-tile span,
.category-panel-body p,
.media-row p,
.movie-card-desc,
.detail-one-line,
.detail-article p,
.sidebar-card p {
    color: var(--slate-600);
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.search-field {
    display: grid;
    gap: 8px;
    color: var(--slate-600);
    font-weight: 800;
}

.search-field input {
    width: 100%;
    height: 50px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 0 18px;
    color: var(--slate-900);
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

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

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

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

.section-heading > div {
    min-width: 0;
}

.section-heading h2 {
    display: inline;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-icon {
    width: 44px;
    height: 44px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    font-weight: 900;
    vertical-align: middle;
    box-shadow: 0 16px 28px rgba(6, 182, 212, 0.22);
}

.section-heading p {
    max-width: 760px;
    margin-top: 8px;
}

.section-more,
.text-link {
    color: var(--cyan-600);
    font-weight: 900;
}

.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 {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    border-color: rgba(6, 182, 212, 0.35);
}

.movie-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #dbeafe;
}

.compact-card .movie-card-cover {
    aspect-ratio: 16 / 10;
}

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

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

.movie-card-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent);
}

.movie-card-play,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
}

.movie-card-play {
    right: 12px;
    bottom: 12px;
    min-width: 58px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .movie-card-play {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.3);
}

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

.movie-card-title {
    display: block;
    color: var(--slate-900);
    font-weight: 900;
    font-size: 1.06rem;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-meta {
    margin-top: 8px;
    color: var(--cyan-600);
    font-weight: 800;
    font-size: 0.9rem;
}

.movie-card-desc {
    margin-top: 8px;
    min-height: 3.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 4px 10px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 800;
}

.light-tags span {
    background: rgba(255, 255, 255, 0.18);
    color: #ecfeff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.spotlight-card,
.sidebar-card {
    position: sticky;
    top: 92px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.spotlight-card img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.spotlight-card div,
.sidebar-card {
    padding: 22px;
}

.spotlight-card span {
    color: var(--cyan-600);
    font-weight: 900;
}

.spotlight-card h2,
.sidebar-card h2 {
    margin-top: 6px;
    font-size: 1.35rem;
    font-weight: 900;
}

.spotlight-card p {
    margin: 10px 0 18px;
    color: var(--slate-600);
    line-height: 1.8;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

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

.category-tile,
.category-panel {
    display: grid;
    gap: 14px;
    border-radius: var(--radius-lg);
    padding: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.92);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}

.category-thumbs,
.category-panel-cover {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 16px;
}

.category-panel-cover {
    grid-template-columns: repeat(4, 1fr);
}

.category-thumbs img,
.category-panel-cover img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

.category-tile strong,
.category-panel h2 {
    font-size: 1.14rem;
    font-weight: 900;
}

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

.category-panel-body {
    display: grid;
    gap: 12px;
}

.media-list {
    display: grid;
    gap: 14px;
}

.media-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    border-radius: var(--radius-lg);
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.media-row-cover {
    overflow: hidden;
    border-radius: 14px;
    background: #dbeafe;
}

.media-row-cover img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.media-row-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 4px 4px 4px 0;
}

.list-rank {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    font-weight: 900;
}

.media-row-title {
    display: inline-block;
    color: var(--slate-900);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.35;
}

.media-row-meta {
    margin-top: 8px;
    color: var(--cyan-600);
    font-weight: 800;
    font-size: 0.88rem;
}

.page-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.3), transparent 32%),
        linear-gradient(135deg, #020617 0%, #0f172a 55%, #075985 100%);
    overflow: hidden;
}

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

.page-hero p {
    color: #67e8f9;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-hero h1 {
    margin-top: 10px;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.page-hero span {
    display: block;
    max-width: 720px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.12rem;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 22px 0;
    color: var(--slate-600);
    font-weight: 800;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #020617;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    filter: blur(6px);
    transform: scale(1.04);
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(6, 182, 212, 0.24), transparent 28%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68));
}

.detail-layout {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-deep);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.detail-info h1 {
    margin-top: 18px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    font-weight: 950;
    letter-spacing: -0.06em;
    line-height: 1.02;
}

.detail-one-line {
    max-width: 820px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.15rem;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 720px;
    margin: 22px 0;
}

.detail-meta-grid span {
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
}

.detail-tags a {
    color: #ecfeff;
    background: rgba(6, 182, 212, 0.25);
    border: 1px solid rgba(103, 232, 249, 0.26);
}

.detail-info .primary-button {
    margin-top: 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #020617;
    box-shadow: var(--shadow-deep);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #fff;
    background:
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.16), transparent 28%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.28));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-play-icon {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.35);
    font-size: 2rem;
    padding-left: 5px;
}

.player-overlay strong {
    font-size: clamp(1.3rem, 3vw, 2rem);
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

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

.detail-article {
    border-radius: var(--radius-xl);
    padding: 30px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.92);
}

.detail-article h2 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 900;
}

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

.detail-article p {
    font-size: 1.05rem;
}

.detail-side p {
    margin-top: 12px;
}

.slim-list .media-row,
.rank-list .media-row {
    grid-template-columns: 96px minmax(0, 1fr);
    box-shadow: none;
}

.rank-page-list .media-row {
    grid-template-columns: 150px minmax(0, 1fr);
}

.site-footer {
    margin-top: 88px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
}

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

.footer-logo {
    color: #fff;
    font-size: 1.15rem;
}

.site-footer p {
    margin-top: 14px;
    line-height: 1.8;
}

.site-footer h2 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.site-footer a:not(.footer-logo) {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

.site-footer a:hover {
    color: #67e8f9;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding: 20px 16px;
    text-align: center;
    color: #94a3b8;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 70;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: var(--shadow-soft);
    font-size: 1.3rem;
    font-weight: 900;
}

.back-top.is-visible {
    display: flex;
}

.movie-card.is-hidden,
.media-row.is-hidden {
    display: none;
}

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

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

    .spotlight-card,
    .sidebar-card {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: flex;
    }

    .hero-carousel,
    .hero-content {
        min-height: 620px;
    }

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

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

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

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

    .detail-poster {
        max-width: 320px;
    }

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

@media (max-width: 560px) {
    .site-header-inner {
        height: 62px;
    }

    .site-logo-mark {
        width: 38px;
        height: 38px;
    }

    .site-logo-text {
        font-size: 1.1rem;
    }

    .hero-carousel,
    .hero-content {
        min-height: 590px;
    }

    .hero-content {
        gap: 16px;
    }

    .hero-actions,
    .filter-actions {
        width: 100%;
    }

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

    .search-band {
        padding: 20px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .media-row,
    .rank-page-list .media-row,
    .slim-list .media-row,
    .rank-list .media-row {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .media-row-body {
        grid-template-columns: 1fr;
    }

    .list-rank {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }

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

    .detail-layout {
        padding: 36px 0;
    }

    .detail-article,
    .sidebar-card {
        padding: 22px;
    }
}
