:root {
    --bg: #0f172a;
    --bg-soft: #111c33;
    --panel: rgba(30, 41, 59, 0.62);
    --panel-solid: #1e293b;
    --line: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #cbd5e1;
    --accent: #e2e8f0;
    --accent-dark: #334155;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(71, 85, 105, 0.35), transparent 32rem),
        linear-gradient(180deg, #0f172a 0%, #111827 42%, #0f172a 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

img {
    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;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #0f172a;
    background: linear-gradient(135deg, #f8fafc, #94a3b8);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(226, 232, 240, 0.14);
}

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

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

.nav-link,
.nav-drop-button {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    color: var(--muted-2);
    background: transparent;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-drop-button:hover {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.72);
}

.nav-dropdown {
    position: relative;
}

.nav-drop-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 180px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: 0.2s ease;
}

.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-drop-menu a {
    display: block;
    padding: 10px 12px;
    color: var(--muted-2);
    border-radius: 10px;
}

.nav-drop-menu a:hover {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.72);
}

.header-search {
    display: flex;
    align-items: center;
    width: min(330px, 28vw);
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.66);
}

.header-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    padding: 8px 12px;
}

.header-search button {
    border: 0;
    padding: 8px 14px;
    color: #0f172a;
    background: #e2e8f0;
    border-radius: 999px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.72);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #f8fafc;
}

.hero {
    position: relative;
    height: clamp(560px, 72vh, 780px);
    overflow: hidden;
    background: #020617;
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.28)),
        linear-gradient(0deg, #0f172a 0%, transparent 40%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
    gap: 44px;
    align-items: center;
    padding-top: 30px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin-bottom: 18px;
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-player-panel h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 720px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: clamp(18px, 2vw, 22px);
}

.hero-meta,
.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    color: var(--muted-2);
}

.hero-meta span,
.detail-meta-row span,
.page-meta span {
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    padding: 5px 9px;
    color: #dbeafe;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    font-size: 12px;
}

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

.primary-button,
.ghost-button,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

.primary-button {
    color: #0f172a;
    background: #f8fafc;
    box-shadow: 0 18px 50px rgba(248, 250, 252, 0.16);
}

.primary-button:hover {
    transform: translateY(-2px);
    background: #ffffff;
}

.primary-button.full {
    width: 100%;
}

.ghost-button,
.section-more,
.text-link {
    color: #e2e8f0;
    background: rgba(51, 65, 85, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.ghost-button:hover,
.section-more:hover,
.text-link:hover {
    background: rgba(71, 85, 105, 0.86);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.2;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.14);
    background: linear-gradient(135deg, #1e293b, #020617);
}

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

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

.hero-arrow,
.hero-dot {
    border: 0;
    background: rgba(30, 41, 59, 0.78);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    font-size: 28px;
}

.hero-dots {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.54);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    transition: 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #e2e8f0;
}

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.52);
    box-shadow: 0 16px 54px rgba(2, 6, 23, 0.2);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(226, 232, 240, 0.32);
    background: rgba(30, 41, 59, 0.76);
}

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 22;
    overflow: hidden;
    background: linear-gradient(135deg, #334155, #020617);
}

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

.movie-card:hover .card-poster img {
    transform: scale(1.04);
}

.play-mark {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #0f172a;
    background: rgba(248, 250, 252, 0.92);
    border-radius: 999px;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    color: #0f172a;
    background: #e2e8f0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.card-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 7px;
    color: #475569;
}

.card-body h3 {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.card-body h3 a:hover {
    color: #ffffff;
}

.card-body p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted-2);
    font-size: 14px;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: #1e293b;
}

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

.category-card:hover img {
    opacity: 0.48;
    transform: scale(1.04);
}

.category-card div {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.92));
}

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

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

.category-card span {
    display: inline-flex;
    margin-top: 18px;
    color: #ffffff;
    font-weight: 800;
}

.page-hero {
    padding: 92px 0 54px;
    background:
        radial-gradient(circle at 78% 22%, rgba(100, 116, 139, 0.28), transparent 28rem),
        linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0));
}

.page-hero p {
    max-width: 760px;
    color: var(--muted-2);
    font-size: 18px;
}

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

.category-large-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    background: rgba(30, 41, 59, 0.56);
}

.category-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    min-height: 250px;
    background: #020617;
}

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

.category-large-body {
    padding: 24px;
}

.category-large-body h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.category-large-body p {
    color: var(--muted-2);
}

.category-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.category-stats span {
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.42);
    border-radius: 999px;
    color: var(--muted-2);
    font-size: 13px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.7fr;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.5);
}

.search-panel {
    grid-template-columns: 1.5fr 0.8fr 0.7fr 0.8fr;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted-2);
    font-weight: 700;
}

