
:root {
    color-scheme: dark;
    --page-bg: #030712;
    --panel-bg: rgba(17, 24, 39, 0.78);
    --panel-solid: #111827;
    --panel-soft: rgba(31, 41, 55, 0.72);
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --text-soft: #d1d5db;
    --line: rgba(75, 85, 99, 0.55);
    --orange: #f97316;
    --orange-strong: #ea580c;
    --red: #dc2626;
    --amber: #f59e0b;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shadow-card: 0 22px 55px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 18px 70px rgba(249, 115, 22, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-main);
    background:
        radial-gradient(circle at 15% 0%, rgba(249, 115, 22, 0.22), transparent 32rem),
        radial-gradient(circle at 85% 10%, rgba(220, 38, 38, 0.18), transparent 30rem),
        linear-gradient(180deg, #111827 0%, #0b1120 46%, #030712 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

main {
    overflow: hidden;
}

.max-shell {
    width: min(1280px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(17, 24, 39, 0.94);
    backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.brand-text {
    font-size: 1.22rem;
    background: linear-gradient(90deg, #fb923c, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.desktop-nav a,
.mobile-nav a {
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 13px;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover {
    color: #fff;
    background: rgba(249, 115, 22, 0.16);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 290px;
    padding: 6px;
    border: 1px solid rgba(75, 85, 99, 0.7);
    border-radius: 999px;
    background: rgba(3, 7, 18, 0.55);
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    padding: 7px 10px;
}

.header-search button,
.primary-button,
.watch-link {
    border: 0;
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: var(--shadow-glow);
}

.header-search button {
    padding: 7px 13px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(31, 41, 55, 0.8);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(3, 7, 18, 0.9);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

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

.hero-carousel {
    min-height: 70vh;
    position: relative;
}

.hero-stage {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
}

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

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

.hero-backdrop,
.page-hero-overlay,
.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.96) 0%, rgba(3, 7, 18, 0.72) 44%, rgba(3, 7, 18, 0.42) 100%),
        linear-gradient(0deg, #030712 0%, rgba(3, 7, 18, 0) 40%);
}

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

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #fb923c;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-line,
.page-hero p,
.detail-one-line {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--text-soft);
    font-size: 1.12rem;
    line-height: 1.85;
}

.hero-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.tag-cloud a,
.category-chipbar a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    color: #fed7aa;
    border: 1px solid rgba(249, 115, 22, 0.32);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    font-size: 0.84rem;
    font-weight: 800;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button:hover,
.ghost-button:hover,
.watch-link:hover {
    transform: translateY(-2px);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: rgba(17, 24, 39, 0.6);
    box-shadow: var(--shadow-card);
}

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

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(3, 7, 18, 0.55);
    backdrop-filter: blur(12px);
}

.hero-controls button {
    border: 0;
    color: #fff;
    background: transparent;
}

.hero-controls > button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
}

.hero-controls > button:hover {
    background: rgba(249, 115, 22, 0.22);
}

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

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dots button.is-active {
    width: 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.hero-thumbs {
    position: absolute;
    z-index: 4;
    right: max(16px, calc((100% - 1280px) / 2));
    bottom: 26px;
    display: flex;
    gap: 10px;
}

.hero-thumb {
    width: 88px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    background: rgba(17, 24, 39, 0.72);
    opacity: 0.66;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hero-thumb.is-active,
.hero-thumb:hover {
    opacity: 1;
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.65);
}

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

.hero-thumb span {
    display: block;
    padding: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.72rem;
    font-weight: 800;
}

.section {
    padding: 64px 0;
}

.compact-section {
    padding-top: 24px;
}

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

.section-heading h2,
.side-panel h2,
.content-card h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    letter-spacing: -0.03em;
}

.section-action {
    color: #fb923c;
    font-weight: 900;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.58);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.25) 100%),
        linear-gradient(135deg, rgba(249, 115, 22, 0.35), transparent 55%);
}

.category-card strong,
.category-card em,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card strong {
    font-size: 1.5rem;
}

.category-card em {
    margin-top: 6px;
    color: #fb923c;
    font-style: normal;
    font-weight: 900;
}

.category-card p {
    margin: 8px 0 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.spotlight-layout,
.ranking-layout,
.detail-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.side-panel,
.content-card,
.player-shell,
.toolbar,
.category-overview-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel-bg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
}

.side-panel {
    padding: 28px;
}

.side-panel p {
    color: var(--text-soft);
    line-height: 1.75;
}

.sticky-panel {
    position: sticky;
    top: 92px;
}

.local-filter,
.toolbar {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.toolbar {
    grid-template-columns: minmax(0, 1fr) 220px auto;
    align-items: center;
    padding: 16px;
    margin-bottom: 24px;
}

.toolbar-strong {
    border-color: rgba(249, 115, 22, 0.35);
}

.local-filter input,
.local-filter select,
.toolbar input,
.toolbar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(75, 85, 99, 0.75);
    border-radius: 14px;
    outline: 0;
    color: #fff;
    background: rgba(3, 7, 18, 0.66);
    padding: 0 14px;
}

