:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: #111827;
    --panel-2: #1e293b;
    --line: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --yellow: #facc15;
    --red: #fb7185;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.13), transparent 36rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 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: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 211, 238, 0.13);
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: var(--cyan);
    font-size: 15px;
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.22);
}

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

.desktop-nav a,
.mobile-panel a {
    color: #cbd5e1;
    font-weight: 650;
    transition: color 0.22s ease, transform 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover {
    color: var(--cyan);
}

.header-search {
    width: min(270px, 26vw);
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 4px 5px 4px 16px;
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.large-search input::placeholder,
.filter-panel input::placeholder {
    color: #64748b;
}

.header-search button,
.mobile-search button,
.large-search button {
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    min-width: 38px;
    height: 38px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: white;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    padding-top: 14px;
}

.mobile-search {
    display: flex;
    gap: 10px;
    padding-top: 14px;
}

.mobile-search input {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

main {
    min-height: 65vh;
}

.home-hero {
    position: relative;
    min-height: 76vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
}

.hero-stage {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    border-radius: 30px;
    background: #0f172a;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.62s ease, transform 1.2s ease;
    pointer-events: none;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.06)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 46%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 74px);
    bottom: clamp(70px, 11vh, 120px);
    max-width: 650px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    padding: 7px 13px;
    margin-bottom: 18px;
    color: white;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.58);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    margin: 0 0 16px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p,
.simple-hero p,
.hero-panel p {
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
}

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

.hero-tags {
    margin: 24px 0 30px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.primary-btn {
    color: white;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 34px rgba(34, 211, 238, 0.22);
}

.ghost-btn,
.section-more {
    color: #e2e8f0;
    border: 1px solid rgba(226, 232, 240, 0.22);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 42px rgba(34, 211, 238, 0.18);
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: white;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
    font-size: 34px;
    line-height: 1;
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.active {
    width: 32px;
    background: var(--cyan);
}

.hero-panel {
    position: relative;
    align-self: stretch;
    padding: 28px;
    border-radius: 30px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.82)),
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.18), transparent 18rem);
    box-shadow: var(--shadow);
}

.hero-panel h2 {
    margin: 6px 0 10px;
    font-size: 32px;
    line-height: 1.1;
}

.hero-mini-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.mini-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.66);
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.mini-card:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(30, 41, 59, 0.88);
}

.mini-card img {
    width: 104px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    background: #1e293b;
}

.mini-card strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

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

.quick-cats,
.content-section,
.rank-section,
.catalog-section,
.category-overview,
.search-page,
.detail-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-cats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.quick-cats a {
    padding: 22px;
    min-height: 130px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.72)),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 12rem);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.20);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.quick-cats a:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.5);
}

.quick-cats strong {
    display: block;
    font-size: 22px;
    margin-bottom: 6px;
}

.quick-cats span {
    color: var(--muted);
}

.content-section,
.rank-section,
.catalog-section,
.search-page {
    padding: 58px 0 0;
}

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

.section-head h2,
.simple-hero h1,
.movie-detail-card h1 {
    margin: 4px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.46);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1e293b;
}

.movie-card .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08));
    transition: opacity 0.26s ease;
}

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

.play-mark,
.big-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: rgba(34, 211, 238, 0.90);
    box-shadow: 0 20px 44px rgba(34, 211, 238, 0.28);
}

.play-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
    transition: opacity 0.26s ease, transform 0.26s ease;
}

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

.type-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.type-badge {
    left: 12px;
    background: rgba(34, 211, 238, 0.82);
}

.rank-badge {
    right: 12px;
    background: rgba(0, 0, 0, 0.64);
}

.movie-card-body {
    display: grid;
    gap: 8px;
    padding: 15px;
}

.movie-card strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    font-size: 18px;
    line-height: 1.25;
    transition: color 0.2s ease;
}

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

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: var(--muted);
    font-size: 13px;
}

.meta-row span:first-child,
.detail-meta span:first-child {
    color: var(--yellow);
}

.card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #94a3b8;
    font-size: 14px;
}

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

.movie-card-small {
    display: grid;
    grid-template-columns: 154px minmax(0, 1fr);
    min-height: 142px;
}

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

