:root {
    --bg-dark: #020617;
    --bg-main: #0f172a;
    --bg-panel: #111827;
    --bg-soft: #1e293b;
    --border: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(34, 211, 238, 0.34);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-soft: #cbd5e1;
    --cyan: #22d3ee;
    --cyan-deep: #0891b2;
    --blue: #3b82f6;
    --amber: #facc15;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-card: 0 24px 70px rgba(2, 6, 23, 0.42);
    --shadow-cyan: 0 18px 48px rgba(34, 211, 238, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 30rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.42);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: var(--shadow-cyan);
}

.brand-text {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--text-soft);
    font-weight: 650;
    font-size: 0.95rem;
}

.desktop-nav a,
.mobile-panel a,
.site-footer a {
    transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.header-search input,
.mobile-search input,
.search-panel input {
    width: 210px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    outline: none;
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.86);
    border-radius: 999px;
    padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.search-selects select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.header-search button,
.mobile-search button,
.search-panel button,
.mobile-menu-button {
    border: none;
    color: #06131a;
    cursor: pointer;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 999px;
    padding: 10px 16px;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--text-main);
    background: rgba(30, 41, 59, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    color: var(--text-soft);
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
}

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.26) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, transparent 36%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(1280px, calc(100% - 32px));
    min-height: 70vh;
    margin: 0 auto;
    max-width: 760px;
    margin-left: max(16px, calc((100% - 1280px) / 2));
    padding: 76px 0 96px;
}

.hero-kicker,
.section-heading span,
.page-hero span,
.detail-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(34, 211, 238, 0.34);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(8, 145, 178, 0.12);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero h1 {
    margin: 22px 0 8px;
    font-size: clamp(2.35rem, 6vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero h2 {
    margin: 0 0 14px;
    font-size: clamp(1.35rem, 3vw, 2.35rem);
    color: var(--cyan);
}

.hero p {
    max-width: 670px;
    margin: 0 0 22px;
    color: var(--text-soft);
    font-size: 1.08rem;
    line-height: 1.85;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--text-soft);
    background: rgba(15, 23, 42, 0.72);
    font-size: 0.78rem;
}

.hero-tags span {
    color: #e0faff;
    border-color: rgba(34, 211, 238, 0.28);
    background: rgba(8, 145, 178, 0.2);
}

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

.button,
.quick-actions a,
.page-hero-actions a,
.section-link,
.inline-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 850;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button.primary,
.quick-actions a:first-child,
.page-hero-actions a:first-child,
.search-panel button {
    color: #06131a;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: var(--shadow-cyan);
}

.button.ghost,
.quick-actions a,
.page-hero-actions a,
.section-link,
.inline-actions a {
    color: var(--text-main);
    border: 1px solid rgba(34, 211, 238, 0.24);
    background: rgba(15, 23, 42, 0.7);
}

.text-button {
    color: var(--cyan);
    background: transparent;
}

.button:hover,
.quick-actions a:hover,
.page-hero-actions a:hover,
.section-link:hover,
.inline-actions a:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.58);
    cursor: pointer;
    font-size: 2rem;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 28px;
    height: 7px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.section,
.page-main {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.page-main {
    padding: 30px 0 70px;
}

.section {
    padding: 56px 0;
}

.section-intro {
    display: grid;
    grid-template-columns: 1.5fr auto;
    gap: 24px;
    align-items: end;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.section-heading {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
}

.section-heading h2,
.page-hero h1 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 3rem);
    line-height: 1.12;
}

.section-heading p,
.page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

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

.compact-heading {
    margin-bottom: 20px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.94));
    box-shadow: 0 20px 42px rgba(2, 6, 23, 0.28);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.44);
    box-shadow: var(--shadow-card);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(15, 23, 42, 0.8));
}

.poster-link img,
.ranking-poster img,
.detail-poster,
.rank-item img,
.category-thumb-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-link img {
    transition: transform 0.45s ease;
}

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

.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 42px;
    border-radius: 999px;
    padding: 5px 8px;
    color: #111827;
    background: var(--amber);
    font-size: 0.82rem;
    font-weight: 900;
    text-align: center;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.movie-meta span {
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(15, 23, 42, 0.74);
}

.movie-card h3,
.ranking-card h2 {
    margin: 0;
    color: var(--text-main);
    line-height: 1.35;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 2.7em;
    overflow: hidden;
    font-size: 1rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card h3 a:hover,
.ranking-card h2 a:hover,
.rank-item:hover strong {
    color: var(--cyan);
}

.movie-card p {
    display: -webkit-box;
    min-height: 4.8em;
    margin: 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.two-column {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.rank-list,
.ranking-list-page,
.article-section,
.search-tools,
.detail-content article,
.detail-info,
.filter-strip {
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 16px 38px rgba(2, 6, 23, 0.25);
}

.rank-list {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.rank-item {
    display: grid;
    grid-template-columns: auto 58px 1fr;
    gap: 14px;
    align-items: center;
    border-radius: 14px;
    padding: 10px;
    background: rgba(30, 41, 59, 0.54);
}

.rank-num {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: #06131a;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-weight: 950;
}

.rank-item img {
    aspect-ratio: 2 / 3;
    border-radius: 10px;
}

.rank-text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

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

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

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

.category-mini-grid a {
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 16px;
    padding: 18px;
    color: var(--text-soft);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.13), rgba(30, 41, 59, 0.68));
    font-weight: 850;
}

.category-mini-grid a:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

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

.category-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.94));
    box-shadow: 0 20px 46px rgba(2, 6, 23, 0.26);
}

