* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-deep: #020617;
    --panel: rgba(30, 41, 59, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --accent: #fbbf24;
    --accent-strong: #f59e0b;
    --accent-soft: rgba(251, 191, 36, 0.16);
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.48);
    --radius: 18px;
    --radius-lg: 28px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.13), transparent 32rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 26rem),
        var(--bg);
    color: var(--text);
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.shell,
.detail-shell,
.footer-shell,
.nav-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #111827;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35);
}

.brand-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.header-search,
.mobile-search,
.quick-search-box,
.search-panel,
.inline-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-search input,
.quick-search-box input,
.search-panel input,
.inline-filter input {
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.22);
    outline: none;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.85);
    color: var(--text);
    padding: 11px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.quick-search-box input:focus,
.search-panel input:focus,
.inline-filter input:focus {
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}

.header-search button,
.mobile-search button,
.quick-search-box button,
.search-panel button {
    border: 0;
    border-radius: 14px;
    background: var(--accent);
    color: #111827;
    font-weight: 800;
    padding: 11px 16px;
}

.header-search input {
    width: 230px;
}

.menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.72);
}

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

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

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

.mobile-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--soft);
    background: rgba(30, 41, 59, 0.45);
}

main {
    padding-top: 68px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--bg-deep);
}

.hero-stage {
    position: relative;
    min-height: 620px;
}

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

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(15, 23, 42, 0.64) 45%, rgba(15, 23, 42, 0.14) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(15, 23, 42, 0.2) 45%, rgba(15, 23, 42, 0.04) 100%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    bottom: 92px;
    width: min(760px, calc(100% - 48px));
}

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

.hero-kicker span,
.detail-kicker span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.14);
    color: var(--accent);
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 800;
}

.hero h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 22px 0 30px;
    color: var(--soft);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.75;
}

.hero-actions,
.detail-info .primary-button {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.secondary-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    background: var(--accent);
    color: #111827;
    padding: 13px 22px;
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.25);
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover {
    transform: translateY(-2px);
}

.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.65);
    color: var(--text);
    padding: 13px 22px;
}

.hero-thumbs {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 42px;
    display: grid;
    grid-template-columns: repeat(5, minmax(96px, 1fr));
    gap: 12px;
    width: min(620px, calc(100% - 48px));
}

.hero-thumb {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.72);
    color: var(--soft);
    padding: 8px;
    text-align: left;
    backdrop-filter: blur(14px);
}

.hero-thumb.active {
    border-color: rgba(251, 191, 36, 0.65);
    color: var(--text);
    background: rgba(251, 191, 36, 0.13);
}

.hero-thumb img {
    width: 42px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.hero-thumb span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 12px;
    line-height: 1.35;
}

.quick-search {
    margin-top: -34px;
    position: relative;
    z-index: 2;
}

.quick-search-box {
    justify-content: space-between;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.92);
    padding: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search-box div {
    display: grid;
    gap: 4px;
    min-width: 190px;
}

.quick-search-box strong {
    font-size: 18px;
}

.quick-search-box span {
    color: var(--muted);
    font-size: 13px;
}

.quick-search-box input {
    flex: 1;
}

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

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

.section-title h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

.section-more,
.text-button {
    color: var(--accent);
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.28);
}

.category-tile img,
.category-cover-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.12));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 18px;
    right: 18px;
}

.category-tile strong {
    bottom: 55px;
    font-size: 22px;
}

.category-tile em {
    bottom: 18px;
    color: var(--soft);
    font-size: 13px;
    line-height: 1.5;
    font-style: normal;
}

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

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

.movie-card {
    min-width: 0;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.26);
}

.wide-card .poster-link {
    aspect-ratio: 16 / 9;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.05) 58%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.year-badge,
.rank-badge,
.play-badge {
    position: absolute;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.78);
    color: var(--text);
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.year-badge {
    top: 10px;
    right: 10px;
    padding: 6px 9px;
    font-size: 12px;
}

.rank-badge {
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    color: var(--accent);
    font-size: 12px;
}

.play-badge {
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    background: rgba(251, 191, 36, 0.9);
    color: #111827;
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.card-body {
    padding: 13px 2px 0;
}

.card-body h2 {
    margin: 0 0 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.8em;
    font-size: 17px;
    line-height: 1.4;
}

.card-body h2 a {
    transition: color 0.2s ease;
}

.movie-card:hover .card-body h2 a {
    color: var(--accent);
}

.card-meta,
.card-desc,
.score-row span {
    color: var(--muted);
}

.card-meta {
    margin: 0 0 8px;
    font-size: 13px;
}

.card-desc {
    margin: 0 0 11px;
    min-height: 3.1em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    line-height: 1.55;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span {
    padding: 4px 8px;
    font-size: 11px;
}

.score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.score-row strong {
    color: var(--accent);
    font-size: 20px;
}

.score-row span {
    font-size: 12px;
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 310px);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
    scroll-snap-align: start;
}

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

.ranking-list .wide-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.46);
    padding: 12px;
}

