:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: rgba(15, 23, 42, 0.72);
    --panel-light: rgba(30, 41, 59, 0.75);
    --line: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --emerald: #10b981;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.14), transparent 34rem),
        radial-gradient(circle at 86% 12%, rgba(20, 184, 166, 0.13), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::selection {
    background: rgba(6, 182, 212, 0.35);
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(30, 41, 59, 0.96);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    color: white;
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 18px 44px rgba(20, 184, 166, 0.34);
}

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

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

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

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

.nav-link,
.mobile-nav-link {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #22d3ee;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.header-search input,
.mobile-search input,
.search-page-form input,
.category-filter-input {
    border: 1px solid rgba(71, 85, 105, 0.9);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.84);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    width: 250px;
    padding: 10px 14px;
}

.mobile-search input,
.search-page-form input,
.category-filter-input {
    width: 100%;
    padding: 14px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.category-filter-input:focus {
    border-color: rgba(34, 211, 238, 0.9);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
    background: rgba(15, 23, 42, 0.98);
}

.header-search button,
.mobile-search button,
.search-page-form button {
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: rgba(30, 41, 59, 0.85);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(30, 41, 59, 0.96);
    background: rgba(15, 23, 42, 0.98);
}

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

.mobile-panel-inner {
    padding: 16px 0 18px;
}

.mobile-nav {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.45);
}

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

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-shade-left {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.82) 42%, transparent 78%);
}

.hero-shade-bottom {
    background: linear-gradient(0deg, #020617, transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 9px 16px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.14);
    color: #22d3ee;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.hero-title {
    margin: 0 0 18px;
    color: white;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.hero-desc {
    max-width: 660px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.75;
}

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

.hero-meta span,
.detail-tags a,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #cbd5e1;
    font-size: 13px;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

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

.primary-button,
.ghost-button,
.wide-button,
.panel-link,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.primary-button,
.wide-button {
    padding: 13px 24px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.22);
}

.primary-button:hover,
.wide-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 42px rgba(20, 184, 166, 0.32);
}

.ghost-button {
    padding: 12px 20px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.65);
}

.ghost-button:hover {
    color: #22d3ee;
    border-color: rgba(34, 211, 238, 0.45);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    color: white;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
    cursor: pointer;
    transition: width 0.24s ease, background 0.24s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--cyan);
}

.content-section {
    padding: 56px 0;
}

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

.section-heading span,
.page-hero span {
    display: inline-flex;
    margin-bottom: 8px;
    color: #22d3ee;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: white;
    letter-spacing: -0.035em;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 38px);
}

.section-link,
.panel-link {
    min-width: max-content;
    padding: 10px 14px;
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.18);
}

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

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 18px;
}

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
}

.ranking-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.3);
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.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.55s ease, filter 0.55s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.08);
    filter: saturate(1.1) brightness(1.05);
}

.card-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent 48%);
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: rgba(6, 182, 212, 0.82);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-badge,
.rank-number {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 800;
}

.card-badge {
    left: 10px;
    top: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 9px;
    background: rgba(6, 182, 212, 0.82);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-number {
    right: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-body {
    padding: 14px;
}

.card-meta {
    justify-content: space-between;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 16px;
    line-height: 1.35;
    color: white;
}

.card-body h3 a:hover {
    color: #22d3ee;
}

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

.tag-row span {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 11px;
}

.movie-card-large .poster-link {
    aspect-ratio: 16 / 9;
}

.movie-card-large .card-body h3 {
    font-size: 22px;
}

.horizontal-list {
    display: grid;
    gap: 14px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: stretch;
}

.movie-card-horizontal .poster-link {
    aspect-ratio: auto;
    height: 100%;
    min-height: 116px;
}

.movie-card-horizontal .card-body {
    align-self: center;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
}

.ranking-panel,
.text-panel,
.info-panel,
.poster-panel,
.search-page-panel,
.filter-panel,
.category-card,
.framed-section {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.48));
    box-shadow: var(--shadow);
}

.ranking-panel {
    align-self: start;
    padding: 22px;
    position: sticky;
    top: 92px;
}

.ranking-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.ranking-list {
    display: grid;
    gap: 12px;
}

.ranking-list .movie-card-rank {
    display: grid;
    grid-template-columns: 76px 1fr;
}

.ranking-list .poster-link {
    aspect-ratio: 1 / 1.25;
}

.ranking-list .card-body {
    padding: 10px 12px;
}

.ranking-list .tag-row,
.ranking-list .card-body p {
    display: none;
}

.panel-link {
    width: 100%;
    margin-top: 18px;
}

.framed-section {
    padding: 34px;
    margin: 20px 0 36px;
}

.page-main {
    padding: 34px 0 56px;
}

.page-hero {
    min-height: 260px;
    display: flex;
    align-items: end;
    margin-bottom: 34px;
    padding: 42px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.18), transparent 42%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.58));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 62px);
}

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

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

