:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(14, 165, 233, 0.24);
    --line-strong: rgba(56, 189, 248, 0.48);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --soft: #64748b;
    --sky: #38bdf8;
    --cyan: #22d3ee;
    --amber: #f59e0b;
    --radius: 18px;
    --shadow: 0 24px 80px rgba(8, 47, 73, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 28rem),
        radial-gradient(circle at 85% 10%, rgba(34, 211, 238, 0.14), transparent 22rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.92));
    box-shadow: 0 16px 50px rgba(8, 47, 73, 0.3);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(56, 189, 248, 0.55);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(34, 211, 238, 0.14));
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.28);
}

.brand-mark span {
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #e0f2fe;
}

.brand-text,
.footer-brand span:last-child {
    background: linear-gradient(90deg, #38bdf8, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #cbd5e1;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.nav-dropdown {
    position: relative;
    padding: 22px 0;
}

.dropdown-panel {
    position: absolute;
    top: 62px;
    left: 0;
    display: grid;
    width: 190px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.18s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    padding: 9px 10px;
    border-radius: 10px;
    color: #cbd5e1;
}

.dropdown-panel a:hover {
    color: var(--sky);
    background: rgba(14, 165, 233, 0.16);
}

.top-search {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 260px;
}

.top-search input,
.wide-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    background: rgba(15, 23, 42, 0.68);
    color: var(--text);
    transition: 0.2s ease;
}

.top-search input {
    padding: 10px 44px 10px 16px;
}

.top-search input:focus,
.wide-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.top-search button {
    position: absolute;
    right: 5px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    color: #00111d;
    font-weight: 900;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
}

.mobile-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #e2e8f0;
}

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

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.55);
}

.page-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 104px 0 64px;
}

.page-main.with-hero {
    width: 100%;
    padding-top: 68px;
}

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-stage {
    position: relative;
    height: clamp(560px, 72vh, 780px);
    min-height: 520px;
    overflow: hidden;
}

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

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

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

.hero-cover {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.97) 0%, rgba(2, 6, 23, 0.86) 44%, rgba(2, 6, 23, 0.32) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 45%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(24px, calc((100vw - 1180px) / 2));
    width: min(680px, calc(100% - 48px));
    transform: translateY(-50%);
}

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

.eyebrow span,
.hero-tags span,
.tag-row span,
.detail-tags span,
.eyebrow-text {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.15);
    color: #7dd3fc;
    font-size: 13px;
    font-weight: 700;
}

.eyebrow span,
.hero-tags span,
.detail-tags span {
    padding: 6px 11px;
}

.eyebrow {
    margin-bottom: 18px;
}

.hero-content h1,
.hero-content h2 {
    margin: 0;
    max-width: 720px;
    color: #ffffff;
    font-size: clamp(34px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-content h2 + p,
.hero-content h1 + h2 + p,
.hero-content h1 + p {
    margin-top: 18px;
}

.hero-content h1 + h2 {
    margin-top: 14px;
    font-size: clamp(26px, 4vw, 46px);
    color: #bae6fd;
}

.hero-content p {
    max-width: 620px;
    margin: 0 0 22px;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.75;
}

.hero-tags {
    margin-bottom: 28px;
}

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

.primary-button,
.ghost-button,
.wide-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button,
.wide-search button {
    border: 0;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    color: #00111d;
    box-shadow: 0 16px 40px rgba(14, 165, 233, 0.36);
}

.ghost-button {
    border: 1px solid rgba(125, 211, 252, 0.32);
    background: rgba(15, 23, 42, 0.5);
    color: #e0f2fe;
}

.primary-button:hover,
.ghost-button:hover,
.wide-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 56px rgba(14, 165, 233, 0.46);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 50%;
    background: rgba(2, 6, 23, 0.55);
    color: white;
    font-size: 34px;
    line-height: 1;
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-indicators button {
    width: 18px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.75);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-indicators button.is-active {
    width: 38px;
    background: var(--sky);
}

.home-search-panel,
.content-section,
.ranking-section,
.filter-panel,
.detail-content,
.related-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.home-search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-heading h1,
.story-block h2 {
    margin: 0;
    color: #f8fafc;
}

.home-search-panel h2 {
    font-size: clamp(24px, 4vw, 36px);
}

.home-search-panel p,
.page-hero p,
.detail-heading p,
.story-block p,
.site-footer p {
    color: var(--muted);
    line-height: 1.8;
}

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

.wide-search input {
    min-height: 48px;
    padding: 0 18px;
}

.content-section,
.ranking-section,
.filter-panel {
    margin-top: 56px;
}

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

.section-heading span,
.eyebrow-text {
    padding: 6px 12px;
}

.section-heading h2 {
    margin-top: 10px;
    font-size: clamp(24px, 4vw, 34px);
}

.section-heading a {
    color: var(--sky);
    font-weight: 700;
}

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.56);
    box-shadow: 0 12px 40px rgba(2, 6, 23, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.52);
    box-shadow: 0 22px 60px rgba(8, 47, 73, 0.34);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

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

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

.poster-shade,
.category-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.12) 58%, transparent);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.82);
    color: white;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: 0.22s ease;
    backdrop-filter: blur(8px);
}

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

.year-pill {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.78);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

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

