:root {
    color-scheme: light;
    --bg: #fffaf0;
    --surface: #ffffff;
    --surface-soft: #fff7e4;
    --surface-deep: #1c1208;
    --text: #26170a;
    --muted: #7a5b33;
    --line: rgba(146, 90, 24, 0.18);
    --gold: #d97706;
    --gold-light: #f59e0b;
    --orange: #ea580c;
    --amber: #fde68a;
    --shadow: 0 22px 60px rgba(80, 47, 12, 0.16);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
        linear-gradient(180deg, #fff7e6 0%, #fffaf0 30%, #ffffff 100%);
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, #7c2d12, #92400e 48%, #78350f);
    box-shadow: 0 16px 35px rgba(69, 26, 3, 0.28);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24, #ea580c);
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.35);
    transition: transform 0.28s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-4deg);
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 24px;
    letter-spacing: 0.06em;
    background: linear-gradient(90deg, #fde68a, #fff7ed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 5px;
    color: #fde68a;
    font-size: 12px;
    font-weight: 500;
}

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

.nav-link {
    position: relative;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    height: 2px;
    border-radius: 999px;
    background: #fde68a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fde68a;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-nav {
    display: none;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff8dc;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #1c1208;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.52fr);
    align-items: center;
    gap: 48px;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-slide.active .hero-bg {
    opacity: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(28px) saturate(1.18);
    transform: scale(1.08);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero::before {
    background:
        linear-gradient(90deg, rgba(28, 18, 8, 0.98), rgba(64, 38, 12, 0.75) 50%, rgba(28, 18, 8, 0.88)),
        radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.28), transparent 24rem);
    z-index: 0;
}

.hero::after {
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.24;
    z-index: 0;
}

.hero-content,
.hero-poster,
.hero-dots {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 12px;
    color: #d97706;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #fde68a;
}

