:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #07111f;
    --panel: rgba(15, 23, 42, 0.74);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(148, 163, 184, 0.18);
    --text: #e5eefc;
    --muted: #94a3b8;
    --faint: #64748b;
    --brand: #14b8a6;
    --brand-2: #38bdf8;
    --brand-3: #8b5cf6;
    --danger: #fb7185;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
    --shell: min(1200px, calc(100vw - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.22), transparent 34rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #07111f 42%, #020617 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 68%);
    z-index: -1;
}

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

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

button,
input {
    font: inherit;
}

button {
    border: 0;
}

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

.nav-shell {
    width: var(--shell);
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.logo::before,
.footer-logo::before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
    box-shadow: 0 0 28px rgba(20, 184, 166, 0.38);
}

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

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: white;
    background: rgba(20, 184, 166, 0.15);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 270px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
}

.nav-search input,
.search-page-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.nav-search button,
.search-page-form button {
    padding: 8px 14px;
    border-radius: 999px;
    color: #04111d;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.82);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: white;
    border-radius: 2px;
}

.hero {
    width: var(--shell);
    margin: 28px auto 0;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border: 1px solid var(--line);
    border-radius: 38px;
    background: rgba(15, 23, 42, 0.55);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: center;
    padding: 70px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(18px) scale(0.985);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
    filter: blur(28px) saturate(1.25);
    transform: scale(1.1);
    opacity: 0.38;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68) 52%, rgba(2, 6, 23, 0.9)),
        radial-gradient(circle at 78% 28%, rgba(20, 184, 166, 0.28), transparent 20rem);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--brand-2);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-summary {
    max-width: 720px;
    margin: 24px 0 0;
    color: #cbd5e1;
    font-size: 19px;
    line-height: 1.85;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.detail-side-card dd span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(20, 184, 166, 0.28);
    border-radius: 999px;
    color: #b5f5eb;
    background: rgba(20, 184, 166, 0.12);
}

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

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

.btn-primary {
    color: #03131d;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 16px 36px rgba(14, 165, 233, 0.22);
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(15, 23, 42, 0.64);
}

.btn-primary:hover,
.btn-ghost:hover,
.movie-card:hover,
.category-panel:hover,
.top-rank-card:hover,
.rank-row:hover {
    transform: translateY(-3px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4.2;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.28), rgba(59, 130, 246, 0.22));
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.52);
}

.hero-poster img,
.movie-poster img,
.detail-poster img,
.top-rank-card img,
.rank-item img,
.rank-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(51, 65, 85, 0.8));
}

.hero-controls {
    position: absolute;
    left: 70px;
    right: 70px;
    bottom: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-controls button {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: white;
    font-size: 28px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid var(--line);
}

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

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0;
    background: rgba(148, 163, 184, 0.45) !important;
}

.hero-dot.is-active {
    width: 32px !important;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
}

.section-shell {
    width: var(--shell);
    margin: 54px auto;
}

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

.section-title-row h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 42px);
    letter-spacing: -0.04em;
}

.section-link {
    color: var(--brand-2);
    font-weight: 900;
}

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

.quick-cat-grid a,
.category-chip {
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.68);
    transition: 0.2s ease;
}

.quick-cat-grid a:hover,
.category-chip:hover {
    border-color: rgba(20, 184, 166, 0.45);
    background: rgba(20, 184, 166, 0.1);
}

.quick-cat-grid a,
.category-chip {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-weight: 900;
}

.quick-cat-grid span,
.category-chip span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 600;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    transition: 0.2s ease;
}

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

.movie-poster img {
    transition: transform 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    color: #03131d;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.movie-card-body {
    padding: 15px;
}

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: white;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    margin: 8px 0;
    color: var(--brand-2);
    font-size: 13px;
    font-weight: 800;
}

.movie-desc {
    display: -webkit-box;
    min-height: 60px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tag-row span {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 12px;
}

.rank-card,
.detail-side-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.rank-card {
    padding: 22px;
}

.sticky-side {
    position: sticky;
    top: 96px;
}

.rank-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.rank-card-head h2 {
    width: 100%;
    margin: 0;
    font-size: 28px;
}

.rank-card-head a {
    color: var(--brand-2);
    font-weight: 900;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 34px 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.34);
}

.rank-num {
    color: var(--brand);
    font-size: 18px;
    font-weight: 950;
}

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

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

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

.rank-copy strong {
    color: white;
}

.rank-copy em {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.category-panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.18), transparent 14rem),
        rgba(15, 23, 42, 0.72);
    transition: 0.2s ease;
}

.category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.category-head span {
    font-size: 24px;
    font-weight: 950;
}

.category-head strong {
    color: var(--brand-2);
    font-size: 14px;
}

.category-panel p {
    margin: 12px 0 18px;
    color: var(--muted);
    line-height: 1.8;
}

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

.category-mini-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    color: #dbeafe;
    background: rgba(2, 6, 23, 0.36);
}

.category-mini-list span {
    color: var(--brand);
    font-size: 12px;
}

