:root {
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --orange: #f97316;
    --red: #ef4444;
    --green: #16a34a;
    --blue: #2563eb;
    --teal: #0d9488;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --black: #020617;
    --white: #ffffff;
    --shadow: 0 15px 40px rgba(15, 23, 42, 0.13);
    --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
    --radius: 18px;
    --radius-lg: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 22%, #f8fafc 100%);
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.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(226, 232, 240, 0.9);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.header-inner {
    width: min(1280px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--gray-900);
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.35);
}

.brand-text {
    font-size: 18px;
    letter-spacing: -0.02em;
}

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

.nav-link {
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--gray-600);
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--amber-dark);
    background: #fffbeb;
}

.header-search {
    display: flex;
    align-items: center;
    width: min(340px, 28vw);
    padding: 4px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
}

.header-search input {
    min-width: 0;
    flex: 1;
    height: 38px;
    border: 0;
    outline: 0;
    padding: 0 12px;
    background: transparent;
}

.header-search button,
.big-search button,
.inline-filter button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: var(--white);
    font-weight: 700;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 18px rgba(245, 158, 11, 0.28);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

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

.mobile-nav,
.mobile-category-row {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    gap: 10px;
    padding: 12px 0;
    overflow-x: auto;
}

.mobile-category-row a {
    white-space: nowrap;
    color: var(--gray-600);
    font-size: 14px;
}

.hero-carousel {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: var(--black);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 52%, rgba(245, 158, 11, 0.2), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 44%, rgba(0, 0, 0, 0.14) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    min-height: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1280px;
    padding: 60px 420px 72px 0;
    color: var(--white);
}

.hero-region,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 800;
    color: var(--white);
    background: var(--amber);
    box-shadow: 0 12px 20px rgba(245, 158, 11, 0.28);
}

.hero-content h1 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags span,
.movie-tags span,
.detail-tags a {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #92400e;
    background: #fef3c7;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 900;
    transition: 0.22s ease;
}

.primary-btn {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 35px rgba(245, 158, 11, 0.36);
}

.primary-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 45px rgba(245, 158, 11, 0.42);
}

.ghost-btn {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-poster {
    position: absolute;
    right: max(32px, calc((100vw - 1280px) / 2));
    top: 50%;
    z-index: 3;
    width: min(320px, 27vw);
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    overflow: hidden;
    transform: translateY(-50%);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero-dot {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

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

.home-search-panel {
    width: min(1180px, calc(100% - 32px));
    margin: -38px auto 0;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 20px;
    align-items: center;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.home-search-panel strong {
    display: block;
    font-size: 20px;
    color: var(--gray-900);
}

.home-search-panel span {
    color: var(--gray-500);
}

.big-search,
.inline-filter,
.search-page-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.big-search input,
.inline-filter input,
.search-page-form input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0 18px;
    outline: 0;
    background: var(--white);
}

.page-stack {
    display: grid;
    gap: 64px;
    padding: 64px 0 88px;
}

.content-section {
    scroll-margin-top: 100px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: 30px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.1;
    color: var(--gray-900);
}

.section-more,
.text-link {
    color: var(--amber-dark);
    font-weight: 800;
}

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

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

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

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

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.movie-cover {
    position: relative;
    display: block;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #fde68a, #fed7aa);
}

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

.movie-card:hover .movie-cover img,
.category-overview-card:hover img,
.rank-row:hover img {
    transform: scale(1.08);
}

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 62%);
    transition: opacity 0.25s ease;
}

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

.cover-badge,
.cover-time {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    color: var(--white);
}

.cover-badge {
    top: 10px;
    left: 10px;
    font-weight: 800;
    background: var(--amber);
}

.cover-time {
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.68);
}

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

