:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.82);
    --bg-card-strong: rgba(15, 23, 42, 0.95);
    --line: rgba(148, 163, 184, 0.2);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-deep: #d97706;
    --danger: #ef4444;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: min(1220px, calc(100% - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 32rem),
        radial-gradient(circle at 82% 12%, rgba(59, 130, 246, 0.12), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.84);
    backdrop-filter: blur(20px);
}

.header-inner {
    width: var(--container);
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-deep));
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.3);
}

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

.nav-link,
.nav-dropdown > button {
    border: 0;
    color: var(--muted-strong);
    background: transparent;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown > button:hover {
    color: var(--accent-light);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: 460px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-panel a {
    padding: 10px 12px;
    color: var(--muted-strong);
    border-radius: 12px;
}

.dropdown-panel a:hover {
    color: #111827;
    background: var(--accent-light);
}

.header-search {
    position: relative;
    width: 250px;
}

.header-search input,
.mobile-panel input,
.large-search input,
.filter-bar input {
    width: 100%;
    border: 1px solid var(--line);
    outline: none;
    color: var(--text);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    height: 42px;
    padding: 0 46px 0 18px;
}

.header-search input:focus,
.mobile-panel input:focus,
.large-search input:focus,
.filter-bar input:focus {
    border-color: rgba(251, 191, 36, 0.75);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    color: var(--accent-light);
    border-radius: 50%;
    background: transparent;
    transform: translateY(-50%);
}

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

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--text);
}

.mobile-panel {
    display: none;
    width: var(--container);
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-panel form {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-panel input {
    height: 42px;
    padding: 0 16px;
}

.mobile-panel button,
.large-search button {
    border: 0;
    color: #111827;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-deep));
}

.mobile-panel button {
    padding: 0 18px;
}

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

.mobile-link {
    padding: 10px 12px;
    color: var(--muted-strong);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.7);
}

.mobile-link.is-active {
    color: #111827;
    background: var(--accent-light);
}

main {
    overflow: hidden;
}

.hero {
    width: var(--container);
    min-height: calc(100vh - 72px);
    margin: 0 auto;
    padding: 34px 0 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: stretch;
}

.hero-stage {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--bg-soft);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.8s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-slide img,
.page-hero > img,
.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.76) 43%, rgba(2, 6, 23, 0.2) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 740px;
    padding: 82px 68px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 14px;
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    backdrop-filter: blur(10px);
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 20px 0 18px;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-info p {
    max-width: 760px;
    margin: 0 0 26px;
    color: var(--muted-strong);
    font-size: 20px;
}

.hero-tags,
.detail-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
    padding: 7px 12px;
    color: var(--muted-strong);
    font-size: 13px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

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

.btn-primary,
.btn-ghost,
.btn-small,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    min-height: 48px;
    padding: 0 26px;
    color: #111827;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-deep));
    box-shadow: 0 16px 38px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover,
.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(245, 158, 11, 0.35);
}

.btn-ghost {
    min-height: 48px;
    padding: 0 24px;
    color: var(--text);
    border: 1px solid rgba(248, 250, 252, 0.18);
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(14px);
}

.btn-ghost:hover {
    color: var(--accent-light);
    border-color: rgba(251, 191, 36, 0.42);
}

.hero-controls {
    position: absolute;
    left: 68px;
    right: 68px;
    bottom: 42px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(248, 250, 252, 0.18);
    color: var(--text);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(12px);
}

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

.hero-dot {
    width: 34px;
    height: 4px;
    border: 0;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.hero-dot.is-active {
    background: var(--accent-light);
}

.hero-side {
    display: grid;
    gap: 24px;
}

.glass-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-card {
    padding: 26px;
}

.search-card h2,
.rank-mini h2 {
    margin: 14px 0 16px;
    font-size: 24px;
}

.search-card form,
.large-search {
    display: flex;
    gap: 10px;
}

.search-card input,
.large-search input {
    height: 48px;
    padding: 0 18px;
}

.search-card button,
.large-search button {
    min-width: 92px;
}

.rank-mini {
    padding: 22px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 38px 54px minmax(0, 1fr);
    grid-template-areas:
        "num img title"
        "num img meta";
    gap: 0 12px;
    align-items: center;
    min-height: 70px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: rgba(245, 158, 11, 0.13);
    transform: translateY(-2px);
}

.rank-number {
    grid-area: num;
    color: var(--accent-light);
    font-size: 18px;
    font-weight: 900;
}

.rank-item img {
    grid-area: img;
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 13px;
}

.rank-title {
    grid-area: title;
    overflow: hidden;
    color: #ffffff;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-meta {
    grid-area: meta;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.text-link {
    margin-top: 18px;
    color: var(--accent-light);
}

.section-block {
    width: var(--container);
    margin: 0 auto;
    padding: 58px 0;
}

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

.section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

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

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28);
}

