:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.22);
    --orange: #f97316;
    --amber: #f59e0b;
    --yellow: #facc15;
    --deep: #7c2d12;
    --card: #ffffff;
    --shadow: 0 20px 55px rgba(124, 45, 18, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 55%, #ffffff 100%);
}

body.is-menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #d97706 0%, #f97316 45%, #eab308 100%);
    box-shadow: 0 10px 30px rgba(124, 45, 18, 0.18);
}

.navbar {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    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;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 12px 25px rgba(124, 45, 18, 0.22);
    font-size: 24px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    color: #ffffff;
    font-size: 22px;
    letter-spacing: 0.04em;
}

.brand-text em {
    color: #ffedd5;
    font-style: normal;
    font-size: 12px;
    margin-top: 3px;
}

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

.nav-link,
.mobile-link {
    color: #fff7ed;
    padding: 10px 16px;
    border-radius: 14px;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    background: rgba(255, 255, 255, 0.96);
    color: #ea580c;
    transform: translateY(-1px);
}

.menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 999px;
}

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

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

.mobile-link {
    display: block;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: linear-gradient(120deg, #f59e0b 0%, #fb923c 48%, #facc15 100%);
}

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    filter: blur(12px) saturate(1.2);
    transform: scale(1.08);
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 26%), linear-gradient(110deg, rgba(124, 45, 18, 0.38), rgba(234, 88, 12, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: 56px;
    padding: 76px 0;
}

.hero-copy {
    color: #ffffff;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 14px;
    color: #ea580c;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-kicker {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero h1,
.inner-hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 660px;
    margin: 26px 0 0;
    color: #fff7ed;
    font-size: 20px;
    line-height: 1.85;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    background: #fff7ed;
    color: #c2410c;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.primary-btn,
.ghost-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    padding: 14px 28px;
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #f59e0b);
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.28);
}

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

.primary-btn.light {
    color: #ea580c;
    background: #ffffff;
}

.ghost-btn {
    padding: 14px 28px;
    color: #ffffff;
    background: rgba(124, 45, 18, 0.62);
}

.hero-poster {
    position: relative;
    min-height: 460px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 35px 80px rgba(124, 45, 18, 0.38);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) scale(1.02);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.55));
}

.hero-poster span,
.play-dot,
.wide-cover span {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #ea580c;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.hero-poster span {
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 82px;
    height: 82px;
    transform: translate(-50%, -50%);
    font-size: 30px;
}

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

.hero-dot {
    width: 42px;
    height: 8px;
    border: 0;
    border-radius: 99px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.44);
}

.hero-dot.is-active {
    background: #ffffff;
}

.quick-search-panel {
    width: min(1180px, calc(100% - 32px));
    margin: -42px auto 0;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.quick-search label {
    display: block;
    margin-bottom: 10px;
    font-weight: 900;
    color: #9a3412;
}

.quick-search div,
.filter-bar {
    display: flex;
    gap: 12px;
}

.quick-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 2px solid #fed7aa;
    border-radius: 16px;
    padding: 13px 16px;
    outline: none;
    background: #ffffff;
}

.quick-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.quick-search button {
    border: 0;
    white-space: nowrap;
    padding: 0 24px;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(90deg, #f97316, #f59e0b);
}

.category-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-strip a,
.pill-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 15px;
    color: #9a3412;
    font-weight: 900;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 78px 0;
}

.warm-section {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.45), rgba(254, 243, 199, 0.6));
}

.section-heading {
    text-align: center;
    margin-bottom: 38px;
}

.section-heading span {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    color: #c2410c;
    background: #ffedd5;
    font-weight: 900;
}