.movie-card-body h2 {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 8px;
    overflow: hidden;
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-body h2 a:hover {
    color: var(--sky);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 38px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--soft);
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row span {
    padding: 3px 7px;
    font-size: 12px;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.22);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 54px rgba(2, 6, 23, 0.26);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-card-copy {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 8px;
}

.category-card-copy strong {
    color: white;
    font-size: 22px;
}

.category-card-copy em {
    color: #cbd5e1;
    font-size: 13px;
    font-style: normal;
    line-height: 1.6;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: auto 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(14, 165, 233, 0.16);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.6);
    transition: 0.2s ease;
}

.rank-item:hover {
    border-color: rgba(56, 189, 248, 0.48);
    background: rgba(30, 41, 59, 0.62);
}

.rank-index {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    font-size: 20px;
    font-weight: 900;
}

.rank-item img {
    width: 72px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

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

.rank-copy em,
.rank-copy small {
    color: var(--muted);
    font-style: normal;
    line-height: 1.5;
}

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

.page-hero {
    display: grid;
    min-height: 260px;
    align-items: end;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(15, 23, 42, 0.88)),
        radial-gradient(circle at 80% 18%, rgba(34, 211, 238, 0.23), transparent 20rem);
    box-shadow: var(--shadow);
}

.small-hero {
    min-height: 220px;
}

.page-hero h1 {
    margin-top: 14px;
    font-size: clamp(34px, 6vw, 56px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 720px;
    margin: 14px 0 0;
    font-size: 17px;
}

.filter-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.55);
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(160px, 220px));
    gap: 14px;
    margin-bottom: 24px;
}

.search-filter-row {
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(130px, 180px));
}

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

.filter-panel input,
.filter-panel select {
    min-height: 44px;
    padding: 0 14px;
}

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

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

.detail-main {
    width: min(1180px, calc(100% - 32px));
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: stretch;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18)),
        radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 18rem);
    color: white;
}

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

.play-ring {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding-left: 5px;
    border: 1px solid rgba(224, 242, 254, 0.45);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.88), rgba(34, 211, 238, 0.88));
    color: white;
    font-size: 32px;
    box-shadow: 0 18px 48px rgba(14, 165, 233, 0.42);
}

.player-overlay strong {
    font-size: 20px;
}

.detail-side {
    display: grid;
    gap: 18px;
}

.detail-side img {
    width: 100%;
    height: 370px;
    border: 1px solid rgba(14, 165, 233, 0.24);
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 18px 54px rgba(2, 6, 23, 0.34);
}

.detail-rating {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 104px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(15, 23, 42, 0.76));
}

.detail-rating span {
    color: #fbbf24;
    font-size: 38px;
    font-weight: 900;
}

.detail-rating em {
    color: var(--muted);
    font-style: normal;
}

.detail-content {
    margin-top: 32px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.58);
}

.detail-heading h1 {
    margin-top: 14px;
    font-size: clamp(30px, 5vw, 50px);
    letter-spacing: -0.04em;
}

.detail-heading p {
    max-width: 860px;
    margin: 14px 0 0;
    font-size: 17px;
}

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

.meta-grid span {
    display: grid;
    gap: 8px;
    min-height: 74px;
    padding: 14px;
    border: 1px solid rgba(14, 165, 233, 0.16);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.32);
    color: #dbeafe;
}

.meta-grid strong {
    color: var(--muted);
    font-size: 12px;
}

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

.story-block {
    margin-top: 28px;
}

.story-block h2 {
    font-size: 24px;
}

.story-block p {
    margin-top: 12px;
    font-size: 16px;
}

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

.pager-links a {
    overflow: hidden;
    padding: 14px 16px;
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.32);
    color: #cbd5e1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pager-links a:hover {
    color: var(--sky);
    border-color: rgba(56, 189, 248, 0.42);
}

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

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

.site-footer h2 {
    margin: 0 0 14px;
    color: #e2e8f0;
    font-size: 16px;
}

.site-footer ul {
    display: grid;
    gap: 9px;
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.site-footer a:hover {
    color: var(--sky);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(14, 165, 233, 0.16);
    color: var(--soft);
    text-align: center;
    font-size: 14px;
}

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

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

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

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

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

    .mobile-toggle {
        display: inline-flex;
    }

    .home-search-panel,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-arrow {
        display: none;
    }

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

    .detail-side img {
        height: 260px;
    }

    .meta-grid,
    .filter-row,
    .search-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .nav-shell {
        height: 62px;
    }

    .page-main {
        width: min(100% - 24px, 1180px);
        padding-top: 88px;
    }

    .page-main.with-hero {
        padding-top: 62px;
    }

    .hero-stage {
        height: 640px;
    }

    .hero-content {
        left: 18px;
        width: calc(100% - 36px);
    }

    .home-search-panel,
    .content-section,
    .ranking-section,
    .filter-panel,
    .detail-content,
    .related-section {
        width: min(100% - 24px, 1180px);
    }

    .home-search-panel,
    .filter-panel,
    .detail-content,
    .page-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .wide-search,
    .meta-grid,
    .filter-row,
    .search-filter-row,
    .rank-grid,
    .rank-grid-wide,
    .pager-links,
    .detail-side {
        grid-template-columns: 1fr;
    }

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

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

    .rank-item {
        grid-template-columns: auto 64px minmax(0, 1fr);
    }

    .rank-item img {
        width: 64px;
        height: 90px;
    }

    .detail-side img {
        width: 190px;
        height: 270px;
    }

    .footer-grid {
        width: min(100% - 24px, 1180px);
    }
}
