:root {
    color-scheme: dark;
    --bg-deep: #020617;
    --bg-main: #0f172a;
    --bg-soft: rgba(15, 23, 42, 0.72);
    --bg-card: rgba(30, 41, 59, 0.54);
    --line: rgba(34, 211, 238, 0.22);
    --line-soft: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --blue: #38bdf8;
    --orange: #fb923c;
    --green: #34d399;
    --purple: #c084fc;
    --shadow: 0 24px 80px rgba(8, 145, 178, 0.16);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(8, 145, 178, 0.22), transparent 30rem),
        radial-gradient(circle at 82% 12%, rgba(59, 130, 246, 0.16), transparent 32rem),
        linear-gradient(180deg, var(--bg-deep), var(--bg-main) 42%, var(--bg-deep));
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(2, 6, 23, 0.92);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(6, 182, 212, 0.10);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 14px;
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.40);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 0 44px rgba(34, 211, 238, 0.56);
}

.brand-text {
    display: grid;
    line-height: 1.05;
}

.brand-name {
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #67e8f9, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(34, 211, 238, 0.68);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link,
.mobile-link {
    border-radius: 12px;
    color: #cbd5e1;
    font-weight: 650;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link {
    padding: 10px 14px;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #a5f3fc;
    background: rgba(34, 211, 238, 0.14);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.12);
}

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

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 999px;
}

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

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

main {
    min-height: 68vh;
}

.hero-carousel {
    position: relative;
    height: min(72vh, 760px);
    min-height: 520px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

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

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.78) 34%, rgba(2, 6, 23, 0.28) 66%, rgba(2, 6, 23, 0.84) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, transparent 38%);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #67e8f9;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1 {
    margin: 18px 0 0;
    max-width: 820px;
    font-size: clamp(38px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.07em;
    background: linear-gradient(92deg, #f8fafc, #67e8f9 46%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content h2 {
    margin: 20px 0 0;
    max-width: 760px;
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p {
    max-width: 700px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: clamp(15px, 1.55vw, 19px);
    line-height: 1.75;
}

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

.hero-tags {
    margin-top: 18px;
}

.hero-tags span,
.tag-row span,
.chip-row a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #a5f3fc;
    background: rgba(14, 116, 144, 0.28);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

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

.primary-button {
    color: #001018;
    background: linear-gradient(135deg, #67e8f9, #38bdf8);
    box-shadow: 0 14px 38px rgba(34, 211, 238, 0.34);
}

.ghost-button,
.section-more {
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.54);
    color: white;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(14px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(6, 182, 212, 0.78);
    transform: translateY(-50%) scale(1.07);
}

.hero-prev {
    left: max(18px, calc((100% - 1180px) / 2));
    transform: translateY(-50%);
}

.hero-next {
    right: max(18px, calc((100% - 1180px) / 2));
    transform: translateY(-50%);
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

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

.quick-search-panel,
.content-section,
.page-container {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

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

.quick-copy h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.quick-copy p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input,
.filter-input input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.52);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box input:focus,
.filter-input input:focus {
    border-color: rgba(34, 211, 238, 0.75);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.search-box button {
    min-width: 88px;
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-weight: 850;
    cursor: pointer;
}

.chip-row {
    grid-column: 1 / -1;
}

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

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

.section-line {
    width: 5px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-heading-orange .section-line {
    background: linear-gradient(180deg, #fb923c, #ef4444);
}

.section-heading-green .section-line {
    background: linear-gradient(180deg, #34d399, #22c55e);
}

.section-heading-blue .section-line {
    background: linear-gradient(180deg, #60a5fa, #22d3ee);
}

.section-heading-purple .section-line {
    background: linear-gradient(180deg, #c084fc, #ec4899);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

.horizontal-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 16px;
    scroll-snap-type: x proximity;
}

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.42);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.16);
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
    scroll-snap-align: start;
}

.movie-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.68);
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 22px 60px rgba(8, 145, 178, 0.22);
}

.poster-shell {
    position: relative;
    display: block;
    height: 280px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.78);
}

.movie-card-compact .poster-shell {
    height: 210px;
}

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

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

.poster-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.82) 100%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

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

.play-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: #001018;
    background: rgba(103, 232, 249, 0.92);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.54);
}

.type-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 800;
}

.type-badge {
    right: 10px;
    background: rgba(6, 182, 212, 0.88);
}

.rank-badge {
    left: 10px;
    min-width: 34px;
    background: rgba(249, 115, 22, 0.92);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 14px;
}

.card-content strong {
    display: -webkit-box;
    overflow: hidden;
    color: #f8fafc;
    font-size: 16px;
    line-height: 1.32;
    letter-spacing: -0.02em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.25s ease;
}

.movie-card:hover .card-content strong {
    color: #67e8f9;
}

