:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-card-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.16);
    --line-strong: rgba(34, 211, 238, 0.24);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --cyan: #22d3ee;
    --cyan-deep: #0891b2;
    --cyan-soft: rgba(34, 211, 238, 0.14);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --radius: 18px;
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.16), transparent 34rem),
        radial-gradient(circle at 90% 8%, rgba(14, 165, 233, 0.13), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.84);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    color: white;
    box-shadow: 0 0 26px rgba(34, 211, 238, 0.38);
    font-size: 14px;
    padding-left: 2px;
}

.brand-name {
    font-size: 20px;
    color: white;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-link {
    padding: 9px 15px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--cyan);
    background: var(--cyan-soft);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: white;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: white;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--max));
    margin: 0 auto 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.94);
}

.mobile-link {
    display: block;
    padding: 12px 14px;
}

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

.hero-slider {
    position: relative;
    min-height: 640px;
    height: calc(100vh - 70px);
    max-height: 820px;
    overflow: hidden;
    background: #020617;
}

.hero-stage,
.hero-slide,
.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

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

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.28) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.15) 48%, rgba(2, 6, 23, 0.86) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(100% - 32px, var(--max));
    min-height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 0 110px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    background: var(--cyan-soft);
    color: var(--cyan);
    font-size: 13px;
    font-weight: 700;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 18px;
    color: white;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta,
.detail-meta,
.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.hero-meta {
    margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.movie-meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.76);
    color: var(--soft);
    font-size: 13px;
}

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

.primary-button,
.ghost-button,
.text-button,
.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    padding: 0 22px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    color: white;
    box-shadow: 0 14px 34px rgba(8, 145, 178, 0.34);
}

.ghost-button {
    padding: 0 20px;
    border: 1px solid var(--line-strong);
    background: rgba(15, 23, 42, 0.62);
    color: white;
}

.text-button {
    min-height: auto;
    color: var(--cyan);
}

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

.ghost-button:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.text-button:hover {
    color: #67e8f9;
}

.hero-side-panel {
    position: absolute;
    right: max(24px, calc((100vw - var(--max)) / 2));
    bottom: 110px;
    z-index: 4;
    width: 260px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-side-panel strong {
    display: block;
    margin-bottom: 12px;
    color: white;
}

.hero-mini {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    color: var(--soft);
    transition: background 0.2s ease, color 0.2s ease;
}

.hero-mini:hover {
    background: rgba(34, 211, 238, 0.1);
    color: white;
}

.hero-mini img {
    width: 58px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.hero-mini span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
    line-height: 1.45;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: white;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    font-size: 28px;
    line-height: 1;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 72px 0;
}

.section-muted {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100vw - var(--max)) / 2));
    padding-right: max(16px, calc((100vw - var(--max)) / 2));
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(15, 23, 42, 0.38);
}

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

.section-heading h2 {
    margin: 0;
    color: white;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.compact-heading h2 {
    max-width: 820px;
    font-size: clamp(21px, 2vw, 28px);
    color: var(--soft);
    line-height: 1.55;
    font-weight: 600;
}

.filter-panel {
    margin-bottom: 28px;
}

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

.filter-search input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    outline: none;
    background: rgba(15, 23, 42, 0.7);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.filter-search input:focus {
    border-color: rgba(34, 211, 238, 0.6);
}

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

.filter-chips button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    color: var(--soft);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-chips button:hover,
.filter-chips button.active {
    border-color: rgba(34, 211, 238, 0.54);
    background: rgba(34, 211, 238, 0.12);
    color: var(--cyan);
}

.filter-empty {
    margin: 24px 0 0;
    color: var(--muted);
}

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

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

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

.preview-grid,
.related-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.38);
    background: rgba(15, 23, 42, 0.92);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.08);
    filter: brightness(0.82);
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(2, 6, 23, 0.92) 100%);
    opacity: 0.7;
}

.poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.78);
    color: var(--cyan);
    font-size: 12px;
    font-weight: 700;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.9);
    color: white;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card h3 {
    margin: 10px 0 8px;
    color: white;
    font-size: 17px;
    line-height: 1.35;
}

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

.movie-card p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta-line {
    gap: 6px;
}

.movie-meta-line span {
    min-height: 23px;
    padding: 2px 7px;
    font-size: 12px;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--soft);
    font-size: 12px;
}

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

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

.category-card {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.2), transparent 52%),
        rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.category-card span {
    color: white;
    font-size: 22px;
    font-weight: 800;
}

