:root {
    color-scheme: dark;
    --page-bg: #020617;
    --panel-bg: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --accent: #f97316;
    --accent-strong: #ef4444;
    --gold: #facc15;
    --radius: 24px;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 30rem),
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.16), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.32);
}

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

.main-nav a {
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #fff;
    background: rgba(248, 250, 252, 0.1);
}

.header-search {
    width: min(260px, 25vw);
    position: relative;
}

.header-search input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    outline: none;
}

.header-search input:focus {
    border-color: rgba(249, 115, 22, 0.65);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    color: #fff;
    background: rgba(15, 23, 42, 0.84);
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
}

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

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 38%, rgba(2, 6, 23, 0.44) 72%, rgba(2, 6, 23, 0.9) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, transparent 42%),
        var(--hero-bg);
    background-position: center;
    background-size: cover;
}

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

.hero-content {
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.55fr);
    gap: 52px;
    align-items: center;
    padding: 72px 0 92px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.12);
    font-weight: 700;
    font-size: 13px;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 24px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.hero-copy p {
    max-width: 650px;
    margin: 0;
    color: var(--muted-strong);
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.85;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 0;
}

.hero-tags span,
.small-tag,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.62);
    font-size: 13px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.12);
    color: #fff;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.92);
}

.btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.32);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #fb923c, #ef4444);
}

.hero-panel {
    position: relative;
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 32px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-poster {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(249, 115, 22, 0.34), transparent 42%),
        linear-gradient(135deg, #1e293b, #020617);
}

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

.hero-poster::after,
.poster-shell::after,
.detail-poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.82));
    pointer-events: none;
}

.hero-float {
    position: absolute;
    left: -26px;
    bottom: 28px;
    width: min(280px, 80%);
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: 22px;
    padding: 18px;
    background: rgba(2, 6, 23, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-float strong {
    display: block;
    font-size: 18px;
}

.hero-float span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 13px;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-dot {
    width: 44px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.32);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 72px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.section {
    padding: 54px 0;
}

.section-tight {
    padding: 34px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-subtitle {
    margin: 9px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.poster-link {
    display: block;
}

.poster-shell {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background:
        radial-gradient(circle at top, rgba(249, 115, 22, 0.24), transparent 50%),
        linear-gradient(135deg, #1e293b, #020617);
}

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

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

.movie-type {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(2, 6, 23, 0.68);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 700;
}

.movie-info {
    padding: 16px;
}

.movie-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.movie-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: rgba(148, 163, 184, 0.65);
}

.movie-info h3 {
    margin: 9px 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.movie-info h3 a:hover {
    color: #fed7aa;
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #fdba74;
    background: rgba(249, 115, 22, 0.1);
    font-size: 12px;
}

.feature-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.feature-card {
    min-height: 420px;
    display: grid;
    align-items: end;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 32px;
    padding: 32px;
    background-image:
        linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.12)),
        var(--feature-bg);
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow);
}

.feature-card h3 {
    margin: 16px 0 10px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.feature-card p {
    max-width: 720px;
    margin: 0 0 24px;
    color: var(--muted-strong);
    line-height: 1.8;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(249, 115, 22, 0.36);
}

.rank-no {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: rgba(248, 250, 252, 0.1);
    font-weight: 900;
}

.rank-item:nth-child(1) .rank-no,
.rank-item:nth-child(2) .rank-no,
.rank-item:nth-child(3) .rank-no {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.rank-main strong {
    display: block;
    font-size: 16px;
}

.rank-main span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

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

.category-card {
    min-height: 122px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.62));
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.35);
}

.category-card strong {
    font-size: 18px;
}

.category-card span {
    color: var(--muted);
    font-size: 13px;
}

.filters {
    position: sticky;
    top: 82px;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, 180px));
    gap: 12px;
    margin-bottom: 26px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 24px;
    background: rgba(2, 6, 23, 0.74);
    backdrop-filter: blur(18px);
}

