:root {
    color-scheme: dark;
    --bg: #020617;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #142036;
    --slate-800: #1e293b;
    --slate-750: #26354d;
    --slate-700: #334155;
    --slate-600: #475569;
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --cyan: #06b6d4;
    --cyan-strong: #0891b2;
    --blue: #3b82f6;
    --orange: #f97316;
    --red: #ef4444;
    --radius: 18px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--slate-900), var(--slate-800) 48%, var(--slate-900));
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.86);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 10px 28px rgba(6, 182, 212, 0.25);
    color: white;
    font-size: 14px;
}

.brand-text {
    white-space: nowrap;
    font-size: 18px;
}

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

.nav-link {
    color: var(--soft);
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #67e8f9;
}

.nav-search,
.mobile-search {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search input,
.mobile-search input,
.hero-search input,
.page-filter input {
    border: 1px solid rgba(148, 163, 184, 0.18);
    outline: 0;
    color: white;
    background: rgba(51, 65, 85, 0.82);
    border-radius: 999px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
    width: 190px;
    padding: 10px 44px 10px 16px;
}

.nav-search button {
    position: absolute;
    right: 8px;
    border: 0;
    color: var(--muted);
    cursor: pointer;
}

.nav-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.page-filter input:focus {
    border-color: rgba(6, 182, 212, 0.85);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
    background: rgba(30, 41, 59, 0.96);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: white;
    background: rgba(30, 41, 59, 0.8);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 20px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.mobile-nav.open {
    display: grid;
    gap: 12px;
}

.mobile-search {
    gap: 10px;
}

.mobile-search input {
    width: 100%;
    padding: 10px 14px;
}

.mobile-search button,
.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    cursor: pointer;
    white-space: nowrap;
}

.hero-section {
    position: relative;
    min-height: 680px;
    overflow: hidden;
}

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(6, 182, 212, 0.24), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.72) 48%, rgba(2, 6, 23, 0.28)),
        linear-gradient(0deg, var(--slate-900), rgba(15, 23, 42, 0.08) 45%);
}

.hero-content {
    position: relative;
    min-height: 680px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 74px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 430px;
    gap: 48px;
    align-items: center;
}

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

.hero-pill,
.section-pill,
.section-mini {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 16px;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 10px 28px rgba(6, 182, 212, 0.22);
}

.section-pill {
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.section-mini {
    background: rgba(6, 182, 212, 0.12);
    color: #67e8f9;
    box-shadow: none;
}

.hero-text h1 {
    margin: 20px 0 18px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-text p,
.page-hero p {
    margin: 0;
    max-width: 720px;
    color: #e2e8f0;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta {
    margin: 26px 0 18px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--soft);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 28px;
}

.tag-row span {
    padding: 6px 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(15, 23, 42, 0.42);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 12px 26px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.25);
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover,
.ranking-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
}

.ghost-btn.full {
    width: 100%;
}

.hero-panel {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.48);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

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

.hero-panel div {
    padding: 20px;
}

.hero-panel span {
    color: #67e8f9;
    font-size: 13px;
    font-weight: 800;
}

.hero-panel strong {
    display: block;
    margin-top: 4px;
    font-size: 24px;
}

.hero-panel p {
    color: var(--soft);
    margin: 8px 0 0;
}

.section {
    padding: 72px 20px;
}

.slate-section {
    background: var(--slate-800);
}

.dark-section {
    background: var(--slate-700);
}

.gradient-section {
    background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.black-section {
    background: var(--slate-950);
}

.section > * {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.section-head {
    margin-bottom: 34px;
}

.center-head {
    text-align: center;
}

.split-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
    margin: 12px 0 10px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(51, 65, 85, 0.92);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.movie-card:hover {
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.34);
    border-color: rgba(6, 182, 212, 0.55);
}

.poster-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.poster-cover img,
.wide-cover img,
.category-tile img,
.overview-cover img,
.ranking-card img,
.detail-poster img,
.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.cover-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: white;
    background: var(--cyan);
    font-size: 12px;
    font-weight: 800;
}

.play-mark {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-info {
    padding: 14px;
}

.poster-info h3,
.wide-info h3 {
    margin: 0 0 7px;
    min-height: 2.7em;
    color: white;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poster-info p,
.wide-info p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    gap: 6px;
    font-size: 12px;
}

.card-meta span {
    padding: 3px 8px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wide-list {
    display: grid;
    gap: 18px;
}

.wide-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 188px;
}

.wide-cover {
    position: relative;
    overflow: hidden;
}

.wide-info {
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wide-info h3 {
    font-size: 23px;
    min-height: auto;
}

.wide-info p {
    font-size: 15px;
    -webkit-line-clamp: 3;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 72px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: rgba(51, 65, 85, 0.92);
    transform: translateX(6px);
}

.rank-num {
    color: #fb923c;
    font-size: 24px;
    font-weight: 900;
}

.rank-item img {
    width: 72px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    color: white;
    font-size: 17px;
}

.rank-info em {
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

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

.category-tile {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

.tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(6, 182, 212, 0.1));
}

.tile-icon,
.tile-title,
.tile-desc,
.tile-action {
    position: absolute;
    left: 20px;
    right: 20px;
}

.tile-icon {
    top: 24px;
    color: white;
    font-size: 38px;
}

.tile-title {
    bottom: 108px;
    font-size: 25px;
    font-weight: 900;
}

.tile-desc {
    bottom: 58px;
    color: #dbeafe;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tile-action {
    bottom: 18px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #0f172a;
    text-align: center;
    font-weight: 800;
    background: white;
}

.masonry-grid {
    columns: 4 230px;
    column-gap: 18px;
}

.masonry-grid .movie-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 18px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 20px;
    background:
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.18), transparent 32%),
        linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.page-hero > div {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
}