.movie-card-small .movie-card-body {
    align-content: center;
}

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

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

.simple-hero {
    min-height: 270px;
    display: flex;
    align-items: center;
    padding: 44px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.70)),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 24rem);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: var(--shadow);
}

.simple-hero div {
    max-width: 760px;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 22px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.08));
}

.category-card-content {
    position: absolute;
    inset: auto 18px 18px;
}

.category-card-content strong {
    display: block;
    font-size: 22px;
    margin-bottom: 6px;
}

.category-card-content em {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #cbd5e1;
    font-style: normal;
    font-size: 14px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.filter-panel select option {
    color: #0f172a;
}

.empty-state {
    display: none;
    padding: 50px 0;
    color: var(--muted);
    text-align: center;
    font-size: 18px;
}

.empty-state.show {
    display: block;
}

.large-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 12px;
    margin-bottom: 18px;
}

.large-search input {
    height: 58px;
    padding: 0 22px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.20);
}

.large-search button {
    height: 58px;
    min-width: 0;
}

.search-hot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.search-hot a {
    padding: 8px 14px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.detail-wrap {
    padding: 28px 0 60px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 14px;
}

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

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

.detail-main {
    display: grid;
    gap: 22px;
}

.player-panel,
.movie-detail-card,
.side-card {
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.30);
}

.player-panel {
    overflow: hidden;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: white;
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.2), transparent 17rem),
        linear-gradient(0deg, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-panel.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.big-play {
    width: 82px;
    height: 82px;
    font-size: 28px;
}

.movie-detail-card {
    padding: clamp(22px, 4vw, 34px);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 22px;
    color: var(--muted);
}

.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.one-line {
    padding: 18px 20px;
    margin: 0 0 24px;
    color: #bae6fd;
    border-radius: 18px;
    background: rgba(34, 211, 238, 0.10);
    border: 1px solid rgba(34, 211, 238, 0.22);
    font-size: 18px;
}

.movie-detail-card h2,
.side-card h2 {
    margin: 24px 0 10px;
    font-size: 24px;
}

.movie-detail-card p {
    color: #dbeafe;
}

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

.detail-tags a:hover {
    color: white;
    border-color: rgba(34, 211, 238, 0.42);
    background: rgba(34, 211, 238, 0.18);
}

.detail-side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 20px;
}

.side-card {
    padding: 18px;
}

.poster-card {
    display: grid;
    gap: 14px;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    background: #1e293b;
}

.poster-card strong {
    display: block;
    font-size: 20px;
}

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

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

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.96));
}

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

.site-footer p {
    color: var(--muted);
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #cbd5e1;
}

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

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 28px;
    text-align: center;
    color: #64748b;
}

@media (max-width: 1100px) {
    .home-hero,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .hero-panel,
    .detail-side {
        position: static;
    }

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

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

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

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-inner {
        height: 64px;
    }

    .home-hero {
        min-height: auto;
        margin-top: 18px;
    }

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

    .hero-content {
        left: 22px;
        right: 22px;
        bottom: 76px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-nav {
        display: none;
    }

    .quick-cats,
    .movie-grid,
    .category-overview,
    .rank-list,
    .full-rank,
    .footer-inner,
    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

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

    .simple-hero {
        padding: 28px;
    }
}

@media (max-width: 560px) {
    .brand {
        font-size: 20px;
    }

    .brand-icon {
        width: 30px;
        height: 30px;
    }

    .home-hero,
    .quick-cats,
    .content-section,
    .rank-section,
    .catalog-section,
    .category-overview,
    .search-page,
    .detail-wrap,
    .page-hero,
    .footer-inner,
    .copyright {
        width: min(100% - 22px, 1180px);
    }

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

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-tags {
        margin: 18px 0 22px;
    }

    .hero-panel,
    .simple-hero,
    .movie-detail-card,
    .side-card {
        border-radius: 20px;
    }

    .hero-mini-list,
    .quick-cats,
    .movie-grid,
    .category-overview,
    .rank-list,
    .full-rank,
    .footer-inner,
    .filter-panel,
    .large-search {
        grid-template-columns: 1fr;
    }

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

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

    .mini-card img {
        width: 92px;
    }

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