:root {
    --night-950: #050710;
    --night-900: #0a0f1f;
    --night-800: #11172b;
    --silver-100: #f7f8fb;
    --silver-200: #e8eaf1;
    --silver-300: #c9cedd;
    --silver-400: #9aa3b9;
    --silver-500: #69738c;
    --moonlight-300: #c8b6ff;
    --moonlight-400: #a78bfa;
    --moonlight-500: #8b5cf6;
    --moonlight-600: #7c3aed;
    --rose-400: #fb7185;
    --gold-400: #facc15;
    --glass: rgba(15, 23, 42, 0.72);
    --line: rgba(203, 213, 225, 0.14);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--silver-200);
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 32rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30rem),
        linear-gradient(180deg, var(--night-950), var(--night-900) 42%, #070914 100%);
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 7, 16, 0.76);
    backdrop-filter: blur(22px);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--moonlight-500), #38bdf8);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.46);
}

.brand-text {
    white-space: nowrap;
    font-size: 1.12rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    color: var(--silver-300);
    font-size: 0.95rem;
}

.desktop-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.header-search,
.mobile-search,
.big-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input,
.catalog-toolbar input,
.catalog-toolbar select {
    border: 1px solid var(--line);
    color: #fff;
    background: rgba(15, 23, 42, 0.76);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    width: 210px;
    padding: 10px 14px;
    border-radius: 999px;
}

.header-search button,
.mobile-search button,
.big-search button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #fff;
    cursor: pointer;
    background: var(--moonlight-500);
}

input:focus,
select:focus {
    border-color: rgba(167, 139, 250, 0.78);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    padding: 8px 12px;
}

.mobile-panel {
    display: none;
    padding: 14px 24px 24px;
    border-top: 1px solid var(--line);
    background: rgba(5, 7, 16, 0.95);
}

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

.mobile-panel a {
    color: var(--silver-300);
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    display: grid;
    align-items: stretch;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
    align-items: center;
    gap: 44px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 86px 32px 96px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.hero-bg img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: blur(2px) saturate(1.12);
}

.hero-shade,
.detail-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(5, 7, 16, 0.94), rgba(5, 7, 16, 0.62), rgba(5, 7, 16, 0.94)),
        linear-gradient(180deg, rgba(5, 7, 16, 0.2), var(--night-950));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--moonlight-300);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #fff;
    line-height: 1.06;
    font-family: Georgia, "Noto Serif SC", serif;
    font-weight: 800;
}

.hero h1 {
    max-width: 900px;
    font-size: clamp(3.2rem, 8vw, 6.8rem);
}

.hero-one-line,
.detail-one-line {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--silver-200);
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    line-height: 1.75;
}

.hero-meta,
.detail-meta,
.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta,
.detail-meta {
    margin-top: 22px;
}

.hero-meta span,
.detail-meta span,
.movie-meta-line span {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--silver-300);
    background: rgba(15, 23, 42, 0.52);
}

.hero-meta span,
.detail-meta span {
    padding: 7px 12px;
}

.movie-meta-line span {
    padding: 3px 8px;
    font-size: 0.78rem;
}

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

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

.hero-tags span,
.tag-list span {
    border: 1px solid rgba(167, 139, 250, 0.28);
    border-radius: 999px;
    color: var(--moonlight-300);
    background: rgba(139, 92, 246, 0.12);
}

.hero-tags span {
    padding: 7px 12px;
}

.tag-list span {
    padding: 4px 8px;
    font-size: 0.78rem;
}

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

.btn,
.inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn:hover,
.inline-link:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--moonlight-500), #2563eb);
    box-shadow: 0 16px 44px rgba(139, 92, 246, 0.34);
}

.btn-ghost {
    border: 1px solid var(--line);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hero-poster,
.detail-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 34px;
    background:
        radial-gradient(circle at top, rgba(139, 92, 246, 0.26), transparent 70%),
        #0f172a;
    box-shadow: var(--shadow);
}

.hero-poster {
    z-index: 2;
    aspect-ratio: 3 / 4.2;
    max-width: 390px;
    justify-self: end;
    transform: rotate(2deg);
}

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

.hero-poster span,
.detail-poster span,
.play-badge {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(139, 92, 246, 0.86);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.hero-poster span,
.detail-poster span {
    left: 50%;
    top: 50%;
    width: 74px;
    height: 74px;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
}

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

.hero-controls button {
    border: 1px solid var(--line);
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 1.5rem;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.56;
}

.hero-dot.is-active {
    width: 30px;
    opacity: 1;
    background: var(--moonlight-400);
}

.stat-strip {
    position: relative;
    z-index: 10;
    max-width: 1180px;
    margin: -34px auto 0;
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.stat-strip div {
    text-align: center;
}

.stat-strip strong {
    display: block;
    color: #fff;
    font-size: 1.8rem;
}

.stat-strip span {
    color: var(--silver-400);
}

.content-section,
.page-main .content-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 76px 32px;
}

.alt-section {
    max-width: none;
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.alt-section > * {
    max-width: 1440px;
    margin-inline: auto;
}

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

.section-heading h2,
.panel-title h2,
.story-panel h2,
.info-panel h2 {
    margin: 0;
    color: #fff;
    font-family: Georgia, "Noto Serif SC", serif;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-heading p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--silver-400);
}

.section-heading > a,
.inline-link {
    color: var(--moonlight-300);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.18);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(167, 139, 250, 0.45);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.38), rgba(14, 165, 233, 0.18)),
        #111827;
}

.movie-poster::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.62));
}

