:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.86);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #cbd5e1;
    --amber: #f59e0b;
    --orange: #f97316;
    --blue: #3b82f6;
    --green: #22c55e;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.18), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.16), transparent 28%),
        var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 80%);
}

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

img,
video {
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.55));
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(16px);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(2, 6, 23, 0.94);
    border-bottom-color: var(--line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.nav-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: #111827;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
    transition: transform 0.35s ease;
}

.brand:hover .brand-mark {
    transform: rotate(180deg) scale(1.04);
}

.brand-text {
    font-size: 1.2rem;
    background: linear-gradient(90deg, #fbbf24, #f97316, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-spark {
    color: #60a5fa;
    font-weight: 800;
}

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

.nav-link {
    padding: 9px 13px;
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    transform: translateY(-1px);
}

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

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

.hero {
    position: relative;
    min-height: 70vh;
    height: 720px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.1s ease;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.76) 36%, rgba(2, 6, 23, 0.28) 66%, rgba(2, 6, 23, 0.78) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.15) 32%, rgba(2, 6, 23, 0.28) 100%),
        var(--hero-image);
    background-position: center;
    background-size: cover;
}

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

.hero-content {
    width: min(var(--container), calc(100% - 44px));
    margin: 0 auto;
    padding-top: 84px;
    max-width: 740px;
}

.hero-kicker,
.detail-kicker,
.page-hero p,
.player-title p,
.section-heading p {
    margin: 0 0 12px;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    line-height: 1.05;
    font-size: clamp(2.6rem, 8vw, 6.8rem);
    letter-spacing: -0.08em;
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.hero p {
    max-width: 700px;
    margin: 24px 0 0;
    color: #dbeafe;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
}

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

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

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
    font-size: 0.82rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: #111827;
    box-shadow: 0 16px 42px rgba(249, 115, 22, 0.28);
}

.btn-ghost {
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(14px);
}

.btn-small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 0.9rem;
    background: rgba(15, 23, 42, 0.72);
}

.hero-controls {
    position: absolute;
    right: max(22px, calc((100vw - var(--container)) / 2));
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(16px);
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: var(--text);
    cursor: pointer;
}

.hero-arrow {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.4rem;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.45);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 28px;
    background: #fbbf24;
}

.search-band,
.site-stats,
.content-section,
.toolbar,
.quick-filter-row,
.breadcrumb,
.detail-copy,
.player-section,
.detail-hero {
    width: min(var(--container), calc(100% - 44px));
    margin-right: auto;
    margin-left: auto;
}

.search-band {
    margin-top: -38px;
    position: relative;
    z-index: 5;
    padding: 18px;
    display: grid;
    grid-template-columns: auto minmax(240px, 1fr) auto;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-band strong {
    display: block;
    font-size: 1.1rem;
}

.search-band span,
.footer-about p,
.section-heading p,
.movie-card p,
.ranking-body p,
.detail-line,
.page-hero span,
.empty-tip {
    color: var(--muted);
}

.search-box {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
}

.search-box.wide {
    width: 100%;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.search-box input::placeholder {
    color: #64748b;
}

.site-stats {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.site-stats div {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.7);
}

.site-stats strong {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1;
    color: #fbbf24;
}

.site-stats span {
    color: var(--muted);
}

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    letter-spacing: -0.04em;
}

.section-more,
.inline-link {
    color: #fbbf24;
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.poster,
.detail-poster,
.ranking-thumb,
.category-tile,
.category-collage span {
    background-image:
        linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.86)),
        var(--poster-image),
        linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(59, 130, 246, 0.25));
    background-position: center;
    background-size: cover;
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    min-height: 250px;
}

.movie-card-compact .poster {
    min-height: 220px;
}

.poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    color: #111827;
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-play.large {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
}

.poster-meta,
.rank-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.poster-meta {
    right: 12px;
    padding: 5px 9px;
    background: rgba(2, 6, 23, 0.72);
    color: #f8fafc;
}

.rank-badge {
    left: 12px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #111827;
}

.movie-info {
    padding: 16px;
}

.movie-meta-line,
.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: #94a3b8;
    font-size: 0.82rem;
}

.movie-meta-line a {
    color: #fbbf24;
    font-weight: 800;
}

.movie-card h3,
.ranking-body h3 {
    margin: 8px 0;
    line-height: 1.25;
    font-size: 1.04rem;
}

.movie-card h3 a:hover,
.ranking-body h3 a:hover {
    color: #fbbf24;
}

.movie-card p,
.ranking-body p {
    margin: 0 0 12px;
    font-size: 0.92rem;
}

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

.category-tile {
    min-height: 190px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88));
}

.category-tile > * {
    position: relative;
    z-index: 1;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.45);
}

.category-tile span {
    font-size: 1.25rem;
    font-weight: 900;
}

.category-tile strong {
    color: #fbbf24;
}

.category-tile em {
    color: var(--muted-2);
    font-style: normal;
    font-size: 0.88rem;
}

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

.rank-panel {
    position: sticky;
    top: 88px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.66);
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 42px 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(2, 6, 23, 0.55);
}

.ranking-number {
    color: #fbbf24;
    font-size: 1.2rem;
    font-weight: 900;
}

.ranking-thumb {
    width: 74px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
}

.ranking-body h3 {
    margin-top: 0;
}

