:root {
    color-scheme: dark;
    --bg: #030712;
    --panel: rgba(17, 24, 39, 0.72);
    --panel-strong: rgba(17, 24, 39, 0.94);
    --line: rgba(34, 211, 238, 0.28);
    --line-soft: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --pink: #f472b6;
    --purple: #a78bfa;
    --yellow: #facc15;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 18% 10%, rgba(34, 211, 238, 0.18), transparent 30rem),
        radial-gradient(circle at 80% 0%, rgba(244, 114, 182, 0.16), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #030712 48%, #0f172a 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 7, 18, 0.82);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.45);
}

.brand-text,
.footer-brand {
    font-size: 1.45rem;
    background: linear-gradient(90deg, var(--cyan), var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    color: #cbd5e1;
    font-weight: 700;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--cyan);
}

.header-search,
.mobile-search,
.large-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    color: var(--text);
    background: rgba(15, 23, 42, 0.76);
    padding: 0 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
    background: rgba(15, 23, 42, 0.98);
}

.header-search button,
.mobile-search button,
.large-search button,
.primary-btn,
.ghost-btn {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    color: #fff;
}

.header-search button,
.mobile-search button,
.large-search button,
.primary-btn {
    padding: 0 20px;
    background: linear-gradient(135deg, #06b6d4, #ec4899);
    box-shadow: 0 12px 36px rgba(34, 211, 238, 0.26);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.primary-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 48px rgba(236, 72, 153, 0.28);
}

.ghost-btn {
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    border: 1px solid rgba(34, 211, 238, 0.38);
    background: rgba(15, 23, 42, 0.58);
    color: var(--cyan);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--cyan);
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

.mobile-panel {
    border-top: 1px solid var(--line-soft);
    padding: 16px;
    background: rgba(3, 7, 18, 0.96);
}

.mobile-search {
    width: min(720px, 100%);
    margin: 0 auto 16px;
}

.mobile-search input {
    flex: 1;
}

.mobile-nav {
    width: min(720px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.hero-carousel {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #030712;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.96) 0%, rgba(3, 7, 18, 0.76) 42%, rgba(3, 7, 18, 0.16) 100%),
        linear-gradient(0deg, rgba(3, 7, 18, 0.88) 0%, transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1280px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.86), rgba(244, 114, 182, 0.86));
    box-shadow: 0 12px 32px rgba(34, 211, 238, 0.22);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    letter-spacing: -0.06em;
    line-height: 1.04;
}

.hero-content h1 {
    max-width: 760px;
    font-size: clamp(2.8rem, 7vw, 6rem);
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.54);
}

.hero-content p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: clamp(1.02rem, 2vw, 1.35rem);
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.62);
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
}

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

.hero-actions .primary-btn,
.hero-actions .ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 2.2rem;
    line-height: 1;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-control:hover {
    background: rgba(34, 211, 238, 0.38);
    transform: translateY(-2px);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.is-active {
    width: 36px;
    background: var(--cyan);
}

.home-search-strip,
.page-hero,
.content-section,
.detail-content {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.home-search-strip {
    position: relative;
    margin-top: -54px;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.84);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.home-search-strip h2,
.section-heading h2,
.article-card h2,
.ranking-panel h2,
.category-overview-card h2 {
    margin: 0;
    letter-spacing: -0.04em;
}

.home-search-strip h2 {
    font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.home-search-strip p {
    margin: 8px 0 0;
    color: var(--muted);
}

.large-search input {
    flex: 1;
}

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

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

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

.section-heading span {
    color: var(--cyan);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    min-width: 30px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.6), transparent);
}

.section-heading a {
    color: var(--cyan);
    font-weight: 800;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(15, 23, 42, 0.58));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(34, 211, 238, 0.58);
    box-shadow: 0 26px 70px rgba(34, 211, 238, 0.14);
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(244, 114, 182, 0.12));
}

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

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.88), transparent);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #111827;
    font-weight: 900;
    background: linear-gradient(135deg, var(--yellow), #fb7185);
    box-shadow: 0 14px 32px rgba(250, 204, 21, 0.22);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.8rem;
}

.movie-meta span:first-child {
    color: var(--yellow);
}

.movie-card h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.06rem;
    line-height: 1.3;
}

.movie-card h2 a:hover {
    color: var(--cyan);
}

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

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row a,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--cyan);
    font-size: 0.78rem;
    background: rgba(34, 211, 238, 0.12);
}

.tag-row a {
    color: #fff;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.46), rgba(236, 72, 153, 0.42));
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
}