.breadcrumb a:hover {
    color: #22d3ee;
}

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

.category-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 240px 1fr;
}

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

.category-card-cover img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-card-cover img {
    transform: scale(1.07);
}

.category-card-cover span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 13px;
    border-radius: 999px;
    color: white;
    background: rgba(6, 182, 212, 0.86);
    font-weight: 800;
}

.category-card-body {
    padding: 24px;
}

.category-card-body h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.category-card-body p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.75;
}

.mini-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.mini-link-row a {
    padding: 6px 9px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.7);
    font-size: 12px;
}

.filter-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    margin-bottom: 10px;
}

.filter-chip {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    padding: 9px 14px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    color: white;
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(6, 182, 212, 0.28);
}

.empty-state {
    padding: 60px 24px;
    text-align: center;
    color: var(--muted);
}

.empty-state h2 {
    margin: 0 0 10px;
    color: white;
}

.search-page-panel {
    padding: 22px;
    margin-bottom: 26px;
}

.search-page-form input {
    font-size: 17px;
}

.search-page-form button {
    min-width: 120px;
    padding: 14px 20px;
}

.detail-hero {
    min-height: 640px;
    display: flex;
    align-items: end;
    padding: 34px 0 56px;
    background-size: cover;
    background-position: center;
}

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

.detail-hero-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: end;
    gap: 34px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.detail-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-copy h1 {
    max-width: 900px;
    margin-bottom: 18px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.02;
}

.detail-one-line {
    max-width: 860px;
    margin: 0 0 22px;
    color: #cbd5e1;
    font-size: 20px;
    line-height: 1.75;
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-tags {
    margin-bottom: 26px;
}

.detail-tags a:hover {
    color: #22d3ee;
    border-color: rgba(34, 211, 238, 0.4);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    padding: 46px 0 10px;
}

.detail-main,
.detail-sidebar {
    display: grid;
    gap: 24px;
    align-content: start;
}

.player-section h2,
.text-panel h2,
.info-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: white;
    background:
        radial-gradient(circle, rgba(6, 182, 212, 0.26), transparent 24rem),
        rgba(2, 6, 23, 0.44);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    padding-left: 4px;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    box-shadow: 0 20px 48px rgba(6, 182, 212, 0.36);
    font-size: 32px;
}

.player-message {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    padding: 9px 13px;
    border-radius: 999px;
    color: white;
    background: rgba(239, 68, 68, 0.86);
    font-size: 14px;
}

.text-panel,
.info-panel,
.poster-panel {
    padding: 24px;
}

.text-panel p {
    margin: 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.9;
}

.info-panel dl {
    display: grid;
    gap: 0;
    margin: 0 0 22px;
}

.info-panel div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-panel dt {
    color: var(--muted);
}

.info-panel dd {
    margin: 0;
    color: white;
    font-weight: 800;
    text-align: right;
}

.wide-button {
    width: 100%;
}

.poster-panel img {
    border-radius: 18px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid rgba(30, 41, 59, 0.96);
    background: rgba(15, 23, 42, 0.86);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding: 44px 0;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: white;
    font-size: 16px;
}

.footer-grid p,
.footer-links a {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.footer-brand p {
    margin: 16px 0 0;
}

.footer-links {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a:hover {
    color: #22d3ee;
}

.footer-bottom {
    padding: 18px 0 26px;
    border-top: 1px solid rgba(30, 41, 59, 0.96);
    color: var(--muted-2);
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

[hidden] {
    display: none !important;
}

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

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

    .featured-grid,
    .split-section,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }

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

@media (max-width: 760px) {
    .site-container {
        width: min(100% - 22px, 1280px);
    }

    .brand-text small {
        display: none;
    }

    .hero {
        min-height: 650px;
        height: 78vh;
    }

    .hero-shade-left {
        background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.84));
    }

    .hero-arrow {
        top: auto;
        bottom: 82px;
        width: 42px;
        height: 42px;
        font-size: 30px;
    }

    .hero-prev {
        left: 18px;
    }

    .hero-next {
        right: 18px;
    }

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

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

    .movie-card-horizontal {
        grid-template-columns: 112px 1fr;
    }

    .movie-card-horizontal .card-body p,
    .movie-card-horizontal .tag-row {
        display: none;
    }

    .framed-section,
    .page-hero,
    .text-panel,
    .info-panel,
    .poster-panel {
        padding: 20px;
        border-radius: 20px;
    }

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

    .category-card-cover {
        min-height: 220px;
    }

    .detail-hero {
        min-height: auto;
        padding: 24px 0 34px;
    }

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

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

    .detail-copy h1 {
        font-size: 40px;
    }

    .detail-one-line {
        font-size: 17px;
    }

    .search-page-form {
        display: grid;
    }
}

@media (max-width: 430px) {
    .movie-grid,
    .catalog-grid,
    .ranking-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-desc {
        font-size: 16px;
    }
}