.category-card small {
    color: var(--muted);
    line-height: 1.65;
}

.page-hero {
    position: relative;
    width: min(100% - 32px, var(--max));
    margin: 28px auto 0;
    padding: 72px 36px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    background:
        radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.23), transparent 30%),
        radial-gradient(circle at 90% 0%, rgba(37, 99, 235, 0.22), transparent 35%),
        rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

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

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--soft);
    font-size: 18px;
    line-height: 1.75;
}

.page-actions {
    margin-top: 24px;
}

.category-overview-block {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 42px 0;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 86px 64px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.66);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.34);
    background: rgba(15, 23, 42, 0.9);
}

.rank-cover {
    display: block;
    width: 86px;
    height: 56px;
    overflow: hidden;
    border-radius: 12px;
    background: #0f172a;
}

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

.rank-number {
    color: rgba(148, 163, 184, 0.42);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.rank-main h2 {
    margin: 0 0 6px;
    color: white;
    font-size: 19px;
}

.rank-main h2 a:hover {
    color: var(--cyan);
}

.rank-main p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.rank-action {
    min-width: 72px;
    padding: 0 14px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--cyan);
}

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

.detail-hero-bg,
.detail-hero-shade {
    position: absolute;
    inset: 0;
}

.detail-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) brightness(0.55) saturate(1.05);
    transform: scale(1.04);
}

.detail-hero-shade {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.58) 0%, rgba(2, 6, 23, 0.98) 100%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.52) 100%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 34px 0 72px;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 42px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    box-shadow: var(--shadow);
    background: #0f172a;
}

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

.detail-info h1 {
    max-width: 850px;
    margin: 0 0 18px;
    color: white;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

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

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

.player-section {
    padding-top: 48px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.76));
    color: white;
    cursor: pointer;
}

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

.player-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 20px 48px rgba(8, 145, 178, 0.42);
    font-size: 31px;
}

.player-overlay span:last-child {
    font-size: 18px;
    font-weight: 800;
}

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

.detail-article,
.detail-side-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.detail-article {
    padding: 32px;
}

.detail-article h2,
.detail-side-card h2 {
    margin: 0 0 16px;
    color: white;
    font-size: 24px;
}

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

.detail-article p {
    margin: 0;
    color: var(--soft);
    font-size: 16px;
    line-height: 1.95;
}

.detail-side-card {
    padding: 24px;
    position: sticky;
    top: 96px;
}

.detail-side-card dl,
.detail-side-card dd {
    margin: 0;
}

.detail-side-card div {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.11);
}

.detail-side-card div:last-child {
    border-bottom: 0;
}

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

.detail-side-card dd {
    color: white;
}

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

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

.footer-brand p {
    max-width: 480px;
    color: var(--muted);
    line-height: 1.8;
}

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

.footer-column h2 {
    margin: 0 0 8px;
    color: white;
    font-size: 17px;
}

.footer-column a {
    color: var(--muted);
    font-size: 14px;
}

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

.footer-bottom {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: rgba(148, 163, 184, 0.7);
    font-size: 14px;
    text-align: center;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .hero-side-panel {
        display: none;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .category-movie-grid,
    .preview-grid,
    .related-grid,
    .mosaic-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

    .detail-side-card {
        position: static;
    }
}

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

    .nav-toggle {
        display: block;
    }

    .site-header-inner {
        height: 64px;
    }

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

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

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 96px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .section,
    .section-muted {
        padding-top: 48px;
        padding-bottom: 48px;
    }

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

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

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

    .rank-row {
        grid-template-columns: 72px 44px 1fr;
        gap: 12px;
    }

    .rank-cover {
        width: 72px;
        height: 48px;
    }

    .rank-number {
        font-size: 24px;
    }

    .rank-action {
        grid-column: 3;
        width: fit-content;
        min-height: 34px;
    }

    .page-hero {
        padding: 48px 22px;
        border-radius: 22px;
    }

    .detail-hero-inner {
        padding-bottom: 48px;
    }

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

    .detail-info h1 {
        font-size: 42px;
    }

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

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

@media (max-width: 480px) {
    .movie-grid,
    .featured-grid,
    .compact-grid,
    .category-movie-grid,
    .preview-grid,
    .related-grid,
    .mosaic-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .page-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

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

    .rank-row {
        grid-template-columns: 72px 1fr;
    }

    .rank-number {
        display: none;
    }

    .rank-action {
        grid-column: 2;
    }
}
