:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --panel-soft: #fff7ed;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --dark: #0f172a;
    --amber: #b45309;
    --amber-soft: #f59e0b;
    --amber-light: #fef3c7;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.12), transparent 30%),
        linear-gradient(180deg, #fffaf0 0%, var(--bg) 42%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #92400e, #f59e0b);
    box-shadow: 0 12px 30px rgba(180, 83, 9, 0.28);
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 12px;
}

.brand.dark .brand-copy strong {
    color: #ffffff;
}

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

.nav-link,
.mobile-link {
    color: #374151;
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
    padding: 9px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #92400e;
    background: #fef3c7;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(250px, 22vw);
}

.header-search input,
.mobile-search input,
.filter-input,
.search-panel input,
.filter-select {
    width: 100%;
    color: var(--text);
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    height: 42px;
    padding: 0 44px 0 16px;
}

.header-search button {
    position: absolute;
    right: 5px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: var(--amber);
    cursor: pointer;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.search-panel input:focus,
.filter-select:focus {
    border-color: var(--amber-soft);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #374151;
}

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

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

.mobile-search {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}

.mobile-search input {
    height: 44px;
    padding: 0 16px;
}

.mobile-search button {
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--amber);
}

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

.mobile-link {
    padding: 12px 14px;
}

.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
    transform: scale(1.02);
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.22) 100%),
        var(--hero-bg) center / cover no-repeat;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 40%, rgba(245, 158, 11, 0.28), transparent 28%),
        linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 620px;
    padding: 76px 24px 90px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px);
    gap: 52px;
    align-items: center;
}

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

.eyebrow,
.panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--amber-soft);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-meta,
.hero-tags,
.tag-row,
.card-meta,
.card-foot,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-meta span,
.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-meta span {
    color: #fef3c7;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-tags span,
.tag-row span {
    color: #92400e;
    background: #fef3c7;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    color: #ffffff;
    background: linear-gradient(135deg, #b45309, #f59e0b);
    box-shadow: 0 16px 32px rgba(180, 83, 9, 0.28);
}

.button.ghost {
    color: #92400e;
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(245, 158, 11, 0.36);
}

.button.small {
    min-height: 40px;
    padding: 0 16px;
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 30px;
    transform: rotate(2deg);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, #1f2937, #92400e);
}

.poster-glow {
    position: absolute;
    inset: auto 10% -22px;
    height: 34px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.5);
    filter: blur(22px);
}

.hero-control {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

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

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

.hero-dot.is-active {
    width: 30px;
    background: #f59e0b;
}

.stats-band {
    max-width: 1180px;
    margin: -36px auto 36px;
    position: relative;
    z-index: 8;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stats-band div {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.stats-band strong {
    display: block;
    color: #92400e;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1;
}

.stats-band span {
    color: var(--muted);
    font-weight: 800;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 52px 24px;
}

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

.section-heading span {
    color: var(--amber);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.section-more {
    min-width: max-content;
    color: #92400e;
    font-weight: 900;
}

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

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    padding: 24px;
    border-radius: var(--radius);
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(146, 64, 14, 0.52)),
        var(--category-bg) center / cover no-repeat;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.movie-card:hover,
.ranking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.17);
}

.category-card span,
.category-card small {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-weight: 900;
}

.category-card strong {
    display: block;
    margin: 16px 0 6px;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.category-card p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.84);
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #92400e);
}

.poster-frame img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.quality-badge,
.duration-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

.quality-badge {
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #b45309, #f59e0b);
}

.duration-badge {
    right: 10px;
    bottom: 10px;
}

.card-body {
    padding: 16px;
}

.card-meta {
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.card-meta a {
    color: #92400e;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.28;
    letter-spacing: -0.02em;
}

.movie-card h3 a:hover,
.ranking-card h3 a:hover {
    color: #92400e;
}

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

.card-foot {
    justify-content: space-between;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.tag-row {
    margin-top: 12px;
}

.movie-card.compact .card-body {
    padding: 14px;
}

.movie-card.compact h3 {
    font-size: 16px;
}

.ranking-panel {
    padding: 24px;
    border-radius: var(--radius);
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.3), transparent 30%),
        linear-gradient(145deg, #111827, #1f2937 58%, #78350f);
    box-shadow: var(--shadow);
}

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

.ranking-panel h2 {
    margin: 0 0 18px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease;
}

.rank-row:hover {
    background: rgba(255, 255, 255, 0.15);
}

.rank-num {
    color: #fbbf24;
    font-weight: 950;
}

.rank-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.rank-heat {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 800;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 170px 150px 150px auto;
    gap: 12px;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-input,
.filter-select,
.search-panel input {
    height: 44px;
    padding: 0 16px;
}

.filter-count,
.search-summary {
    margin: 0 0 18px;
    color: var(--muted);
    font-weight: 800;
}

.page-hero,
.detail-hero {
    position: relative;
    color: #ffffff;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(120, 53, 15, 0.72)),
        var(--page-bg, none) center / cover no-repeat;
}

.compact-hero {
    padding: 76px 24px;
}

.page-hero > div {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}

.category-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
    padding: 70px 24px;
}

.detail-hero {
    min-height: 600px;
    padding: 64px 24px;
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 820px);
    gap: 42px;
    justify-content: center;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.5)),
        var(--detail-bg) center / cover no-repeat;
}

