:root {
    color-scheme: light;
    --pink: #ec4899;
    --rose: #f43f5e;
    --orange: #f97316;
    --yellow: #f59e0b;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --cyan: #06b6d4;
    --green: #10b981;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: rgba(249, 168, 212, 0.36);
    --shadow: 0 18px 45px rgba(244, 114, 182, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #fff 32%, #fff7ed 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(251, 207, 232, 0.7);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--pink);
    background: #fdf2f8;
}

.top-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(244, 114, 182, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
}

.top-search input {
    width: 220px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 10px;
}

.top-search button,
.primary-btn,
.ghost-btn,
.filter-panel button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
}

.top-search button,
.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.24);
}

.top-search button {
    padding: 8px 16px;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--pink);
    background: #fdf2f8;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

main {
    flex: 1;
}

.hero-section {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ec4899 0%, #fb923c 48%, #facc15 100%);
}

.hero-section::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.32), transparent 28%), radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.22), transparent 30%);
    pointer-events: none;
}

.hero-section .stars,
.page-hero .stars {
    position: absolute;
    inset: 0;
    opacity: 0.22;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
    opacity: 0.92;
}

.hero-carousel {
    position: relative;
    min-height: 420px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 44px;
    align-items: center;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-copy h1,
.page-hero h1 {
    margin: 12px 0 18px;
    color: #fff;
    font-size: clamp(42px, 7vw, 80px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    text-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.hero-copy p,
.page-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    transition: 0.22s ease;
}

.primary-btn:hover,
.ghost-btn:hover,
.top-search button:hover {
    transform: translateY(-2px);
}

.ghost-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span,
.movie-play,
.play-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70px;
    height: 70px;
    transform: translate(-50%, -50%);
    color: var(--pink);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    font-size: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.hero-control-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 28px;
    backdrop-filter: blur(10px);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    transition: 0.2s ease;
}

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

.hero-search {
    display: flex;
    width: min(720px, 100%);
    margin-top: 26px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.hero-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 12px 18px;
}

.hero-search button {
    border: 0;
    padding: 12px 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

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

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

.section-heading span {
    display: block;
    margin-bottom: 6px;
    color: var(--pink);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
}

.section-heading a {
    color: var(--pink);
    font-weight: 900;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 207, 232, 0.62);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(236, 72, 153, 0.16);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f8, #ffedd5);
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.62));
}

.movie-duration {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    padding: 4px 9px;
    color: #fff;
    background: rgba(0, 0, 0, 0.64);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.movie-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%) scale(0.8);
    color: var(--pink);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    opacity: 0;
    transition: 0.22s ease;
}

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

.movie-info {
    padding: 18px;
}

.movie-title {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-title:hover {
    color: var(--pink);
}

.movie-desc {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #64748b;
    font-size: 13px;
}

.movie-meta + .movie-meta {
    margin-top: 7px;
}

.movie-meta a {
    color: var(--pink);
    font-weight: 800;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag,
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 10px;
    color: #be185d;
    background: #fce7f3;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.movie-card-compact .movie-info {
    padding: 14px;
}

.movie-card-compact .movie-title {
    font-size: 16px;
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 24px;
    color: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.16);
}

.category-card img,
.category-overview-card img {
    position: absolute;
    right: -10%;
    bottom: -16%;
    width: 58%;
    height: 82%;
    object-fit: cover;
    border-radius: 20px;
    opacity: 0.24;
    transform: rotate(-6deg);
}

.category-card strong,
.category-overview-card h2 {
    position: relative;
    z-index: 2;
    display: block;
    margin: 12px 0 8px;
    font-size: 25px;
    font-weight: 900;
}

.category-card em,
.category-overview-card p {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 250px;
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
    line-height: 1.7;
}

.category-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.category-samples {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(251, 207, 232, 0.62);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    transition: 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: 0 20px 46px rgba(236, 72, 153, 0.14);
}

.rank-number {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border-radius: 14px;
    font-size: 20px;
    font-weight: 900;
}

