:root {
    --night-950: #05070d;
    --night-930: #080b14;
    --night-900: #0d111c;
    --night-850: #111827;
    --night-800: #172033;
    --night-700: #243044;
    --gold-600: #b87918;
    --gold-500: #d99b2b;
    --gold-400: #f3c96b;
    --gold-300: #ffe3a0;
    --text-main: #f8fafc;
    --text-soft: #cbd5e1;
    --text-muted: #8b98aa;
    --line-soft: rgba(243, 201, 107, 0.16);
    --line-muted: rgba(255, 255, 255, 0.08);
    --panel: rgba(13, 17, 28, 0.82);
    --panel-strong: rgba(8, 11, 20, 0.96);
    --shadow-glow: 0 18px 65px rgba(217, 155, 43, 0.22);
    --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.28);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(217, 155, 43, 0.16), transparent 34rem),
        linear-gradient(180deg, var(--night-950), var(--night-900) 42rem, var(--night-950));
    color: var(--text-main);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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: 80;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(5, 7, 13, 0.9);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--night-950);
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    box-shadow: var(--shadow-glow);
}

.brand-text {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-link {
    color: var(--text-soft);
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--gold-400);
}

.header-search {
    display: flex;
    align-items: center;
    width: 280px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.header-search input,
.mobile-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: none;
    padding: 10px 14px;
    background: transparent;
    color: var(--text-main);
}

.header-search button,
.mobile-search button {
    border: 0;
    padding: 10px 15px;
    color: var(--night-950);
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    border: 1px solid var(--line-soft);
    color: var(--gold-400);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.mobile-panel {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 18px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: var(--panel-strong);
}

.mobile-panel[hidden] {
    display: none;
}

.mobile-search {
    display: flex;
    margin-bottom: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    overflow: hidden;
}

.mobile-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mobile-links a,
.nav-menu-link {
    color: var(--text-soft);
    padding: 10px 12px;
    border: 1px solid var(--line-muted);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.hero-carousel {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: var(--night-950);
}

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

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

.hero-bg,
.hero-bg img,
.detail-backdrop,
.detail-backdrop img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img,
.detail-backdrop img {
    object-fit: cover;
    filter: saturate(1.08);
    transform: scale(1.02);
}

.hero-shade,
.detail-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 78% 32%, rgba(243, 201, 107, 0.2), transparent 28rem),
        linear-gradient(90deg, rgba(5, 7, 13, 0.95), rgba(5, 7, 13, 0.76) 44%, rgba(5, 7, 13, 0.4)),
        linear-gradient(0deg, var(--night-950), rgba(5, 7, 13, 0.18) 44%, rgba(5, 7, 13, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 70vh;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 390px);
    gap: 52px;
    align-items: center;
    padding: 68px 0 90px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--gold-400);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 860px;
    margin: 0 0 14px;
    font-size: clamp(38px, 5.8vw, 74px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    margin: 0 0 16px;
    color: var(--gold-300);
    font-size: clamp(27px, 3.4vw, 46px);
    line-height: 1.15;
}

.hero-copy p {
    max-width: 760px;
    margin: 0 0 20px;
    color: var(--text-soft);
    font-size: clamp(17px, 1.8vw, 22px);
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    color: var(--gold-300);
    background: rgba(217, 155, 43, 0.1);
    font-size: 13px;
}

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

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

.primary-btn {
    color: var(--night-950);
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    box-shadow: var(--shadow-glow);
}

.ghost-btn,
.section-more {
    color: var(--gold-300);
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.06);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    width: min(100%, 380px);
    justify-self: end;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-glow);
    background: var(--night-900);
}

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

.hero-poster span,
.score-pill,
.detail-poster span {
    position: absolute;
    right: 14px;
    top: 14px;
    color: var(--night-950);
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
    font-weight: 900;
    font-size: 13px;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 9px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(5, 7, 13, 0.68);
    backdrop-filter: blur(12px);
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--gold-300);
    background: rgba(255, 255, 255, 0.08);
    font-size: 26px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 28px;
    background: var(--gold-400);
}

.quick-panel,
.content-section,
.page-shell,
.site-footer .footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.quick-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: -34px;
    position: relative;
    z-index: 10;
}

.quick-panel a {
    padding: 22px;
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    background: rgba(8, 11, 20, 0.88);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
}

.quick-panel strong {
    display: block;
    margin-bottom: 4px;
    color: var(--gold-300);
    font-size: 18px;
}

.quick-panel span {
    color: var(--text-muted);
    font-size: 14px;
}

.content-section {
    margin-top: 58px;
}

.no-top-gap {
    margin-top: 26px;
}

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

.section-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.18;
}

.section-heading p,
.page-hero p,
.category-overview-card p,
.detail-copy .lead-text {
    margin: 0;
    color: var(--text-soft);
}

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

.category-movie-grid {
    align-items: stretch;
}

.movie-card {
    position: relative;
    min-width: 0;
    border: 1px solid var(--line-muted);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(23, 32, 51, 0.82), rgba(8, 11, 20, 0.92));
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-soft);
    box-shadow: var(--shadow-glow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--night-850);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-link::after {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    content: "";
    background: linear-gradient(0deg, rgba(5, 7, 13, 0.82), transparent);
}

.rank-badge {
    position: absolute;
    z-index: 3;
    left: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: var(--night-950);
    background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
    box-shadow: var(--shadow-glow);
}

.card-body {
    padding: 16px;
}

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

.meta-row span,
.meta-row a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-row a {
    color: var(--gold-400);
}

