:root {
    --color-orange: #f97316;
    --color-pink: #ec4899;
    --color-red: #ef4444;
    --color-green: #10b981;
    --color-cyan: #06b6d4;
    --color-blue: #3b82f6;
    --color-purple: #8b5cf6;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.09);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--color-gray-900);
    background: var(--color-gray-50);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

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

.brand-text {
    font-size: 24px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-pink));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: white;
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.22);
    font-size: 14px;
}

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

.nav-link {
    padding: 10px 14px;
    color: var(--color-gray-700);
    border-radius: 999px;
    font-weight: 650;
    transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-orange);
    background: #fff7ed;
}

.header-search,
.mobile-search,
.hero-search {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.header-search input,
.mobile-search input,
.hero-search input {
    width: 220px;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 11px 14px 11px 18px;
    background: transparent;
}

.header-search button,
.mobile-search button,
.hero-search button {
    border: 0;
    color: white;
    background: linear-gradient(90deg, var(--color-orange), var(--color-pink));
    padding: 11px 16px;
    font-weight: 750;
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--color-gray-700);
    background: var(--color-gray-100);
    font-size: 22px;
}

.mobile-panel {
    border-top: 1px solid var(--color-gray-200);
    padding: 14px 16px 18px;
    background: white;
}

.mobile-search {
    margin-bottom: 12px;
}

.mobile-search input {
    width: 100%;
}

.mobile-nav {
    display: grid;
    gap: 8px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--color-gray-50);
    color: var(--color-gray-700);
    font-weight: 700;
}

.hero-section {
    position: relative;
    color: white;
    overflow: hidden;
    background: linear-gradient(135deg, #fb923c 0%, #ec4899 48%, #ef4444 100%);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.28), transparent 26%),
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.04));
}

.hero-container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    align-items: center;
    gap: 48px;
    padding-top: 84px;
    padding-bottom: 92px;
}

.hero-heading h1 {
    margin: 18px 0 20px;
    font-size: clamp(38px, 5.6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-heading p {
    max-width: 640px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2vw, 24px);
}

.pill,
.section-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: white;
    font-size: 14px;
    font-weight: 760;
    backdrop-filter: blur(12px);
}

.hero-search {
    width: min(100%, 520px);
    border: 0;
}

.hero-search input {
    flex: 1;
    width: auto;
}

.hero-search button {
    padding-inline: 22px;
}

.hero-stage {
    position: relative;
    min-height: 430px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 80px rgba(127, 29, 29, 0.24);
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
    backdrop-filter: blur(20px);
}

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

.hero-copy h2 {
    margin: 12px 0;
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 1.12;
}

.hero-copy p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
}