.rank-item img {
    width: 92px;
    height: 58px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-copy {
    min-width: 0;
}

.rank-copy strong,
.rank-copy em {
    display: block;
}

.rank-copy strong {
    color: #111827;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-copy em {
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-chip {
    padding: 5px 10px;
    color: #be185d;
    background: #fce7f3;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ec4899, #fb923c, #facc15);
}

.page-hero > div:last-child {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.soft-hero {
    background: linear-gradient(135deg, #ec4899, #fb923c, #facc15);
}

.filter-panel {
    width: min(1180px, calc(100% - 32px));
    margin: -36px auto 0;
    position: relative;
    z-index: 3;
    padding: 20px;
    border: 1px solid rgba(251, 207, 232, 0.72);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr));
    gap: 14px;
}

.filter-grid label {
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(244, 114, 182, 0.28);
    border-radius: 16px;
    outline: 0;
    background: #fff;
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.empty-state {
    margin: 18px 0 0;
    padding: 16px;
    color: #be185d;
    background: #fdf2f8;
    border-radius: 18px;
    font-weight: 800;
    text-align: center;
}

.detail-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--pink);
    font-weight: 800;
}

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

.detail-main,
.side-card {
    border: 1px solid rgba(251, 207, 232, 0.62);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.detail-main {
    overflow: hidden;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #050505;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
    cursor: pointer;
}

.player-cover.hidden {
    display: none;
}

.play-ring {
    width: 86px;
    height: 86px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    font-size: 34px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

.player-cover strong {
    font-size: clamp(22px, 4vw, 38px);
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.player-controls {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: 0.2s ease;
    pointer-events: none;
}

.player-shell:hover .player-controls,
.player-controls.active {
    opacity: 1;
    pointer-events: auto;
}

.player-controls button {
    width: 38px;
    height: 38px;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    cursor: pointer;
}

.detail-copy {
    padding: 28px;
}

.detail-copy .eyebrow {
    color: var(--pink);
}

.detail-copy h1 {
    margin: 10px 0 16px;
    color: #111827;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.1;
}

.detail-copy h2 {
    margin: 30px 0 12px;
    color: #111827;
    font-size: 24px;
}

.detail-copy p {
    color: #4b5563;
    line-height: 1.9;
}

.lead {
    font-size: 18px;
    color: #374151 !important;
}

.detail-meta,
.genre-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.detail-meta span {
    padding: 6px 12px;
    color: #475569;
    background: #f8fafc;
    border-radius: 999px;
    font-weight: 800;
}

.detail-side {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 96px;
}

.side-card {
    padding: 18px;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 16px;
}

.side-card h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 22px;
}

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

.full-btn {
    width: 100%;
}

.site-footer {
    margin-top: auto;
    padding: 46px 0 24px;
    border-top: 1px solid rgba(251, 207, 232, 0.72);
    background: linear-gradient(135deg, #fdf2f8, #ffedd5, #fef9c3);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 34px;
}

.footer-grid p {
    max-width: 520px;
    color: #64748b;
    line-height: 1.8;
}

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

.footer-grid a:not(.brand) {
    display: block;
    margin: 8px 0;
    color: #64748b;
    font-weight: 700;
}

.footer-grid a:not(.brand):hover {
    color: var(--pink);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 0;
    color: #64748b;
    font-size: 14px;
}

.gradient-blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.gradient-yellow { background: linear-gradient(135deg, #f59e0b, #f97316); }
.gradient-pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.gradient-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.gradient-purple { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.gradient-cyan { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.gradient-gray { background: linear-gradient(135deg, #334155, #0f172a); }
.gradient-slate { background: linear-gradient(135deg, #475569, #111827); }
.gradient-green { background: linear-gradient(135deg, #10b981, #059669); }
.gradient-indigo { background: linear-gradient(135deg, #6366f1, #2563eb); }
.gradient-amber { background: linear-gradient(135deg, #d97706, #ea580c); }
.gradient-orange { background: linear-gradient(135deg, #f97316, #fb923c); }
.gradient-black { background: linear-gradient(135deg, #111827, #3f3f46); }
.gradient-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }

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

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

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

    .detail-side {
        position: static;
    }
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav.open {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .hero-section {
        min-height: 760px;
    }

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

    .hero-carousel {
        min-height: 600px;
    }

    .hero-poster {
        max-width: 520px;
    }

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

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

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

@media (max-width: 560px) {
    .nav-wrap,
    .content-section,
    .detail-wrap,
    .filter-panel,
    .page-hero > div:last-child,
    .hero-inner,
    .footer-grid,
    .copyright {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 19px;
    }

    .hero-section {
        min-height: 700px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 38px;
    }

    .hero-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .hero-search button {
        width: 100%;
    }

    .movie-grid,
    .compact-grid,
    .catalog-grid,
    .category-grid,
    .category-overview-grid,
    .side-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-item {
        grid-template-columns: 42px 72px minmax(0, 1fr);
    }

    .rank-chip {
        display: none;
    }

    .detail-copy {
        padding: 22px;
    }

    .player-controls {
        opacity: 1;
        pointer-events: auto;
    }
}
