:root {
    --bg: #fff7ed;
    --bg-soft: #fff1e7;
    --card: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --line: #f1e4d8;
    --red: #dc2626;
    --orange: #f97316;
    --amber: #f59e0b;
    --rose: #fb7185;
    --shadow: 0 18px 40px rgba(127, 29, 29, 0.13);
    --shadow-soft: 0 10px 24px rgba(127, 29, 29, 0.1);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 54%, #fff7ed 100%);
    -webkit-font-smoothing: antialiased;
}

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

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

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: 80;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(254, 215, 170, 0.7);
    box-shadow: 0 8px 28px rgba(127, 29, 29, 0.08);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red), var(--orange), var(--amber));
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.28);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 24px;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy em {
    margin-top: 5px;
    font-size: 12px;
    color: var(--muted);
    font-style: normal;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    color: #374151;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--red), var(--orange));
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.18);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff1f2;
    color: var(--red);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #7f1d1d;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 65% 50%, rgba(255, 255, 255, 0.22), transparent 34%), linear-gradient(0deg, rgba(17, 24, 39, 0.34), rgba(17, 24, 39, 0.2));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.05fr 0.62fr;
    gap: 44px;
    align-items: center;
}

.hero-copy {
    color: #ffffff;
    animation: fadeUp 0.7s ease both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
}

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

.hero-copy p {
    max-width: 720px;
    margin: 22px 0 0;
    font-size: 19px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.detail-tags span,
.tag-row span {
    color: #b91c1c;
    background: #fee2e2;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: 0.25s ease;
}

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

.btn-light {
    background: #ffffff;
    color: var(--red);
    box-shadow: 0 18px 40px rgba(127, 29, 29, 0.22);
}

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

.btn-solid {
    color: #ffffff;
    background: linear-gradient(90deg, var(--red), var(--orange));
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.2);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 26px 60px rgba(17, 24, 39, 0.32);
    transform: rotate(2deg);
}

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

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

.hero-poster span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.56);
    font-size: 13px;
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 4;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: transparent;
}

.hero-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-dots {
    display: flex;
    gap: 7px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.48);
}

.hero-dot.is-active {
    width: 24px;
    border-radius: 999px;
    background: #ffffff;
}

.home-search-band {
    position: relative;
    z-index: 5;
    margin-top: -34px;
}

.search-band-inner {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 480px);
    gap: 24px;
    align-items: center;
    padding: 26px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-band-inner h2,
.section-heading h2,
.page-hero h1,
.detail-content h1,
.detail-content h2 {
    margin: 0;
    color: #111827;
}

.search-band-inner h2 {
    font-size: 28px;
}

.search-band-inner p,
.section-heading p,
.page-hero p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.quick-search {
    display: flex;
    padding: 6px;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    background: #fff7ed;
}

.quick-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px;
}

.quick-search button {
    border: 0;
    border-radius: 14px;
    padding: 12px 22px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--red), var(--orange));
}

.section {
    padding: 72px 0;
}

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

.section-heading span,
.page-hero span,
.accent-inner span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 40px);
}

.section-heading > a,
.strip-title a {
    color: var(--red);
    font-weight: 900;
}

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

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

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

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

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