.hero h1 {
    margin: 0 0 22px;
    color: #fff7ed;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.hero-summary {
    max-width: 760px;
    margin: 0 0 26px;
    color: #ffedd5;
    font-size: clamp(17px, 2.2vw, 23px);
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(217, 119, 6, 0.24);
    border-radius: 999px;
    color: #8a4b12;
    background: #fff7e6;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    border-color: rgba(253, 230, 138, 0.36);
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

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

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

.primary-button {
    min-height: 48px;
    padding: 0 24px;
    color: #fff;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    box-shadow: 0 16px 30px rgba(234, 88, 12, 0.28);
}

.secondary-button {
    min-height: 48px;
    padding: 0 24px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

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

.hero-poster {
    align-self: center;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

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

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

.hero-dot {
    width: 38px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.hero-dot.active {
    background: #fde68a;
}

.section-shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.rank-title h2 {
    margin: 0;
    color: #2b1708;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.text-link {
    color: #b45309;
    font-weight: 900;
}

.text-link:hover {
    color: #ea580c;
}

.quick-search {
    padding-bottom: 26px;
}

.compact-heading {
    margin-bottom: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 50px rgba(146, 90, 24, 0.12);
    backdrop-filter: blur(18px);
}

.search-box,
.select-box {
    display: grid;
    gap: 6px;
}

.search-box span,
.select-box span {
    color: #8a4b12;
    font-size: 12px;
    font-weight: 800;
}

.search-box input,
.select-box select {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 16px;
    outline: none;
    padding: 0 14px;
    color: var(--text);
    background: #fffaf0;
}

.search-box input:focus,
.select-box select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 48px rgba(146, 90, 24, 0.12);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(245, 158, 11, 0.46);
    box-shadow: var(--shadow);
}

.card-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #7c2d12, #f59e0b);
}

.card-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.08;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(28, 18, 8, 0.72);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.card-body {
    padding: 18px;
}

.card-meta {
    margin: 0 0 6px;
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
}

.card-body h3 {
    margin: 0 0 8px;
    color: #241305;
    font-size: 19px;
    line-height: 1.28;
}

.card-body h3 a:hover,
.ranking-body h2 a:hover {
    color: #d97706;
}

.card-desc {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.tinted-section {
    width: 100%;
    max-width: none;
    padding: 72px max(16px, calc((100% - 1220px) / 2));
    background: linear-gradient(135deg, rgba(253, 230, 138, 0.56), rgba(255, 237, 213, 0.72));
}

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 28px;
    background: #1c1208;
    box-shadow: 0 20px 50px rgba(80, 47, 12, 0.18);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    opacity: 0.64;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card:hover img {
    opacity: 0.8;
    transform: scale(1.06);
}

.category-card span {
    position: absolute;
    inset: auto 18px 18px;
    display: grid;
    gap: 8px;
    color: #fff7ed;
}

.category-card strong {
    font-size: 24px;
    line-height: 1.1;
}

.category-card em {
    font-style: normal;
    color: #ffedd5;
    font-size: 13px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
}

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

.movie-card-small .card-body h3 {
    font-size: 17px;
}

.rank-panel {
    position: sticky;
    top: 100px;
    align-self: start;
    padding: 24px;
    border-radius: 30px;
    color: #fff7ed;
    background: linear-gradient(180deg, #7c2d12, #1c1208);
    box-shadow: 0 24px 60px rgba(69, 26, 3, 0.26);
}

.rank-title h2,
.rank-title .eyebrow {
    color: #fde68a;
}

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

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

.rank-item:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(4px);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: #7c2d12;
    background: #fde68a;
    font-weight: 900;
}

.rank-item img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-text {
    display: grid;
    min-width: 0;
}

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

.rank-text em {
    color: #fed7aa;
    font-size: 12px;
    font-style: normal;
}

.full-button {
    width: 100%;
}

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

.page-hero {
    width: min(1220px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: 68px;
    border-radius: 38px;
    color: #fff7ed;
    background:
        linear-gradient(135deg, rgba(124, 45, 18, 0.96), rgba(146, 64, 14, 0.86)),
        radial-gradient(circle at top right, rgba(253, 230, 138, 0.32), transparent 32rem);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    color: #fff7ed;
}

.page-hero p:not(.eyebrow) {
    max-width: 790px;
    margin: 18px 0 0;
    color: #ffedd5;
    font-size: 18px;
}

.category-hero {
    background:
        linear-gradient(135deg, rgba(124, 45, 18, 0.94), rgba(234, 88, 12, 0.78)),
        radial-gradient(circle at 10% 20%, rgba(253, 230, 138, 0.3), transparent 24rem);
}

.slim-actions {
    margin-top: 26px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(146, 90, 24, 0.12);
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.12;
}

.category-overview-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

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

.category-cover-stack img {
    width: 100%;
    height: 140px;
    border-radius: 18px;
    object-fit: cover;
}

.category-movie-grid {
    margin-top: 26px;
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 24px;
    border: 1px dashed rgba(217, 119, 6, 0.35);
    border-radius: 20px;
    color: #92400e;
    background: #fff7e6;
    text-align: center;
    font-weight: 800;
}

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

.ranking-list-page {
    display: grid;
    gap: 20px;
    margin-top: 26px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(146, 90, 24, 0.12);
}

.ranking-poster {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

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

.ranking-poster span {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #7c2d12;
    background: #fde68a;
    font-weight: 900;
}

.ranking-body h2 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.16;
}

.ranking-body p {
    margin: 0 0 16px;
    color: var(--muted);
}

.breadcrumb {
    width: min(1220px, calc(100% - 32px));
    margin: 28px auto 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #8a4b12;
    font-weight: 800;
}

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

.detail-hero {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    padding: 34px;
    border-radius: 38px;
    color: #fff7ed;
    background:
        linear-gradient(135deg, rgba(28, 18, 8, 0.98), rgba(124, 45, 18, 0.9)),
        radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.24), transparent 30rem);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
}

.detail-info {
    align-self: center;
}

.detail-info h1 {
    color: #fff7ed;
}

.detail-one-line {
    margin: 18px 0 24px;
    color: #ffedd5;
    font-size: 19px;
}

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

.detail-meta-grid span {
    display: grid;
    gap: 2px;
    padding: 13px 15px;
    border: 1px solid rgba(253, 230, 138, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.detail-meta-grid b {
    color: #fde68a;
    font-size: 12px;
}

.detail-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(253, 230, 138, 0.28);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
    cursor: pointer;
    z-index: 4;
}

.player-cover.is-hidden {
    display: none;
}

.play-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.34);
    font-size: 30px;
    padding-left: 6px;
}

.player-cover strong {
    max-width: 80%;
    font-size: clamp(22px, 4vw, 40px);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.detail-section-shell {
    padding-top: 46px;
    padding-bottom: 0;
}

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

.article-panel {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(146, 90, 24, 0.1);
}

.article-panel h2 {
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 1.16;
}

.article-panel p {
    margin: 0;
    color: #5f4525;
    font-size: 17px;
}

.accent-panel {
    background: linear-gradient(135deg, #fff7e6, #ffffff);
}

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

.related-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(146, 90, 24, 0.1);
}

.related-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.related-card img {
    width: 78px;
    height: 104px;
    border-radius: 16px;
    object-fit: cover;
}

.related-card span {
    display: grid;
    min-width: 0;
}

.related-card strong,
.related-card em {
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-card strong {
    color: #241305;
    font-size: 16px;
    line-height: 1.35;
}

.related-card em {
    color: #8a4b12;
    font-size: 12px;
    font-style: normal;
}

.site-footer {
    margin-top: 80px;
    color: #ffedd5;
    background: #1c1208;
}

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    gap: 16px;
}

.footer-brand {
    color: #fde68a;
    font-size: 24px;
}

.site-footer p {
    max-width: 780px;
    margin: 0;
    color: #fed7aa;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #fff7ed;
    font-weight: 800;
}

.footer-links a:hover {
    color: #fde68a;
}

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

@media (max-width: 1100px) {
    .movie-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .split-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: relative;
        top: auto;
    }
}

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

    .mobile-menu-button {
        display: grid;
        place-items: center;
    }

    .brand-text small {
        display: none;
    }

    .hero,
    .hero-stage {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
        padding: 42px 0 84px;
    }

    .hero-poster {
        max-width: 260px;
        justify-self: center;
        transform: rotate(0deg);
    }

    .filter-panel,
    .category-overview-grid,
    .category-overview-card,
    .detail-hero,
    .ranking-card {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 42px 24px;
    }

    .detail-hero {
        padding: 22px;
    }

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

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

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

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

    .brand-text strong {
        font-size: 20px;
    }

    .section-shell {
        padding: 46px 0;
    }

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

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

    .card-body {
        padding: 14px;
    }

    .card-body h3 {
        font-size: 16px;
    }

    .card-desc,
    .tag-row {
        display: none;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-summary {
        font-size: 16px;
    }

    .hero-actions {
        display: grid;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .page-hero {
        border-radius: 28px;
    }

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

    .category-cover-stack img {
        height: 120px;
    }

    .ranking-poster {
        max-width: 220px;
    }

    .play-icon {
        width: 66px;
        height: 66px;
        font-size: 24px;
    }

    .article-panel {
        padding: 22px;
    }
}

@media (max-width: 430px) {
    .movie-grid,
    .narrow-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

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