.score-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    color: #111827;
    font-weight: 900;
    background: var(--gold-400);
}

.play-badge {
    right: 12px;
    bottom: 12px;
    z-index: 3;
    width: 40px;
    height: 40px;
}

.movie-info {
    padding: 18px;
}

.movie-info h3 {
    margin: 12px 0 10px;
    color: #fff;
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--moonlight-300);
}

.movie-info p {
    margin: 0 0 14px;
    color: var(--silver-400);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.34), rgba(14, 165, 233, 0.16)),
        #111827;
}

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

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

.category-tile::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 12%, rgba(5, 7, 16, 0.9));
}

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

.category-tile span {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
}

.category-tile strong {
    margin-top: 6px;
    color: var(--moonlight-300);
}

.category-tile em {
    margin-top: 10px;
    color: var(--silver-300);
    font-style: normal;
    line-height: 1.65;
}

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

.ranking-panel,
.story-panel,
.info-panel,
.category-overview-card,
.player-shell {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.64);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24);
}

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.large-panel {
    position: static;
}

.panel-title span {
    color: var(--moonlight-300);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.panel-title h2 {
    margin-top: 4px;
    font-size: 1.6rem;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 36px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: rgba(139, 92, 246, 0.13);
}

.rank-number {
    color: var(--moonlight-300);
    font-weight: 900;
}

.rank-cover {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.rank-body {
    min-width: 0;
}

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

.rank-body strong {
    color: #fff;
}

.rank-body em {
    color: var(--silver-500);
    font-size: 0.84rem;
    font-style: normal;
}

.rank-score {
    color: var(--gold-400);
    font-weight: 900;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 32px 72px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 25% 15%, rgba(139, 92, 246, 0.24), transparent 32rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(5, 7, 16, 0.96));
}

.page-hero > div,
.detail-container {
    max-width: 1260px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(2.6rem, 6vw, 5.4rem);
}

.page-hero p {
    max-width: 760px;
    color: var(--silver-300);
    font-size: 1.16rem;
    line-height: 1.75;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--silver-400);
}

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

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
}

.filter-box,
.sort-box {
    display: grid;
    gap: 8px;
    color: var(--silver-400);
}

.filter-box {
    flex: 1;
    min-width: 260px;
}

.catalog-toolbar input,
.catalog-toolbar select,
.big-search input {
    border-radius: 999px;
    padding: 12px 16px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 6px;
    min-height: 180px;
}

.category-cover-stack img {
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    background: #111827;
}

.category-overview-card span {
    color: var(--moonlight-300);
    font-weight: 800;
}

.category-overview-card h2 {
    margin: 10px 0;
    color: #fff;
    font-size: 1.5rem;
}

.category-overview-card p {
    margin: 0 0 16px;
    color: var(--silver-400);
    line-height: 1.7;
}

.big-search {
    max-width: 780px;
    margin-top: 28px;
}

.big-search input {
    flex: 1;
    min-height: 54px;
}

.big-search button {
    min-height: 54px;
    padding: 0 26px;
}

.search-status {
    margin-bottom: 24px;
    color: var(--silver-300);
    font-size: 1.08rem;
}

.detail-main {
    min-height: 100vh;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 32px 62px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
}

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

.detail-poster {
    aspect-ratio: 3 / 4.2;
}

.detail-copy h1 {
    font-size: clamp(2.3rem, 5vw, 5.2rem);
}

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

.player-section {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 32px 60px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(139, 92, 246, 0.24), transparent 20rem),
        rgba(0, 0, 0, 0.38);
}

.player-shell.is-playing .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.big-play {
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--moonlight-500), #2563eb);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
    font-size: 2rem;
}

.player-overlay strong {
    font-size: 1.45rem;
}

.player-overlay em {
    color: var(--silver-300);
    font-style: normal;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    padding: 0 32px 70px;
}

.story-panel,
.info-panel {
    padding: 26px;
}

.story-panel h2,
.info-panel h2 {
    margin-bottom: 16px;
    font-size: 1.7rem;
}

.story-panel p {
    color: var(--silver-300);
    line-height: 1.9;
}

.story-panel p + p {
    margin-top: 14px;
}

.info-panel {
    grid-row: span 2;
}

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

.info-panel div {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.info-panel dt {
    color: var(--silver-500);
}

.info-panel dd {
    margin: 0;
    color: #fff;
}

.info-panel a {
    color: var(--moonlight-300);
}

.detail-related {
    padding-top: 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(5, 7, 16, 0.84);
}

.footer-grid {
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 32px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
}

.footer-grid p,
.footer-grid li,
.copyright {
    color: var(--silver-400);
    line-height: 1.8;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #fff;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    columns: 2;
    list-style: none;
}

.footer-grid a:hover {
    color: var(--moonlight-300);
}

.copyright {
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 32px 28px;
    border-top: 1px solid var(--line);
}

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

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

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

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

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

    .two-column-section,
    .ranking-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .header-inner {
        padding: 0 18px;
    }

    .header-search {
        display: none;
    }

    .hero {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 64px 20px 96px;
    }

    .hero-poster {
        justify-self: start;
        width: min(260px, 72vw);
        transform: rotate(0deg);
    }

    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
        margin-inline: 18px;
    }

    .content-section,
    .page-main .content-section,
    .page-hero,
    .detail-hero,
    .player-section,
    .detail-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section-heading {
        display: grid;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .detail-poster {
        width: min(270px, 76vw);
    }

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

@media (max-width: 560px) {
    .brand-text {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }

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

    .rank-score {
        display: none;
    }

    .big-search,
    .mobile-search {
        display: grid;
    }
}
