:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: #111827;
    --bg-panel: #0b1224;
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(148, 163, 184, 0.32);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --sky: #38bdf8;
    --sky-strong: #0284c7;
    --sky-soft: rgba(14, 165, 233, 0.18);
    --radius: 18px;
    --shadow: 0 22px 70px rgba(2, 8, 23, 0.48);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* {
    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.14), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.08), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.95));
    box-shadow: 0 12px 34px rgba(2, 8, 23, 0.35);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 18px;
}

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

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky), var(--sky-strong));
    color: #fff;
    font-size: 15px;
    box-shadow: 0 0 28px rgba(14, 165, 233, 0.45);
}

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

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.03em;
}

.brand-text small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

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

.nav-link {
    color: #cbd5e1;
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input,
.mobile-search input,
.search-band input,
.search-page-form input,
.local-filter input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.24);
    outline: none;
    color: #fff;
    background: rgba(15, 23, 42, 0.92);
    border-radius: 999px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    width: 230px;
    padding: 10px 42px 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-band input:focus,
.search-page-form input:focus,
.local-filter input:focus {
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.header-search button {
    position: absolute;
    right: 12px;
    border: 0;
    color: #cbd5e1;
    background: transparent;
    font-size: 21px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 12px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 14px 16px 18px;
    background: rgba(15, 23, 42, 0.98);
}

.mobile-nav {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.mobile-search {
    display: flex;
    gap: 10px;
}

.mobile-search input {
    padding: 11px 14px;
}

.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--sky), var(--sky-strong));
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: saturate(1.1) contrast(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.76) 38%, rgba(2, 6, 23, 0.25) 72%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.08) 55%, rgba(2, 6, 23, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: end;
    min-height: 620px;
    padding: 92px 0 96px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--sky);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.hero h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 680px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: 19px;
}

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

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

.hero-tags span,
.detail-tags span,
.card-tags span,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(125, 211, 252, 0.25);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.12);
    font-size: 12px;
}

.hero-actions,
.detail-info .btn {
    margin-top: 28px;
}

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--sky), var(--sky-strong));
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.28);
}

.btn-secondary {
    margin-left: 12px;
    color: #e0f2fe;
    border-color: rgba(125, 211, 252, 0.34);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
}

.hero-poster {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: var(--shadow);
    transform: translateY(12px);
}

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

.hero-poster span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(2, 6, 23, 0.66);
    backdrop-filter: blur(10px);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
}

.hero-controls button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.58;
}

.hero-dot.active {
    width: 28px;
    opacity: 1;
    background: var(--sky);
}

.search-band {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
    align-items: center;
    gap: 28px;
    margin-top: -44px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    position: relative;
    z-index: 5;
}

.search-band h2,
.section-head h2,
.page-hero h1,
.detail-content h2,
.player-section h2,
.side-panel h2 {
    margin: 0;
    letter-spacing: -0.03em;
}

.search-band form,
.search-page-form {
    display: flex;
    gap: 12px;
}

.search-band input,
.search-page-form input,
.local-filter input {
    padding: 14px 18px;
}

.section-block {
    margin-top: 70px;
}

.no-margin {
    margin-top: 0;
}

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

.text-link {
    color: var(--sky);
    font-weight: 700;
}

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

.category-overview {
    margin-top: 28px;
}

.category-tile {
    position: relative;
    min-height: 160px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-card);
    box-shadow: 0 12px 36px rgba(2, 8, 23, 0.28);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.88));
}

.category-tile:hover img {
    opacity: 0.84;
    transform: scale(1.08);
}

.category-tile span {
    position: absolute;
    z-index: 2;
    left: 16px;
    right: 16px;
    bottom: 16px;
}

.category-tile strong,
.category-tile small {
    display: block;
}

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

