:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(34, 211, 238, 0.18);
    --line-soft: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --blue: #60a5fa;
    --orange: #fb923c;
    --yellow: #facc15;
    --violet: #a78bfa;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(8, 47, 73, 0.35);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 4%, rgba(34, 211, 238, 0.12), transparent 34rem),
        radial-gradient(circle at 88% 12%, rgba(96, 165, 250, 0.10), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
    color: var(--text);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    z-index: 80;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.94);
    box-shadow: 0 18px 55px rgba(34, 211, 238, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.brand-icon,
.footer-brand span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 34px rgba(34, 211, 238, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link {
    position: relative;
    color: var(--muted-strong);
    font-weight: 700;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    border-radius: 999px;
    background: var(--cyan);
    transition: transform 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(34, 211, 238, 0.10);
    color: var(--text);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px 18px 18px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.98);
}

.mobile-nav .nav-link {
    padding: 10px 2px;
}

main {
    min-height: 60vh;
}

.hero {
    position: relative;
    height: min(86vh, 820px);
    min-height: 620px;
    overflow: hidden;
    background: #020617;
}

.hero-slider,
.hero-slide,
.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
}

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

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

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

.hero-shade {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.46) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.35) 48%, rgba(2, 6, 23, 0.28) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding-bottom: 88px;
    padding-top: 120px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--cyan);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 920px;
    margin: 0 0 12px;
    color: var(--text);
    font-size: clamp(40px, 7vw, 82px);
    line-height: 1.04;
    letter-spacing: -0.055em;
    text-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.hero-title-link {
    margin: 0 0 10px;
    color: var(--cyan);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 850;
}

.hero-copy > p:not(.eyebrow):not(.hero-title-link) {
    max-width: 680px;
    margin: 0 0 24px;
    color: var(--muted-strong);
    font-size: 17px;
}

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

.hero-meta span,
.detail-meta span,
.genre-row span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 13px;
    padding: 11px 20px;
    font-weight: 850;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary:hover {
    box-shadow: 0 22px 55px rgba(34, 211, 238, 0.34);
}

.btn-ghost {
    color: var(--text);
    border-color: rgba(34, 211, 238, 0.28);
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(14px);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    right: max(28px, calc((100vw - 1180px) / 2));
    bottom: 56px;
    display: flex;
    gap: 12px;
}

.hero-controls button,
.hero-dot {
    border: 0;
    color: white;
    cursor: pointer;
}

.hero-controls button {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 34px;
    backdrop-filter: blur(14px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-controls button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
}

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

.hero-dot {
    width: 10px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.quick-search-panel {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 20px;
    margin-top: -40px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-box input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    outline: none;
    padding: 13px 15px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.65);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.search-box button {
    border: 0;
    border-radius: 14px;
    padding: 0 22px;
    color: white;
    font-weight: 850;
    cursor: pointer;
    background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.quick-links a {
    border: 1px solid rgba(34, 211, 238, 0.20);
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--muted-strong);
    background: rgba(2, 6, 23, 0.35);
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.quick-links a:hover {
    color: var(--cyan);
    border-color: rgba(34, 211, 238, 0.48);
    transform: translateY(-2px);
}

.content-section {
    padding-top: 70px;
}

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

.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -0.035em;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.32), transparent);
}

.section-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.12);
}

.section-icon.orange {
    background: rgba(251, 146, 60, 0.12);
}

.section-icon.blue {
    background: rgba(96, 165, 250, 0.12);
}

.section-icon.yellow {
    background: rgba(250, 204, 21, 0.12);
}

.section-icon.violet {
    background: rgba(167, 139, 250, 0.12);
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.24);
    transition: transform 0.30s ease, border-color 0.30s ease, box-shadow 0.30s ease;
}

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

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f172a;
}

.movie-card-wide .card-cover {
    aspect-ratio: 16 / 9;
}

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

.movie-card:hover .card-cover img {
    transform: scale(1.10);
}

.card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.80), transparent 62%);
    opacity: 0.82;
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-gradient {
    opacity: 0.95;
}

.play-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: auto;
    border-radius: 999px;
    color: white;
    background: rgba(6, 182, 212, 0.86);
    box-shadow: 0 18px 45px rgba(34, 211, 238, 0.35);
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-hover {
    opacity: 1;
    transform: scale(1);
}

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

.type-badge {
    top: 12px;
    left: 12px;
    background: rgba(6, 182, 212, 0.88);
}

.duration-badge {
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
    right: 12px;
    top: 12px;
    min-width: 32px;
    text-align: center;
    color: #111827;
    background: linear-gradient(135deg, #facc15, #fb923c);
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.38;
}

.card-body h3 a {
    transition: color 0.25s ease;
}

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

.card-body p {
    min-height: 46px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.card-meta {
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
}

.rating {
    color: var(--yellow);
    font-weight: 850;
}

.card-tags {
    margin-top: 11px;
}

.card-tags span {
    border-radius: 999px;
    padding: 4px 8px;
    color: #bae6fd;
    font-size: 12px;
    background: rgba(34, 211, 238, 0.10);
}

.category-panel,
.random-panel {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 28px;
    padding: 34px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.25));
}

