* {
    box-sizing: border-box;
}

:root {
    --pink: #ec4899;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --orange: #f97316;
    --dark: #111827;
    --muted: #6b7280;
    --line: #eceef5;
    --soft: #f8fafc;
    --shell: min(1180px, calc(100% - 32px));
    --shadow: 0 22px 60px rgba(17, 24, 39, 0.12);
    --radius: 24px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--dark);
    background: linear-gradient(180deg, #fff 0%, #fdf2f8 32%, #eef2ff 72%, #fff 100%);
    min-height: 100vh;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #fdf2f8, #ede9fe, #dbeafe);
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.nav-shell {
    width: var(--shell);
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 14px 28px rgba(139, 92, 246, 0.32);
}

.brand-name {
    font-size: 24px;
    background: linear-gradient(135deg, #db2777, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #db2777;
    background: rgba(236, 72, 153, 0.1);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fdf2f8;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #db2777;
    border-radius: 10px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 34px;
    background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.23), transparent 32%), radial-gradient(circle at right, rgba(59, 130, 246, 0.22), transparent 35%);
}

.hero-blur {
    position: absolute;
    border-radius: 999px;
    filter: blur(30px);
    opacity: 0.48;
    pointer-events: none;
}

.hero-blur-one {
    width: 260px;
    height: 260px;
    left: 8%;
    top: 18%;
    background: #f472b6;
}

.hero-blur-two {
    width: 320px;
    height: 320px;
    right: 4%;
    bottom: 8%;
    background: #60a5fa;
}

.hero-shell {
    position: relative;
    width: var(--shell);
    margin: 0 auto;
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(76, 29, 149, 0.86), rgba(219, 39, 119, 0.78));
    color: #fff;
    min-height: 560px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 44%), radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.16), transparent 24%);
    pointer-events: none;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: center;
    gap: 36px;
    padding: 58px;
    opacity: 0;
    transform: translateX(36px) 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;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #db2777;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.16);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
}

.hero h1,
.hero h2 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p {
    width: min(620px, 100%);
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.9;
}

.hero-tags,
.tag-row,
.genre-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 24px 0 28px;
}

.hero-tags span,
.tag-row span,
.genre-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span,
.genre-cloud span {
    color: #7c3aed;
    background: #f3e8ff;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 16px 30px rgba(139, 92, 246, 0.34);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.page-hero .btn-ghost,
.detail-intro .btn-ghost {
    color: #db2777;
    background: #fff;
}

.hero-visual {
    position: relative;
    display: block;
    height: 420px;
    border-radius: 32px;
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

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

.hero-score {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    padding: 9px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    font-weight: 900;
}

.hero-dots {
    position: absolute;
    left: 58px;
    bottom: 34px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.carousel-dot.is-active {
    width: 36px;
    background: #fff;
}

.quick-search {
    width: var(--shell);
    margin: -28px auto 0;
    position: relative;
    z-index: 4;
}

.home-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 44px rgba(17, 24, 39, 0.12);
}

.home-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0 16px;
    color: var(--dark);
    background: #fff;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #c084fc;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14);
}

.home-search button {
    min-width: 130px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    font-weight: 900;
    cursor: pointer;
}

.section-shell {
    width: var(--shell);
    margin: 0 auto;
    padding: 70px 0;
}

.narrow-shell {
    max-width: 920px;
}

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

.section-head h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.compact-head {
    align-items: center;
    margin-bottom: 20px;
}

.compact-head h2 {
    font-size: 28px;
}

.section-more {
    color: #db2777;
    font-weight: 900;
}

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

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(236, 72, 153, 0.1);
    box-shadow: 0 18px 46px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f8, #e0e7ff);
}

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

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

.poster-mask {
    position: absolute;
    inset: auto 14px 14px 14px;
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    font-weight: 900;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-mask {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ec4899);
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
}

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

.movie-meta-line,
.card-foot,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.movie-meta-line span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f8fafc;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.25;
}

.movie-card h3 a:hover {
    color: #db2777;
}

.movie-card p {
    margin: 0 0 14px;
    color: #5b6473;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-foot {
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.card-compact .movie-card-body {
    padding: 13px;
}

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

.card-compact p,
.card-compact .tag-row,
.card-compact .card-foot {
    display: none;
}

.category-band {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(139, 92, 246, 0.09), rgba(59, 130, 246, 0.08));
    border-block: 1px solid rgba(139, 92, 246, 0.1);
}

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

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 180px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 24px;
    color: #fff;
    background: var(--tile-bg);
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::after,
.category-overview-card::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -42px;
    bottom: -42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 26px 64px rgba(17, 24, 39, 0.2);
}

.category-tile strong,
.category-overview-card h2 {
    position: relative;
    z-index: 2;
    font-size: 24px;
}

.category-tile p,
.category-overview-card p,
.category-overview-card em {
    position: relative;
    z-index: 2;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
    font-style: normal;
}

.category-tile div {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.category-tile div span {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 800;
}

.two-column-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 32px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: auto 58px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(139, 92, 246, 0.1);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, border 0.2s ease;
}

