:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-card-solid: #111827;
    --line: rgba(251, 191, 36, 0.18);
    --line-soft: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --amber: #f59e0b;
    --orange: #ea580c;
    --red: #ef4444;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --max: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 30rem),
        radial-gradient(circle at top right, rgba(234, 88, 12, 0.12), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.05em;
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.34);
}

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

.brand-name {
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-line {
    color: var(--subtle);
    font-size: 12px;
    margin-top: 4px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-link {
    padding: 9px 12px;
    color: var(--muted);
    border-radius: 12px;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fbbf24;
    background: rgba(51, 65, 85, 0.74);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid rgba(148, 163, 184, 0.22);
    outline: 0;
    color: var(--text);
    background: rgba(15, 23, 42, 0.72);
    border-radius: 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    width: 210px;
    padding: 10px 12px;
}

.header-search button,
.mobile-search button,
.large-search button,
.primary-button,
.rank-action {
    border: 0;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-search button {
    padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
    background: rgba(15, 23, 42, 0.95);
}

.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.primary-button:hover,
.rank-action:hover {
    transform: translateY(-2px) scale(1.01);
    filter: brightness(1.06);
    box-shadow: 0 20px 42px rgba(245, 158, 11, 0.32);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.7);
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
}

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

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

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-search input {
    width: 100%;
    padding: 12px;
}

.mobile-search button {
    padding: 0 16px;
}

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

.hero-carousel {
    position: relative;
    height: min(720px, 74vh);
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.34) 78%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.04) 48%);
}

.hero-content {
    position: relative;
    width: min(var(--max), calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 86px;
}

.hero-kicker,
.detail-kicker,
.section-heading span,
.sub-hero span {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    color: #fff7ed;
    background: rgba(245, 158, 11, 0.92);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-content h1 {
    margin: 18px 0 6px;
    max-width: 880px;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-content h2 {
    margin: 0 0 16px;
    max-width: 820px;
    color: #fbbf24;
    font-size: clamp(26px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 900;
}

.hero-content p {
    margin: 0 0 18px;
    max-width: 760px;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 21px);
}

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

.hero-tags span,
.tag-list span {
    padding: 6px 10px;
    color: #fed7aa;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 999px;
    font-size: 13px;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
}

.ghost-button {
    color: var(--text);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 14px;
    font-weight: 800;
    transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
    border-color: rgba(245, 158, 11, 0.82);
    background: rgba(51, 65, 85, 0.78);
    transform: translateY(-2px);
}

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

.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.page-shell,
.page-section {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.page-section {
    padding: 72px 0 0;
}

.no-top-padding {
    padding-top: 28px;
}

.intro-search-section {
    padding-top: 54px;
}

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

.section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.16;
    font-weight: 920;
}

.section-heading p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
}

.section-heading a {
    color: #fbbf24;
    font-weight: 800;
    white-space: nowrap;
}

.centered-heading {
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.large-search {
    display: flex;
    width: min(760px, 100%);
    margin: 28px auto 0;
    padding: 8px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.large-search input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 0;
    background: transparent;
}

.large-search button {
    min-width: 116px;
    border: 0;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.86));
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    transition: border 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(245, 158, 11, 0.48);
    transform: translateY(-5px);
    box-shadow: 0 26px 56px rgba(245, 158, 11, 0.15);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(2, 6, 23, 0.9));
}

.compact-card .movie-cover {
    aspect-ratio: 3 / 4;
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent);
}

.cover-year,
.cover-type,
.rank-mark {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.cover-year {
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    background: rgba(2, 6, 23, 0.72);
}

.cover-type {
    left: 10px;
    bottom: 10px;
    padding: 5px 9px;
    background: rgba(245, 158, 11, 0.9);
    color: #ffffff;
}

.rank-mark {
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fbbf24, #ea580c);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.32);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-card p {
    min-height: 45px;
    margin: 0 0 12px;
    color: var(--subtle);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #cbd5e1;
    font-size: 12px;
}

.movie-card-meta span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 154px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.14), transparent),
        linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(234, 88, 12, 0.12)), rgba(15, 23, 42, 0.94);
}