.category-preview-list {
    display: grid;
    gap: 34px;
}

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

.category-heading h3 {
    margin: 0 0 6px;
    color: var(--cyan);
    font-size: 24px;
}

.category-heading p {
    margin: 0;
    color: var(--muted);
}

.category-heading a,
.section-more a {
    white-space: nowrap;
}

.ranking-panel {
    padding-top: 80px;
}

.section-more {
    justify-content: center;
    margin-top: 30px;
}

.page-main {
    padding-top: 96px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 52px;
    background:
        linear-gradient(135deg, rgba(8, 47, 73, 0.65), rgba(15, 23, 42, 0.78)),
        radial-gradient(circle at 92% 16%, rgba(34, 211, 238, 0.20), transparent 28rem);
    box-shadow: var(--shadow);
}

.slim-hero h1 {
    max-width: 860px;
    margin: 0 0 14px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.slim-hero p:not(.eyebrow) {
    max-width: 780px;
    margin: 0;
    color: var(--muted-strong);
    font-size: 17px;
}

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

.category-card a {
    position: relative;
    display: block;
    min-height: 270px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.65);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card a:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.48);
}

.category-card img,
.category-card span {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-card img {
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.5s ease;
}

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

.category-card span {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.18));
}

.category-card div {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
}

.category-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 14px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(150px, 0.45fr));
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(16px);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.filter-empty {
    grid-column: 1 / -1;
    padding: 36px;
    border: 1px dashed rgba(34, 211, 238, 0.30);
    border-radius: 20px;
    color: var(--muted-strong);
    text-align: center;
    background: rgba(15, 23, 42, 0.54);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: var(--muted);
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
}

.detail-main {
    min-width: 0;
}

.player-card,
.detail-article,
.poster-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.70);
    box-shadow: 0 22px 65px rgba(2, 6, 23, 0.24);
}

.player-card {
    overflow: hidden;
}

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

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

.video-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 0;
    color: white;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(6, 182, 212, 0.18), rgba(2, 6, 23, 0.64) 42%, rgba(0, 0, 0, 0.72) 100%);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-start span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    padding-left: 5px;
    color: white;
    font-size: 36px;
    background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
    box-shadow: 0 22px 60px rgba(34, 211, 238, 0.35);
}

.video-start.is-hidden {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.detail-article {
    margin-top: 24px;
    padding: 32px;
}

.detail-article h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.detail-one-line {
    margin: 0 0 18px;
    color: var(--muted-strong);
    font-size: 18px;
}

.genre-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 24px;
}

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

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

.tag-row a {
    border: 1px solid rgba(34, 211, 238, 0.20);
    border-radius: 999px;
    padding: 7px 12px;
    color: #bae6fd;
    background: rgba(34, 211, 238, 0.10);
}

.poster-card {
    position: sticky;
    top: 98px;
    overflow: hidden;
    padding-bottom: 20px;
}

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

.poster-card h2 {
    margin: 18px 18px 6px;
    font-size: 24px;
}

.poster-card p {
    margin: 0 18px 18px;
    color: var(--muted);
}

.poster-card .btn {
    margin: 0 18px;
    width: calc(100% - 36px);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding: 42px 0 28px;
}

.footer-brand {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 900;
}

.footer-grid p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
}

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

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

.footer-links a {
    color: var(--muted);
    transition: color 0.25s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding: 18px 0;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

    .poster-card {
        position: static;
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 18px;
        align-items: center;
        padding: 18px;
    }

    .poster-card img {
        border-radius: 18px;
    }

    .poster-card h2,
    .poster-card p,
    .poster-card .btn {
        margin-left: 0;
        margin-right: 0;
    }

    .poster-card .btn {
        width: auto;
    }
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero {
        min-height: 660px;
        height: 92vh;
    }

    .hero-content {
        padding-bottom: 104px;
    }

    .hero-controls {
        right: 18px;
        bottom: 28px;
    }

    .hero-dots {
        left: 24px;
        bottom: 48px;
        transform: none;
    }

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

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

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

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

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

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        height: 66px;
    }

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

    .brand-name {
        font-size: 19px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 40px;
    }

    .hero-copy > p:not(.eyebrow):not(.hero-title-link) {
        font-size: 15px;
    }

    .hero-controls button {
        width: 44px;
        height: 44px;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .category-panel,
    .random-panel,
    .page-hero,
    .detail-article {
        padding: 24px;
        border-radius: 22px;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 15px;
    }

    .card-body p,
    .card-tags {
        display: none;
    }

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

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

    .poster-card {
        display: block;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
