* {
    box-sizing: border-box;
}

:root {
    --deep-950: #001014;
    --deep-900: #001a26;
    --deep-850: #002840;
    --deep-800: #00304f;
    --deep-700: #004166;
    --ocean-500: #0099e6;
    --ocean-400: #1ab1ff;
    --ocean-300: #4dc2ff;
    --ocean-200: #80d4ff;
    --ocean-100: #b3e5ff;
    --teal-400: #18d6bb;
    --white: #ffffff;
    --muted: rgba(179, 229, 255, 0.72);
    --line: rgba(128, 212, 255, 0.16);
    --panel: rgba(0, 40, 64, 0.72);
    --panel-strong: rgba(0, 26, 38, 0.94);
    --shadow-ocean: 0 18px 50px rgba(0, 153, 230, 0.18);
    --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.28);
    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: var(--white);
    background:
        radial-gradient(circle at 10% 0%, rgba(0, 153, 230, 0.18), transparent 32rem),
        linear-gradient(180deg, var(--deep-950) 0%, var(--deep-900) 42%, var(--deep-950) 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(0, 16, 20, 0.96), rgba(0, 48, 79, 0.94), rgba(0, 26, 38, 0.96));
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-ocean);
    backdrop-filter: blur(14px);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 30px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--ocean-400), var(--teal-400));
    box-shadow: 0 12px 30px rgba(26, 177, 255, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-4deg);
}

.brand-text {
    display: grid;
    line-height: 1.2;
}

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

.brand-text small {
    color: var(--ocean-200);
    font-size: 12px;
}

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

.desktop-nav a,
.mobile-nav a {
    color: var(--ocean-100);
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: white;
}

.header-search,
.mobile-search,
.callout-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.callout-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(77, 194, 255, 0.42);
    border-radius: 14px;
    outline: none;
    padding: 0 14px;
    color: white;
    background: rgba(0, 20, 26, 0.72);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search input:focus,
.mobile-search input:focus,
.callout-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--ocean-300);
    box-shadow: 0 0 0 4px rgba(26, 177, 255, 0.12);
}

.header-search button,
.mobile-search button,
.callout-search button,
.primary-btn,
.ghost-btn,
.section-link {
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    color: white;
    white-space: nowrap;
}

.header-search button,
.mobile-search button,
.callout-search button,
.primary-btn {
    padding: 12px 20px;
    background: linear-gradient(90deg, var(--ocean-500), var(--teal-400));
    box-shadow: 0 12px 26px rgba(0, 153, 230, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.callout-search button:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 153, 230, 0.34);
}

.ghost-btn,
.section-link {
    padding: 11px 18px;
    border: 1px solid rgba(128, 212, 255, 0.38);
    background: rgba(0, 65, 102, 0.55);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-btn:hover,
.section-link:hover {
    transform: translateY(-2px);
    background: rgba(0, 119, 179, 0.72);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(128, 212, 255, 0.26);
    border-radius: 14px;
    background: rgba(0, 65, 102, 0.4);
}

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

.mobile-nav {
    border-top: 1px solid var(--line);
    background: rgba(0, 26, 38, 0.98);
}

.mobile-nav-inner {
    display: grid;
    gap: 10px;
    padding: 16px 0 20px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 40, 64, 0.64);
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 580px;
    height: 72vh;
    margin-top: 76px;
    background: var(--deep-950);
    overflow: hidden;
}

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

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

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

.hero-bg::after,
.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 16, 20, 0.98), rgba(0, 26, 38, 0.82), rgba(0, 26, 38, 0.16)),
        linear-gradient(0deg, var(--deep-950), transparent 42%),
        radial-gradient(circle at 72% 30%, rgba(26, 177, 255, 0.16), transparent 22rem);
}

.hero-mask,
.detail-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 16, 20, 0.88) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 56px;
    height: 100%;
}

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