.local-filter p,
.toolbar p {
    margin: 0;
    color: #fed7aa;
    font-weight: 900;
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(75, 85, 99, 0.58);
    border-radius: var(--radius-md);
    background: rgba(17, 24, 39, 0.74);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(249, 115, 22, 0.58);
    box-shadow: var(--shadow-card);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.82) 0%, rgba(3, 7, 18, 0) 52%);
}

.score-pill,
.type-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.score-pill {
    left: 10px;
    top: 10px;
    background: rgba(249, 115, 22, 0.86);
}

.type-pill {
    right: 10px;
    bottom: 10px;
    background: rgba(17, 24, 39, 0.82);
}

.rank-badge {
    left: 10px;
    bottom: 10px;
    background: rgba(220, 38, 38, 0.88);
}

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

.movie-card h3 {
    margin: 0;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.4;
}

.movie-card h3 a:hover {
    color: #fb923c;
}

.movie-meta,
.movie-line {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.movie-meta {
    min-height: 2.7em;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-line {
    min-height: 4.6em;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 13px;
}

.watch-link,
.category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    font-size: 0.8rem;
}

.category-link {
    color: #fed7aa;
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    font-weight: 800;
}

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

.rank-list-large {
    gap: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: 46px 56px minmax(0, 1fr) 56px;
    gap: 14px;
    align-items: center;
    min-height: 78px;
    padding: 10px;
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateX(5px);
    border-color: rgba(249, 115, 22, 0.55);
}

.rank-number {
    color: #fb923c;
    font-size: 1.05rem;
    font-weight: 950;
    text-align: center;
}

.rank-row img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
}

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

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

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

.rank-info em {
    color: var(--text-muted);
    font-style: normal;
    font-size: 0.84rem;
    margin-top: 3px;
}

.rank-score {
    color: #fbbf24;
    font-weight: 950;
    text-align: right;
}

.page-hero,
.detail-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: #111827;
}

.small-hero {
    min-height: 300px;
    background:
        radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.26), transparent 30rem),
        linear-gradient(135deg, #111827, #030712);
}

.page-hero-content,
.small-hero .max-shell,
.detail-hero-content {
    position: relative;
    z-index: 2;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.55);
}

.category-overview-card img {
    width: 132px;
    height: 176px;
    border-radius: 16px;
    object-fit: cover;
}

.category-overview-card strong {
    display: block;
    font-size: 1.35rem;
}

.category-overview-card em {
    display: block;
    color: #fb923c;
    margin-top: 6px;
    font-style: normal;
    font-weight: 900;
}

.category-overview-card p {
    color: var(--text-soft);
    line-height: 1.7;
}

.detail-hero {
    min-height: 620px;
    padding: 64px 0;
}

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

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

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

.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 0;
}

.meta-grid div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.56);
}

.meta-grid dt {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.meta-grid dd {
    margin: 6px 0 0;
    color: #fff;
    font-weight: 850;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.23), rgba(3, 7, 18, 0.74) 58%);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: var(--shadow-glow);
    font-size: 2rem;
}

.play-overlay strong {
    font-size: 1.1rem;
}

.player-shell.is-playing .play-overlay {
    opacity: 0;
    visibility: hidden;
}

.player-message {
    position: absolute;
    left: 16px;
    bottom: 14px;
    margin: 0;
    color: #fed7aa;
    font-size: 0.88rem;
    font-weight: 800;
}

.content-card {
    padding: 28px;
}

.content-card p {
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.95;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(3, 7, 18, 0.76);
    padding: 54px 0 28px;
}

.footer-grid {
    width: min(1280px, calc(100% - 32px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
    gap: 30px;
}

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

.footer-grid p,
.footer-grid a {
    display: block;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 4px 0;
}

.footer-grid a:hover {
    color: #fb923c;
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

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

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

    .hero-thumbs {
        display: none;
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-content,
    .detail-grid,
    .spotlight-layout,
    .ranking-layout,
    .detail-content-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 28px;
        padding-top: 44px;
    }

    .hero-poster {
        width: min(280px, 76vw);
    }

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

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

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

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

@media (max-width: 640px) {
    .header-inner {
        height: 62px;
    }

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

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .hero-carousel,
    .hero-stage {
        min-height: 76vh;
    }

    .hero-content {
        min-height: 76vh;
        padding-bottom: 96px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: clamp(2.15rem, 13vw, 3.6rem);
    }

    .hero-line,
    .page-hero p,
    .detail-one-line {
        font-size: 1rem;
    }

    .hero-poster {
        display: none;
    }

    .section {
        padding: 44px 0;
    }

    .section-heading {
        display: block;
    }

    .section-action {
        display: inline-block;
        margin-top: 12px;
    }

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

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

    .movie-line {
        display: none;
    }

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

    .category-overview-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .category-overview-card img {
        width: 96px;
        height: 132px;
    }

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

    .detail-poster {
        width: min(260px, 80vw);
    }

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

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

    .rank-row img {
        width: 46px;
        height: 46px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