.category-panel:hover {
    border-color: rgba(34, 211, 238, 0.45);
    transform: translateY(-3px);
}

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

.category-thumb-grid img {
    aspect-ratio: 2 / 3;
    border-radius: 10px;
}

.category-panel-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 24px 20px 0;
}

.category-panel-body span {
    color: var(--cyan);
    font-weight: 850;
}

.category-panel-body h2 {
    margin: 8px 0 10px;
    font-size: 1.55rem;
}

.category-panel-body p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 30px;
    margin-bottom: 24px;
    padding: clamp(34px, 6vw, 72px);
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 26rem),
        linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.96));
    box-shadow: var(--shadow-card);
}

.compact-page-hero h1 {
    margin: 18px 0 14px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 8px 0 22px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

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

.filter-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    padding: 14px 16px;
}

.filter-strip strong {
    color: var(--cyan);
}

.filter-strip a {
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--text-soft);
    background: rgba(30, 41, 59, 0.7);
}

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

.ranking-list-page {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 18px;
    align-items: center;
    border-radius: 18px;
    padding: 14px;
    background: rgba(30, 41, 59, 0.52);
}

.ranking-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
}

.ranking-poster span {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    color: #06131a;
    background: var(--amber);
    font-weight: 950;
}

.ranking-card p {
    margin: 8px 0 12px;
    color: var(--text-muted);
    line-height: 1.65;
}

.wide-meta {
    gap: 10px;
}

.search-tools {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.search-panel input {
    width: min(560px, 100%);
}

.search-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-filter-row button {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    padding: 8px 13px;
    color: var(--text-soft);
    background: rgba(30, 41, 59, 0.64);
    cursor: pointer;
}

.search-filter-row button.active,
.search-filter-row button:hover {
    color: #06131a;
    border-color: transparent;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.search-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.search-selects label {
    display: grid;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.search-selects select {
    min-width: 150px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 10px 12px;
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.9);
}

.empty-state {
    grid-column: 1 / -1;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    padding: 38px;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.68);
    text-align: center;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow-card);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: none;
    color: var(--text-main);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.56));
    cursor: pointer;
}

.player-overlay span {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border-radius: 999px;
    color: #06131a;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-size: 2rem;
    box-shadow: var(--shadow-cyan);
}

.video-shell.is-playing .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.detail-info {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 18px;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.8);
}

.detail-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.7rem);
    line-height: 1.16;
}

.detail-copy p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.75;
}

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

.detail-content article {
    padding: 24px;
}

.detail-content h2,
.article-section h2 {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: 1.35rem;
}

.detail-content p,
.article-section p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.9;
}

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

.info-list div {
    border-radius: 14px;
    padding: 12px;
    background: rgba(30, 41, 59, 0.54);
}

.info-list dt {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.info-list dd {
    margin: 6px 0 0;
    color: var(--text-main);
    font-weight: 750;
}

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

.article-section {
    display: grid;
    gap: 18px;
    padding: 28px;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.98));
}

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

.footer-brand {
    margin-bottom: 12px;
    color: var(--cyan);
    font-size: 1.35rem;
    font-weight: 900;
}

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

.site-footer p {
    max-width: 430px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.site-footer section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 18px;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 13px;
        font-size: 0.9rem;
    }

    .header-search input {
        width: 160px;
    }

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

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

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

    .mobile-menu-button {
        display: grid;
        place-items: center;
    }

    .mobile-search input {
        width: 100%;
    }

    .section-intro,
    .two-column,
    .detail-hero,
    .footer-grid,
    .category-panel {
        grid-template-columns: 1fr;
    }

    .category-panel-body {
        padding: 0 20px 22px;
    }

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

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

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

@media (max-width: 640px) {
    .header-inner {
        width: min(100% - 24px, 1280px);
    }

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

    .hero {
        min-height: 78vh;
    }

    .hero-content {
        width: min(100% - 28px, 1280px);
        min-height: 78vh;
        margin-left: 14px;
        padding: 70px 0 88px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-dots {
        bottom: 20px;
    }

    .section,
    .page-main {
        width: min(100% - 24px, 1280px);
    }

    .section {
        padding: 38px 0;
    }

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

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

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

    .movie-card p {
        min-height: auto;
        -webkit-line-clamp: 2;
    }

    .category-mini-grid,
    .info-list {
        grid-template-columns: 1fr;
    }

    .ranking-card {
        grid-template-columns: 76px 1fr;
        gap: 12px;
    }

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

    .detail-poster {
        width: min(220px, 70%);
    }

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

    .search-panel input {
        width: 100%;
    }
}
