:root {
    --bg: #f8fafc;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --text: #111827;
    --muted: #64748b;
    --line: rgba(103, 232, 249, 0.28);
    --cyan: #0891b2;
    --cyan-soft: #cffafe;
    --blue: #2563eb;
    --shadow: 0 24px 60px rgba(8, 145, 178, 0.16);
    --radius: 24px;
}

* {
    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(--text);
    background: linear-gradient(135deg, #f8fafc 0%, #ecfeff 46%, #eff6ff 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(14, 116, 144, 0.08);
}

.site-nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    box-shadow: 0 14px 30px rgba(8, 145, 178, 0.28);
}

.brand-name {
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #0891b2, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #334155;
    font-weight: 700;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--cyan);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(236, 254, 255, 0.8);
}

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

.hero {
    position: relative;
    min-height: 760px;
    padding: 110px 0 44px;
    overflow: hidden;
}

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

.hero-glow-one {
    width: 300px;
    height: 300px;
    top: 110px;
    left: 7%;
    background: rgba(34, 211, 238, 0.32);
    animation: pulseGlow 6s ease-in-out infinite;
}

.hero-glow-two {
    width: 420px;
    height: 420px;
    right: -60px;
    bottom: 110px;
    background: rgba(37, 99, 235, 0.18);
    animation: pulseGlow 7s ease-in-out infinite 1s;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.56;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.78;
    }
}

.hero-slides {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 520px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 42px;
    align-items: center;
    padding: 52px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 36px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    overflow: hidden;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.42), transparent 28%);
    pointer-events: none;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    padding: 8px 14px;
    margin-bottom: 22px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 30px rgba(8, 145, 178, 0.12);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, #0e7490, #2563eb, #0891b2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 680px;
    margin: 0;
    color: #475569;
    font-size: clamp(1rem, 2vw, 1.28rem);
    line-height: 1.9;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.hero-chip-row a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #0e7490;
    border: 1px solid rgba(103, 232, 249, 0.42);
    font-weight: 700;
    font-size: 0.86rem;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    padding: 7px 12px;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-tile:hover,
.ranking-card:hover {
    transform: translateY(-4px);
}

.ghost-button {
    color: #0e7490;
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(103, 232, 249, 0.52);
}

.small-button {
    min-height: 44px;
    padding: 0 18px;
}

.hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #cffafe, #dbeafe);
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.22);
}