.movie-card-body h3 {
    min-height: 48px;
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.45;
    color: var(--gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body h3 a:hover,
.rank-info h2 a:hover,
.category-mini-links a:hover {
    color: var(--amber-dark);
}

.movie-card-body p {
    margin: 0 0 12px;
    color: var(--gray-600);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--gray-500);
    font-size: 13px;
}

.movie-card-large .large-cover {
    height: 330px;
}

.movie-card-large .movie-card-body h3 {
    min-height: auto;
    font-size: 21px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 240px 1fr;
}

.movie-card-horizontal .movie-cover {
    height: 100%;
    min-height: 210px;
}

.movie-card-horizontal .movie-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gradient-block {
    border-radius: 32px;
    padding: 34px;
}

.amber-block {
    background: linear-gradient(135deg, #ffedd5, #fef3c7, #fefce8);
}

.cyan-block {
    background: linear-gradient(135deg, #ecfeff, #eef2ff, #eff6ff);
}

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

.category-tile {
    min-height: 176px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 22px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-icon {
    font-size: 42px;
}

.category-tile strong {
    font-size: 18px;
    color: var(--gray-900);
}

.category-tile span:last-child {
    color: var(--gray-500);
    line-height: 1.65;
    font-size: 14px;
}

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

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

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

.recommend-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.recommend-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.recommend-rank,
.rank-num {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.recommend-row a {
    font-weight: 900;
    color: var(--gray-900);
}

.recommend-row p {
    margin: 5px 0 10px;
    color: var(--gray-600);
    line-height: 1.65;
}

.page-shell {
    padding: 36px 0 88px;
}

.page-hero {
    margin-bottom: 34px;
    padding: 42px;
    border-radius: 32px;
    color: var(--gray-900);
    background: linear-gradient(135deg, #fff7ed, #ffffff 48%, #eff6ff);
    box-shadow: var(--soft-shadow);
}

.page-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 880px;
    margin: 0;
    color: var(--gray-600);
    font-size: 17px;
    line-height: 1.8;
}

.category-page-hero,
.rank-hero {
    background: linear-gradient(135deg, #111827, #4c1d95 46%, #f59e0b);
    color: var(--white);
}

.category-page-hero p,
.rank-hero p {
    color: rgba(255, 255, 255, 0.84);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--gray-500);
    font-size: 14px;
    overflow-x: auto;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    padding: 18px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.category-cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #ffedd5;
}

.category-cover img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-cover span {
    position: absolute;
    left: 14px;
    bottom: 12px;
    font-size: 34px;
}

.category-overview-card h2 {
    margin: 2px 0 8px;
    color: var(--gray-900);
}

.category-overview-card p {
    margin: 0 0 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

.category-mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.category-mini-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 13px;
}

.filter-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 30px;
    padding: 18px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.filter-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.filter-line span {
    min-width: 42px;
    color: var(--gray-500);
    font-weight: 800;
}

.filter-line button {
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--gray-600);
    background: var(--gray-100);
}

.filter-line button.is-active,
.filter-line button:hover {
    color: var(--white);
    background: var(--amber);
}

.movie-list {
    display: grid;
    gap: 18px;
}

.slim-heading {
    margin-bottom: 18px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 116px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.rank-cover {
    display: block;
    height: 90px;
    overflow: hidden;
    border-radius: 14px;
    background: #ffedd5;
}

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

.rank-info h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-info p {
    margin: 0 0 8px;
    color: var(--gray-600);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-score {
    color: var(--amber-dark);
    white-space: nowrap;
}

.search-result-panel {
    min-height: 420px;
}

.search-page-form {
    max-width: 720px;
    margin-top: 24px;
}

.detail-main {
    padding: 34px 0 88px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 34px;
    align-items: center;
    padding: 34px;
    border-radius: 34px;
    color: var(--white);
    background:
        radial-gradient(circle at 86% 16%, rgba(245, 158, 11, 0.42), transparent 28%),
        linear-gradient(135deg, #111827, #312e81 55%, #0f172a);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 26px 68px rgba(0, 0, 0, 0.38);
    background: #ffedd5;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-info h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 840px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-meta-grid span {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.detail-tags {
    margin-bottom: 24px;
}

.player-section {
    margin-top: 38px;
    padding: 26px;
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.player-section h2 {
    margin: 0 0 18px;
    font-size: 28px;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    background: #000;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.14));
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    padding-left: 5px;
    font-size: 34px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 22px 45px rgba(245, 158, 11, 0.35);
}

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

.detail-text {
    padding: 28px;
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.detail-text h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.detail-text p {
    margin: 0 0 16px;
    color: var(--gray-700);
    line-height: 1.9;
}

.review-card {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.related-section {
    margin-top: 52px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 30px;
    padding: 44px 0 26px;
}

.footer-logo {
    color: var(--white);
}

.footer-brand p {
    max-width: 520px;
    margin: 14px 0 0;
    color: #9ca3af;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    color: #d1d5db;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

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

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 1080px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-content {
        padding-right: 300px;
    }

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

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

    .category-overview-grid,
    .detail-content-grid,
    .editor-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .container,
    .header-inner,
    .mobile-nav,
    .mobile-category-row,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 22px, 1280px);
    }

    .brand-text {
        font-size: 15px;
    }

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

    .hero-content {
        padding: 42px 0 220px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-poster {
        top: auto;
        right: 18px;
        bottom: 72px;
        width: 148px;
        transform: none;
        border-radius: 20px;
    }

    .home-search-panel {
        grid-template-columns: 1fr;
        margin-top: -26px;
    }

    .big-search,
    .inline-filter,
    .search-page-form {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .compact-grid,
    .lead-grid,
    .category-grid,
    .horizontal-grid,
    .side-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-cover {
        height: 180px;
    }

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

    .movie-card-body h3 {
        font-size: 14px;
        min-height: 42px;
    }

    .gradient-block,
    .page-hero,
    .detail-hero,
    .player-section,
    .detail-text {
        padding: 20px;
        border-radius: 24px;
    }

    .movie-card-horizontal,
    .category-overview-card,
    .detail-hero,
    .rank-row {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal .movie-cover {
        min-height: 220px;
    }

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

    .rank-score {
        justify-self: start;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .compact-grid,
    .lead-grid,
    .category-grid,
    .horizontal-grid,
    .side-grid {
        grid-template-columns: 1fr;
    }

    .movie-cover {
        height: 230px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 34px;
    }
}
