:root {
    --bg: #fff7ed;
    --panel: #ffffff;
    --panel-soft: rgba(255, 255, 255, 0.78);
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.22);
    --orange: #f97316;
    --pink: #ec4899;
    --blue: #3b82f6;
    --shadow: 0 22px 50px rgba(249, 115, 22, 0.14);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 30rem),
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.12), transparent 28rem),
        linear-gradient(180deg, #fff7ed 0%, #fff 38%, #fff7ed 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(251, 146, 60, 0.16);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.site-nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb923c, #ec4899, #60a5fa);
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.22);
}

.brand-name {
    font-size: clamp(20px, 2vw, 28px);
    background: linear-gradient(90deg, #f97316, #ec4899, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.nav-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    color: #374151;
    font-weight: 700;
    padding: 8px 0;
    transition: color 0.2s ease;
}

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

.nav-search,
.hero-search,
.search-panel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search input,
.hero-search input,
.search-panel input,
.search-panel select,
.category-search {
    min-width: 220px;
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 999px;
    padding: 12px 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.hero-search input:focus,
.search-panel input:focus,
.search-panel select:focus,
.category-search:focus {
    border-color: rgba(249, 115, 22, 0.8);
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.nav-search button,
.hero-search button,
.search-panel button,
.primary-button,
.wide-link {
    border: 0;
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    background: linear-gradient(90deg, #f97316, #ec4899);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.hero-search button:hover,
.search-panel button:hover,
.primary-button:hover,
.wide-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(236, 72, 153, 0.25);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #ffedd5;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #9a3412;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    padding: 34px 0 22px;
}

.hero-stage {
    position: relative;
    min-height: 540px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #111827, #fb923c);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.88) 0%, rgba(3, 7, 18, 0.54) 45%, rgba(3, 7, 18, 0.18) 100%),
        linear-gradient(0deg, rgba(3, 7, 18, 0.65), transparent 55%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 5vw, 62px);
    bottom: clamp(28px, 6vw, 68px);
    width: min(660px, calc(100% - 48px));
    color: #fff;
    z-index: 3;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    color: #fb923c;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-content h1 {
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    margin: 0 0 16px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.75;
    margin: 0 0 22px;
}

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

.hero-tags span,
.tag-row span,
.genre-row span,
.detail-tags a,
.quick-tags a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    color: #9a3412;
    background: rgba(255, 237, 213, 0.92);
}

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

.ghost-button {
    color: #fff;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 12px 18px;
}

.hero-controls {
    position: absolute;
    z-index: 6;
    left: 28px;
    right: 28px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    pointer-events: none;
}

.hero-arrow,
.hero-dot {
    pointer-events: auto;
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 38px;
    height: 38px;
    color: #fff;
    border-radius: 999px;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 28px;
    background: #fff;
}

.hero-side-card,
.page-hero,
.ranking-panel,
.article-card,
.side-info-card,
.detail-info-card,
.category-overview-card,
.index-group {
    background: var(--panel-soft);
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-side-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 540px;
}

.hero-side-card h2,
.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #f97316, #ec4899, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-side-card p,
.page-hero p,
.category-tile p,
.category-overview-card p,
.movie-card p,
.ranking-info p,
.article-card p {
    color: var(--muted);
    line-height: 1.75;
}

.hero-search {
    align-items: stretch;
    flex-direction: column;
    margin: 18px 0;
}

.hero-search input,
.hero-search button {
    width: 100%;
}

.content-section,
.split-section,
.page-main {
    padding: 34px 0;
}

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

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-more,
.text-link {
    color: var(--orange);
    font-weight: 900;
}

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

.two-column-on-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid rgba(251, 146, 60, 0.16);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(249, 115, 22, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #fb923c, #ec4899);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.3s ease, opacity 0.2s ease;
}

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

img.is-missing {
    opacity: 0;
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.7), transparent 58%);
}

.play-badge,
.duration-badge {
    position: absolute;
    z-index: 3;
    color: #fff;
    font-weight: 900;
}

.play-badge {
    left: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.duration-badge {
    right: 12px;
    bottom: 14px;
    font-size: 12px;
    border-radius: 999px;
    padding: 6px 9px;
    background: rgba(3, 7, 18, 0.72);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 950;
}

.movie-card h3 a:hover,
.ranking-info a:hover,
.index-group a:hover {
    color: var(--orange);
}

.movie-card p {
    min-height: 50px;
    margin: 0 0 14px;
    font-size: 14px;
}

.tag-row span {
    background: #fff7ed;
    color: #c2410c;
}

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

.category-tile {
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid rgba(251, 146, 60, 0.16);
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.category-tile-main {
    display: block;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.9), rgba(252, 231, 243, 0.9));
}

.category-count {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(90deg, #f97316, #ec4899);
}

.category-tile h3 {
    margin: 16px 0 8px;
    font-size: 24px;
    font-weight: 950;
}

.category-samples {
    display: grid;
    gap: 8px;
    padding: 18px 24px 22px;
}

.category-samples a {
    color: #6b7280;
    font-size: 14px;
}

.ranking-panel {
    padding: 22px;
    position: sticky;
    top: 96px;
}

.ranking-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.ranking-title h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 950;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 34px 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.rank-number,
.ranking-big-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 950;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.rank-number {
    width: 30px;
    height: 30px;
}

.rank-item img {
    width: 64px;
    height: 46px;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(135deg, #111827, #fb923c);
}

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

.rank-item small {
    display: block;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wide-link {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
}

.page-hero {
    padding: clamp(28px, 5vw, 54px);
    margin-bottom: 28px;
}

.small-hero {
    background:
        linear-gradient(135deg, rgba(255, 237, 213, 0.92), rgba(252, 231, 243, 0.82)),
        #fff;
}

.channel-hero {
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.15), transparent 24rem),
        linear-gradient(135deg, rgba(255, 237, 213, 0.94), rgba(255, 255, 255, 0.88));
}

.local-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.local-filter-bar button {
    border: 1px solid rgba(251, 146, 60, 0.26);
    border-radius: 999px;
    padding: 10px 14px;
    color: #9a3412;
    font-weight: 800;
    background: #fff;
    cursor: pointer;
}

.category-overview-grid {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 20px;
    align-items: center;
}

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

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #111827, #fb923c);
}

.category-overview-card h2,
.index-group h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 950;
}