.detail-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #111827, #92400e);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

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

.detail-meta-grid span {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.detail-meta-grid b {
    display: block;
    color: #fbbf24;
    font-size: 12px;
}

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

.player-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(120, 53, 15, 0.36));
    cursor: pointer;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #b45309, #f59e0b);
    box-shadow: 0 16px 42px rgba(245, 158, 11, 0.36);
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay small {
    color: rgba(255, 255, 255, 0.76);
    font-weight: 800;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    margin: 0;
    color: #fde68a;
    font-weight: 800;
    text-align: center;
}

.detail-text {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
}

.text-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.text-card.wide {
    max-width: 900px;
}

.text-card h2 {
    margin: 0 0 12px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.text-card p {
    margin: 0;
    color: #374151;
}

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

.ranking-card {
    position: relative;
    display: grid;
    grid-template-columns: 82px 84px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-poster img {
    width: 84px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #111827, #92400e);
}

.ranking-index {
    color: #92400e;
    font-size: 34px;
    font-weight: 950;
    text-align: center;
}

.ranking-copy h3 {
    margin: 0 0 6px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.ranking-copy p {
    margin: 0;
    color: var(--muted);
}

.ranking-score {
    color: #92400e;
    white-space: nowrap;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.site-footer {
    margin-top: 40px;
    padding: 52px 24px 28px;
    color: #d1d5db;
    background:
        radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.2), transparent 32%),
        #111827;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
}

.footer-brand p {
    max-width: 380px;
    color: #9ca3af;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer a:not(.brand) {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #9ca3af;
    font-size: 14px;
}

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

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

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

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

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

    .sticky-panel {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 52px;
    }

    .hero-poster {
        display: none;
    }

    .stats-band {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -20px;
    }

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

    .detail-poster {
        max-width: 300px;
    }

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

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

    .ranking-card {
        grid-template-columns: 54px 70px minmax(0, 1fr);
    }

    .ranking-score {
        grid-column: 3;
    }
}

@media (max-width: 640px) {
    .header-inner {
        padding: 12px 16px;
    }

    .brand-copy small {
        display: none;
    }

    .hero-slider,
    .hero-stage,
    .hero-content {
        min-height: 560px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .content-section {
        padding: 38px 16px;
    }

    .section-heading {
        display: block;
    }

    .category-grid,
    .category-grid.large,
    .movie-grid,
    .featured-grid,
    .library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .filter-bar,
    .search-panel,
    .stats-band {
        grid-template-columns: 1fr;
    }

    .movie-card h3 {
        font-size: 16px;
    }

    .card-body {
        padding: 12px;
    }

    .ranking-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .ranking-poster {
        display: none;
    }

    .ranking-score {
        grid-column: 2;
    }

    .footer-bottom {
        display: grid;
    }
}