.category-tile small {
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 13px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 16px 50px rgba(2, 8, 23, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 22px 70px rgba(14, 165, 233, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.86));
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link::after {
    opacity: 1;
}

.play-badge {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-category {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(2, 6, 23, 0.68);
    font-size: 12px;
}

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

.movie-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

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

.card-meta {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    margin: 10px 0 12px;
    color: #cbd5e1;
    font-size: 14px;
}

.card-tags span {
    min-height: 23px;
    padding: 2px 8px;
    font-size: 11px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    margin-top: 70px;
}

.rank-list,
.side-panel,
.accent-panel,
.detail-content article,
.player-section,
.detail-hero,
.page-hero {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 18px 54px rgba(2, 8, 23, 0.24);
}

.rank-list {
    overflow: hidden;
}

.rank-row {
    display: grid;
    grid-template-columns: 42px 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    transition: background 0.2s ease;
}

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

.rank-row:hover {
    background: rgba(14, 165, 233, 0.08);
}

.rank-index {
    color: var(--sky);
    font-weight: 900;
    font-size: 18px;
}

.top-rank .rank-index {
    color: #facc15;
}

.rank-row img {
    width: 56px;
    height: 76px;
    border-radius: 10px;
    object-fit: cover;
}

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

.rank-info small {
    margin-top: 4px;
    color: var(--muted);
}

.rank-heat {
    padding: 4px 9px;
    border-radius: 999px;
    color: #e0f2fe;
    background: var(--sky-soft);
    font-size: 12px;
}

.accent-panel {
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 18rem),
        rgba(15, 23, 42, 0.78);
}

.accent-panel p {
    margin: 12px 0 22px;
    color: #cbd5e1;
}

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

.compact-grid.single {
    grid-template-columns: 1fr;
}

.compact-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.32);
}

.compact-card:hover {
    border-color: rgba(56, 189, 248, 0.38);
}

.compact-card img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
}

.compact-card strong,
.compact-card small {
    display: block;
}

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

.compact-card small {
    display: -webkit-box;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-main {
    padding: 42px 0 80px;
}

.page-hero {
    padding: 38px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.2), transparent 24rem),
        rgba(15, 23, 42, 0.76);
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.05;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: #cbd5e1;
}

.local-filter {
    max-width: 420px;
    margin-top: 22px;
}

.category-movie-grid {
    margin-top: 32px;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    margin-top: 32px;
}

.rank-list-full .rank-row {
    grid-template-columns: 52px 72px minmax(0, 1fr) auto;
    padding: 14px 18px;
}

.rank-list-full .rank-row img {
    width: 72px;
    height: 96px;
}

.side-panel {
    align-self: start;
    padding: 22px;
}

.side-panel h2 {
    margin-bottom: 18px;
}

.search-page-form {
    max-width: 740px;
    margin-top: 24px;
}

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

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    padding: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 24rem),
        rgba(15, 23, 42, 0.76);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.detail-tags.wide span {
    min-height: 34px;
    padding: 6px 12px;
}

.player-section {
    margin-top: 34px;
    padding: 26px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 18rem),
        rgba(2, 6, 23, 0.42);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky), var(--sky-strong));
    box-shadow: 0 0 44px rgba(14, 165, 233, 0.36);
}

.detail-content {
    display: grid;
    gap: 22px;
    margin-top: 34px;
}

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

.detail-content p {
    margin: 14px 0 0;
    color: #d1d5db;
    white-space: pre-line;
}

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

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 36px;
    padding: 52px 0;
}

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

.footer-grid p,
.footer-links a {
    color: var(--muted);
}

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

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

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

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

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

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

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 260px;
    }

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero,
    .hero-content {
        min-height: 680px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-items: center;
        padding-top: 78px;
        padding-bottom: 88px;
    }

    .hero-poster {
        display: none;
    }

    .search-band,
    .split-section,
    .ranking-layout,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .search-band {
        margin-top: -30px;
    }

    .detail-cover {
        max-width: 300px;
    }
}

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

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

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 34px;
    }

    .hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-controls {
        bottom: 18px;
    }

    .search-band,
    .page-hero,
    .detail-hero,
    .player-section,
    .detail-content article,
    .accent-panel,
    .side-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .search-band form,
    .search-page-form {
        flex-direction: column;
    }

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

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

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

    .rank-row,
    .rank-list-full .rank-row {
        grid-template-columns: 36px 54px minmax(0, 1fr);
    }

    .rank-row img,
    .rank-list-full .rank-row img {
        width: 54px;
        height: 74px;
    }

    .rank-heat {
        display: none;
    }

    .card-desc,
    .card-tags {
        display: none;
    }

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

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

@media (max-width: 420px) {
    .category-grid,
    .category-overview,
    .movie-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }
}
