:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-deep: #020617;
    --panel: rgba(30, 41, 59, 0.72);
    --panel-solid: #1e293b;
    --panel-soft: rgba(15, 23, 42, 0.62);
    --line: rgba(245, 158, 11, 0.22);
    --line-soft: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --soft: #94a3b8;
    --amber: #f59e0b;
    --amber-bright: #fbbf24;
    --amber-deep: #d97706;
    --shadow: 0 22px 60px rgba(2, 6, 23, 0.38);
    --radius: 18px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 34rem), linear-gradient(135deg, #0f172a 0%, #1e293b 46%, #0f172a 100%);
    color: var(--text);
}

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

img {
    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: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.site-nav {
    width: min(1180px, calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-logo span:last-child,
.footer-logo strong {
    font-size: 24px;
    background: linear-gradient(90deg, var(--amber-bright), var(--amber-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    color: var(--amber-bright);
    box-shadow: 0 0 36px rgba(245, 158, 11, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

.nav-links a,
.mobile-panel a,
.footer-links a {
    transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
    color: var(--amber-bright);
}

.mobile-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 28px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    border-top: 1px solid var(--line);
}

.mobile-panel a {
    display: block;
    padding: 11px 0;
    color: var(--muted);
}

.hero-carousel {
    position: relative;
    min-height: 70vh;
    height: 680px;
    overflow: hidden;
    background: var(--bg-deep);
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.02);
    background-size: cover;
    background-position: center;
    transition: opacity 850ms ease, transform 1400ms ease;
    pointer-events: none;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.86) 38%, rgba(15, 23, 42, 0.58) 100%), radial-gradient(circle at 80% 38%, rgba(245, 158, 11, 0.2), transparent 24rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: end;
    gap: 48px;
    padding: 120px 0 108px;
}

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

.hero-kicker,
.detail-meta,
.movie-meta,
.ranking-info div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-kicker span,
.hero-kicker em,
.detail-meta span,
.movie-badge,
.movie-year,
.ranking-info div span {
    border-radius: 999px;
    padding: 6px 11px;
    font-style: normal;
    font-size: 13px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid var(--line-soft);
}

.hero-kicker span,
.movie-badge {
    color: #fff;
    background: rgba(245, 158, 11, 0.92);
    border-color: rgba(251, 191, 36, 0.7);
}

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

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

.hero-tags span,
.tag-cloud span {
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--muted);
    background: rgba(30, 41, 59, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 14px;
}

.hero-copy p {
    max-width: 660px;
    margin: 22px 0 30px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.primary-btn {
    color: #fff;
    background: var(--amber);
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.22);
}

.primary-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--amber-deep);
    box-shadow: 0 18px 44px rgba(245, 158, 11, 0.34);
}

.ghost-btn {
    color: var(--amber-bright);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.34);
}

.ghost-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.72);
    background: rgba(245, 158, 11, 0.14);
}

.primary-btn.full {
    width: 100%;
    margin-top: 16px;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 2 / 3;
    box-shadow: var(--shadow), 0 0 0 1px rgba(245, 158, 11, 0.2);
    background: var(--panel-solid);
}

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

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

.hero-arrow,
.rail-btn {
    position: absolute;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.64);
    color: #fff;
    backdrop-filter: blur(12px);
    transition: background 180ms ease, transform 180ms ease;
}

.hero-arrow {
    top: 50%;
    width: 50px;
    height: 50px;
    transform: translateY(-50%);
    font-size: 34px;
}

.hero-arrow.left {
    left: 24px;
}

.hero-arrow.right {
    right: 24px;
}

.hero-arrow:hover,
.rail-btn:hover {
    background: rgba(245, 158, 11, 0.9);
    transform: translateY(-50%) scale(1.05);
}

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

.hero-dot {
    width: 22px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.74);
    transition: width 220ms ease, background 220ms ease;
}

.hero-dot.is-active {
    width: 44px;
    background: var(--amber);
}

.hero-search {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 58px;
    width: min(720px, calc(100% - 32px));
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.36);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
    box-shadow: 0 16px 48px rgba(2, 6, 23, 0.32);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    border: 0;
    outline: none;
    color: var(--text);
    background: rgba(15, 23, 42, 0.8);
}

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

.hero-search button {
    min-width: 112px;
    border: 0;
    color: #fff;
    background: var(--amber);
    font-weight: 800;
}

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    background: linear-gradient(90deg, var(--amber-bright), var(--amber-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--soft);
}