.card-meta,
.card-line {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

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

.movie-card-wide {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    min-height: 164px;
}

.movie-card-wide .poster-shell {
    height: 100%;
    min-height: 164px;
}

.movie-card-wide .card-content {
    padding: 20px;
    justify-content: center;
}

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

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

.category-card {
    display: grid;
    gap: 14px;
    overflow: hidden;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.45);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.50);
    box-shadow: var(--shadow);
}

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

.category-thumbs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
}

.category-info {
    display: grid;
    gap: 7px;
}

.category-info strong {
    color: #f8fafc;
    font-size: 18px;
}

.category-info span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.ranking-panel {
    position: relative;
}

.rank-list,
.wide-list {
    display: grid;
    gap: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: 52px 96px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.45);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-row:hover {
    transform: translateX(5px);
    border-color: rgba(34, 211, 238, 0.5);
}

.rank-number {
    color: #67e8f9;
    font-size: 24px;
    font-weight: 900;
}

.rank-row img {
    width: 96px;
    height: 62px;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.rank-copy strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-copy em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.section-more {
    margin-top: 20px;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: clamp(34px, 6vw, 70px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(8, 145, 178, 0.22), rgba(15, 23, 42, 0.78)),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.2), transparent 28rem);
    box-shadow: var(--shadow);
}

.compact-hero h1 {
    font-size: clamp(34px, 5vw, 62px);
}

.toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 22px;
}

.filter-input {
    display: grid;
    width: min(100%, 430px);
    gap: 8px;
    color: #a5f3fc;
    font-size: 13px;
    font-weight: 800;
}

.detail-layout {
    padding-top: 34px;
}

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

.breadcrumb a {
    color: #67e8f9;
}

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

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

.player-card,
.detail-card,
.poster-panel,
.side-panel {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.48);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.20);
}

.video-shell {
    position: relative;
    background: black;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.20), rgba(2, 6, 23, 0.56));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: clamp(72px, 9vw, 104px);
    height: clamp(72px, 9vw, 104px);
    padding-left: 5px;
    border-radius: 999px;
    color: #001018;
    background: linear-gradient(135deg, #67e8f9, #38bdf8);
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.50);
    font-size: clamp(32px, 5vw, 48px);
}

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

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

.detail-card h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.one-line {
    margin: 16px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.75;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-meta span {
    padding: 7px 10px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.56);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    font-size: 13px;
}

.detail-card h2,
.side-panel h2 {
    margin: 28px 0 12px;
    color: #67e8f9;
    font-size: 22px;
}

.detail-card p {
    color: #cbd5e1;
    line-height: 1.9;
}

.detail-sidebar {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 18px;
}

.poster-panel {
    padding: 16px;
}

.poster-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
}

.full-button {
    width: 100%;
    margin-top: 14px;
}

.side-panel {
    padding: 18px;
}

.side-panel h2 {
    margin-top: 0;
}

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

.side-card {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-card img {
    width: 94px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
}

.side-card span {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.side-card strong {
    overflow: hidden;
    color: #e2e8f0;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.side-card em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0;
    display: grid;
    gap: 18px;
}

.footer-logo {
    color: #67e8f9;
    font-size: 22px;
    font-weight: 900;
}

.footer-brand p,
.copyright {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 14px;
}

.footer-links a:hover {
    color: #67e8f9;
}

.is-filtered-out {
    display: none !important;
}

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

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

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

    .detail-sidebar {
        position: static;
        grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    }
}

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

    .menu-toggle {
        display: block;
    }

    .mobile-nav.is-open {
        display: grid;
    }

    .hero-carousel {
        min-height: 660px;
        height: auto;
    }

    .hero-content {
        min-height: 660px;
        padding-top: 94px;
        padding-bottom: 86px;
    }

    .hero-arrow {
        display: none;
    }

    .quick-search-panel {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .search-box {
        flex-direction: column;
    }

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

    .category-grid,
    .category-grid-wide {
        grid-template-columns: 1fr;
    }

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

    .movie-card-wide .poster-shell {
        min-height: 170px;
    }

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

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 24px, 1180px);
        height: 66px;
    }

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

    .brand-subtitle {
        display: none;
    }

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

    .hero-content h2 {
        font-size: 29px;
    }

    .hero-actions {
        width: 100%;
    }

    .primary-button,
    .ghost-button {
        flex: 1 1 100%;
    }

    .poster-shell {
        height: 235px;
    }

    .movie-grid {
        gap: 12px;
    }

    .card-content {
        padding: 12px;
    }

    .movie-card-wide {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 42px 72px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-row img {
        width: 72px;
        height: 54px;
    }

    .page-hero {
        border-radius: 22px;
        padding: 28px;
    }
}