.movie-thumb {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.movie-thumb img,
.rank-thumb img,
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-thumb img,
.rank-item:hover .rank-thumb img,
.related-card:hover .related-thumb img {
    transform: scale(1.08);
}

.movie-cat,
.movie-year {
    position: absolute;
    top: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.movie-cat {
    left: 12px;
    background: linear-gradient(90deg, var(--red), var(--orange));
}

.movie-year {
    right: 12px;
    background: rgba(0, 0, 0, 0.58);
}

.movie-info {
    padding: 16px;
}

.movie-title {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.movie-info p {
    display: -webkit-box;
    min-height: 44px;
    margin: 10px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #8b5a4a;
    font-size: 12px;
    font-weight: 700;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff7ed;
}

.accent-section,
.ranking-band {
    background: linear-gradient(90deg, #dc2626, #f97316, #f59e0b);
}

.accent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: #ffffff;
}

.accent-inner span,
.light-heading span,
.accent-inner p,
.light-heading p,
.light-heading h2 {
    color: #ffffff;
}

.accent-inner h2 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(30px, 4.5vw, 48px);
    line-height: 1.15;
}

.accent-inner p {
    max-width: 680px;
    margin-top: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #dc2626, #f97316 58%, #f59e0b);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card strong,
.category-card em {
    position: relative;
    z-index: 2;
    display: block;
}

.category-card strong {
    font-size: 24px;
}

.category-card em {
    max-width: 240px;
    margin-top: 10px;
    font-size: 14px;
    font-style: normal;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.category-card img {
    position: absolute;
    right: -22px;
    bottom: -38px;
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 18px;
    opacity: 0.38;
    transform: rotate(7deg);
}

.category-glow {
    position: absolute;
    inset: auto -40px -80px auto;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(2px);
}

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

.movie-card-wide {
    display: grid;
    grid-template-columns: 210px 1fr;
    align-items: stretch;
}

.movie-card-wide .movie-title {
    min-height: auto;
    font-size: 20px;
}

.wide-thumb {
    aspect-ratio: auto;
    height: 100%;
    min-height: 148px;
}

.ranking-band {
    padding-bottom: 88px;
}

.rank-grid,
.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rank-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

.rank-thumb {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: #fee2e2;
}

.rank-copy a {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-weight: 900;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-copy p {
    display: -webkit-box;
    margin: 8px 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-copy span {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0;
    color: #ffffff;
    background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.28), transparent 30%), linear-gradient(90deg, #b91c1c, #f97316, #f59e0b);
}

.page-hero h1 {
    max-width: 850px;
    color: #ffffff;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.compact-hero {
    padding: 76px 0;
}

.category-sections {
    display: grid;
    gap: 42px;
}

.category-strip {
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
}

.strip-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.strip-title h2 {
    margin: 0;
    font-size: 26px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid #fed7aa;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

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

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    outline: 0;
    padding: 0 13px;
    color: #111827;
    background: #fffaf4;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.searchable-card.is-hidden {
    display: none;
}

.full-rank-list {
    grid-template-columns: 1fr;
}

.rank-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
    align-items: center;
}

.rank-number {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: var(--shadow-soft);
}

.detail-page {
    padding: 36px 0 82px;
}

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

.detail-main {
    min-width: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.player-card,
.detail-content,
.side-card,
.info-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.player-card {
    overflow: hidden;
}

.video-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #030712;
}

.video-box video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #030712;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--red), var(--orange));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    transition: transform 0.25s ease;
}

.player-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.player-button span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--red);
    background: #ffffff;
}

.player-button strong {
    font-size: 18px;
}

.detail-content {
    margin-top: 24px;
    padding: 28px;
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.detail-content h1 {
    margin-top: 12px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
}

.pill {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: #b91c1c;
    background: #fee2e2;
    font-size: 13px;
    font-weight: 900;
}

.lead-text {
    margin: 18px 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.detail-content section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f3e5d8;
}

.detail-content h2,
.side-card h2,
.info-card h2 {
    font-size: 22px;
}

.detail-content p,
.info-card p {
    color: #374151;
    line-height: 1.9;
    text-align: justify;
}

.detail-sidebar {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 104px;
}

.side-card {
    padding: 18px;
}

.movie-profile img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 18px;
    background: #fee2e2;
}

.movie-profile dl {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
}

.movie-profile dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid #f3e5d8;
}

.movie-profile dt {
    color: var(--muted);
}

.movie-profile dd {
    margin: 0;
    text-align: right;
    font-weight: 800;
}

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

.related-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    align-items: center;
}

.related-thumb {
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    background: #fee2e2;
}

.related-copy strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-copy em {
    display: block;
    margin-top: 4px;
    color: var(--red);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.info-section {
    padding-bottom: 92px;
}

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

.info-card {
    padding: 28px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 34px;
    padding: 58px 0 34px;
}

.brand-footer .brand-copy strong {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-brand p {
    max-width: 420px;
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer a {
    display: block;
    margin-top: 10px;
    color: #d1d5db;
}

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

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .site-nav {
        gap: 2px;
    }

    .nav-link {
        padding: 9px 10px;
        font-size: 14px;
    }

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

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

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

    .detail-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .header-inner {
        min-height: 70px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow);
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        padding: 52px 0 96px;
    }

    .hero-poster {
        display: none;
    }

    .search-band-inner,
    .accent-inner,
    .section-heading,
    .detail-title-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .quick-search {
        width: 100%;
    }

    .movie-grid,
    .grid-three,
    .catalog-grid,
    .category-grid,
    .horizontal-row,
    .rank-grid,
    .filter-panel,
    .info-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-search {
        grid-column: 1 / -1;
    }

    .movie-card-wide {
        grid-template-columns: 160px 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}

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

    .brand-copy strong {
        font-size: 20px;
    }

    .brand-copy em {
        display: none;
    }

    .hero-carousel,
    .hero-slides,
    .hero-content {
        min-height: 560px;
    }

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

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

    .section {
        padding: 50px 0;
    }

    .movie-grid,
    .grid-three,
    .catalog-grid,
    .category-grid,
    .horizontal-row,
    .rank-grid,
    .filter-panel,
    .info-grid,
    .footer-grid,
    .detail-sidebar {
        grid-template-columns: 1fr;
    }

    .movie-card-wide,
    .rank-item,
    .rank-row {
        grid-template-columns: 1fr;
    }

    .wide-thumb {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .detail-content,
    .side-card,
    .info-card {
        padding: 20px;
    }
}
