:root {
    --rose: #f43f5e;
    --pink: #db2777;
    --amber: #f59e0b;
    --orange: #f97316;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --purple: #7c3aed;
    --slate: #334155;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 16px 45px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 26px 70px rgba(15, 23, 42, 0.18);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 13px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 10px 26px rgba(244, 63, 94, 0.35);
}

.logo-text {
    font-size: 22px;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: var(--gray-700);
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

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

.top-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--gray-900);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.top-search button,
.mobile-search button,
.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: var(--white);
    background: linear-gradient(90deg, var(--rose), var(--pink));
    cursor: pointer;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(244, 63, 94, 0.55);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--gray-900);
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--gray-200);
    padding: 16px 24px 22px;
    background: var(--white);
}

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

.mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 11px 16px;
}

.mobile-links,
.mobile-categories {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.mobile-categories {
    grid-template-columns: repeat(2, 1fr);
}

.mobile-categories a {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--gray-100);
    color: var(--gray-700);
}

.hero-section {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 52%, #fffbeb 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image: radial-gradient(rgba(244, 63, 94, 0.12) 1px, transparent 1px);
    background-size: 26px 26px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    min-height: 650px;
    margin: 0 auto;
    padding: 64px 24px 82px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
    gap: 50px;
    align-items: center;
}

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

.hero-badge,
.hero-copy .hero-stats,
.movie-meta-line,
.tag-row,
.detail-meta,
.crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.hero-badge {
    width: fit-content;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--gray-700);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rose);
    box-shadow: 0 0 0 6px rgba(244, 63, 94, 0.14);
}

.hero-copy h1 {
    margin: 24px 0 20px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy h1 span {
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    margin: 0 0 28px;
    color: var(--gray-500);
    font-size: 20px;
}

.hero-search {
    max-width: 560px;
    padding: 8px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 13px 18px;
    border-color: transparent;
}

.hero-search button {
    padding: 13px 22px;
}

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

.primary-button,
.secondary-button,
.section-more,
.text-link,
.ranking-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 13px 24px;
    color: var(--white);
    background: linear-gradient(90deg, var(--rose), var(--pink));
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.24);
}

.secondary-button {
    padding: 13px 24px;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.primary-button:hover,
.secondary-button:hover,
.section-more:hover,
.text-link:hover,
.ranking-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.hero-stats {
    gap: 20px;
}

.hero-stats div {
    min-width: 112px;
    padding-right: 20px;
    border-right: 1px solid rgba(55, 65, 81, 0.16);
}

.hero-stats div:last-child {
    border-right: 0;
}

.hero-stats strong {
    display: block;
    font-size: 30px;
    line-height: 1.1;
}

.hero-stats span {
    color: var(--gray-500);
    font-size: 14px;
}

.hero-showcase {
    position: relative;
    min-height: 490px;
}

.hero-slides {
    position: relative;
    min-height: 470px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 0.78fr 1fr;
    gap: 22px;
    align-items: end;
    opacity: 0;
    transform: translateX(26px) scale(0.98);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-poster {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-lg);
}

.hero-poster img,
.movie-poster img,
.ranking-cover img,
.detail-poster img,
.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 58%);
}

.hero-slide-body {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.hero-slide-body h2 {
    margin: 14px 0 12px;
    font-size: 30px;
    line-height: 1.2;
}

.hero-slide-body p {
    margin: 0 0 18px;
    color: var(--gray-500);
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.18);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--rose), var(--pink));
}

.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to top, var(--gray-50), transparent);
}

.section-block {
    max-width: var(--max);
    margin: 0 auto;
    padding: 72px 24px;
}

.white-block {
    max-width: none;
    background: var(--white);
}

.white-block > * {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

.soft-block {
    max-width: none;
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.soft-block > * {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    margin-bottom: 34px;
}

.section-heading.centered {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

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

.section-heading span,
.detail-text-grid span,
.page-hero span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--rose);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading h2,
.detail-text-grid h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.section-heading p,
.page-hero p {
    margin: 0;
    color: var(--gray-500);
}

.section-more,
.text-link,
.ranking-action {
    color: var(--rose);
}

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

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

.category-tile {
    position: relative;
    min-height: 178px;
    overflow: hidden;
    padding: 24px;
    border-radius: var(--radius-lg);
    color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.04));
}

.category-tile img {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.28;
    transform: scale(1.08);
}

.category-tile strong,
.category-tile em,
.category-icon {
    position: relative;
    z-index: 2;
}

.category-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    margin-bottom: 34px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 24px;
    font-weight: 900;
}

.category-tile strong {
    display: block;
    font-size: 23px;
}

.category-tile em {
    display: block;
    margin-top: 8px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.82);
}

