:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --blue: #2563eb;
    --cyan: #67e8f9;
    --yellow: #facc15;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.22), transparent 34rem),
        radial-gradient(circle at 85% 12%, rgba(8, 145, 178, 0.2), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 50px rgba(2, 6, 23, 0.35);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e0f2fe;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand span {
    font-size: 1.22rem;
    background: linear-gradient(90deg, #60a5fa, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 34px;
    height: 34px;
    color: #60a5fa;
    filter: drop-shadow(0 0 18px rgba(96, 165, 250, 0.45));
}

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

.nav-link,
.dropdown-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #cbd5e1;
    font: inherit;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.dropdown-button:hover,
.nav-link.active {
    background: #2563eb;
    color: #fff;
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a,
.mobile-category-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 0.94rem;
}

.dropdown-panel a:hover,
.mobile-category-list a:hover {
    background: rgba(51, 65, 85, 0.9);
    color: #fff;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.8);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #e2e8f0;
    border-radius: 999px;
}

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

.mobile-menu .nav-link {
    display: flex;
    justify-content: flex-start;
    margin: 6px 0;
}

.mobile-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding-top: 8px;
}

.hidden {
    display: none !important;
}

.hero-carousel {
    position: relative;
    height: min(760px, 76vh);
    min-height: 540px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.25) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 42%, rgba(2, 6, 23, 0.08) 100%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    bottom: 86px;
    width: min(680px, calc(100% - 48px));
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--yellow);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.inline-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.star-icon {
    color: var(--yellow);
}

.site-topic {
    margin: 0 0 10px;
    color: #bae6fd;
    font-size: 1rem;
    font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.hero-summary {
    width: min(620px, 100%);
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: clamp(1rem, 1.7vw, 1.22rem);
    line-height: 1.78;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(96, 165, 250, 0.32);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.7);
    color: #dbeafe;
    font-size: 0.82rem;
    font-weight: 600;
}

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

.primary-button,
.secondary-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: #fff;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.34);
}

.secondary-button {
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.68);
    color: #e2e8f0;
}

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

.hero-dots {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 56px;
    z-index: 2;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.52);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: #2563eb;
}

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

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

.intro-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    align-items: center;
    gap: 28px;
    padding: 42px;
    margin-top: -36px;
    position: relative;
    z-index: 4;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.intro-search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info-card h1,
.prose-card h2,
.sidebar-card h2 {
    margin: 0;
    color: #fff;
    letter-spacing: -0.03em;
}

.intro-search-panel h2,
.section-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.intro-search-panel p,
.page-hero p,
.category-card-wide p,
.prose-card p {
    color: var(--soft);
    line-height: 1.82;
}

.home-search,
.page-filter-panel {
    display: flex;
    gap: 12px;
}

.home-search input,
.page-filter-panel input {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.62);
    color: #fff;
    padding: 0 16px;
    outline: none;
}

.home-search input:focus,
.page-filter-panel input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.home-search button {
    min-width: 98px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

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

.section-heading a,
.text-link {
    color: #7dd3fc;
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.24);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.42);
}

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

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

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent);
}

.card-type,
.card-year {
    position: absolute;
    top: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    background: rgba(37, 99, 235, 0.9);
    backdrop-filter: blur(10px);
}

.card-type {
    left: 12px;
}

.card-year {
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
}

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

.movie-card-body h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.movie-card-body h3 a:hover {
    color: #7dd3fc;
}

.movie-meta,
.movie-one-line {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.58;
}

.movie-one-line {
    color: #cbd5e1;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.26);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.18));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 20px;
    right: 20px;
    z-index: 1;
}

.category-tile strong {
    bottom: 50px;
    font-size: 1.35rem;
}

.category-tile em {
    bottom: 22px;
    color: #cbd5e1;
    font-style: normal;
    font-size: 0.92rem;
}

.ranking-panel {
    padding-bottom: 12px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 58px 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
    border-color: rgba(96, 165, 250, 0.44);
}

.rank-number {
    color: #60a5fa;
    font-size: 1.55rem;
    font-weight: 900;
}

.ranking-item img {
    width: 72px;
    height: 98px;
    object-fit: cover;
    border-radius: 12px;
}

.ranking-copy {
    display: grid;
    gap: 6px;
}

.ranking-copy strong {
    color: #fff;
    font-size: 1.04rem;
}

.ranking-copy em,
.ranking-copy small {
    color: var(--muted);
    font-style: normal;
    line-height: 1.52;
}

.two-column-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 58px;
}

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

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

.small-movie-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.62);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.small-movie-card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.44);
}

.small-movie-card img {
    width: 74px;
    height: 104px;
    object-fit: cover;
    border-radius: 12px;
}