.kicker,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--ocean-300);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-kicker::before,
.kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--ocean-400);
    box-shadow: 0 0 18px var(--ocean-400);
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-one-line {
    max-width: 740px;
    margin: 18px 0 0;
    color: var(--ocean-100);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.tag-list,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.tag-list span,
.detail-meta span {
    padding: 7px 11px;
    border: 1px solid rgba(128, 212, 255, 0.18);
    border-radius: 999px;
    color: var(--ocean-200);
    background: rgba(0, 65, 102, 0.42);
}

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

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(0, 65, 102, 0.82), rgba(0, 153, 230, 0.22));
    box-shadow: var(--shadow-ocean);
    overflow: hidden;
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: rgba(0, 153, 230, 0.86);
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 42px rgba(0, 153, 230, 0.35);
}

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

.hero-dot {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(179, 229, 255, 0.28);
}

.hero-dot.active {
    background: var(--ocean-400);
}

.section {
    padding: 70px 0;
}

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

.section-heading h2,
.ranking-panel h2,
.text-panel h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
}

.section-heading p,
.ranking-panel p,
.text-panel p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

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

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

.movie-card {
    border: 1px solid rgba(128, 212, 255, 0.14);
    border-radius: 22px;
    background: rgba(0, 40, 64, 0.62);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(26, 177, 255, 0.5);
    box-shadow: var(--shadow-ocean);
    transform: translateY(-6px);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    background:
        radial-gradient(circle at 50% 35%, rgba(26, 177, 255, 0.24), transparent 42%),
        linear-gradient(145deg, rgba(0, 65, 102, 0.9), rgba(0, 16, 20, 0.98));
    overflow: hidden;
}

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

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

.poster-frame img.is-hidden,
.hero-poster img.is-hidden,
.detail-cover img.is-hidden,
.category-mini-grid img.is-hidden,
.overview-mini-grid img.is-hidden {
    display: none;
}

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 52%;
    background: linear-gradient(0deg, rgba(0, 16, 20, 0.94), transparent);
}

.type-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    padding: 6px 9px;
    border-radius: 10px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
}

.rank-badge {
    right: auto;
    left: 10px;
    background: linear-gradient(135deg, var(--ocean-500), var(--teal-400));
}

.play-float {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: white;
    background: rgba(0, 153, 230, 0.88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0;
    min-height: 48px;
    color: white;
    font-size: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body h3 a:hover {
    color: var(--ocean-300);
}

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

.meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--ocean-300);
    font-size: 12px;
}

.tag-list {
    margin-top: 12px;
    gap: 6px;
}

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

.compact .card-body p {
    display: none;
}

.compact .card-body h3 {
    min-height: auto;
}

.category-section {
    background:
        linear-gradient(180deg, rgba(0, 40, 64, 0.34), rgba(0, 16, 20, 0)),
        radial-gradient(circle at 80% 20%, rgba(24, 214, 187, 0.12), transparent 28rem);
}

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

.category-tile,
.category-overview-card,
.ranking-panel,
.text-panel,
.search-callout,
.filter-panel {
    border: 1px solid rgba(128, 212, 255, 0.16);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow-card);
}

.category-tile,
.category-overview-card {
    padding: 20px;
}

.category-title,
.category-overview-card > a {
    display: grid;
    gap: 8px;
}

.category-title span,
.category-overview-card h2 {
    font-size: 24px;
    font-weight: 900;
}

.category-title small,
.category-overview-card p {
    color: var(--muted);
    line-height: 1.7;
}

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

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

.category-mini-grid a,
.overview-mini-grid a {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(0, 65, 102, 0.9), rgba(0, 16, 20, 0.98));
}

.category-mini-grid img,
.overview-mini-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-mini-grid span,
.overview-mini-grid span {
    position: absolute;
    inset: auto 0 0;
    padding: 18px 8px 8px;
    font-size: 11px;
    line-height: 1.4;
    background: linear-gradient(0deg, rgba(0, 16, 20, 0.95), transparent);
}

.category-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: white;
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--ocean-500), var(--teal-400));
}

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

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

.ranking-list {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(0, 20, 26, 0.46);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-list a:hover {
    background: rgba(0, 85, 128, 0.56);
    transform: translateX(4px);
}

.ranking-list b {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ocean-500), var(--teal-400));
}

.ranking-list span,
.ranking-list em {
    display: block;
    min-width: 0;
}

.ranking-list span {
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-list em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.search-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
}