.accent-rose { background: linear-gradient(135deg, #fb7185, #db2777); }
.accent-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.accent-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.accent-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.accent-pink { background: linear-gradient(135deg, #f472b6, #db2777); }
.accent-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.accent-cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.accent-slate { background: linear-gradient(135deg, #64748b, #0f172a); }

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card.is-hidden,
.ranking-item.is-hidden {
    display: none;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--gray-100);
}

.movie-poster img {
    transition: transform 0.45s ease;
}

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

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    font-weight: 800;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    font-size: 13px;
    background: linear-gradient(90deg, var(--rose), var(--pink));
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.96);
}

.movie-body {
    padding: 16px;
}

.movie-meta-line {
    gap: 8px;
    color: var(--gray-500);
    font-size: 12px;
}

.movie-meta-line span {
    display: inline-flex;
    align-items: center;
}

.movie-meta-line span + span::before {
    content: "";
    width: 4px;
    height: 4px;
    margin-right: 8px;
    border-radius: 50%;
    background: rgba(107, 114, 128, 0.35);
}

.movie-body h2 {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.32;
}

.movie-body h2 a:hover,
.ranking-content h2 a:hover {
    color: var(--rose);
}

.movie-body p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--gray-500);
    font-size: 14px;
}

.tag-row {
    gap: 8px;
}

.tag-row span,
.genre-cloud span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--rose);
    background: rgba(244, 63, 94, 0.1);
    font-size: 12px;
    font-weight: 700;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 94px 24px;
    color: var(--gray-900);
    background: linear-gradient(135deg, #fff1f2, #fdf2f8, #fffbeb);
}

.page-hero > div {
    max-width: var(--max);
    margin: 0 auto;
}

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

.slim-hero,
.search-hero,
.ranking-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
}

.category-hero {
    color: var(--white);
}

.category-hero span,
.category-hero p,
.category-hero .crumbs,
.category-hero .crumbs a {
    color: rgba(255, 255, 255, 0.88);
}

.crumbs {
    gap: 10px;
    color: var(--gray-500);
    font-size: 14px;
}

.crumbs a:hover {
    color: var(--rose);
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 30px;
    padding: 16px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.filter-search-wrap {
    flex: 1;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 12px 16px;
}

.filter-selects {
    display: flex;
    gap: 12px;
}

.filter-selects select {
    min-width: 150px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 92px 56px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.ranking-cover {
    width: 92px;
    height: 124px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--gray-100);
}

.ranking-index {
    color: var(--amber);
    font-size: 28px;
    font-weight: 900;
}

.ranking-content h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.ranking-content p {
    margin: 0 0 10px;
    color: var(--gray-500);
}

.ranking-action {
    padding: 10px 16px;
    background: rgba(244, 63, 94, 0.1);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    background: #0f172a;
    color: var(--white);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    filter: blur(8px);
    transform: scale(1.04);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.9));
}

.detail-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    margin: 0 auto;
    padding: 72px 24px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
}

.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 20px;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.12);
}

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

.player-section {
    padding-top: 58px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(244, 63, 94, 0.28), rgba(2, 6, 23, 0.62));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.big-play {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 20px 50px rgba(244, 63, 94, 0.36);
    font-size: 30px;
}

.player-overlay strong {
    font-size: 24px;
    text-align: center;
}

.detail-content {
    padding-top: 64px;
}

.detail-text-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.detail-text-grid article {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
}

.detail-text-grid p {
    margin: 0;
    color: var(--gray-700);
    font-size: 17px;
}

.genre-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 56px 24px 36px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
}

.footer-logo {
    color: var(--white);
    font-size: 20px;
}

.footer-brand p,
.site-footer p {
    color: #9ca3af;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.footer-socials span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

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

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

.footer-bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding: 22px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: #9ca3af;
    text-align: center;
}

@media (max-width: 1080px) {
    .top-search {
        display: none;
    }

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

    .hero-showcase {
        min-height: 430px;
    }

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

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

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

    .desktop-nav,
    .top-search {
        display: none;
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .logo-text {
        font-size: 19px;
    }

    .hero-section,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 44px 18px 74px;
        gap: 30px;
    }

    .hero-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
    }

    .hero-search input,
    .hero-search button {
        border-radius: 18px;
    }

    .hero-stats {
        gap: 12px;
    }

    .hero-stats div {
        min-width: 88px;
        padding-right: 12px;
    }

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

    .hero-poster {
        min-height: 360px;
    }

    .hero-slide-body {
        margin-top: -70px;
        position: relative;
        z-index: 2;
    }

    .section-block {
        padding: 54px 18px;
    }

    .section-heading.split,
    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-selects {
        flex-direction: column;
    }

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

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

    .movie-body {
        padding: 13px;
    }

    .movie-body h2 {
        font-size: 16px;
    }

    .movie-body p {
        min-height: 42px;
        font-size: 13px;
    }

    .ranking-item {
        grid-template-columns: 70px 44px 1fr;
    }

    .ranking-cover {
        width: 70px;
        height: 96px;
    }

    .ranking-action {
        grid-column: 3;
        width: fit-content;
    }

    .detail-inner {
        grid-template-columns: 1fr;
        padding: 44px 18px;
    }

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

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

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 44px 18px 28px;
    }
}

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

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.03em;
    }
}
