:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #142033;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --text: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --card: #ffffff;
    --soft: #f8fafc;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.26);
}

.header-inner {
    width: min(1280px, calc(100% - 24px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald-500), var(--cyan-500));
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}

.brand-text {
    font-size: 1.2rem;
    background: linear-gradient(90deg, #34d399, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.main-nav a {
    color: #e2e8f0;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #34d399;
}

.top-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input {
    width: 240px;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 999px;
    padding: 10px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input::placeholder {
    color: #cbd5e1;
}

.top-search input:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.top-search button,
.filter-panel button,
.large-search button {
    border: 0;
    color: #ffffff;
    background: var(--emerald-600);
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.top-search button:hover,
.filter-panel button:hover,
.large-search button:hover {
    background: #047857;
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

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

.mobile-nav {
    width: min(1280px, calc(100% - 24px));
    margin: 0 auto;
    padding: 0 0 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.32), transparent 35%), linear-gradient(135deg, #020617 0%, #064e3b 50%, #0f172a 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 28px 28px;
}

.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.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) saturate(1.12);
}

.hero-backdrop::after,
.detail-backdrop::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.88));
}

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

.hero-kicker,
.eyebrow {
    color: #6ee7b7;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 12px 0 18px;
    font-size: clamp(2.5rem, 5vw, 5.3rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 720px;
    margin: 0;
    color: #dbeafe;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-tags,
.badge-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.hero-tags span,
.badge-row span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 700;
}

.hero-tags span,
.detail-tags a {
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(110, 231, 183, 0.28);
}

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

.primary-button,
.secondary-button,
.block-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald-600), var(--cyan-500));
    padding: 0 28px;
    box-shadow: 0 16px 35px rgba(16, 185, 129, 0.32);
}

.secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.primary-button:hover,
.secondary-button:hover,
.block-button:hover,
.section-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.42), rgba(34, 211, 238, 0.24));
}

.hero-poster img,
.detail-poster img,
.poster-frame img,
.compact-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-missing {
    opacity: 0;
}

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(16, 185, 129, 0.88);
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 86px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.12);
}

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

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

.hero-dot.active {
    width: 34px;
    background: var(--emerald-500);
}

.hero-search {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 24px;
    width: min(760px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-search input,
.large-search input {
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 14px 18px;
    outline: none;
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 26px;
    color: #ffffff;
    font-weight: 800;
    background: var(--emerald-600);
    cursor: pointer;
}

.category-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.category-pills {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 18px 0;
}

.category-pills a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 800;
}

.category-pills span {
    color: #0f766e;
    font-size: 0.8rem;
}

.content-section {
    padding: 66px 0;
}

.soft-section {
    background: var(--soft);
}

.emerald-section {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

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

.section-title-row h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    letter-spacing: -0.03em;
}

.section-title-row p {
    margin: 6px 0 0;
    color: var(--muted);
}

.section-more,
.block-button {
    color: #ffffff;
    background: var(--emerald-600);
    padding: 0 22px;
    white-space: nowrap;
}

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.poster-link {
    display: block;
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(34, 211, 238, 0.18));
}

.movie-card.overlay .poster-frame {
    aspect-ratio: 2 / 3;
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 36%, rgba(2, 6, 23, 0.76));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade,
.movie-card.overlay .poster-shade {
    opacity: 1;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(16, 185, 129, 0.88);
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark,
.movie-card.overlay .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 900;
    background: rgba(2, 6, 23, 0.76);
}

.movie-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.movie-title {
    display: -webkit-box;
    color: var(--slate-900);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-title:hover {
    color: var(--emerald-600);
}

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

.badge-row {
    margin-top: auto;
}

.badge-row span {
    color: #047857;
    background: #d1fae5;
}

.category-chip {
    align-self: flex-start;
    color: var(--emerald-600);
    font-size: 0.88rem;
    font-weight: 800;
}

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

.sidebar-card,
.info-card,
.article-card {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.sidebar-card {
    position: sticky;
    top: 94px;
    padding: 24px;
}

.sidebar-card h2,
.info-card h2,
.article-card h2 {
    margin: 0 0 14px;
    color: var(--slate-900);
}

.sidebar-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

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

.compact-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.compact-card:hover {
    background: #f1f5f9;
}

.compact-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 211, 238, 0.18));
}

.compact-poster span {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
    background: rgba(2, 6, 23, 0.82);
}

.compact-card strong {
    display: block;
    color: var(--slate-900);
    line-height: 1.35;
}

.compact-card em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.85rem;
    font-style: normal;
}

.block-button {
    width: 100%;
    margin-top: 22px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--slate-900), #064e3b, var(--slate-950));
}

.compact-hero {
    padding: 84px 0;
}

.page-hero .container,
.page-hero-content {
    position: relative;
    z-index: 2;
}

.category-hero {
    min-height: 380px;
    display: flex;
    align-items: center;
}

.page-hero-image {
    position: absolute;
    inset: 0;
    opacity: 0.26;
}

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

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

.category-overview-card {
    min-height: 150px;
    padding: 22px;
    border-radius: 22px;
    color: var(--slate-900);
    background: linear-gradient(135deg, #ecfdf5, #ffffff);
    border: 1px solid #d1fae5;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-overview-card strong,
.category-overview-card span,
.category-overview-card em {
    display: block;
}

.category-overview-card strong {
    font-size: 1.2rem;
    font-weight: 900;
}

.category-overview-card span {
    margin: 8px 0;
    color: var(--emerald-600);
    font-weight: 800;
}

.category-overview-card em {
    color: var(--muted);
    font-size: 0.9rem;
    font-style: normal;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px auto;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 12px;
    outline: none;
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.filter-count {
    min-height: 24px;
    margin: 0 0 20px;
    color: var(--muted);
    font-weight: 700;
}

.large-search {
    width: min(820px, 100%);
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-hero {
    min-height: 520px;
    display: flex;
    align-items: center;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.35;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) saturate(1.1);
}

.detail-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 68px 0;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(34, 211, 238, 0.2));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
    max-width: 880px;
}

.player-section {
    padding: 48px 0 16px;
    background: #020617;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.55));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    background: rgba(16, 185, 129, 0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.article-card,
.info-card {
    padding: 28px;
}

.article-card p {
    margin: 0 0 24px;
    color: #334155;
    font-size: 1.03rem;
}

.info-card {
    position: sticky;
    top: 94px;
}

.info-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-card li {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.info-card li:last-child {
    border-bottom: 0;
}

.info-card span {
    color: var(--muted);
}

.info-card strong {
    color: var(--slate-900);
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
    padding: 54px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 520px;
    margin: 12px 0 0;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1rem;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

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

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

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

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

    .top-search {
        display: none;
    }

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

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

    .sidebar-card,
    .info-card {
        position: static;
    }

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

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

@media (max-width: 760px) {
    .hero-carousel {
        min-height: 720px;
    }

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

    .hero-poster {
        width: 220px;
    }

    .hero-search,
    .large-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .hero-search button,
    .large-search button {
        min-height: 46px;
    }

    .hero-controls {
        bottom: 116px;
    }

    .section-title-row {
        align-items: start;
        flex-direction: column;
    }

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

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

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

    .detail-hero-grid {
        gap: 24px;
        padding: 46px 0;
    }

    .detail-poster {
        width: 220px;
    }
}

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

    .header-inner {
        width: min(100% - 16px, 1280px);
    }

    .brand-text {
        font-size: 1rem;
    }

    .movie-grid,
    .overlay-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: 82px 1fr;
    }

    .page-hero h1,
    .detail-copy h1,
    .hero-copy h1 {
        font-size: 2.35rem;
    }
}
