:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.72);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --amber: #f59e0b;
    --orange: #ea580c;
    --rose: #f43f5e;
    --cyan: #06b6d4;
    --radius: 20px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    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(245, 158, 11, 0.16), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.12), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

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

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

img.image-missing {
    opacity: 0;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1220px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 14px 38px rgba(245, 158, 11, 0.35);
}

.brand-text {
    font-size: 1.18rem;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link,
.mobile-link {
    color: #dbeafe;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
    font-size: 0.94rem;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #fbbf24;
    background: rgba(30, 41, 59, 0.72);
}

.nav-link-soft {
    color: #94a3b8;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.7);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #f8fafc;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 16px;
    border-top: 1px solid var(--line);
}

.mobile-link {
    display: block;
    padding: 12px 14px;
    margin-top: 4px;
}

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

.home-main {
    width: 100%;
}

.home-main > .content-section,
.home-search-panel {
    width: min(1220px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.hero-carousel {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.65) 44%, rgba(0, 0, 0, 0.12)),
        linear-gradient(0deg, #020617 0%, transparent 38%),
        radial-gradient(circle at 25% 45%, rgba(245, 158, 11, 0.24), transparent 32rem);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(32px, calc((100vw - 1220px) / 2));
    width: min(680px, calc(100% - 64px));
    transform: translateY(-50%);
    z-index: 2;
}

.eyebrow {
    margin: 0 0 12px;
    color: #fbbf24;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content h1 {
    font-size: clamp(2.7rem, 8vw, 5.8rem);
}

.hero-summary {
    margin: 24px 0 0;
    color: #cbd5e1;
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.75;
}

.hero-meta,
.detail-meta,
.rank-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

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

.hero-meta span,
.hero-meta a,
.detail-meta span,
.rank-meta span {
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    padding: 7px 12px;
    backdrop-filter: blur(10px);
}

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

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

.hero-tags span,
.detail-tags a,
.card-tags a,
.card-tags span {
    border-radius: 999px;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.16);
    padding: 6px 10px;
    font-size: 0.86rem;
}

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

.primary-button,
.ghost-button,
.rank-action,
.search-panel-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    padding: 0 22px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-panel-form button {
    color: white;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.28);
}

.ghost-button {
    color: #f8fafc;
    border: 1px solid rgba(248, 250, 252, 0.28);
    background: rgba(15, 23, 42, 0.62);
}

.primary-button:hover,
.ghost-button:hover,
.rank-action:hover,
.search-panel-form button:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: white;
    background: rgba(0, 0, 0, 0.52);
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 18px;
    height: 5px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 36px;
    background: #f59e0b;
}

.home-search-panel,
.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 42px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.76), rgba(15, 23, 42, 0.86));
    box-shadow: var(--shadow);
    padding: 28px;
}

.home-search-panel h2 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2.25rem);
}

.search-panel-form {
    display: flex;
    gap: 12px;
    width: min(520px, 100%);
}

.search-panel-form input,
.filter-panel input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    color: #f8fafc;
    background: rgba(2, 6, 23, 0.62);
    padding: 0 16px;
    outline: none;
}

.search-panel-form input:focus,
.filter-panel input:focus {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

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

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

.section-heading > div {
    position: relative;
}

.section-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.22);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 4vw, 2.3rem);
}

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

.section-more {
    flex: 0 0 auto;
    color: #fbbf24;
    font-weight: 700;
}

.horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 320px);
    gap: 22px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x mandatory;
}

.horizontal-scroll > * {
    scroll-snap-align: start;
}

.movie-grid,
.category-grid,
.mini-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(245, 158, 11, 0.54);
    box-shadow: 0 18px 44px rgba(245, 158, 11, 0.12);
    transform: translateY(-6px);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #020617);
}

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

.movie-card:hover .card-cover img {
    transform: scale(1.08);
}

.card-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
    opacity: 1;
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-score {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    border-radius: 10px;
    color: #fef3c7;
    background: rgba(0, 0, 0, 0.68);
    padding: 5px 8px;
    font-size: 0.84rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 16px;
}

.card-body h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.card-body h2 a:hover {
    color: #fbbf24;
}

.card-body p {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    color: #64748b;
    font-size: 0.82rem;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-tags {
    gap: 7px;
}

.card-tags a,
.card-tags span {
    font-size: 0.76rem;
}

.compact-card .card-body h2 {
    font-size: 1rem;
}

.category-section {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.54), rgba(2, 6, 23, 0.62));
    padding: 32px;
}

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

.category-tile {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.64);
    padding: 20px;
}

.category-tile-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 800;
}

.category-tile-main strong {
    color: #fbbf24;
    font-size: 0.84rem;
}

.category-tile p {
    margin: 14px 0;
    color: var(--muted);
    line-height: 1.65;
}

.category-samples {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-samples a {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.category-samples a:hover {
    color: #fbbf24;
}

.split-panel {
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.62));
    border: 1px solid var(--line);
    padding: 32px;
    box-shadow: var(--shadow);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 72px 1fr auto;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.62);
    padding: 12px;
}