.section-heading h2 {
    margin: 16px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 12px auto 0;
    max-width: 640px;
    color: var(--muted);
    font-size: 17px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(124, 45, 18, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 55px rgba(124, 45, 18, 0.2);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

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

.poster-wrap img,
.wide-cover img,
.rank-cover img {
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.wide-card:hover .wide-cover img,
.rank-card:hover .rank-cover img {
    transform: scale(1.08);
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ea580c;
    background: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 900;
}

.play-dot {
    left: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
}

.movie-body {
    padding: 18px;
}

.movie-body h3,
.wide-body h3,
.rank-card h3 {
    margin: 0;
    color: #111827;
    line-height: 1.35;
}

.movie-body h3 a:hover,
.wide-body h3 a:hover,
.rank-card h3 a:hover {
    color: #ea580c;
}

.movie-desc {
    color: var(--muted);
    line-height: 1.65;
    min-height: 78px;
}

.tag-row span {
    padding: 5px 9px;
    font-size: 12px;
    background: #fff7ed;
}

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

.category-tile {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 24px;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b 55%, #facc15);
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.18);
    overflow: hidden;
    position: relative;
}

.category-tile::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -36px;
    top: -36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.category-tile strong {
    position: relative;
    font-size: 25px;
}

.category-tile span {
    position: relative;
    color: #fff7ed;
}

.wide-list,
.rank-list {
    display: grid;
    gap: 22px;
}

.wide-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(124, 45, 18, 0.12);
}

.wide-cover {
    position: relative;
    min-height: 200px;
    overflow: hidden;
    background: #fed7aa;
}

.wide-cover span {
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
}

.wide-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wide-body p,
.rank-card p {
    color: var(--muted);
    line-height: 1.7;
}

.text-link {
    width: max-content;
    color: #ea580c;
    font-weight: 900;
}

.mission-band {
    width: min(1180px, calc(100% - 32px));
    margin: 40px auto;
    padding: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: #ffffff;
    border-radius: 34px;
    background: linear-gradient(90deg, #f97316 0%, #f59e0b 52%, #eab308 100%);
    box-shadow: 0 24px 60px rgba(234, 88, 12, 0.22);
}

.mission-band span {
    font-weight: 900;
    color: #ffedd5;
}

.mission-band h2 {
    margin: 10px 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
}

.mission-band p {
    margin: 0;
    color: #fff7ed;
}

.rank-card {
    display: grid;
    grid-template-columns: 70px 130px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(124, 45, 18, 0.11);
}

.rank-number {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.rank-cover {
    height: 96px;
    overflow: hidden;
    border-radius: 18px;
    background: #fed7aa;
}

.inner-hero {
    min-height: 340px;
    padding: 80px 0;
    color: #ffffff;
    background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.22), transparent 24%), linear-gradient(120deg, #d97706 0%, #f97316 55%, #eab308 100%);
}

.inner-hero > div {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.inner-hero p {
    max-width: 720px;
    color: #fff7ed;
    font-size: 18px;
    line-height: 1.8;
}

.compact-hero h1 {
    max-width: 900px;
}

.filter-bar {
    margin: 0 0 28px;
}

.filter-bar select {
    max-width: 220px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 38px;
}

.page-link {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #9a3412;
    background: #fff7ed;
    font-weight: 900;
    border: 1px solid #fed7aa;
}

.page-link.is-active,
.page-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

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

.pill-link {
    justify-content: space-between;
    gap: 10px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(124, 45, 18, 0.08);
}

.pill-link span {
    color: var(--muted);
    font-size: 12px;
}

.top-rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.top-rank {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    border-radius: 30px;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.top-rank img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.top-rank::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.72));
}

.top-rank span,
.top-rank strong,
.top-rank em {
    position: relative;
    z-index: 2;
}

.top-rank span {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ea580c;
    background: #ffffff;
    font-size: 22px;
    font-weight: 950;
    margin-bottom: 16px;
}

.top-rank strong {
    font-size: 26px;
    margin-bottom: 8px;
}

.top-rank em {
    font-style: normal;
    color: #ffedd5;
}

.detail-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 20px;
}

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

.detail-main,
.detail-side,
.detail-copy,
.side-panel {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(124, 45, 18, 0.12);
    overflow: hidden;
}

.player-card {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52));
    transition: opacity 0.25s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ea580c;
    background: rgba(255, 255, 255, 0.94);
    font-size: 34px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

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

.player-message {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: none;
    padding: 12px 14px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.65);
}

.player-message.is-visible {
    display: block;
}

.detail-copy {
    padding: 32px;
    border-radius: 0 0 28px 28px;
    box-shadow: none;
}

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

.lead-text {
    margin: 0 0 26px;
    color: #4b5563;
    font-size: 20px;
    line-height: 1.85;
}

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

.meta-grid div {
    padding: 16px;
    border-radius: 18px;
    background: #fff7ed;
}

.meta-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.meta-grid strong {
    color: #9a3412;
}

.detail-copy h2 {
    margin: 30px 0 12px;
    font-size: 24px;
}

.detail-copy > p {
    color: #374151;
    line-height: 1.9;
    font-size: 17px;
}

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

.detail-poster {
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    background: #fed7aa;
}

.side-panel {
    margin-top: 18px;
    padding: 24px;
}

.side-panel h2 {
    margin: 0 0 12px;
}

.side-panel p {
    color: var(--muted);
    line-height: 1.7;
}

.site-footer {
    margin-top: 60px;
    color: #fff7ed;
    background: linear-gradient(135deg, #7c2d12, #9a3412 55%, #78350f);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
}

.site-footer p,
.site-footer a {
    color: #ffedd5;
    line-height: 1.75;
}

.site-footer a {
    display: block;
    margin: 8px 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px;
    text-align: center;
    color: #fed7aa;
}

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

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

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

    .detail-side {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: 18px;
        align-items: center;
        box-shadow: none;
        background: transparent;
    }

    .side-panel {
        margin-top: 0;
    }

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

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

    .menu-toggle {
        display: flex;
    }

    .hero,
    .hero-stage,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 48px 0 90px;
        gap: 34px;
    }

    .hero-poster,
    .hero-poster img {
        min-height: 360px;
    }

    .quick-search-panel {
        grid-template-columns: 1fr;
        margin-top: -24px;
    }

    .quick-search div,
    .filter-bar {
        flex-direction: column;
    }

    .filter-bar select {
        max-width: none;
    }

    .movie-grid,
    .category-gallery,
    .pill-grid,
    .top-rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wide-card,
    .rank-card,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .mission-band {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 540px) {
    .navbar,
    .mobile-panel,
    .content-section,
    .detail-page,
    .mission-band,
    .quick-search-panel,
    .inner-hero > div,
    .hero-content {
        width: min(100% - 24px, 1180px);
    }

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

    .brand-text em {
        display: none;
    }

    .hero h1,
    .inner-hero h1 {
        font-size: 40px;
    }

    .hero-desc {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

    .movie-grid,
    .category-gallery,
    .pill-grid,
    .top-rank-grid {
        grid-template-columns: 1fr;
    }

    .rank-card {
        text-align: left;
    }

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

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