.category-tile span,
.category-overview-link span {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.category-tile small,
.category-overview-link small {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.category-samples {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.category-samples img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 92px 54px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 18px;
    transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(30, 41, 59, 0.82);
    transform: translateX(4px);
}

.rank-cover {
    overflow: hidden;
    border-radius: 14px;
}

.rank-cover img {
    width: 92px;
    height: 68px;
    object-fit: cover;
}

.rank-num {
    color: #fbbf24;
    font-size: 24px;
    font-weight: 950;
    text-align: center;
}

.rank-copy h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.3;
}

.rank-copy h3 a:hover {
    color: #fbbf24;
}

.rank-copy p {
    margin: 0 0 8px;
    color: var(--subtle);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.rank-action {
    padding: 10px 16px;
    font-size: 14px;
}

.sub-hero {
    margin-top: 38px;
    padding: 44px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 22rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.86));
    border: 1px solid var(--line-soft);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.sub-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.sub-hero p {
    max-width: 820px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

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

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

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px 180px;
    gap: 12px;
    margin: 28px 0 0;
    padding: 14px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 34px;
    margin-top: 28px;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 22rem),
        rgba(15, 23, 42, 0.76);
    border: 1px solid var(--line-soft);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

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

.detail-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-copy h1 {
    margin: 16px 0 16px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.detail-one-line {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 19px;
}

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

.detail-meta span {
    padding: 7px 11px;
    background: rgba(30, 41, 59, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    color: #e2e8f0;
    font-size: 13px;
}

.watch-section {
    margin-top: 46px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-height: 360px;
    background: #000000;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.36);
    font-size: 34px;
    text-indent: 5px;
}

.player-overlay span:last-child {
    font-size: 18px;
    font-weight: 900;
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 36px;
}

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

.story-card h2 {
    margin: 0 0 14px;
    color: #fbbf24;
    font-size: 24px;
}

.story-card p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.search-page-form {
    margin-left: 0;
    margin-right: 0;
}

.site-footer {
    margin-top: 78px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), #020617);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    padding: 44px 0 24px;
}

.footer-brand {
    margin-bottom: 8px;
    color: #fbbf24;
    font-size: 22px;
    font-weight: 900;
}

.footer-inner p {
    max-width: 620px;
    margin: 0;
    color: var(--subtle);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: start;
}

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

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

.footer-bottom {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 32px;
    color: var(--subtle);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

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

    .mobile-menu-button {
        display: flex;
    }

    .header-search {
        margin-left: auto;
    }

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

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

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }
}

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

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

    .hero-shade {
        background:
            linear-gradient(0deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.34)),
            linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.48));
    }

    .hero-content {
        padding-bottom: 78px;
    }

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

    .three-col,
    .four-col,
    .six-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rank-row {
        grid-template-columns: 78px 42px 1fr;
    }

    .rank-action {
        grid-column: 3;
        width: fit-content;
    }

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

    .detail-poster img {
        min-height: 0;
        max-height: 540px;
    }

    .content-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-inner {
        width: min(100% - 24px, var(--max));
        min-height: 68px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

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

    .brand-line {
        display: none;
    }

    .mobile-panel,
    .page-shell,
    .page-section,
    .footer-inner,
    .footer-bottom,
    .hero-content {
        width: min(100% - 24px, var(--max));
    }

    .hero-carousel {
        min-height: 590px;
        height: 78vh;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-actions,
    .detail-actions,
    .large-search {
        flex-direction: column;
        align-items: stretch;
    }

    .large-search button {
        min-height: 50px;
    }

    .three-col,
    .four-col,
    .six-col,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .sub-hero,
    .detail-hero,
    .story-card {
        padding: 22px;
        border-radius: 22px;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 70px 1fr;
        gap: 12px;
    }

    .rank-num {
        position: absolute;
        margin-left: 8px;
        margin-top: -38px;
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: linear-gradient(135deg, var(--amber), var(--orange));
        color: #ffffff;
        font-size: 16px;
    }

    .rank-copy,
    .rank-action {
        grid-column: 2;
    }

    .rank-cover img {
        width: 70px;
        height: 96px;
    }

    .player-wrap {
        min-height: 240px;
        border-radius: 18px;
    }

    .play-circle {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }

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