:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(2, 6, 23, 0.92);
    --line: rgba(34, 211, 238, 0.22);
    --line-strong: rgba(34, 211, 238, 0.44);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --orange: #fb923c;
    --pink: #f472b6;
    --green: #34d399;
    --shadow: 0 24px 70px rgba(8, 145, 178, 0.16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.12), transparent 28rem),
        radial-gradient(circle at 88% 14%, rgba(59, 130, 246, 0.13), transparent 26rem),
        linear-gradient(180deg, #020617 0%, #07111f 48%, #020617 100%);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #00111a;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
    font-size: 15px;
    font-weight: 900;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong,
.footer-brand {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--cyan), #93c5fd, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 4px;
    color: rgba(34, 211, 238, 0.65);
    font-size: 12px;
    font-style: normal;
}

.top-search {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    max-width: 420px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    overflow: hidden;
}

.top-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    padding: 11px 16px;
}

.top-search button {
    border: 0;
    color: #00111a;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    padding: 11px 18px;
    font-weight: 700;
}

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

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

.nav-link {
    padding: 9px 13px;
    font-size: 14px;
}

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

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--cyan);
    background: rgba(15, 23, 42, 0.75);
}

.mobile-nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 16px 16px;
}

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

.mobile-link {
    padding: 11px 12px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
}

.hero-carousel {
    position: relative;
    height: min(82vh, 780px);
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-slide img,
.detail-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade,
.detail-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.74) 43%, rgba(2, 6, 23, 0.22) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.38) 42%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 780px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 18px;
    padding: 7px 13px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.09);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, #ffffff, #cffafe, #bfdbfe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p,
.page-hero p,
.detail-one-line {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--muted-strong);
    font-size: clamp(17px, 2.2vw, 22px);
}

.hero-tags,
.meta-pills,
.detail-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

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

.hero-tags span,
.meta-pills span,
.detail-tags span,
.tag-row span {
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: var(--muted-strong);
}

.hero-tags span,
.meta-pills span,
.detail-tags span {
    padding: 7px 12px;
    font-size: 14px;
}

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

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

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

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

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 55px rgba(34, 211, 238, 0.2);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-panel {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-top: -34px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(2, 6, 23, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.filter-bar,
.local-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-bar input,
.local-filter input,
.local-filter select {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(34, 211, 238, 0.28);
    outline: 0;
    border-radius: 16px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.78);
    padding: 13px 15px;
}

.filter-bar button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 16px;
    color: #00111a;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    padding: 13px 20px;
    font-weight: 800;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-links a,
.related-categories a {
    display: inline-flex;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.08);
    padding: 10px 14px;
    font-weight: 700;
}

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

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

.section-head div {
    display: grid;
    gap: 4px;
}

.section-head span {
    color: var(--cyan);
    font-weight: 900;
}

.section-head h2,
.rank-panel h2,
.player-section h2,
.detail-copy h2,
.related-categories h2,
.site-footer h2 {
    margin: 0;
    color: var(--text);
}

.section-head h2,
.rank-panel h2,
.player-section h2 {
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

.section-head p,
.rank-panel p,
.related-categories p,
.site-footer p,
.detail-copy p {
    margin: 0;
    color: var(--muted);
}

.section-head a {
    flex: 0 0 auto;
    color: var(--cyan);
    font-weight: 800;
}

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

.category-card,
.category-overview-card a {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: var(--radius);
    border: 1px solid rgba(34, 211, 238, 0.18);
    background: var(--panel);
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.22);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.category-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.95) 4%, rgba(2, 6, 23, 0.08) 100%);
}

.category-card span {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 5px;
}

.category-card strong,
.category-overview-body strong {
    font-size: 20px;
    color: var(--text);
}

.category-card em,
.category-overview-body em,
.card-body em,
.rank-row em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.category-card:hover img {
    opacity: 0.62;
    transform: scale(1.08);
}

.movie-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 0 0 18px;
    scrollbar-width: none;
}

.movie-row::-webkit-scrollbar {
    display: none;
}

.movie-row .movie-card {
    flex: 0 0 288px;
}

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

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

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

.movie-card {
    min-width: 0;
}

.card-link {
    display: block;
    height: 100%;
    border: 1px solid rgba(34, 211, 238, 0.13);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(2, 6, 23, 0.84));
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
    border-color: rgba(34, 211, 238, 0.42);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(34, 211, 238, 0.11);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
}

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

.card-link:hover .poster-frame img {
    transform: scale(1.08);
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 62%);
}