.filter-panel input,
.filter-panel select,
.inline-filter input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.2);
    outline: 0;
    border-radius: 14px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.72);
    padding: 12px 14px;
}

.filter-panel select option {
    background: #0f172a;
}

.result-note {
    margin-bottom: 18px;
    color: var(--muted-2);
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 54px 66px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.5);
    transition: 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
    border-color: rgba(226, 232, 240, 0.3);
    background: rgba(30, 41, 59, 0.72);
}

.ranking-number {
    color: #e2e8f0;
    font-size: 22px;
    font-weight: 900;
}

.ranking-item img {
    width: 66px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
    background: #020617;
}

.ranking-info {
    min-width: 0;
}

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

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

.ranking-score {
    padding: 6px 10px;
    border-radius: 999px;
    color: #0f172a;
    background: #e2e8f0;
    font-weight: 900;
}

.detail-hero {
    position: relative;
    padding: 42px 0 72px;
    overflow: hidden;
    background: #020617;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    filter: blur(8px) saturate(1.2);
    transform: scale(1.04);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), #0f172a 92%);
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: end;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted-2);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.player {
    position: relative;
    overflow: hidden;
    margin-bottom: 26px;
    border: 1px solid rgba(226, 232, 240, 0.16);
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow);
}

.player video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.72));
}

.player-start span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    color: #0f172a;
    background: rgba(248, 250, 252, 0.94);
    border-radius: 999px;
    font-size: 34px;
    box-shadow: 0 20px 80px rgba(248, 250, 252, 0.22);
}

.player-start strong {
    font-size: 18px;
}

.player.is-playing .player-start {
    display: none;
}

.player-status {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    padding: 8px 12px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    font-size: 13px;
    text-align: center;
    pointer-events: none;
}

.player.is-playing .player-status {
    opacity: 0;
}

.detail-one-line {
    color: #dbeafe;
    font-size: 20px;
}

.detail-side-card {
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    background: rgba(30, 41, 59, 0.68);
    box-shadow: var(--shadow);
}

.detail-side-card img {
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    border-radius: 18px;
    background: #020617;
}

.side-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
    color: var(--muted-2);
}

.side-score strong {
    color: #ffffff;
    font-size: 28px;
}

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

.info-box,
.detail-info-list {
    margin-bottom: 22px;
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgba(30, 41, 59, 0.5);
}

.info-box h2,
.detail-info-list h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.info-box p {
    margin: 0;
    color: var(--muted-2);
    font-size: 16px;
}

.detail-info-list dl {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0 0 20px;
}

.detail-info-list dt {
    color: var(--muted);
}

.detail-info-list dd {
    margin: 0;
    color: var(--text);
}

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

.detail-nav-links a {
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.5);
    color: var(--muted-2);
}

.detail-nav-links a:hover {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.72);
}

.related-grid .movie-card-compact .card-body p {
    min-height: auto;
}

.site-footer {
    padding: 52px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: #0b1120;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 32px;
}

.footer-brand {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 900;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.site-footer a,
.site-footer p {
    display: block;
    color: var(--muted);
    margin: 0 0 8px;
}

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

.is-hidden {
    display: none !important;
}

@media (max-width: 1080px) {
    .header-search {
        display: none;
    }

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

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

    .hero-poster,
    .detail-side-card {
        display: none;
    }

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

@media (max-width: 820px) {
    .header-inner {
        height: auto;
        min-height: 68px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

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

    .nav-links {
        display: none;
        order: 5;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 4px;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-link,
    .nav-drop-button {
        justify-content: flex-start;
        width: 100%;
    }

    .nav-dropdown:hover .nav-drop-menu,
    .nav-dropdown:focus-within .nav-drop-menu,
    .nav-drop-menu {
        position: static;
        width: 100%;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        margin-top: 6px;
        box-shadow: none;
    }

    .hero {
        height: 640px;
    }

    .hero-content {
        align-items: end;
        padding-bottom: 92px;
    }

    .hero h1,
    .page-hero h1,
    .detail-player-panel h1 {
        font-size: 38px;
    }

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

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

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

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

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

    .hero {
        height: 690px;
    }

    .hero-meta,
    .detail-meta-row {
        gap: 7px;
    }

    .movie-grid,
    .category-grid,
    .compact-ranking,
    .footer-grid,
    .detail-nav-links {
        grid-template-columns: 1fr;
    }

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

    .category-collage {
        min-height: 180px;
    }

    .ranking-item {
        grid-template-columns: 42px 56px minmax(0, 1fr);
    }

    .ranking-score {
        grid-column: 3;
        justify-self: start;
    }
}
