* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-deep: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-soft: rgba(30, 41, 59, 0.62);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --brand: #e2e8f0;
    --brand-2: #64748b;
    --accent: #f8fafc;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(71, 85, 105, 0.28), transparent 34rem),
        radial-gradient(circle at 82% 8%, rgba(148, 163, 184, 0.14), transparent 32rem),
        linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.nav-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #0f172a;
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
    box-shadow: 0 12px 30px rgba(148, 163, 184, 0.22);
}

.logo-text,
.footer-logo {
    font-size: 21px;
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.main-nav a,
.mobile-panel a,
.footer-links a {
    color: var(--muted);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a {
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 650;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--text);
    background: rgba(51, 65, 85, 0.76);
}

.top-search,
.mobile-search,
.wide-search {
    display: flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.74);
    border-radius: 999px;
    overflow: hidden;
}

.top-search input,
.mobile-search input,
.wide-search input,
.filter-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.top-search input {
    width: 210px;
    padding: 10px 14px;
}

.top-search button,
.mobile-search button,
.wide-search button {
    border: 0;
    color: #0f172a;
    font-weight: 800;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    padding: 10px 16px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.66);
    color: var(--text);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 20px;
    background: var(--text);
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding: 12px 22px 20px;
    background: rgba(15, 23, 42, 0.98);
}

.mobile-panel.is-open {
    display: grid;
    gap: 8px;
}

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.46);
}

.mobile-search {
    margin-top: 8px;
}

.mobile-search input {
    flex: 1;
    padding: 12px 14px;
}

.hero-carousel {
    position: relative;
    max-width: 1240px;
    min-height: 620px;
    margin: 28px auto 0;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 34px;
    overflow: hidden;
    background: #020617;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.62fr);
    gap: 34px;
    align-items: center;
    padding: 68px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(1.02);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.82) 44%, rgba(15, 23, 42, 0.44) 100%),
        var(--hero-image) center / cover no-repeat;
    filter: saturate(0.9);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto -16% -20% 24%;
    height: 280px;
    background: radial-gradient(circle, rgba(203, 213, 225, 0.16), transparent 68%);
}

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

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    padding: 6px 12px;
    border: 1px solid rgba(226, 232, 240, 0.14);
    border-radius: 999px;
    color: var(--soft);
    background: rgba(15, 23, 42, 0.62);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-size: clamp(40px, 6vw, 74px);
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--soft);
    font-size: 18px;
}

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

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

.hero-tags span,
.card-tags span {
    border: 1px solid rgba(226, 232, 240, 0.14);
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.66);
}

.hero-tags span {
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

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

.btn-primary,
.btn-ghost,
.btn-small,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary,
.btn-small {
    color: #0f172a;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
}

.btn-primary {
    min-height: 48px;
    padding: 0 24px;
}

.btn-ghost {
    min-height: 48px;
    padding: 0 22px;
    color: var(--text);
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(15, 23, 42, 0.52);
}

.btn-small {
    padding: 8px 14px;
    font-size: 13px;
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-small:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    justify-self: center;
    width: min(360px, 100%);
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(226, 232, 240, 0.22);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46);
}

.hero-poster img,
.poster-frame img,
.category-tile img,
.category-cover img,
.detail-poster img,
.rank-item img,
.ranking-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-nav {
    position: absolute;
    z-index: 4;
    left: 68px;
    bottom: 42px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.34);
}

.hero-dot.is-active {
    background: #f8fafc;
}

.home-search-panel,
.section-wrap,
.page-hero,
.detail-hero,
.breadcrumb,
.player-section,
.detail-content {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.home-search-panel {
    margin-top: 26px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr minmax(260px, 0.7fr);
    gap: 24px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.22);
}

.home-search-panel h2 {
    margin: 0 0 6px;
    font-size: clamp(25px, 4vw, 38px);
    letter-spacing: -0.03em;
}

.home-search-panel p {
    margin: 0;
    color: var(--muted);
}

.wide-search input {
    flex: 1;
    padding: 15px 18px;
}

.wide-search button {
    padding: 15px 20px;
}

.section-wrap {
    padding: 62px 22px 0;
}

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

.section-title.no-link {
    align-items: start;
    flex-direction: column;
    gap: 4px;
}

.section-title span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-title h2 {
    margin: 4px 0 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-title a,
.text-link {
    color: var(--soft);
    font-weight: 800;
}

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

.category-tile,
.category-card-large,
.movie-card,
.rank-list,
.ranking-list,
.detail-content article,
.detail-content aside,
.player-shell {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 20px 52px rgba(2, 6, 23, 0.18);
}

.category-tile {
    position: relative;
    min-height: 172px;
    display: flex;
    align-items: end;
    overflow: hidden;
    border-radius: 24px;
}

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

.category-tile img {
    position: absolute;
    inset: 0;
    opacity: 0.62;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
    padding: 18px;
}

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

.category-tile em,
.card-body em,
.rank-item em,
.ranking-row em,
.category-card-large p,
.category-samples,
.info-list dt {
    color: var(--muted);
    font-style: normal;
}

.category-tile em {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.68);
}

.poster-frame img {
    transition: transform 0.35s ease, filter 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88));
}

.card-year {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.62);
    font-size: 12px;
    font-weight: 800;
}