.page-hero {
    width: var(--shell);
    margin: 28px auto 0;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.24), transparent 28rem),
        radial-gradient(circle at 80% 10%, rgba(139, 92, 246, 0.16), transparent 24rem),
        rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.page-hero-inner {
    max-width: 850px;
    padding: 60px;
}

.page-hero p:not(.eyebrow) {
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

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

.top-rank-card {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
    box-shadow: var(--shadow);
    transition: 0.2s ease;
}

.top-rank-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.94) 76%);
}

.top-rank-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.top-rank-card span {
    width: max-content;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #03131d;
    font-weight: 950;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.top-rank-card strong {
    color: white;
    font-size: 24px;
}

.top-rank-card em {
    margin-top: 8px;
    color: var(--muted);
    font-style: normal;
}

.rank-table {
    display: grid;
    gap: 10px;
}

.rank-row {
    display: grid;
    grid-template-columns: 58px 66px minmax(0, 1fr) 120px;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.66);
    transition: 0.2s ease;
}

.rank-row-num {
    color: var(--brand);
    font-size: 20px;
    font-weight: 950;
    text-align: center;
}

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

.rank-row-main {
    min-width: 0;
}

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

.rank-row-main strong {
    color: white;
    font-size: 18px;
}

.rank-row-main em {
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
}

.rank-row-meta {
    display: grid;
    gap: 4px;
    justify-items: end;
    color: var(--brand-2);
    font-weight: 900;
}

.rank-row-meta small {
    color: var(--muted);
    font-weight: 700;
}

.search-page-form {
    display: flex;
    gap: 10px;
    max-width: 620px;
    margin-top: 28px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.54);
}

.detail-top {
    position: relative;
    margin-top: 28px;
}

.detail-shell {
    width: var(--shell);
    margin: 0 auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.2), transparent 28rem),
        rgba(15, 23, 42, 0.76);
    box-shadow: var(--shadow);
}

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

.breadcrumb a {
    color: var(--brand-2);
    font-weight: 800;
}

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

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

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4.25;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(30, 41, 59, 0.85);
}

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

.detail-one-line {
    margin: 20px 0;
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.8;
}

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

.detail-section {
    margin-top: 28px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: #000;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: white;
    background:
        radial-gradient(circle at center, rgba(20, 184, 166, 0.18), transparent 22rem),
        rgba(2, 6, 23, 0.42);
    transition: opacity 0.2s ease;
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    color: #03131d;
    font-size: 30px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 0 44px rgba(20, 184, 166, 0.34);
}

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

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

.detail-copy,
.detail-side-card {
    padding: 26px;
}

.detail-copy {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.72);
}

.detail-copy h2,
.detail-side-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.detail-copy h2:not(:first-child) {
    margin-top: 28px;
}

.detail-copy p {
    margin: 0;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 2;
}

.detail-side-card dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.detail-side-card div {
    display: grid;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-side-card dt {
    color: var(--faint);
    font-size: 13px;
}

.detail-side-card dd {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.side-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.side-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--brand-2);
    background: rgba(14, 165, 233, 0.1);
}

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

.footer-shell {
    width: var(--shell);
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 30px;
}

.footer-shell p {
    max-width: 480px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.72);
}

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

    .hero-slide,
    .split-section,
    .detail-copy-grid,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        padding: 44px;
    }

    .hero-poster {
        max-width: 330px;
    }

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

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

    .sticky-side {
        position: static;
    }
}

@media (max-width: 780px) {
    :root {
        --shell: min(100vw - 24px, 1200px);
    }

    .nav-shell {
        min-height: 64px;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        margin: 0;
        padding-bottom: 12px;
        flex-wrap: wrap;
    }

    .main-nav.is-open {
        display: flex;
    }

    .hero-shell {
        min-height: 680px;
        border-radius: 26px;
    }

    .hero-slide {
        gap: 24px;
        padding: 30px 24px 76px;
    }

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

    .hero-summary,
    .detail-one-line,
    .page-hero p:not(.eyebrow) {
        font-size: 16px;
    }

    .hero-controls {
        left: 24px;
        right: 24px;
        bottom: 22px;
    }

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

    .movie-grid,
    .category-panel-grid,
    .top-rank-grid,
    .quick-cat-grid,
    .category-chip-grid,
    .category-mini-list {
        grid-template-columns: 1fr 1fr;
    }

    .page-hero-inner {
        padding: 34px 24px;
    }

    .detail-shell {
        padding: 18px;
    }

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

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

    .rank-row {
        grid-template-columns: 38px 56px minmax(0, 1fr);
    }

    .rank-row-meta {
        display: none;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .category-panel-grid,
    .top-rank-grid,
    .quick-cat-grid,
    .category-chip-grid,
    .category-mini-list {
        grid-template-columns: 1fr;
    }

    .hero-shell {
        min-height: 720px;
    }

    .hero-poster {
        max-width: 245px;
    }

    .search-page-form {
        border-radius: 24px;
        flex-direction: column;
    }

    .search-page-form button {
        width: 100%;
    }
}