.rank-row:hover {
    transform: translateX(5px);
    border-color: rgba(236, 72, 153, 0.26);
}

.rank-row img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
}

.list-rank {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-weight: 900;
}

.rank-title {
    display: block;
    font-weight: 900;
}

.rank-info {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.rank-heat {
    color: #db2777;
    font-weight: 900;
    padding-right: 8px;
}

.page-hero {
    width: var(--shell);
    margin: 42px auto 0;
    padding: 60px;
    border-radius: 34px;
    color: #fff;
    background: var(--page-hero-bg, linear-gradient(135deg, #111827, #7c3aed, #db2777));
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    top: -80px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
}

.small-page-hero,
.search-hero,
.rank-hero {
    background: linear-gradient(135deg, #111827, #7c3aed, #db2777);
}

.page-hero h1 {
    margin: 14px 0;
    font-size: clamp(38px, 6vw, 66px);
    letter-spacing: -0.06em;
}

.page-hero p {
    width: min(680px, 100%);
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.9;
}

.page-hero .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(139, 92, 246, 0.1);
    box-shadow: 0 18px 46px rgba(17, 24, 39, 0.08);
    margin-bottom: 26px;
}

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

.empty-state {
    display: none;
    padding: 30px;
    text-align: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--muted);
    font-weight: 900;
}

.empty-state.is-visible {
    display: block;
}

.detail-hero {
    width: var(--shell);
    margin: 42px auto 0;
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 36px;
    border-radius: 34px;
    color: #fff;
    background: radial-gradient(circle at 10% 10%, rgba(236, 72, 153, 0.36), transparent 30%), linear-gradient(135deg, #111827, #4c1d95, #be185d);
    box-shadow: var(--shadow);
}

.detail-cover {
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 800;
}

.crumbs a:hover {
    color: #fff;
}

.detail-intro h1 {
    margin: 18px 0 16px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.lead-text {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.9;
}

.detail-meta span {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

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

.detail-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.player-shell {
    padding-bottom: 26px;
}

.watch-stage {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.18);
    aspect-ratio: 16 / 9;
}

.watch-stage video {
    display: block;
    width: 100%;
    height: 100%;
    background: #020617;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: #fff;
    border: 0;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.22), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-symbol {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 22px 46px rgba(139, 92, 246, 0.42);
    font-size: 30px;
    padding-left: 5px;
}

.play-cover strong {
    font-size: 20px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding-top: 28px;
}

.detail-article,
.side-panel {
    border-radius: 28px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(139, 92, 246, 0.1);
    box-shadow: 0 18px 46px rgba(17, 24, 39, 0.08);
}

.detail-article h2,
.side-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.detail-article p {
    margin: 0 0 26px;
    color: #4b5563;
    line-height: 2;
    font-size: 16px;
}

.side-panel dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.side-panel dl div {
    display: grid;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.side-panel dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.side-panel dd {
    margin: 0;
    font-weight: 900;
}

.site-footer {
    margin-top: 50px;
    background: linear-gradient(135deg, #fdf2f8, #f5f3ff, #eff6ff);
    border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.footer-shell {
    width: var(--shell);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 0.6fr;
    gap: 28px;
    padding: 46px 0;
}

.footer-brand p {
    color: var(--muted);
    line-height: 1.8;
    max-width: 460px;
}

.footer-logo .brand-name {
    font-size: 20px;
}

.footer-logo .brand-mark {
    width: 36px;
    height: 36px;
}

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

.footer-links strong {
    margin-bottom: 4px;
}

.footer-links a {
    color: #4b5563;
    font-weight: 700;
}

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

.footer-bottom {
    width: var(--shell);
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--muted);
    font-weight: 800;
    border-top: 1px solid rgba(139, 92, 246, 0.12);
}

@media (max-width: 1100px) {
    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-link {
        text-align: center;
    }

    .hero-shell {
        min-height: 720px;
    }

    .hero-slides {
        min-height: 720px;
    }

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

    .hero-visual {
        height: 320px;
        transform: none;
    }

    .hero-dots {
        left: 32px;
    }

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

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

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

    .detail-cover {
        max-width: 360px;
        margin: 0 auto;
        width: 100%;
    }

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

@media (max-width: 560px) {
    :root {
        --shell: min(100% - 22px, 1180px);
    }

    .brand-name {
        font-size: 20px;
    }

    .hero {
        padding-top: 22px;
    }

    .hero-shell {
        border-radius: 24px;
        min-height: 680px;
    }

    .hero-slides {
        min-height: 680px;
    }

    .hero-slide {
        padding: 24px;
    }

    .hero p,
    .page-hero p,
    .lead-text {
        font-size: 16px;
    }

    .home-search {
        grid-template-columns: 1fr;
    }

    .section-shell {
        padding: 48px 0;
    }

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

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

    .rank-row {
        grid-template-columns: auto 52px 1fr;
    }

    .rank-heat {
        display: none;
    }

    .page-hero,
    .detail-hero {
        padding: 28px;
        border-radius: 24px;
    }

    .detail-article,
    .side-panel {
        padding: 22px;
    }
}