.ranking-page-list {
    display: grid;
    gap: 16px;
}

.ranking-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px 180px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 18px;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid rgba(251, 146, 60, 0.16);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.ranking-big-number {
    width: 58px;
    height: 58px;
    font-size: 22px;
}

.ranking-poster img {
    width: 180px;
    height: 112px;
    object-fit: cover;
    border-radius: 16px;
    background: linear-gradient(135deg, #111827, #fb923c);
}

.ranking-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 950;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 150px 120px;
    margin-top: 22px;
}

.search-panel input,
.search-panel select,
.search-panel button {
    min-width: 0;
    width: 100%;
}

.search-summary {
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 18px;
}

.detail-layout {
    padding-top: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 18px;
}

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

.detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #030712;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
    aspect-ratio: 16 / 9;
}

.player-card video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #030712;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background:
        radial-gradient(circle, rgba(249, 115, 22, 0.20), transparent 22rem),
        linear-gradient(0deg, rgba(3, 7, 18, 0.30), rgba(3, 7, 18, 0.15));
}

.player-card.is-playing .player-start {
    opacity: 0;
    pointer-events: none;
}

.player-start span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 24px 50px rgba(236, 72, 153, 0.35);
    font-size: 34px;
}

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

.player-status {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    text-align: center;
    pointer-events: none;
}

.player-card.is-playing .player-status {
    display: none;
}

.detail-info-card {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

.detail-poster {
    width: 140px;
    height: 210px;
    object-fit: cover;
    border-radius: 18px;
    background: linear-gradient(135deg, #111827, #fb923c);
}

.detail-info h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 950;
}

.one-line {
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 14px;
}

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

.detail-meta-grid span {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 14px;
    color: #4b5563;
    background: #fff7ed;
    font-size: 13px;
}

.detail-meta-grid strong {
    color: #9a3412;
    font-size: 12px;
}

.source-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.source-button {
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: 999px;
    padding: 10px 13px;
    color: #9a3412;
    font-weight: 900;
    background: #fff;
    cursor: pointer;
}

.source-button.active {
    color: #fff;
    background: linear-gradient(90deg, #f97316, #ec4899);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    margin: 26px 0 4px;
}

.article-card,
.side-info-card {
    padding: clamp(22px, 3vw, 34px);
}

.article-card h2,
.side-info-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 950;
}

.article-card p {
    font-size: 16px;
    margin: 0 0 26px;
}

.detail-tags a {
    background: #fff7ed;
    color: #c2410c;
}

.side-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    color: var(--muted);
}

.side-info-card strong {
    color: var(--text);
}

.index-group {
    padding: 24px;
    margin-bottom: 22px;
}

.index-group h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.index-group h2 span {
    color: var(--muted);
    font-size: 14px;
}

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

.movie-link-cloud a {
    display: grid;
    gap: 4px;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid rgba(251, 146, 60, 0.12);
}

.movie-link-cloud span {
    font-weight: 900;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.movie-link-cloud small {
    color: var(--muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-footer {
    margin-top: 40px;
    padding: 42px 0;
    background: linear-gradient(90deg, #ffedd5, #fce7f3, #dbeafe);
    border-top: 1px solid rgba(251, 146, 60, 0.18);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 28px;
}

.footer-brand {
    font-size: 20px;
    margin-bottom: 12px;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.75;
    margin: 0;
}

.site-footer h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 950;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: #6b7280;
    font-weight: 700;
}

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

.hidden-by-filter {
    display: none !important;
}

@media (max-width: 1100px) {
    .hero-section,
    .split-section,
    .detail-top,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .hero-side-card {
        min-height: auto;
    }

    .ranking-panel {
        position: static;
    }

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

    .two-column-on-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 840px) {
    .site-nav {
        flex-wrap: wrap;
        min-height: 66px;
    }

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

    .nav-panel {
        display: none;
        width: 100%;
        flex: 0 0 100%;
        align-items: stretch;
        flex-direction: column;
        padding: 0 0 16px;
    }

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

    .nav-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-search {
        align-items: stretch;
        flex-direction: column;
    }

    .nav-search input {
        width: 100%;
    }

    .hero-stage {
        min-height: 520px;
    }

    .hero-controls {
        justify-content: center;
    }

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

    .category-overview-card,
    .ranking-card,
    .detail-info-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-cover-stack {
        max-width: 320px;
    }

    .ranking-poster img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1200px);
    }

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

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

    .hero-section {
        padding-top: 18px;
    }

    .hero-stage {
        min-height: 480px;
        border-radius: 22px;
    }

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

    .hero-content p {
        font-size: 15px;
    }

    .hero-tags {
        display: none;
    }

    .movie-grid,
    .two-column-on-wide,
    .category-grid,
    .movie-link-cloud {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .hero-side-card,
    .article-card,
    .side-info-card {
        border-radius: 22px;
        padding: 22px;
    }

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