.hero-kicker {
    color: #fffbeb;
    font-weight: 800;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.button-light {
    color: var(--color-orange);
    background: white;
    box-shadow: 0 18px 35px rgba(127, 29, 29, 0.18);
}

.button-ghost {
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.button-gradient {
    color: white;
    background: linear-gradient(90deg, var(--color-orange), var(--color-pink));
}

.button.full {
    width: 100%;
}

.hero-poster {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    box-shadow: 0 28px 58px rgba(15, 23, 42, 0.25);
}

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

.hero-controls {
    position: absolute;
    right: 26px;
    bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: white;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 24px;
    line-height: 1;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.62;
}

.hero-dot.is-active {
    width: 26px;
    opacity: 1;
    background: white;
}

.stats-strip {
    background: white;
    box-shadow: 0 -20px 50px rgba(15, 23, 42, 0.04) inset;
}

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

.stats-grid article {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 96px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.stats-grid strong {
    color: var(--color-orange);
    font-size: 28px;
}

.stats-grid span {
    color: var(--color-gray-600);
    font-weight: 700;
}

.section-block {
    padding: 72px 0;
    background: white;
}

.section-muted {
    background: var(--color-gray-50);
}

.section-head {
    margin-bottom: 34px;
    text-align: center;
}

.section-head h2,
.page-hero h1,
.detail-main h1 {
    margin: 12px 0 10px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.section-head p,
.page-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--color-gray-600);
    font-size: 17px;
}

.section-label {
    color: white;
    background: linear-gradient(90deg, var(--color-orange), var(--color-pink));
}

.section-label.red {
    background: #fee2e2;
    color: #dc2626;
}

.section-label.green {
    background: linear-gradient(90deg, var(--color-green), #14b8a6);
}

.row-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    text-align: left;
}

.left-head {
    text-align: left;
}

.left-head p {
    margin-left: 0;
}

.text-link {
    color: var(--color-orange);
    font-weight: 800;
}

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

.category-tile,
.category-banner {
    display: block;
    min-height: 158px;
    padding: 24px;
    border-radius: 24px;
    color: white;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-banner:hover,
.movie-card:hover .movie-card-inner,
.wide-card:hover,
.rank-item:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-soft);
}

.category-tile span,
.category-banner h2 {
    display: block;
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 850;
}

.category-tile p,
.category-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.category-tile-0 {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.category-tile-1 {
    background: linear-gradient(135deg, #34d399, #059669);
}

.category-tile-2 {
    background: linear-gradient(135deg, #f472b6, #db2777);
}

.category-tile-3 {
    background: linear-gradient(135deg, #fb923c, #ea580c);
}

.category-tile-4 {
    background: linear-gradient(135deg, #22d3ee, #0891b2);
}

.category-tile-5 {
    background: linear-gradient(135deg, #f87171, #dc2626);
}

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

.movie-card {
    min-width: 0;
}

.movie-card[hidden],
.rank-item[hidden] {
    display: none;
}

.movie-card-inner {
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-gray-100), var(--color-gray-200));
}

.poster-frame img,
.wide-poster img,
.rank-item img,
.detail-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-card:hover img,
.wide-card:hover img,
.hero-poster:hover img {
    transform: scale(1.08);
}

.poster-frame img,
.wide-poster img,
.hero-poster img {
    transition: transform 0.45s ease;
}

.year-badge,
.type-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 850;
}

.year-badge {
    top: 10px;
    right: 10px;
    padding: 4px 9px;
    background: var(--color-orange);
}

.type-badge {
    left: 10px;
    bottom: 10px;
    padding: 5px 10px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(10px);
}

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

.movie-card-body h2,
.wide-card h2 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

.movie-card:hover h2,
.wide-card:hover h2,
.rank-item:hover strong {
    color: var(--color-orange);
}

.movie-meta {
    margin: 0 0 8px;
    color: var(--color-gray-500);
    font-size: 13px;
}

.movie-meta.large {
    font-size: 15px;
}

.movie-line {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--color-gray-600);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mini-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mini-tags span,
.tag-cloud span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--color-gray-700);
    background: var(--color-gray-100);
    font-size: 12px;
    font-weight: 700;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
}

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

.wide-grid.small {
    grid-template-columns: repeat(4, 1fr);
}

.wide-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
    padding: 12px;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wide-poster {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: var(--color-gray-100);
}

.wide-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--color-gray-600);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-panel,
.detail-side {
    align-self: start;
    padding: 22px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-card);
}

.rank-panel {
    position: sticky;
    top: 94px;
}

.rank-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rank-panel-head a {
    color: var(--color-orange);
    font-weight: 800;
}

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

.rank-list.compact .rank-item small {
    display: none;
}

.rank-item {
    display: grid;
    grid-template-columns: 46px 64px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 10px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-item img {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: var(--color-gray-100);
}

.rank-content {
    min-width: 0;
}

.rank-content strong,
.rank-content em,
.rank-content small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-content strong {
    font-size: 16px;
}

.rank-content em,
.rank-content small {
    color: var(--color-gray-500);
    font-style: normal;
    font-size: 13px;
}

.cta-section {
    padding: 70px 0;
    background: white;
}

.cta-card {
    padding: 42px;
    border-radius: 32px;
    color: white;
    text-align: center;
    background: linear-gradient(90deg, var(--color-orange), var(--color-pink));
    box-shadow: var(--shadow-soft);
}

.cta-card h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
}