.ranking-list .wide-card .poster-link {
    width: 100%;
}

.page-main {
    padding-top: 48px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(251, 191, 36, 0.22), transparent 38%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    padding: clamp(38px, 7vw, 76px);
    box-shadow: var(--shadow);
}

.page-hero span {
    color: var(--accent);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1;
    letter-spacing: -0.06em;
}

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

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

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

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

.category-card-large {
    overflow: hidden;
    display: grid;
    grid-template-columns: 42% 1fr;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.52);
}

.category-cover-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 210px;
}

.category-card-large > div {
    padding: 22px;
}

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

.category-card-large p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.7;
}

.inline-filter {
    margin-bottom: 22px;
}

.inline-filter input {
    width: min(420px, 100%);
}

.search-panel {
    position: sticky;
    top: 82px;
    z-index: 3;
    margin-bottom: 24px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.92);
    padding: 16px;
    backdrop-filter: blur(18px);
}

.search-panel input {
    flex: 1;
}

.empty-state {
    display: none;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.55);
    padding: 24px;
    color: var(--soft);
    text-align: center;
}

.empty-state.show {
    display: block;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    padding-top: 118px;
    background-image: var(--detail-bg);
    background-size: cover;
    background-position: center;
}

.detail-hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.25)),
        linear-gradient(0deg, var(--bg) 0%, rgba(15, 23, 42, 0.28) 65%, rgba(15, 23, 42, 0.12));
    backdrop-filter: blur(3px);
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 58px);
    align-items: center;
    padding-bottom: 70px;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

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

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

.detail-info .lead {
    max-width: 760px;
    margin: 22px 0;
    color: var(--soft);
    font-size: 19px;
    line-height: 1.75;
}

.detail-meta {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--muted);
}

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

.player-section {
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

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

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

.movie-player {
    object-fit: contain;
    background: #000;
}

.player-cover {
    border: 0;
    padding: 0;
    background: #000;
    color: var(--text);
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-cover img {
    object-fit: cover;
    opacity: 0.68;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.12));
}

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

.player-button {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: clamp(72px, 10vw, 110px);
    height: clamp(72px, 10vw, 110px);
    border-radius: 999px;
    background: var(--accent);
    color: #111827;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    transform: translate(-50%, -50%);
    box-shadow: 0 24px 70px rgba(245, 158, 11, 0.42);
}

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

.detail-text article {
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.46);
    padding: clamp(22px, 4vw, 34px);
}

.detail-text h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.detail-text p {
    margin: 0;
    color: var(--soft);
    line-height: 1.9;
}

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

.footer-shell {
    display: grid;
    grid-template-columns: 1.3fr 1.4fr 0.8fr;
    gap: 34px;
    padding: 46px 0;
}

.footer-brand p,
.footer-links a {
    color: var(--muted);
}

.footer-brand p {
    max-width: 360px;
    line-height: 1.75;
}

.footer-links h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

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

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

.copyright {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--muted);
    padding: 18px 16px;
    text-align: center;
    font-size: 13px;
}

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

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

    .menu-button {
        display: flex;
    }

    .hero-thumbs {
        grid-template-columns: repeat(5, 1fr);
        left: 24px;
        right: 24px;
        width: auto;
    }

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

    .hero-thumb img {
        width: 100%;
        height: 58px;
    }

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

    .ranking-list {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .shell,
    .detail-shell,
    .footer-shell,
    .nav-shell {
        width: min(100% - 24px, 1180px);
    }

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

    .hero,
    .hero-stage,
    .hero-slide > img {
        min-height: 610px;
    }

    .hero-content {
        left: 18px;
        bottom: 150px;
        width: calc(100% - 36px);
    }

    .hero-thumbs {
        grid-template-columns: repeat(5, 150px);
        overflow-x: auto;
        bottom: 26px;
    }

    .quick-search {
        margin-top: 18px;
    }

    .quick-search-box,
    .section-title,
    .search-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .category-page-grid,
    .detail-text {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-list .wide-card {
        grid-template-columns: 150px minmax(0, 1fr);
    }

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

    .detail-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

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

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

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

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

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

@media (max-width: 520px) {
    .hero h2,
    .detail-info h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .category-page-grid,
    .detail-text {
        grid-template-columns: 1fr;
    }

    .ranking-list .wide-card {
        grid-template-columns: 1fr;
    }

    .scroll-row {
        grid-auto-columns: minmax(230px, 82vw);
    }
}