.category-card img,
.category-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.category-overlay,
.category-cover span {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.2)),
        linear-gradient(135deg, rgba(245, 158, 11, 0.28), transparent 55%);
}

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

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

.category-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted-strong);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.26);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 24px 62px rgba(2, 6, 23, 0.42);
}

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

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

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

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

.year-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
}

.year-badge {
    top: 10px;
    left: 10px;
    color: #111827;
    background: var(--accent-light);
}

.play-chip {
    right: 10px;
    bottom: 10px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(10px);
}

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

.movie-card-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-title:hover {
    color: var(--accent-light);
}

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

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

.tag-row span {
    padding: 4px 8px;
    font-size: 12px;
}

.page-hero {
    position: relative;
    width: var(--container);
    min-height: 430px;
    margin: 34px auto 0;
    overflow: hidden;
    display: flex;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--bg-soft);
    box-shadow: var(--shadow);
}

.slim-hero {
    min-height: 350px;
    padding: 56px;
    align-items: center;
    background:
        radial-gradient(circle at 18% 30%, rgba(245, 158, 11, 0.22), transparent 30rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
}

.page-hero > div {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 56px;
}

.slim-hero > div {
    padding: 0;
}

.page-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.12)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.84), transparent 70%);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

.category-cover {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
}

.category-overview-card h2 {
    margin: 2px 0 10px;
    font-size: 26px;
}

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

.category-preview-links {
    display: grid;
    gap: 8px;
    margin: 14px 0 18px;
}

.category-preview-links a {
    overflow: hidden;
    color: var(--muted-strong);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.category-preview-links a:hover {
    color: var(--accent-light);
}

.btn-small {
    min-height: 38px;
    padding: 0 18px;
    color: #111827;
    background: var(--accent-light);
}

.filter-bar {
    margin: -8px 0 22px;
}

.filter-bar input {
    max-width: 420px;
    height: 46px;
    padding: 0 18px;
}

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

.search-hero .large-search {
    max-width: 720px;
    margin-top: 26px;
}

.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.search-chips button {
    border: 1px solid var(--line);
    color: var(--muted-strong);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
}

.search-chips button:hover {
    color: #111827;
    border-color: var(--accent-light);
    background: var(--accent-light);
}

.detail-hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.99), rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.38)),
        linear-gradient(0deg, #020617 0%, transparent 55%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: var(--container);
    min-height: 640px;
    margin: 0 auto;
    padding: 60px 0 70px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(248, 250, 252, 0.18);
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    box-shadow: var(--shadow);
}

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

.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--accent-light);
}

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

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

.player-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--bg-card-strong);
    box-shadow: var(--shadow);
}

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

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #111827;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.28));
}

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

.play-overlay span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-deep));
    box-shadow: 0 22px 58px rgba(245, 158, 11, 0.34);
    font-size: 34px;
}

.player-copy {
    padding: 24px 28px 28px;
}

.player-copy h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

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

.article-block {
    padding-top: 0;
}

.detail-article {
    max-width: 900px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

.detail-article h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.detail-article h2 + p {
    margin-top: 0;
}

.detail-article p {
    color: var(--muted-strong);
    font-size: 17px;
}

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

.footer-inner {
    width: var(--container);
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 32px;
}

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

.footer-inner p {
    max-width: 520px;
    color: var(--muted-strong);
}

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

.footer-links a {
    color: var(--muted-strong);
}

.footer-links a:hover {
    color: var(--accent-light);
}

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

.footer-bottom {
    width: var(--container);
    margin: 0 auto;
    padding: 18px 0 26px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

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

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

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

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
        padding-top: 20px;
    }

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

    .hero-content {
        padding: 58px 30px;
    }

    .hero-controls {
        left: 30px;
        right: 30px;
        bottom: 26px;
    }

    .hero-side,
    .footer-inner,
    .category-overview-grid,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

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

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

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

    .page-hero > div,
    .slim-hero {
        padding: 34px;
    }
}

@media (max-width: 640px) {
    :root {
        --container: min(100% - 22px, 1220px);
    }

    .header-inner {
        height: 64px;
    }

    .brand {
        font-size: 19px;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .hero-stage {
        min-height: 520px;
        border-radius: 22px;
    }

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 40px;
    }

    .hero p,
    .page-hero p,
    .detail-info p {
        font-size: 17px;
    }

    .hero-side,
    .search-card form,
    .large-search,
    .section-heading {
        display: block;
    }

    .search-card form button,
    .large-search button {
        width: 100%;
        height: 46px;
        margin-top: 10px;
    }

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

    .category-card {
        min-height: 180px;
    }

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

    .category-cover {
        min-height: 210px;
    }

    .page-hero,
    .slim-hero {
        min-height: 300px;
        margin-top: 22px;
    }

    .detail-hero-inner {
        padding-top: 34px;
    }

    .player-copy,
    .detail-article {
        padding: 22px;
    }

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

@media (max-width: 430px) {
    .movie-grid,
    .compact-grid,
    .rank-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
}
