
:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --cyan: #06b6d4;
    --cyan-soft: #cffafe;
    --blue: #2563eb;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 45%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #020617 0%, #0f172a 50%, #020617 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.35);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 32px rgba(6, 182, 212, 0.45);
    font-size: 18px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-size: 22px;
    letter-spacing: -0.04em;
}

.logo-text small {
    margin-top: 5px;
    color: #67e8f9;
    font-size: 12px;
}

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

.desktop-nav a,
.mobile-panel a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: #67e8f9;
}

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.88);
    border-radius: 12px;
    overflow: hidden;
}

.nav-search input,
.mobile-search input {
    width: 190px;
    padding: 10px 12px;
    color: #ffffff;
    background: transparent;
    border: 0;
    outline: 0;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
    color: #94a3b8;
}

.nav-search button,
.mobile-search button {
    padding: 10px 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border: 0;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    padding: 10px 14px;
    color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.9);
}

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

.mobile-panel a {
    display: block;
    padding: 12px;
    border-radius: 10px;
}

.menu-open .mobile-panel {
    display: block;
}

.hero-slider {
    background: #020617;
    color: #ffffff;
}

.hero-stage {
    position: relative;
    min-height: 620px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease, transform 1.2s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-content {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 120px 0;
}

.hero-kicker,
.section-kicker,
.inner-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    color: #a5f3fc;
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(103, 232, 249, 0.28);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-content h1 {
    max-width: 760px;
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-line {
    max-width: 760px;
    color: #dbeafe;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.75;
}

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

.hero-tags {
    margin: 24px 0 30px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    padding: 6px 10px;
    color: #083344;
    background: #cffafe;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

.primary-btn.full {
    width: 100%;
    margin-top: 18px;
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
    width: 34px;
    background: #67e8f9;
}

.hero-thumbs {
    width: min(1280px, calc(100% - 32px));
    margin: -78px auto 0;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 34px;
}

.hero-thumb {
    min-height: 112px;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    backdrop-filter: blur(18px);
}

.hero-thumb img {
    width: 70px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-thumb span {
    font-weight: 800;
    line-height: 1.35;
}

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

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

.section-heading h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.06em;
}

.section-action {
    color: #0e7490;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
}

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

.category-tile {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 24px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.category-tile span {
    font-size: 26px;
    font-weight: 900;
}

.category-tile strong {
    font-size: 15px;
}

.category-tile em {
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
    line-height: 1.6;
}

.category-tile.cyan { background: linear-gradient(135deg, #0891b2, #2563eb); }
.category-tile.blue { background: linear-gradient(135deg, #1d4ed8, #4f46e5); }
.category-tile.violet { background: linear-gradient(135deg, #7c3aed, #db2777); }
.category-tile.rose { background: linear-gradient(135deg, #e11d48, #f97316); }
.category-tile.amber { background: linear-gradient(135deg, #d97706, #ea580c); }
.category-tile.emerald { background: linear-gradient(135deg, #059669, #0d9488); }
.category-tile.indigo { background: linear-gradient(135deg, #4338ca, #0284c7); }
.category-tile.slate { background: linear-gradient(135deg, #334155, #0f172a); }

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

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

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

.movie-card {
    border-radius: 22px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #164e63);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.82));
    opacity: 0.55;
}

.play-chip,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, #f97316, #e11d48);
}

.movie-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.region-badge {
    max-width: 70%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #0e7490;
    font-weight: 800;
}

.movie-card strong {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 18px;
    line-height: 1.25;
}

.genre-line,
.one-line {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.55;
    -webkit-box-orient: vertical;
}

.genre-line {
    min-height: 22px;
    -webkit-line-clamp: 1;
    font-size: 13px;
}

.one-line {
    min-height: 44px;
    -webkit-line-clamp: 2;
    font-size: 14px;
}

.tag-row span {
    padding: 4px 8px;
    font-size: 12px;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.ranking-panel,
.content-panel,
.side-card,
.ranking-table {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.ranking-panel {
    position: sticky;
    top: 104px;
    padding: 24px;
}

.panel-title span {
    color: var(--cyan);
    font-weight: 900;
}

.panel-title h2 {
    margin: 4px 0 18px;
    font-size: 28px;
    letter-spacing: -0.05em;
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rank-line {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 12px;
    color: inherit;
    text-decoration: none;
    border-radius: 16px;
    background: #f8fafc;
}

.rank-line:hover {
    background: #ecfeff;
}

.rank-line span {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #0f172a;
    border-radius: 12px;
    font-weight: 900;
}

.rank-line strong,
.rank-line em {
    grid-column: 2;
}

.rank-line strong {
    margin-top: -40px;
    padding-left: 48px;
}

.rank-line em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    padding-left: 48px;
}

.inner-hero,
.detail-top {
    color: #ffffff;
    background: linear-gradient(135deg, #020617, #0f172a 55%, #164e63);
    background-size: cover;
    background-position: center;
}

.inner-hero {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 16px;
    text-align: center;
}

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

.inner-hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.07em;
}

.inner-hero p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-card {
    position: relative;
    min-height: 290px;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    border-radius: 26px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
}

.category-overview-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.90));
}

.category-overview-content {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
}

.category-overview-content strong {
    font-size: 28px;
}

.category-overview-content em,
.category-overview-content small {
    color: #cbd5e1;
    font-style: normal;
    line-height: 1.6;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 26px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    background: #f8fafc;
}

.filter-bar input {
    flex: 1 1 280px;
}

.filter-bar select {
    flex: 0 1 180px;
}

.filter-count {
    margin-left: auto;
    color: #0e7490;
    font-weight: 900;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 28px;
}

.pagination:last-child {
    margin: 32px 0 0;
}

.pagination a,
.pagination span,
.pagination strong {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 12px;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--text);
}

.pagination strong {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

.ranking-table {
    overflow: hidden;
}

.ranking-row {
    display: grid;
    grid-template-columns: 64px 70px 1fr 170px;
    gap: 16px;
    align-items: center;
    padding: 14px 20px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.ranking-row:last-child {
    border-bottom: 0;
}

.ranking-row:hover {
    background: #ecfeff;
}

.ranking-number {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #0f172a;
    border-radius: 14px;
    font-weight: 900;
}

.ranking-row img {
    width: 70px;
    height: 94px;
    object-fit: cover;
    border-radius: 12px;
}

.ranking-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ranking-info strong {
    font-size: 18px;
}

.ranking-info em,
.ranking-meta {
    color: var(--muted);
    font-style: normal;
    line-height: 1.5;
}

.detail-top-inner {
    width: min(1280px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 74px 0;
}

.detail-poster {
    width: 260px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.55);
}

.detail-copy h1 {
    margin: 20px 0 18px;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1;
    letter-spacing: -0.07em;
}

.detail-copy p {
    max-width: 800px;
    color: #dbeafe;
    font-size: 20px;
    line-height: 1.75;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    background: #020617;
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.36);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(8, 145, 178, 0.36), rgba(2, 6, 23, 0.78));
    border: 0;
    font-size: 18px;
    font-weight: 900;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-symbol {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 45px rgba(6, 182, 212, 0.45);
    font-size: 30px;
}

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

.player-controls {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-shell:hover .player-controls,
.player-shell.is-paused .player-controls {
    opacity: 1;
    transform: translateY(0);
}

.player-controls button {
    min-height: 38px;
    padding: 0 13px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(14px);
}

.player-status {
    position: absolute;
    right: 16px;
    top: 16px;
    margin: 0;
    color: #bae6fd;
    font-size: 13px;
}

.content-panel {
    margin-top: 24px;
    padding: 28px;
}

.content-panel h2 {
    margin: 0 0 12px;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.content-panel h2:not(:first-child) {
    margin-top: 28px;
}

.content-panel p {
    color: #334155;
    line-height: 1.9;
    font-size: 17px;
}

.detail-tags span {
    background: #ecfeff;
}

.side-card {
    position: sticky;
    top: 104px;
    padding: 18px;
}

.side-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 18px;
}

.side-card dl {
    margin: 0;
}

.side-card div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.side-card div:last-child {
    border-bottom: 0;
}

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    text-align: right;
    font-weight: 800;
}

.prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.prev-next a {
    padding: 16px;
    color: #0e7490;
    text-decoration: none;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    border-radius: 16px;
    font-weight: 800;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-grid {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 50px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
}

.footer-logo {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 12px;
}

.site-footer p {
    max-width: 520px;
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer h3 {
    color: #ffffff;
    margin: 0 0 14px;
}

.site-footer a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin: 9px 0;
}

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

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 30px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.back-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    display: none;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.28);
    font-weight: 900;
    z-index: 40;
}

.back-top.visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hidden-card {
    display: none !important;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 16px;
    }

    .nav-search input {
        width: 150px;
    }

    .hero-thumbs,
    .featured-grid,
    .ranking-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

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

    .hero-stage {
        min-height: 560px;
    }

    .hero-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0;
    }

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

    .two-column-section,
    .detail-layout,
    .footer-grid,
    .detail-top-inner {
        grid-template-columns: 1fr;
    }

    .ranking-panel,
    .side-card {
        position: static;
    }

    .detail-poster {
        width: 210px;
    }

    .ranking-row {
        grid-template-columns: 44px 56px 1fr;
    }

    .ranking-row img {
        width: 56px;
        height: 76px;
    }

    .ranking-meta {
        grid-column: 3;
    }
}

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

    .logo-text strong {
        font-size: 18px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .hero-content {
        padding: 72px 0;
    }

    .hero-content h1,
    .detail-copy h1 {
        letter-spacing: -0.05em;
    }

    .hero-thumbs,
    .movie-grid,
    .compact-grid,
    .featured-grid,
    .ranking-grid,
    .category-grid,
    .category-overview-grid,
    .prev-next {
        grid-template-columns: 1fr;
    }

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

    .filter-bar select,
    .filter-count {
        width: 100%;
        margin-left: 0;
    }

    .player-controls {
        flex-wrap: wrap;
    }
}
