:root {
    --page-bg: #fff7ed;
    --paper: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --brand: #f97316;
    --brand-dark: #c2410c;
    --brand-soft: #ffedd5;
    --shadow: 0 20px 55px rgba(17, 24, 39, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #f9fafb 100%);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 26px;
}

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

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #fb923c);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.32);
}

.brand-text {
    font-size: 20px;
    letter-spacing: -0.02em;
}

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

.nav-link,
.mobile-nav-link {
    padding: 9px 14px;
    color: #4b5563;
    border-radius: 999px;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.header-search {
    position: relative;
    margin-left: auto;
    width: min(320px, 35vw);
}

.site-search-input,
.local-filter,
.hero-search-input {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    border-radius: 999px;
    outline: none;
    padding: 12px 18px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.site-search-input:focus,
.local-filter:focus,
.hero-search-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(420px, 92vw);
    max-height: 440px;
    overflow: auto;
    display: none;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 8px;
}

.search-results.open {
    display: grid;
    gap: 6px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
}

.search-result-item:hover {
    background: #fff7ed;
}

.search-result-item img {
    width: 52px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: #f3f4f6;
}

.search-result-item strong {
    display: block;
    line-height: 1.3;
}

.search-result-item small {
    color: var(--muted);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--brand-soft);
    border-radius: 14px;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--brand-dark);
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--line);
}

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

.mobile-search-box {
    position: relative;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: #111827;
}

.hero-carousel {
    position: relative;
    min-height: 690px;
}

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

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

.hero-bg,
.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: blur(2px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 24%, rgba(249, 115, 22, 0.54), transparent 35%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72) 48%, rgba(17, 24, 39, 0.42));
}

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

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.hero-label,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.hero-label {
    color: #ffedd5;
    background: rgba(249, 115, 22, 0.28);
    border: 1px solid rgba(255, 237, 213, 0.26);
}

.hero-copy h1 {
    margin: 24px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero-copy p {
    max-width: 690px;
    color: #e5e7eb;
    font-size: 19px;
}

.hero-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.movie-tags span {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 13px;
}

.movie-tags span {
    background: #fff7ed;
    color: var(--brand-dark);
}

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

.primary-button,
.ghost-button,
.text-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 13px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.34);
}

.ghost-button {
    padding: 12px 20px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
}

.ghost-button.dark {
    color: var(--brand-dark);
    border-color: #fed7aa;
    background: #ffffff;
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.48);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #1f2937;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.active {
    width: 30px;
    background: var(--brand);
}

.hero-bottom {
    position: relative;
    z-index: 7;
    margin-top: -96px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items: stretch;
    padding-bottom: 36px;
}

.hero-search-panel,
.hero-mini-list {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-search-panel {
    padding: 18px;
}

.hero-search-panel span {
    display: block;
    color: var(--muted);
    font-weight: 750;
    margin-bottom: 10px;
}

.hero-mini-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.hero-mini-card:hover {
    background: #fff7ed;
}

.hero-mini-card img {
    width: 54px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
    background: #f3f4f6;
}

.hero-mini-card strong,
.hero-mini-card small {
    display: block;
}

.hero-mini-card strong {
    line-height: 1.25;
}

.hero-mini-card small {
    margin-top: 5px;
    color: var(--muted);
}

.home-panels {
    margin-top: 10px;
}

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

.stats-strip div {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.05);
}

.stats-strip strong {
    display: block;
    color: var(--brand-dark);
    font-size: 34px;
    line-height: 1;
}

.stats-strip span {
    color: var(--muted);
    font-weight: 700;
}

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

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

.section-heading h2 {
    margin: 10px 0 4px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.section-more,
.text-button {
    color: var(--brand-dark);
    background: var(--brand-soft);
    padding: 10px 16px;
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 24px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow);
}

.category-card img,
.category-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-card img {
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.35s ease;
}

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

.category-cover {
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.86));
}

.category-card strong,
.category-card small,
.category-card p {
    position: relative;
    z-index: 2;
}

.category-card strong {
    font-size: 22px;
}

.category-card small,
.category-card p {
    color: #e5e7eb;
}

.category-card p {
    margin: 8px 0 0;
    font-size: 14px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(17, 24, 39, 0.07);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.14);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f3f4f6;
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #c2410c);
    border-radius: 14px;
    font-weight: 900;
}

.movie-info {
    padding: 16px;
}

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-meta-line a {
    color: var(--brand-dark);
    font-weight: 800;
}

.movie-info h3 {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.28;
}