.compact-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
}

.hero-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.hero-link-row a {
    padding: 6px 12px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(6, 182, 212, 0.12);
}

.page-filter input {
    width: min(320px, 100%);
    padding: 12px 16px;
}

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

.category-overview-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px 1fr;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.overview-cover {
    position: relative;
    min-height: 260px;
    overflow: hidden;
}

.overview-cover span {
    position: absolute;
    left: 18px;
    top: 18px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(6, 182, 212, 0.86);
    font-size: 24px;
}

.overview-info {
    padding: 30px;
}

.overview-info h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.overview-info p {
    color: var(--muted);
}

.overview-info strong {
    color: #67e8f9;
}

.ranking-hero {
    min-height: 430px;
    background-size: cover;
    background-position: center;
}

.ranking-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.44));
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 62px 96px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-index {
    color: #fb923c;
    font-size: 30px;
    font-weight: 900;
}

.ranking-card img {
    width: 96px;
    height: 128px;
    border-radius: 14px;
    object-fit: cover;
}

.ranking-card h2 {
    margin: 0 0 8px;
    font-size: 19px;
}

.ranking-card p {
    margin: 0 0 8px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-card span:last-child {
    color: #67e8f9;
    font-size: 13px;
}

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

.detail-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.42)),
        linear-gradient(0deg, var(--slate-700), rgba(15, 23, 42, 0.02) 55%);
}

.detail-wrap {
    position: relative;
    max-width: 1240px;
    min-height: 640px;
    margin: 0 auto;
    padding: 64px 20px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 44px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow);
    aspect-ratio: 2 / 3;
    background: var(--slate-900);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--soft);
    margin-bottom: 18px;
}

.breadcrumb a {
    color: #67e8f9;
}

.detail-info h1 {
    margin-top: 0;
}

.detail-one-line {
    max-width: 760px;
    color: #e2e8f0;
    font-size: 20px;
}

.detail-meta {
    margin: 20px 0 0;
}

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

.main-column,
.side-column {
    padding: 24px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.46);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.main-column h2,
.side-column h2 {
    margin: 28px 0 12px;
    font-size: 26px;
}

.main-column h2:first-of-type,
.side-column h2:first-child {
    margin-top: 0;
}

.main-column p {
    color: #dbe4ef;
    font-size: 17px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: black;
    box-shadow: var(--shadow);
}

.video-node,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-node {
    background: black;
}

.player-cover {
    z-index: 2;
    border: 0;
    padding: 0;
    color: white;
    cursor: pointer;
    background: black;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
}

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

.player-play {
    position: absolute;
    z-index: 3;
    inset: 0;
    margin: auto;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 44px rgba(6, 182, 212, 0.34);
    font-size: 28px;
}

.movie-table {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px 12px;
    margin: 0 0 22px;
}

.movie-table dt {
    color: var(--muted);
}

.movie-table dd {
    margin: 0;
    color: white;
}

.detail-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.detail-switch a {
    padding: 14px 16px;
    border-radius: 16px;
    color: #cffafe;
    background: rgba(6, 182, 212, 0.1);
}

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

.hero-search {
    display: flex;
    gap: 12px;
    max-width: 620px;
    margin-top: 24px;
}

.hero-search input {
    width: 100%;
    padding: 14px 18px;
}

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

.search-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

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

.search-card div {
    padding: 14px;
}

.search-card h3 {
    margin: 0 0 8px;
}

.search-card p {
    margin: 0 0 10px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-card span {
    color: #67e8f9;
    font-size: 13px;
}

.site-footer {
    padding: 54px 20px 24px;
    color: var(--muted);
    background: linear-gradient(180deg, var(--slate-900), black);
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    color: white;
    font-size: 20px;
    margin-bottom: 14px;
}

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

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

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

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
}

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

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

    .hero-content,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 420px;
    }

    .ranking-list,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-wrap {
        gap: 12px;
    }

    .hero-section,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 58px 20px;
    }

    .hero-panel {
        display: none;
    }

    .wide-card,
    .detail-wrap,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

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

    .detail-wrap {
        gap: 26px;
        min-height: auto;
        padding-top: 48px;
    }

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

    .split-head {
        align-items: stretch;
        flex-direction: column;
    }

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

    .rank-grid,
    .ranking-list,
    .detail-switch {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .brand-text {
        font-size: 16px;
    }

    .section {
        padding: 52px 14px;
    }

    .poster-grid,
    .featured-grid,
    .related-grid,
    .search-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

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

    .rank-item,
    .ranking-card {
        grid-template-columns: 48px 72px 1fr;
        gap: 10px;
    }

    .ranking-card img,
    .rank-item img {
        width: 72px;
        height: 96px;
    }

    .main-column,
    .side-column {
        padding: 16px;
        border-radius: 18px;
    }

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

    .player-play {
        width: 66px;
        height: 66px;
        font-size: 22px;
    }
}