.ranking-meta strong {
    color: #fbbf24;
}

.page-main {
    padding-top: 84px;
}

.page-hero {
    width: min(var(--container), calc(100% - 44px));
    min-height: 320px;
    margin: 22px auto 0;
    padding: 52px;
    display: flex;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.50)),
        var(--hero-image),
        radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.28), transparent 45%),
        linear-gradient(135deg, #0f172a, #020617);
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow);
}

.small-hero {
    min-height: 260px;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 7vw, 5rem);
}

.toolbar,
.quick-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.toolbar select,
.quick-filter-row button {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    background: rgba(15, 23, 42, 0.86);
    color: var(--text);
}

.advanced-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 150px 150px 180px;
}

.quick-filter-row {
    flex-wrap: wrap;
}

.quick-filter-row button {
    cursor: pointer;
}

.quick-filter-row button:hover {
    border-color: rgba(245, 158, 11, 0.48);
    color: #fbbf24;
}

.filter-summary {
    color: var(--muted);
    white-space: nowrap;
}

.empty-tip {
    margin-top: 28px;
    padding: 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
    text-align: center;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.72);
}

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

.category-collage span {
    min-height: 110px;
    border-radius: 16px;
}

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

.category-overview-card p {
    color: var(--muted);
}

.large-ranking .ranking-item {
    grid-template-columns: 64px 96px minmax(0, 1fr);
}

.detail-main {
    padding-bottom: 30px;
}

.breadcrumb {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.94rem;
}

.breadcrumb a {
    color: #fbbf24;
}

.detail-hero {
    margin-top: 22px;
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(260px, 350px) minmax(0, 1fr);
    gap: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.detail-poster {
    position: relative;
    min-height: 500px;
    border-radius: 24px;
    box-shadow: inset 0 -80px 120px rgba(0, 0, 0, 0.45);
}

.detail-info {
    align-self: center;
}

.detail-info h1 {
    font-size: clamp(2.1rem, 6vw, 5rem);
}

.detail-line {
    max-width: 760px;
    font-size: 1.08rem;
}

.detail-meta-grid {
    margin: 28px 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.detail-meta-grid div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(2, 6, 23, 0.48);
}

.detail-meta-grid span,
.info-list dt {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
}

.detail-meta-grid strong,
.info-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.player-section {
    margin-top: 30px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.72);
}

.player-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.player-title h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 10px;
    border: 0;
    background:
        radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 30%),
        rgba(2, 6, 23, 0.42);
    color: var(--text);
    cursor: pointer;
    text-align: center;
}

.video-overlay span {
    width: 76px;
    height: 76px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: #111827;
    font-size: 1.5rem;
    box-shadow: 0 18px 54px rgba(249, 115, 22, 0.28);
}

.video-overlay strong {
    font-size: 1.2rem;
}

.video-overlay em {
    color: var(--muted-2);
    font-style: normal;
}

.video-shell.is-playing .video-overlay {
    display: none;
}

.detail-copy {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-copy article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.72);
}

.detail-copy article:first-child,
.detail-copy article:last-child {
    grid-column: 1 / -1;
}

.detail-copy h2 {
    margin-top: 0;
}

.detail-copy p {
    margin-bottom: 0;
    color: #dbeafe;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.info-list div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.44);
}

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

.footer-grid {
    width: min(var(--container), calc(100% - 44px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 34px;
}

.site-footer h2 {
    margin-top: 0;
    font-size: 1rem;
}

.site-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
    columns: 2;
}

.site-footer li {
    margin-bottom: 8px;
}

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

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

.footer-count {
    color: #fbbf24 !important;
}

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

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

    .section-split,
    .detail-hero,
    .detail-copy,
    .footer-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }

    .advanced-toolbar {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .main-nav {
        position: absolute;
        top: 68px;
        right: 16px;
        left: 16px;
        display: none;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        height: 660px;
    }

    .hero-content {
        padding-top: 120px;
    }

    .hero-controls {
        right: 22px;
        left: 22px;
        justify-content: space-between;
    }

    .search-band,
    .toolbar {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .site-stats,
    .movie-grid,
    .compact-grid,
    .category-grid,
    .detail-meta-grid,
    .info-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-hero {
        padding: 34px;
    }

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

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

@media (max-width: 560px) {
    .nav-wrap,
    .search-band,
    .site-stats,
    .content-section,
    .toolbar,
    .quick-filter-row,
    .breadcrumb,
    .detail-copy,
    .player-section,
    .detail-hero,
    .page-hero,
    .footer-grid {
        width: min(100% - 28px, var(--container));
    }

    .brand-text {
        font-size: 1rem;
    }

    .hero {
        height: 620px;
    }

    .hero p {
        font-size: 0.98rem;
    }

    .site-stats,
    .movie-grid,
    .compact-grid,
    .category-grid,
    .detail-meta-grid,
    .info-list,
    .advanced-toolbar {
        grid-template-columns: 1fr;
    }

    .poster {
        min-height: 360px;
    }

    .ranking-item,
    .large-ranking .ranking-item {
        grid-template-columns: 44px 74px minmax(0, 1fr);
    }

    .page-hero,
    .detail-hero,
    .player-section,
    .detail-copy article {
        padding: 20px;
    }

    .site-footer ul {
        columns: 1;
    }
}