.movie-info p {
    min-height: 52px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.page-main {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 260px, #f9fafb 100%);
}

.page-hero {
    position: relative;
    padding: 88px 0 54px;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 18%, rgba(249, 115, 22, 0.22), transparent 33%),
        linear-gradient(135deg, #fff7ed, #ffffff 55%, #ffedd5);
}

.compact-hero h1,
.category-page-hero h1 {
    margin: 16px 0 10px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.compact-hero p,
.category-page-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}

.split-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: center;
}

.hero-stack {
    position: relative;
    height: 320px;
}

.hero-stack img {
    position: absolute;
    width: 190px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--shadow);
    background: #f3f4f6;
}

.hero-stack img:nth-child(1) {
    right: 120px;
    top: 18px;
    transform: rotate(-9deg);
}

.hero-stack img:nth-child(2) {
    right: 64px;
    top: 0;
    transform: rotate(5deg);
}

.hero-stack img:nth-child(3) {
    right: 0;
    top: 42px;
    transform: rotate(13deg);
}

.filter-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chips button {
    border: 0;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 750;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    align-items: stretch;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(17, 24, 39, 0.07);
}

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

.category-overview-media img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 14px;
    background: #f3f4f6;
}

.category-overview-body span {
    color: var(--brand-dark);
    font-weight: 800;
}

.category-overview-body h2 {
    margin: 8px 0;
}

.category-overview-body p {
    color: var(--muted);
}

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

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

.library-item {
    display: grid;
    gap: 4px;
    min-height: 88px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border 0.2s ease, transform 0.2s ease;
}

.library-item:hover {
    border-color: #fdba74;
    transform: translateY(-2px);
}

.library-title {
    font-weight: 800;
    line-height: 1.35;
}

.library-meta {
    color: var(--muted);
    font-size: 13px;
}

.detail-main {
    background: #ffffff;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-backdrop {
    opacity: 0.5;
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 22%, rgba(249, 115, 22, 0.34), transparent 32%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 42px 0 58px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #e5e7eb;
    font-size: 14px;
    margin-bottom: 28px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster img {
    width: 260px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 26px;
    background: #1f2937;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.detail-copy p {
    max-width: 760px;
    color: #e5e7eb;
    font-size: 18px;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.player-section {
    padding-top: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(17, 24, 39, 0.2);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.55));
    cursor: pointer;
    z-index: 2;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 18px 46px rgba(249, 115, 22, 0.42);
    font-size: 34px;
}

.play-overlay.is-hidden {
    display: none;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    padding: 8px 0 38px;
}

.detail-article,
.detail-side-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 35px rgba(17, 24, 39, 0.06);
}

.detail-article h2,
.detail-side-card h2 {
    margin: 0 0 12px;
}

.detail-article p {
    color: #374151;
    margin: 0 0 22px;
}

.detail-side-card dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.detail-side-card dt {
    color: var(--muted);
}

.detail-side-card dd {
    margin: 0;
    font-weight: 750;
}

.detail-side-card a {
    color: var(--brand-dark);
}

.sitemap-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.sitemap-links a {
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 750;
}

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 52%, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 46px 0;
}

.footer-grid p {
    color: #9ca3af;
    max-width: 420px;
}

.footer-grid h3 {
    color: #ffffff;
    margin: 0 0 12px;
}

.footer-grid a {
    display: block;
    color: #d1d5db;
    margin: 8px 0;
}

.footer-grid a:hover {
    color: #fdba74;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px;
    color: #9ca3af;
}

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

@media (max-width: 1080px) {
    .hero-content {
        grid-template-columns: 1fr 280px;
    }

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

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

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

@media (max-width: 820px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-carousel,
    .hero-content {
        min-height: 740px;
    }

    .hero-content,
    .split-hero,
    .detail-layout,
    .detail-content-grid,
    .category-overview-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 28px;
        padding-top: 92px;
    }

    .hero-poster {
        width: min(250px, 70vw);
        margin: 0 auto;
    }

    .hero-bottom,
    .stats-strip {
        grid-template-columns: 1fr;
    }

    .hero-mini-list,
    .category-grid,
    .movie-grid,
    .category-overview-grid,
    .library-list,
    .library-list.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-stack {
        display: none;
    }

    .detail-poster img {
        width: min(240px, 70vw);
    }

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

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

    .header-inner {
        min-height: 64px;
    }

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

    .hero-copy h1,
    .detail-copy h1,
    .compact-hero h1,
    .category-page-hero h1 {
        font-size: 36px;
    }

    .hero-copy p,
    .detail-copy p,
    .compact-hero p,
    .category-page-hero p {
        font-size: 16px;
    }

    .hero-control {
        display: none;
    }

    .hero-dots {
        bottom: 132px;
    }

    .hero-mini-list,
    .category-grid,
    .movie-grid,
    .library-list,
    .library-list.compact {
        grid-template-columns: 1fr;
    }

    .category-overview-media {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-overview-media img {
        height: 92px;
    }
}