.small-movie-card span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.small-movie-card strong {
    color: #fff;
    line-height: 1.4;
}

.small-movie-card em {
    margin-top: 6px;
    color: var(--muted);
    font-style: normal;
    font-size: 0.88rem;
}

.page-main {
    padding: 46px 0 70px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(8, 145, 178, 0.08)),
        rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    font-size: 1.08rem;
}

.page-filter-panel {
    align-items: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.page-filter-panel label {
    flex: 0 0 auto;
    color: #e2e8f0;
    font-weight: 800;
}

.sticky-filter {
    position: sticky;
    top: 84px;
    z-index: 20;
    backdrop-filter: blur(16px);
}

.category-overview-list {
    display: grid;
    gap: 22px;
    margin-top: 28px;
}

.category-card-wide {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
}

.category-cover-stack {
    position: relative;
    min-height: 220px;
}

.category-cover-stack img {
    position: absolute;
    width: 132px;
    height: 190px;
    object-fit: cover;
    border: 4px solid rgba(15, 23, 42, 0.95);
    border-radius: 18px;
    box-shadow: 0 20px 46px rgba(2, 6, 23, 0.42);
}

.category-cover-stack img:nth-child(1) {
    left: 0;
    top: 24px;
    transform: rotate(-8deg);
}

.category-cover-stack img:nth-child(2) {
    left: 86px;
    top: 0;
    z-index: 2;
}

.category-cover-stack img:nth-child(3) {
    left: 170px;
    top: 28px;
    transform: rotate(8deg);
}

.category-card-wide h2 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.detail-main {
    padding: 30px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin: 0 0 22px;
    color: #cbd5e1;
    font-size: 0.94rem;
}

.breadcrumb a {
    color: #7dd3fc;
}

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

.detail-primary,
.detail-sidebar {
    display: grid;
    gap: 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 28px;
    background: #000;
    box-shadow: 0 28px 90px rgba(2, 6, 23, 0.55);
}

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

.player-trigger {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(37, 99, 235, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.5));
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-shell.is-ready .player-trigger {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-play-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 22px 48px rgba(37, 99, 235, 0.42);
    font-size: 2rem;
    padding-left: 5px;
}

.detail-info-card,
.prose-card,
.sidebar-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 18px 54px rgba(2, 6, 23, 0.22);
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.detail-info-card h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
}

.detail-one-line {
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 1.08rem;
    line-height: 1.82;
}

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

.detail-meta-grid div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.42);
}

.detail-meta-grid span,
.info-list dt {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.detail-meta-grid strong,
.info-list dd {
    color: #fff;
    font-weight: 800;
}

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

.prose-card h2,
.sidebar-card h2 {
    margin-bottom: 14px;
    font-size: 1.42rem;
}

.prose-card p {
    margin: 0;
    font-size: 1.02rem;
}

.detail-related-grid {
    width: 100%;
    padding-top: 0;
}

.detail-sidebar {
    position: sticky;
    top: 92px;
}

.sidebar-list {
    gap: 10px;
}

.info-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.info-list div {
    display: grid;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.info-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.info-list dd,
.info-list dt {
    margin: 0;
}

.extended-ranking {
    grid-template-columns: 1fr;
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 34px;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 28px;
}

.footer-brand p,
.footer-column a,
.footer-bottom {
    color: var(--muted);
    line-height: 1.72;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-column h2 {
    margin: 0 0 6px;
    font-size: 1.02rem;
    color: #fff;
}

.footer-column a:hover {
    color: #7dd3fc;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.92rem;
}

@media (max-width: 1120px) {
    .large-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .detail-sidebar {
        position: static;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-carousel {
        min-height: 610px;
        height: 82vh;
    }

    .hero-content {
        bottom: 76px;
    }

    .hero-dots {
        left: 24px;
        right: auto;
        bottom: 32px;
    }

    .intro-search-panel,
    .two-column-showcase,
    .footer-inner,
    .category-card-wide {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 640px) {
    .nav-shell,
    .section-shell,
    .page-main,
    .detail-main,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 24px, 1180px);
    }

    .hero-carousel {
        min-height: 560px;
    }

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

    .hero-summary {
        font-size: 0.98rem;
    }

    .intro-search-panel,
    .page-hero,
    .detail-info-card,
    .prose-card,
    .sidebar-card,
    .page-filter-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .home-search,
    .page-filter-panel,
    .detail-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .large-grid,
    .category-grid,
    .ranking-list {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: 44px 66px minmax(0, 1fr);
    }

    .category-cover-stack {
        min-height: 190px;
    }

    .category-cover-stack img {
        width: 112px;
        height: 162px;
    }

    .category-cover-stack img:nth-child(2) {
        left: 72px;
    }

    .category-cover-stack img:nth-child(3) {
        left: 140px;
    }

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