.year-badge,
.region-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.year-badge {
    right: 10px;
    bottom: 10px;
    background: rgba(2, 6, 23, 0.88);
    padding: 5px 8px;
}

.region-badge {
    left: 10px;
    top: 10px;
    background: rgba(34, 211, 238, 0.88);
    color: #00111a;
    padding: 5px 8px;
}

.rank-badge {
    left: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 8px 24px rgba(251, 146, 60, 0.2);
}

.play-dot {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #00111a;
    background: rgba(34, 211, 238, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 18px;
    font-weight: 900;
}

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

.card-body {
    display: grid;
    gap: 7px;
    padding: 14px;
}

.card-body strong {
    display: -webkit-box;
    min-height: 2.9em;
    overflow: hidden;
    color: var(--text);
    font-size: 16px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-desc {
    display: -webkit-box;
    min-height: 3.4em;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    gap: 5px;
    margin-top: 2px;
}

.tag-row span {
    padding: 3px 7px;
    color: rgba(203, 213, 225, 0.88);
    font-size: 11px;
}

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

.rank-panel {
    position: sticky;
    top: 94px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.94));
    padding: 22px;
    box-shadow: var(--shadow);
}

.rank-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.rank-row {
    display: grid;
    grid-template-columns: 34px 60px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    padding: 10px;
}

.rank-row:hover {
    border-color: var(--line-strong);
}

.rank-row img {
    width: 60px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.rank-row strong,
.rank-row em {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.seo-copy,
.related-categories {
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.56);
    padding: 28px;
}

.seo-copy h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.seo-copy p + p {
    margin-top: 10px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 76px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.18), transparent 28rem),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.16), transparent 30rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
}

.page-hero h1 {
    max-width: 880px;
}

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

.category-overview-card a {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 18px;
    min-height: 190px;
    padding: 18px;
}

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

.thumb-stack img {
    width: 100%;
    height: 74px;
    border-radius: 12px;
    object-fit: cover;
}

.category-overview-body {
    display: grid;
    align-content: center;
    gap: 8px;
}

.category-overview-body p {
    margin: 0;
    color: var(--muted);
}

.local-filter {
    margin-bottom: 24px;
}

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

.empty-state {
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.7);
    color: var(--muted);
    padding: 28px;
    text-align: center;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 54px;
    min-height: 560px;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.48;
}

.detail-bg::after {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.96)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.24) 70%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 28px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.detail-poster {
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.detail-info h1 {
    font-size: clamp(36px, 5.5vw, 64px);
}

.meta-pills,
.detail-tags {
    margin-top: 20px;
}

.player-section {
    scroll-margin-top: 90px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.22), rgba(2, 6, 23, 0.26) 42%, rgba(2, 6, 23, 0.52));
}

.play-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    color: #00111a;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 46px rgba(34, 211, 238, 0.42);
    font-size: 30px;
    font-weight: 900;
}

.play-overlay.is-hidden {
    display: none;
}

.detail-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.detail-copy article {
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.66);
    padding: 26px;
}

.detail-copy h2 {
    margin-bottom: 12px;
    color: var(--cyan);
}

.wide-card .card-link {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
}

.wide-card .poster-frame {
    aspect-ratio: 16 / 10;
    height: 100%;
}

.wide-card .card-body {
    align-content: center;
}

.related-categories {
    margin-top: 50px;
}

.related-categories p {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
    padding: 42px 0;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 12px;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--muted);
    padding: 18px;
    text-align: center;
}

[hidden] {
    display: none !important;
}

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

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

    .top-search {
        max-width: none;
    }

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

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

    .rank-panel {
        position: static;
    }
}

@media (max-width: 900px) {
    .nav-wrap {
        min-height: 66px;
    }

    .brand-text strong {
        font-size: 16px;
    }

    .top-search {
        display: none;
    }

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

    .quick-panel,
    .filter-bar,
    .local-filter {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .quick-panel {
        margin-top: 18px;
    }

    .quick-links {
        justify-content: center;
    }

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

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

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

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

    .wide-card .card-link {
        grid-template-columns: 1fr;
    }
}

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

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .brand-text em {
        display: none;
    }

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

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .hero-content p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .section-block {
        padding-top: 44px;
    }

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

    .movie-row .movie-card {
        flex-basis: 240px;
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .all-grid,
    .rank-page-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 168px;
    }

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

    .rank-row {
        grid-template-columns: 30px 54px minmax(0, 1fr);
    }

    .play-overlay span {
        width: 72px;
        height: 72px;
    }
}