.search-callout p {
    margin: 8px 0 0;
    color: var(--muted);
}

.callout-search {
    width: min(520px, 100%);
}

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

.page-hero,
.detail-hero {
    position: relative;
    padding: 86px 0 56px;
    background:
        radial-gradient(circle at 20% 10%, rgba(0, 153, 230, 0.18), transparent 28rem),
        linear-gradient(135deg, rgba(0, 26, 38, 0.98), rgba(0, 65, 102, 0.7));
}

.compact-hero {
    min-height: 310px;
    display: grid;
    align-items: center;
}

.breadcrumbs {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--ocean-200);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: white;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
}

.search-panel {
    grid-template-columns: minmax(0, 1fr) 170px 190px 170px;
}

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

.empty-state,
.search-status {
    margin: 22px 0;
    color: var(--muted);
    text-align: center;
}

.detail-hero {
    min-height: 620px;
    padding-bottom: 80px;
    overflow: hidden;
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.detail-cover {
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(128, 212, 255, 0.22);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(0, 65, 102, 0.9), rgba(0, 16, 20, 0.98));
    box-shadow: var(--shadow-ocean);
    overflow: hidden;
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    max-width: 820px;
}

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

.detail-tags {
    margin: 18px 0 28px;
}

.player-section {
    padding-bottom: 20px;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(128, 212, 255, 0.18);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow-ocean);
    overflow: hidden;
}

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

.movie-video {
    z-index: 1;
    background: #000;
    opacity: 0;
}

.movie-video.is-active {
    opacity: 1;
}

.player-poster {
    z-index: 2;
    display: grid;
    place-items: center;
    background-position: center;
    background-size: cover;
}

.player-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(0, 16, 20, 0.92), rgba(0, 16, 20, 0.35)),
        radial-gradient(circle, rgba(0, 153, 230, 0.16), transparent 34rem);
}

.player-shell.is-playing .player-poster {
    display: none;
}

.player-start {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 12px;
    place-items: center;
    width: 164px;
    height: 164px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(0, 153, 230, 0.82);
    box-shadow: 0 24px 60px rgba(0, 153, 230, 0.35);
    transition: transform 0.25s ease, background 0.25s ease;
}

.player-start:hover {
    transform: scale(1.06);
    background: rgba(24, 214, 187, 0.88);
}

.player-start span {
    font-size: 42px;
    line-height: 1;
}

.player-start strong {
    font-size: 18px;
}

.player-message {
    position: absolute;
    z-index: 3;
    left: 20px;
    right: 20px;
    bottom: 16px;
    margin: 0;
    color: var(--ocean-100);
    text-align: center;
}

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

.text-panel {
    padding: 28px;
}

.text-panel p {
    color: var(--ocean-100);
    font-size: 16px;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: rgba(0, 16, 20, 0.86);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
    padding: 44px 0;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 900;
}

.site-footer p,
.footer-bottom {
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 17px;
}

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

.footer-links a {
    color: var(--ocean-200);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 30px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

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

    .menu-toggle {
        display: block;
    }

    .header-search {
        margin-left: auto;
    }

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

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

    .two-column-section {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .hero {
        min-height: 680px;
        height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        align-content: center;
        padding: 52px 0 82px;
    }

    .hero-poster {
        width: min(260px, 78vw);
        justify-self: center;
    }

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

    .category-grid,
    .category-overview-grid,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .detail-cover {
        width: min(260px, 78vw);
    }

    .search-callout {
        align-items: stretch;
        flex-direction: column;
    }
}

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

    .nav-bar {
        min-height: 68px;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 24px;
    }

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

    .brand-text small,
    .header-search {
        display: none;
    }

    .hero,
    .page-main {
        margin-top: 68px;
        padding-top: 0;
    }

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

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

    .section {
        padding: 48px 0;
    }

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

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

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        min-height: auto;
        font-size: 14px;
    }

    .card-body p {
        display: none;
    }

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

    .player-start {
        width: 118px;
        height: 118px;
    }

    .player-start span {
        font-size: 32px;
    }

    .footer-bottom {
        align-items: start;
        flex-direction: column;
    }
}