.filters input,
.filters select {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 0 14px;
    color: #fff;
    background: rgba(15, 23, 42, 0.88);
    outline: none;
}

.filters input:focus,
.filters select:focus {
    border-color: rgba(249, 115, 22, 0.58);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.page-hero {
    padding: 58px 0 30px;
}

.page-hero h1 {
    max-width: 900px;
    margin: 18px 0 12px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.85;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 38px 0 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.7);
}

.pagination a:hover,
.pagination .current {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.detail-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.94)),
        var(--detail-bg);
    background-position: center;
    background-size: cover;
}

.detail-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 42px;
    align-items: end;
    min-height: 560px;
    padding: 88px 0 56px;
}

.detail-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: 30px;
    background:
        radial-gradient(circle at top, rgba(249, 115, 22, 0.25), transparent 52%),
        linear-gradient(135deg, #1e293b, #020617);
    box-shadow: var(--shadow);
}

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

.detail-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.detail-copy .lead {
    max-width: 760px;
    margin: 0;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.8;
}

.watch-panel {
    padding: 48px 0 28px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle at center, rgba(249, 115, 22, 0.18), transparent 32%),
        rgba(2, 6, 23, 0.46);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 24px 54px rgba(249, 115, 22, 0.34);
    font-size: 30px;
    padding-left: 5px;
}

.play-overlay strong {
    font-size: 20px;
}

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

.content-card,
.side-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    padding: 26px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.content-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 900;
}

.content-card p {
    margin: 0 0 20px;
    color: var(--muted-strong);
    line-height: 1.95;
}

.meta-table {
    display: grid;
    gap: 12px;
}

.meta-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    color: var(--muted-strong);
}

.meta-row span:first-child {
    color: var(--muted);
}

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

.related-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.34);
    transition: background 0.2s ease;
}

.related-item:hover {
    background: rgba(249, 115, 22, 0.12);
}

.related-thumb {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e293b, #020617);
}

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

.related-item strong {
    display: block;
    line-height: 1.35;
}

.related-item span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.category-section {
    margin-bottom: 34px;
}

.category-section h2 {
    margin: 0 0 14px;
    font-size: 25px;
    font-weight: 900;
}

.link-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-cloud a {
    padding: 9px 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.68);
}

.link-cloud a:hover {
    color: #fff;
    border-color: rgba(249, 115, 22, 0.42);
    background: rgba(249, 115, 22, 0.13);
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 0;
    font-size: 13px;
}

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

.empty-state {
    display: none;
    padding: 34px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.7);
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

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

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

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

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

    .hero-panel {
        display: none;
    }

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

    .detail-hero-inner {
        grid-template-columns: 230px 1fr;
    }

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

@media (max-width: 820px) {
    .header-inner {
        min-height: 64px;
    }

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

    .main-nav {
        position: fixed;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(2, 6, 23, 0.94);
        box-shadow: var(--shadow);
    }

    body.menu-open .main-nav {
        display: flex;
    }

    .main-nav a {
        border-radius: 14px;
    }

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

    .hero-copy h1,
    .hero-copy h2 {
        font-size: clamp(40px, 13vw, 64px);
    }

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

    .filters {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        padding-top: 54px;
    }

    .detail-poster {
        width: min(250px, 72vw);
    }

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

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .page-shell,
    .header-inner,
    .hero-content,
    .hero-controls,
    .detail-hero-inner,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

    .hero-slider,
    .hero-content {
        min-height: 560px;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .movie-info {
        padding: 12px;
    }

    .movie-info h3 {
        font-size: 15px;
    }

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

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

    .rank-item {
        grid-template-columns: 42px 1fr;
    }

    .rank-item .btn {
        grid-column: 2;
        justify-self: start;
    }

    .detail-copy .lead {
        font-size: 16px;
    }

    .content-card,
    .side-card {
        padding: 20px;
        border-radius: 22px;
    }
}