.cta-card p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.page-hero {
    color: white;
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink), var(--color-red));
}

.page-hero .container {
    padding-top: 60px;
    padding-bottom: 60px;
}

.simple-hero,
.category-hero {
    position: relative;
    overflow: hidden;
}

.simple-hero::before,
.category-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 28%);
}

.simple-hero .container,
.category-hero .container {
    position: relative;
}

.page-hero p {
    margin-left: 0;
    color: rgba(255, 255, 255, 0.9);
}

.page-content {
    padding: 56px 0;
}

.category-overview-block {
    margin-bottom: 34px;
    padding: 24px;
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow-card);
}

.category-overview-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.category-banner {
    min-height: 132px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #fff7ed;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 12px;
    max-width: 820px;
    margin-top: 26px;
}

.filter-bar.expanded {
    grid-template-columns: minmax(240px, 1fr) 170px 170px 150px;
    max-width: 980px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 13px 16px;
    border-radius: 14px;
    color: var(--color-gray-900);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(127, 29, 29, 0.1);
}

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

.detail-page .breadcrumb {
    color: var(--color-gray-500);
}

.detail-page .breadcrumb a:hover {
    color: var(--color-orange);
}

.player-card {
    overflow: hidden;
    margin-bottom: 28px;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow-soft);
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.20), rgba(2, 6, 23, 0.66));
    font-weight: 850;
    font-size: 18px;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    display: inline-grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    color: var(--color-orange);
    background: white;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
}

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

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

.detail-main {
    padding: 28px;
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow-card);
}

.detail-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 168px;
    gap: 22px;
    align-items: start;
    margin-bottom: 26px;
}

.detail-title-row .pill {
    color: white;
    background: linear-gradient(90deg, var(--color-orange), var(--color-pink));
}

.detail-cover {
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    background: var(--color-gray-100);
    box-shadow: var(--shadow-card);
}

.detail-section {
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid var(--color-gray-200);
}

.detail-section h2,
.detail-side h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-section p {
    margin: 0;
    color: var(--color-gray-600);
    font-size: 16px;
}

.detail-side {
    position: sticky;
    top: 94px;
}

.detail-side .side-list {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
}

.detail-side .wide-card {
    grid-template-columns: 104px minmax(0, 1fr);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 1fr;
    gap: 40px;
    padding: 54px 0 42px;
}

.footer-brand {
    color: white;
    font-size: 22px;
}

.site-footer p {
    max-width: 460px;
    color: #d1d5db;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: white;
    font-size: 18px;
}

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

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

.footer-bottom {
    padding: 18px 16px;
    color: #9ca3af;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.no-results {
    grid-column: 1 / -1;
    padding: 36px;
    border-radius: 22px;
    color: var(--color-gray-600);
    text-align: center;
    background: white;
    box-shadow: var(--shadow-card);
}

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

    .hero-container,
    .split-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-stage,
    .rank-panel,
    .detail-side {
        position: static;
    }

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

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

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

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

    .header-inner {
        min-height: 64px;
    }

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

    .hero-container {
        padding-top: 54px;
        padding-bottom: 60px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: 590px;
    }

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

    .hero-controls {
        left: 24px;
        right: auto;
    }

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

    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-grid,
    .wide-grid,
    .wide-grid.small,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .row-head,
    .category-overview-head {
        display: block;
    }

    .category-overview-head .text-link {
        display: inline-block;
        margin-top: 12px;
    }

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

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

    .detail-cover {
        width: 180px;
    }
}

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

    .hero-heading h1 {
        font-size: 34px;
    }

    .hero-slide {
        padding: 20px;
        min-height: 560px;
        border-radius: 24px;
    }

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

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

    .wide-card,
    .rank-item,
    .detail-side .wide-card {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .rank-item {
        grid-template-columns: 38px 58px minmax(0, 1fr);
    }

    .rank-number {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .player-card,
    .detail-main,
    .detail-side {
        border-radius: 20px;
    }
}