.section-heading span {
    height: 4px;
    flex: 1;
    margin-bottom: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.55), transparent);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line-soft);
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.18);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 24px 60px rgba(245, 158, 11, 0.14);
}

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

.wide-card .movie-poster {
    aspect-ratio: 16 / 10;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease, filter 500ms ease;
}

.movie-card:hover .movie-poster img,
.compact-card:hover img,
.related-card:hover img,
.ranking-item:hover img {
    transform: scale(1.08);
    filter: saturate(1.08);
}

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), transparent 62%);
    transition: opacity 220ms ease;
}

.movie-card:hover .movie-poster::after {
    opacity: 1;
}

.movie-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--amber);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 220ms ease, transform 220ms ease;
}

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

.movie-badge,
.movie-year {
    position: absolute;
    z-index: 3;
    top: 12px;
}

.movie-badge {
    left: 12px;
}

.movie-year {
    right: 12px;
}

.movie-info {
    padding: 16px;
}

.movie-info h3,
.ranking-info h3,
.detail-info h1,
.card-panel h2,
.category-panel h2 {
    margin: 0;
}

.movie-info h3 {
    font-size: 18px;
    line-height: 1.35;
}

.movie-info h3 a,
.ranking-info h3 a,
.compact-card span,
.related-card span {
    transition: color 180ms ease;
}

.movie-card:hover h3 a,
.ranking-item:hover h3 a,
.compact-card:hover span,
.related-card:hover span {
    color: var(--amber-bright);
}

.movie-info p {
    min-height: 44px;
    margin: 9px 0 12px;
    color: var(--soft);
    font-size: 14px;
    line-height: 1.55;
}

.movie-meta {
    justify-content: space-between;
    color: #64748b;
    font-size: 13px;
}

.rail-wrap {
    position: relative;
}

.movie-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 220px;
    gap: 16px;
    overflow-x: auto;
    padding: 6px 4px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
    display: none;
}

.rail-btn {
    top: 42%;
    width: 42px;
    height: 42px;
    font-size: 26px;
}

.rail-btn.left {
    left: -12px;
}

.rail-btn.right {
    right: -12px;
}

.compact-card,
.related-card {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.58);
    border: 1px solid var(--line-soft);
    scroll-snap-align: start;
    transition: transform 200ms ease, border-color 200ms ease;
}

.compact-card:hover,
.related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.48);
}

.compact-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 500ms ease;
}

.compact-card span,
.compact-card small,
.related-card span,
.related-card small {
    display: block;
    padding: 0 12px;
}

.compact-card span,
.related-card span {
    margin-top: 11px;
    color: var(--text);
    font-weight: 700;
    line-height: 1.4;
}

.compact-card small,
.related-card small {
    margin: 5px 0 13px;
    color: var(--soft);
}

.timeline {
    position: relative;
    display: grid;
    gap: 34px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 33px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--amber), transparent);
}

.timeline-block {
    position: relative;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 20px;
}

.timeline-year {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--panel-solid);
    border: 4px solid var(--amber);
    color: var(--amber-bright);
    font-weight: 900;
}

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

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    align-items: stretch;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line-soft);
    transition: transform 200ms ease, border-color 200ms ease;
}

.ranking-item:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.5);
}

.ranking-cover {
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.ranking-cover span {
    position: absolute;
    z-index: 2;
    left: 8px;
    top: 8px;
    border-radius: 10px;
    padding: 5px 8px;
    background: var(--amber);
    color: #fff;
    font-weight: 900;
}

.ranking-info {
    padding: 16px 16px 16px 0;
}

.ranking-info h3 {
    font-size: 20px;
}

.ranking-info p {
    margin: 10px 0 14px;
    color: var(--soft);
    line-height: 1.6;
}

.center-actions {
    justify-content: center;
    margin-top: 28px;
}

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

.category-card,
.category-panel,
.card-panel,
.search-panel {
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line-soft);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.16);
}

.category-card {
    display: block;
    padding: 18px;
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: 0 24px 54px rgba(245, 158, 11, 0.12);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    object-fit: cover;
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--amber-bright);
}

.category-card p,
.category-panel p,
.page-hero p,
.card-panel p {
    color: var(--muted);
    line-height: 1.75;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.18), transparent 24rem), linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.88));
    border-bottom: 1px solid var(--line);
}