.movie-card-horizontal .poster-frame {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card-horizontal .movie-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.ranking-panel,
.article-card,
.filter-panel,
.seo-block,
.video-shell,
.category-overview-card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.68);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.ranking-panel {
    position: sticky;
    top: 94px;
    padding: 20px;
}

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

.mini-movie {
    display: grid;
    grid-template-columns: auto 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.38);
    transition: background 0.25s ease, transform 0.25s ease;
}

.mini-movie:hover {
    background: rgba(34, 211, 238, 0.12);
    transform: translateX(4px);
}

.mini-rank {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #020617;
    font-size: 0.82rem;
    font-weight: 900;
    background: var(--cyan);
}

.mini-movie img {
    width: 58px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-movie strong,
.mini-movie em {
    display: block;
}

.mini-movie strong {
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-movie em {
    color: var(--muted);
    font-size: 0.82rem;
    font-style: normal;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #0f172a;
}

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

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

.tile-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.94), rgba(3, 7, 18, 0.18));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 18px;
    right: 18px;
}

.category-tile strong {
    bottom: 58px;
    color: #fff;
    font-size: 1.3rem;
}

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

.page-hero {
    padding: 82px 0 8px;
}

.small-hero h1,
.category-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.page-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.12rem;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-overview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.58);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
}

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

.category-overview-card span {
    color: var(--cyan);
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px 180px;
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px;
}

.filter-search-wrap input,
.filter-panel select {
    width: 100%;
}

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

.seo-block {
    width: min(1280px, calc(100% - 32px));
    margin: 72px auto 0;
    padding: 28px;
}

.seo-block h2 {
    margin-top: 0;
    font-size: 2rem;
}

.seo-block p {
    margin-bottom: 0;
    color: var(--muted);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    isolation: isolate;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.46;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.95), rgba(3, 7, 18, 0.68), rgba(3, 7, 18, 0.94)),
        linear-gradient(0deg, var(--bg), transparent 45%);
}

.detail-inner {
    width: min(1280px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 76px 0 46px;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.42);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--cyan);
}

.detail-info h1 {
    max-width: 860px;
    font-size: clamp(2.4rem, 6vw, 5rem);
}

.detail-one-line {
    max-width: 800px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: 1.18rem;
}

.detail-tags span {
    color: #fff;
    background: rgba(244, 114, 182, 0.14);
}

.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: -64px auto 0;
    position: relative;
    z-index: 3;
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.2), rgba(3, 7, 18, 0.72) 46%, rgba(3, 7, 18, 0.9)),
        rgba(3, 7, 18, 0.36);
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.play-circle {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #020617;
    font-size: 2.6rem;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.42);
}

.player-overlay strong {
    max-width: 82%;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    text-align: center;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.article-card {
    padding: 28px;
}

.article-card p {
    color: #cbd5e1;
    margin-bottom: 0;
}

.accent-card {
    border-color: rgba(244, 114, 182, 0.32);
}

.site-footer {
    margin-top: 86px;
    border-top: 1px solid var(--line-soft);
    background: rgba(2, 6, 23, 0.82);
}

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

.footer-grid p,
.footer-grid a {
    color: var(--muted);
}

.footer-grid a {
    display: block;
    margin-top: 10px;
}

.footer-grid a:hover {
    color: var(--cyan);
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 1.08rem;
}

.footer-bottom {
    border-top: 1px solid var(--line-soft);
    padding: 18px 16px;
    color: #64748b;
    text-align: center;
}

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

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

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

    .split-section,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }

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

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

    .menu-toggle {
        display: block;
    }

    .header-inner {
        height: 64px;
    }

    .home-search-strip {
        grid-template-columns: 1fr;
        margin-top: -30px;
    }

    .large-search {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-control {
        display: none;
    }

    .hero-content h1 {
        font-size: clamp(2.4rem, 12vw, 4.4rem);
    }

    .horizontal-list,
    .ranking-grid,
    .category-overview-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .detail-poster {
        width: min(260px, 68vw);
    }
}

@media (max-width: 640px) {
    .brand-text {
        font-size: 1.18rem;
    }

    .hero-carousel {
        min-height: 76vh;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 92px;
    }

    .home-search-strip,
    .seo-block,
    .article-card,
    .filter-panel {
        padding: 18px;
    }

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

    .movie-card-horizontal {
        grid-template-columns: 112px minmax(0, 1fr);
    }

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

    .category-overview-card {
        grid-template-columns: 1fr;
    }

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

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

    .play-circle {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}