.rank-num {
    color: #fbbf24;
    font-size: 1.35rem;
    font-weight: 900;
    text-align: center;
}

.rank-thumb {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    background: #1e293b;
}

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

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.55;
}

.rank-meta {
    gap: 8px;
}

.rank-meta span {
    padding: 4px 8px;
    font-size: 0.76rem;
}

.rank-action {
    color: #fff;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.34);
}

.two-column-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.inner-main,
.detail-main {
    padding-top: 42px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.2), transparent 24rem),
        linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(2, 6, 23, 0.88));
    padding: clamp(32px, 6vw, 72px);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 4.2rem);
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--soft);
    font-size: 1.05rem;
    line-height: 1.75;
}

.filter-panel {
    align-items: stretch;
    flex-direction: column;
    margin-top: 28px;
}

.quick-links,
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a,
.filter-buttons button {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.62);
    padding: 9px 13px;
    cursor: pointer;
}

.filter-buttons button.is-active,
.quick-links a:hover,
.filter-buttons button:hover {
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.13);
}

.empty-state {
    display: none;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.62);
    padding: 28px;
    text-align: center;
}

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

.category-overview {
    display: grid;
    gap: 42px;
    margin-top: 42px;
}

.category-overview-block {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.55);
    padding: 28px;
}

.category-overview-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.category-overview-heading h2 {
    margin: 0;
    font-size: 1.8rem;
}

.category-overview-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    margin-bottom: 24px;
}

.breadcrumb a:hover {
    color: #fbbf24;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: clamp(24px, 5vw, 54px);
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 28rem),
        linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(2, 6, 23, 0.86));
    padding: clamp(24px, 5vw, 46px);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    background: #1e293b;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

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

.detail-info h1 {
    font-size: clamp(2rem, 5vw, 4.2rem);
}

.detail-one-line {
    color: var(--soft);
    font-size: 1.12rem;
    line-height: 1.75;
    margin: 22px 0;
}

.detail-tags {
    margin: 18px 0 26px;
}

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

.player-section h2,
.detail-content h2 {
    font-size: 1.45rem;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 24px;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: var(--shadow);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background:
        radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 18rem),
        rgba(0, 0, 0, 0.34);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.35);
    font-size: 2rem;
}

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

.detail-content {
    display: grid;
    grid-template-columns: 1.15fr 1.15fr 0.85fr;
    gap: 22px;
    margin-top: 34px;
}

.story-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.64);
    padding: 24px;
}

.story-card h2 {
    margin: 0 0 14px;
}

.story-card p {
    margin: 0;
    color: var(--soft);
    line-height: 1.85;
}

dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px 16px;
    margin: 0;
}

dt {
    color: #fbbf24;
    font-weight: 800;
}

dd {
    margin: 0;
    color: var(--soft);
}

.related-section {
    margin-bottom: 76px;
}

.site-footer {
    margin-top: 82px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.98));
}

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.9fr;
    gap: 34px;
    padding: 44px 0;
}

.footer-main p,
.footer-column li,
.footer-bottom {
    color: var(--muted);
}

.footer-main p {
    max-width: 560px;
    line-height: 1.75;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin: 9px 0;
}

.footer-column a:hover {
    color: #fbbf24;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 18px;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 1180px) {
    .large-grid,
    .category-page-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .mobile-toggle {
        display: block;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .hero-carousel {
        height: 76vh;
        min-height: 520px;
    }

    .hero-content {
        left: 24px;
        width: calc(100% - 48px);
    }

    .hero-arrow {
        display: none;
    }

    .home-search-panel,
    .filter-panel,
    .category-overview-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .search-panel-form {
        width: 100%;
        flex-direction: column;
    }

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

    .two-column-sections,
    .detail-hero,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(320px, 100%);
        margin: 0 auto;
    }

    .rank-row {
        grid-template-columns: 44px 64px 1fr;
    }

    .rank-action {
        grid-column: 2 / -1;
        width: max-content;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .page-main,
    .home-main > .content-section,
    .home-search-panel,
    .footer-inner,
    .mobile-nav {
        width: min(100% - 20px, 1220px);
    }

    .brand-text {
        font-size: 1rem;
    }

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

    .hero-content {
        top: 48%;
    }

    .hero-meta span,
    .hero-meta a,
    .detail-meta span {
        font-size: 0.82rem;
        padding: 6px 9px;
    }

    .large-grid,
    .medium-grid,
    .overview-grid,
    .category-page-grid,
    .category-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .category-section,
    .split-panel,
    .category-overview-block,
    .story-card {
        padding: 20px;
    }

    .rank-row {
        grid-template-columns: 38px 58px 1fr;
        gap: 10px;
    }

    .rank-info p,
    .rank-meta {
        display: none;
    }

    .player-shell {
        border-radius: 16px;
    }
}