.hero-poster img,
.poster-frame img,
.detail-poster img,
.ranking-card img,
.rank-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-arrow {
    position: absolute;
    top: 44%;
    z-index: 4;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(103, 232, 249, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #0f172a;
    font-size: 2.2rem;
    line-height: 1;
    box-shadow: 0 18px 40px rgba(8, 145, 178, 0.16);
}

.hero-prev {
    left: max(20px, calc((100% - 1280px) / 2));
}

.hero-next {
    right: max(20px, calc((100% - 1280px) / 2));
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.22);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.hero-search {
    position: relative;
    z-index: 5;
    margin-top: 24px;
}

.hero-search-card {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(103, 232, 249, 0.42);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-search-card span {
    color: #0e7490;
    font-weight: 900;
}

.hero-search-card input,
.catalog-tools input,
.catalog-tools select {
    width: 100%;
    border: 2px solid rgba(103, 232, 249, 0.42);
    border-radius: 16px;
    outline: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

.hero-search-card input {
    min-height: 48px;
    padding: 0 16px;
}

.hero-search-card input:focus,
.catalog-tools input:focus,
.catalog-tools select:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
}

.hero-chip-row {
    margin-top: 16px;
}

.hero-chip-row a {
    padding: 8px 13px;
}

.section-block {
    padding: 74px 0;
}

.soft-section {
    background: rgba(255, 255, 255, 0.54);
    border-block: 1px solid rgba(103, 232, 249, 0.28);
}

.section-title {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
}

.left-title {
    margin-left: 0;
    text-align: left;
}

.section-title h2,
.catalog-tools h2,
.page-hero h1,
.detail-info-card h1,
.content-card h2 {
    margin: 8px 0 0;
    color: #0f172a;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-title h2,
.catalog-tools h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-title p,
.page-hero p,
.feature-panel p,
.content-card p,
.site-footer p {
    color: var(--muted);
    line-height: 1.86;
}

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

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

.category-tile {
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 7px;
    padding: 22px;
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 20px 48px rgba(8, 145, 178, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slim-tile {
    min-height: 126px;
}

.tile-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.32s ease;
}

.category-tile:hover .tile-bg {
    transform: scale(1.08);
}

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

.category-tile strong {
    font-size: 1.18rem;
}

.category-tile em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 32px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 58px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(103, 232, 249, 0.28);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    box-shadow: 0 18px 45px rgba(8, 145, 178, 0.14);
}

.rank-number,
.ranking-index {
    color: #0891b2;
    font-weight: 900;
    font-size: 1.15rem;
}

.rank-row img {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.rank-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rank-info strong,
.ranking-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info em,
.ranking-copy em,
.ranking-copy small {
    color: #64748b;
    font-style: normal;
}

.rank-heat,
.ranking-action {
    color: #0891b2;
    font-weight: 800;
}

.text-link {
    display: inline-flex;
    margin-top: 20px;
    color: #0891b2;
    font-weight: 900;
}

.feature-panel,
.content-card,
.detail-info-card,
.catalog-tools,
.page-hero,
.breadcrumb-bar {
    border: 1px solid rgba(103, 232, 249, 0.34);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.feature-panel {
    min-height: 360px;
    padding: 38px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(207, 250, 254, 0.7));
}

.feature-panel h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
    margin: 12px 0 12px;
}

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

.page-hero {
    margin-top: 28px;
    padding: 52px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(236, 254, 255, 0.72));
}

.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.page-hero p {
    max-width: 740px;
    margin: 16px auto 0;
    font-size: 1.08rem;
}

.catalog-tools {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr;
    gap: 24px;
    align-items: end;
    padding: 24px;
    margin-bottom: 26px;
}

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

.catalog-tools label {
    display: grid;
    gap: 7px;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 800;
}

.catalog-tools input,
.catalog-tools select {
    min-height: 44px;
    padding: 0 12px;
}

.catalog-status {
    grid-column: 1 / -1;
    color: #0891b2;
    font-weight: 800;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(103, 232, 249, 0.32);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(8, 145, 178, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    border-color: rgba(34, 211, 238, 0.72);
    box-shadow: 0 26px 58px rgba(8, 145, 178, 0.18);
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #cffafe, #dbeafe);
    overflow: hidden;
}

.poster-frame img {
    transition: transform 0.36s ease;
}

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

.score-badge,
.type-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    font-size: 0.8rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.score-badge {
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.type-badge {
    left: 10px;
    bottom: 10px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    flex: 1;
}

.movie-card-meta,
.movie-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #64748b;
    font-size: 0.82rem;
}

.movie-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 900;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    margin: 0;
    min-height: 3.1em;
    color: #64748b;
    line-height: 1.55;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-foot {
    margin-top: auto;
}

.movie-card-foot strong {
    color: #0891b2;
}

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

.empty-state {
    display: none;
    padding: 30px;
    text-align: center;
    color: #64748b;
    border: 1px dashed rgba(8, 145, 178, 0.34);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
}

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

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

.ranking-card {
    display: grid;
    grid-template-columns: 76px 84px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(103, 232, 249, 0.32);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 38px rgba(8, 145, 178, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-card img {
    width: 84px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    object-fit: cover;
    background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.ranking-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.ranking-copy em {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.breadcrumb-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
    margin-top: 24px;
    color: #64748b;
}

.breadcrumb-bar a {
    color: #0891b2;
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) 390px;
    gap: 28px;
    align-items: stretch;
    margin-top: 24px;
}

.player-card {
    position: relative;
    min-height: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.24);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(8, 145, 178, 0.18), rgba(2, 6, 23, 0.68));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 24px 48px rgba(37, 99, 235, 0.34);
    font-size: 2.2rem;
    text-indent: 5px;
}

.detail-info-card {
    padding: 24px;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.detail-info-card h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.detail-info-card p {
    color: #475569;
    line-height: 1.75;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.detail-meta-grid span {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(236, 254, 255, 0.72);
}

.detail-meta-grid strong {
    color: #0e7490;
    font-size: 1.15rem;
}

.detail-meta-grid em {
    color: #64748b;
    font-style: normal;
    font-size: 0.82rem;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 28px;
}

.content-card {
    padding: 28px;
}

.content-card h2 {
    font-size: 1.8rem;
}

.content-card p {
    font-size: 1rem;
}

.genre-tags {
    margin-top: 18px;
}

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

.site-footer {
    padding: 54px 0;
    border-top: 1px solid rgba(103, 232, 249, 0.28);
    background: rgba(255, 255, 255, 0.68);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer h3 {
    margin: 0 0 14px;
    font-size: 1.05rem;
}

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

.footer-links a {
    color: #64748b;
}

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

[data-movie-card].is-hidden {
    display: none;
}

img.is-missing {
    opacity: 0;
}

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

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

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

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

    .detail-info-card {
        display: grid;
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 22px;
    }

    .detail-poster {
        margin-bottom: 0;
    }
}

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

    .nav-links {
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: var(--shadow);
    }

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

    .nav-links a {
        padding: 12px;
        border-radius: 14px;
    }

    .nav-links a:hover {
        background: #ecfeff;
    }

    .hero {
        min-height: auto;
        padding-top: 96px;
    }

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

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

    .hero-poster {
        width: min(280px, 100%);
        margin: 0 auto;
    }

    .hero-arrow {
        display: none;
    }

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

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

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

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

    .ranking-card {
        grid-template-columns: 52px 72px minmax(0, 1fr);
    }

    .ranking-action {
        display: none;
    }
}

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

    .site-nav {
        min-height: 66px;
    }

    .brand-name {
        font-size: 1.08rem;
    }

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

    .hero-slides {
        min-height: 680px;
        width: min(100% - 22px, 1180px);
    }

    .hero-slide {
        border-radius: 26px;
        padding: 22px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

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

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

    .movie-grid,
    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

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

    .movie-card p {
        font-size: 0.84rem;
    }

    .rank-row {
        grid-template-columns: 40px 52px minmax(0, 1fr);
    }

    .rank-heat {
        display: none;
    }

    .page-hero {
        padding: 34px 20px;
    }

    .detail-info-card {
        display: block;
    }

    .detail-poster {
        width: min(240px, 100%);
        margin: 0 auto 20px;
    }

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

    .content-card {
        padding: 22px;
    }

    .ranking-card {
        grid-template-columns: 42px 58px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .ranking-card img {
        width: 58px;
    }
}