.compact-hero .container {
    padding: 72px 0 60px;
}

.page-hero span,
.breadcrumb {
    color: var(--amber-bright);
    font-weight: 800;
}

.page-hero h1 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    font-size: 18px;
}

.category-panels {
    display: grid;
    gap: 24px;
}

.category-panel {
    padding: 24px;
}

.category-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.category-panel h2 {
    color: var(--amber-bright);
    font-size: 26px;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 160px 150px 160px;
    gap: 12px;
    margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    padding: 0 14px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(245, 158, 11, 0.66);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.search-panel {
    padding: 24px;
}

.empty-state {
    display: none;
    margin: 40px 0;
    color: var(--soft);
    text-align: center;
    font-size: 18px;
}

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

.is-hidden {
    display: none !important;
}

.detail-page {
    padding: 34px 0 0;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--soft);
    font-size: 14px;
}

.detail-breadcrumb a:hover {
    color: var(--amber-bright);
}

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

.detail-main {
    display: grid;
    gap: 22px;
}

.player-card,
.player-wrap {
    border-radius: var(--radius);
}

.player-card {
    background: #000;
    box-shadow: var(--shadow);
}

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

.player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.52));
    transition: opacity 200ms ease, visibility 200ms ease;
}

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

.play-core {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--amber);
    color: #fff;
    font-size: 36px;
    box-shadow: 0 18px 46px rgba(245, 158, 11, 0.34);
    transition: transform 200ms ease, background 200ms ease;
}

.player-overlay:hover .play-core {
    transform: scale(1.06);
    background: var(--amber-deep);
}

.player-overlay strong {
    max-width: min(720px, 90%);
    font-size: clamp(22px, 4vw, 38px);
    text-align: center;
}

.card-panel {
    padding: 24px;
}

.detail-info h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.16;
}

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

.tag-cloud {
    margin-bottom: 24px;
}

.card-panel h2 {
    margin-bottom: 12px;
    color: var(--amber-bright);
}

.one-line {
    font-style: italic;
    color: var(--soft) !important;
}

.detail-side {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 22px;
}

.side-poster img {
    width: 100%;
    border-radius: 14px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

.related-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    padding: 10px;
}

.related-card img {
    width: 74px;
    height: 104px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 500ms ease;
}

.related-card span,
.related-card small {
    padding: 0;
}

.related-card span {
    margin-top: 4px;
}

.site-footer {
    margin-top: 84px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
}

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

.site-footer p {
    max-width: 460px;
    color: var(--soft);
    line-height: 1.75;
}

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

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

.footer-links a {
    color: var(--soft);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #64748b;
    text-align: center;
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    width: 46px;
    height: 46px;
    display: none;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: var(--amber);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.28);
}

.back-top.is-active {
    display: grid;
}

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

    .mobile-toggle {
        display: block;
    }

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

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

    .hero-poster {
        display: none;
    }

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

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

    .category-grid,
    .ranking-grid,
    .timeline-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-side {
        position: static;
        grid-template-columns: 260px 1fr;
    }
}

@media (max-width: 760px) {
    .site-logo span:last-child {
        font-size: 20px;
    }

    .hero-carousel {
        height: 640px;
        min-height: 620px;
    }

    .hero-content {
        padding: 94px 0 130px;
        align-items: end;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-search {
        bottom: 64px;
    }

    .hero-arrow {
        top: auto;
        bottom: 116px;
        width: 42px;
        height: 42px;
    }

    .hero-arrow.left {
        left: 16px;
    }

    .hero-arrow.right {
        right: 16px;
    }

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

    .section-heading span {
        width: 100%;
        flex: none;
    }

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

    .movie-info {
        padding: 12px;
    }

    .movie-info p {
        min-height: 0;
    }

    .category-grid,
    .ranking-grid,
    .timeline-cards,
    .footer-grid,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 22px;
    }

    .timeline-block {
        grid-template-columns: 58px 1fr;
        gap: 12px;
    }

    .timeline-year {
        width: 46px;
        height: 46px;
        font-size: 12px;
        border-width: 3px;
    }

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

    .ranking-cover {
        min-height: 132px;
    }

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

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

    .category-panel-head {
        flex-direction: column;
    }

    .card-panel,
    .category-panel,
    .search-panel {
        padding: 18px;
    }

    .content-section {
        padding-top: 52px;
    }
}