.card-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #0f172a;
    background: #f8fafc;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.card-tags span {
    padding: 3px 8px;
    font-size: 11px;
}

.card-body strong {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #f8fafc;
    font-size: 16px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body em {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
}

.rank-list {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 24px;
}

.rank-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.5);
}

.rank-item img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
}

.rank-item span {
    display: grid;
    gap: 5px;
}

.rank-item strong,
.ranking-row strong {
    line-height: 1.35;
}

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

.movie-card-compact .card-body strong {
    min-height: auto;
    font-size: 15px;
}

.movie-card-compact .card-body em {
    display: none;
}

.page-hero {
    position: relative;
    margin-top: 28px;
    padding: 74px 42px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 34px;
    background:
        linear-gradient(100deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.74) 64%, rgba(30, 41, 59, 0.34) 100%),
        var(--hero-image, radial-gradient(circle at top right, rgba(148, 163, 184, 0.22), transparent 36rem));
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.compact-hero {
    min-height: 300px;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    align-items: center;
    padding: 18px;
    border-radius: 26px;
}

.category-cover {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 20px;
}

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

.category-card-large p {
    margin: 0 0 14px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.category-samples span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.72);
    font-size: 12px;
}

.catalog-controls {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.6);
}

.filter-search {
    flex: 1;
    display: grid;
    gap: 8px;
}

.filter-search span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-search input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.38);
}

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

.filter-chips button {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: var(--soft);
    background: rgba(30, 41, 59, 0.58);
    padding: 10px 13px;
    font-weight: 800;
}

.filter-chips button.is-active,
.filter-chips button:hover {
    color: #0f172a;
    background: #f8fafc;
}

[data-card].is-hidden {
    display: none;
}

.ranking-list {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 26px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 62px 70px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.46);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
    transform: translateX(3px);
    background: rgba(51, 65, 85, 0.72);
}

.rank-num {
    color: #f8fafc;
    font-size: 26px;
    font-weight: 900;
    opacity: 0.8;
}

.ranking-row img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
}

.rank-copy {
    display: grid;
    gap: 5px;
}

.rank-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.breadcrumb {
    padding: 24px 22px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-hero {
    position: relative;
    margin-top: 18px;
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 34px;
    align-items: end;
    padding: 44px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 34px;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.76)),
        var(--hero-image) center / cover no-repeat;
    box-shadow: var(--shadow);
}

.detail-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 26px;
    border: 1px solid rgba(226, 232, 240, 0.22);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.detail-copy {
    position: relative;
    z-index: 1;
}

.detail-copy h1 {
    font-size: clamp(38px, 5vw, 64px);
}

.detail-tags {
    margin-bottom: 28px;
}

.player-section {
    padding: 48px 22px 0;
}

.player-section h2,
.detail-content h2 {
    margin: 0 0 18px;
    font-size: 26px;
    letter-spacing: -0.02em;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-content: center;
    gap: 16px;
    border: 0;
    color: var(--text);
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4), rgba(2, 6, 23, 0.78));
    text-align: center;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-round {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 999px;
    color: #0f172a;
    background: #f8fafc;
    font-size: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    padding: 42px 22px 0;
}

.detail-content article,
.detail-content aside {
    border-radius: 26px;
    padding: 28px;
}

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

.info-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-list dt,
.info-list dd {
    margin: 0;
}

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

.related-section {
    padding-top: 46px;
}

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

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

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 42px 22px;
    display: grid;
    gap: 24px;
}

.footer-brand p {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--muted);
}

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

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

.copyright {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

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

    .top-search {
        margin-left: auto;
    }

    .menu-toggle {
        display: inline-block;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 48px;
    }

    .hero-poster {
        display: none;
    }

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

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

@media (max-width: 820px) {
    .nav-wrap {
        padding: 12px 16px;
    }

    .top-search {
        display: none;
    }

    .hero-carousel {
        min-height: 560px;
        margin: 16px 14px 0;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 34px 24px 70px;
    }

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

    .hero-copy p,
    .page-hero p,
    .detail-copy p {
        font-size: 16px;
    }

    .hero-nav {
        left: 24px;
        bottom: 28px;
    }

    .home-search-panel {
        margin: 18px 14px 0;
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .section-wrap,
    .player-section,
    .detail-content,
    .breadcrumb {
        padding-left: 14px;
        padding-right: 14px;
    }

    .page-hero,
    .detail-hero {
        margin-left: 14px;
        margin-right: 14px;
        border-radius: 24px;
        padding: 36px 24px;
    }

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

    .detail-poster {
        width: min(220px, 70vw);
    }

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

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

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

    .catalog-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .ranking-row {
        grid-template-columns: 44px 62px 1fr;
    }

    .rank-meta {
        display: none;
    }
}

@media (max-width: 520px) {
    .logo-text {
        font-size: 17px;
    }

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

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

    .wide-search {
        border-radius: 18px;
    }

    .wide-search input,
    .wide-search button {
        width: 100%;
    }

    .movie-grid,
    .mini-grid,
    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body strong {
        min-height: 42px;
        font-size: 14px;
    }

    .card-body em {
        display: none;
    }

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

    .category-cover {
        aspect-ratio: 16 / 9;
    }
}