.card-body h3,
.ranking-info h3,
.category-overview-card h2 {
    margin: 9px 0 8px;
    color: var(--text-main);
    font-size: 19px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.ranking-info h3 a:hover,
.category-overview-card h2 a:hover {
    color: var(--gold-400);
}

.card-body p {
    min-height: 3.2em;
    margin: 0 0 14px;
    color: var(--text-soft);
    font-size: 14px;
}

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

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

.category-tile {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    border: 1px solid var(--line-muted);
    border-radius: 22px;
    overflow: hidden;
    background: var(--night-850);
}

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

.category-tile::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(5, 7, 13, 0.95), rgba(5, 7, 13, 0.2));
}

.category-tile:hover img {
    opacity: 0.7;
    transform: scale(1.07);
}

.category-tile span,
.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 2;
}

.category-tile span {
    color: var(--gold-300);
    font-size: 21px;
    font-weight: 800;
}

.category-tile strong {
    margin-top: 2px;
    color: var(--text-main);
}

.category-tile em {
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 13px;
    font-style: normal;
}

.page-shell {
    padding-top: 34px;
    padding-bottom: 70px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 30px;
    background:
        radial-gradient(circle at 80% 10%, rgba(217, 155, 43, 0.22), transparent 24rem),
        linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(8, 11, 20, 0.98));
    box-shadow: var(--shadow-card);
}

.compact-hero {
    padding: clamp(28px, 5vw, 54px);
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 12px;
    font-size: clamp(31px, 4.8vw, 56px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 820px;
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr;
    gap: 14px;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    background: rgba(8, 11, 20, 0.78);
}

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

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--text-soft);
    font-size: 14px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line-muted);
    border-radius: 14px;
    outline: none;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.055);
    padding: 0 13px;
}

.overview-grid {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border: 1px solid var(--line-muted);
    border-radius: 24px;
    background: rgba(13, 17, 28, 0.76);
}

.overview-image {
    border-radius: 18px;
    overflow: hidden;
}

.overview-image img {
    width: 100%;
    height: 100%;
    min-height: 248px;
    object-fit: cover;
}

.category-overview-card ul {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.category-overview-card li a {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.04);
}

.category-overview-card li a:hover {
    color: var(--gold-400);
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line-muted);
    border-radius: 20px;
    background: rgba(13, 17, 28, 0.78);
}

.ranking-cover {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

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

.ranking-cover b {
    position: absolute;
    z-index: 2;
    left: 8px;
    top: 8px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--night-950);
    background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
}

.ranking-info p {
    margin: 0;
    color: var(--text-soft);
}

.detail-shell {
    width: 100%;
    max-width: none;
    padding-top: 0;
}

.detail-shell > .breadcrumb,
.detail-shell > .player-section,
.detail-shell > .detail-content,
.detail-shell > .content-section {
    width: min(1240px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.detail-shell > .breadcrumb {
    padding-top: 28px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    margin-top: -1px;
}

.detail-backdrop {
    z-index: 0;
    opacity: 0.68;
}

.detail-layout {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
    padding: 54px 0;
}

.detail-poster {
    position: relative;
    border: 1px solid var(--line-soft);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

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

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 18px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.07);
}

.detail-meta a {
    color: var(--gold-400);
}

.jump-player {
    margin-top: 28px;
}

.player-section {
    margin-top: 42px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow-card);
    aspect-ratio: 16 / 9;
}

.player-box video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-box video {
    z-index: 1;
    background: #000;
}

.player-cover {
    z-index: 3;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--text-main);
    background: #000;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.player-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: radial-gradient(circle, rgba(217, 155, 43, 0.24), rgba(5, 7, 13, 0.58));
}

.player-button {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 50%;
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    color: var(--night-950);
    background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
    box-shadow: var(--shadow-glow);
    font-size: 31px;
    padding-left: 5px;
}

.player-box.is-playing .player-cover {
    opacity: 0;
    pointer-events: none;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 32px;
}

.detail-content article {
    padding: 24px;
    border: 1px solid var(--line-muted);
    border-radius: 24px;
    background: rgba(13, 17, 28, 0.78);
}

.detail-content h2 {
    margin: 0 0 12px;
    color: var(--gold-300);
    font-size: 24px;
}

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

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line-soft);
    background: rgba(5, 7, 13, 0.88);
}

.site-footer .footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
    padding: 42px 0;
}

.site-footer p {
    max-width: 450px;
    margin: 14px 0 0;
    color: var(--text-muted);
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--text-main);
    font-size: 18px;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: var(--gold-400);
}

.search-empty {
    grid-column: 1 / -1;
    padding: 34px;
    border: 1px solid var(--line-muted);
    border-radius: 20px;
    color: var(--text-soft);
    background: rgba(13, 17, 28, 0.72);
    text-align: center;
}

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

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 48px;
    }

    .hero-poster {
        justify-self: start;
        width: 260px;
    }

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

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

    .detail-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 28px;
    }
}

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

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

    .hero-carousel,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        padding-bottom: 104px;
    }

    .quick-panel,
    .filter-panel,
    .search-panel,
    .detail-content,
    .site-footer .footer-inner,
    .category-overview-card,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

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

    .detail-layout {
        min-height: auto;
        padding: 36px 0;
    }

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

    .detail-hero {
        min-height: auto;
    }

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

@media (max-width: 520px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

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

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

    .hero-poster {
        width: 220px;
    }

    .player-button {
        width: 64px;
        height: 64px;
        font-size: 25px;
    }
}
