:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --secondary-50: #f8fafc;
    --secondary-100: #f1f5f9;
    --secondary-200: #e2e8f0;
    --secondary-300: #cbd5e1;
    --secondary-400: #94a3b8;
    --secondary-500: #64748b;
    --secondary-600: #475569;
    --secondary-700: #334155;
    --secondary-800: #1e293b;
    --secondary-900: #0f172a;
    --white: #ffffff;
    --black: #000000;
    --shadow-soft: 0 12px 35px rgba(15, 23, 42, 0.08);
    --shadow-medium: 0 20px 45px rgba(15, 23, 42, 0.16);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --max-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--secondary-800);
    background: var(--secondary-50);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -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(100% - 32px, var(--max-width));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--secondary-200);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--secondary-900);
    font-weight: 800;
}

.logo-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.25);
}

.logo-text {
    font-size: 20px;
    letter-spacing: -0.03em;
}

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

.nav-link {
    color: var(--secondary-700);
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--primary-600);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 280px;
}

.header-search input,
.hero-search input,
.search-page-form input,
.filter-panel input,
.search-toolbar select,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--secondary-300);
    border-radius: var(--radius-sm);
    outline: none;
    background: var(--white);
    color: var(--secondary-800);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    padding: 10px 12px;
}

.header-search button,
.hero-search button,
.search-page-form button {
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--white);
    background: var(--primary-600);
    font-weight: 800;
}

.header-search input:focus,
.hero-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.search-toolbar select:focus,
.filter-panel select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.mobile-menu-button {
    display: none;
    border: none;
    color: var(--secondary-800);
    background: var(--secondary-100);
    border-radius: 12px;
    padding: 8px 12px;
}

.hero-section {
    color: var(--white);
    background:
        radial-gradient(circle at 15% 10%, rgba(186, 230, 253, 0.22), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.22), transparent 30%),
        linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 46%, var(--secondary-900) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
    align-items: center;
    gap: 56px;
    min-height: 610px;
    padding-block: 74px;
}

.hero-copy {
    display: grid;
    gap: 22px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-600);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-section .eyebrow,
.detail-hero .eyebrow,
.page-hero .eyebrow {
    color: var(--primary-200);
}

.hero-copy h1,
.page-hero h1,
.detail-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-copy h1 span {
    color: var(--primary-200);
}

.hero-copy p,
.page-hero p,
.detail-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-search,
.search-page-form {
    display: flex;
    width: min(100%, 640px);
    padding: 8px;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    backdrop-filter: blur(18px);
}

.hero-search input,
.search-page-form input {
    padding: 13px 16px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-light {
    color: var(--primary-700);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.button-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.button-primary {
    color: var(--white);
    background: var(--primary-600);
}

.full-width {
    width: 100%;
}

.hero-chip-row a {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--primary-100);
    background: rgba(255, 255, 255, 0.08);
}

.hero-showcase {
    display: grid;
    gap: 16px;
}

.hero-card {
    position: relative;
    min-height: 410px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 32px 70px rgba(2, 8, 23, 0.4);
    transform: perspective(1200px) rotateY(-3deg);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

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

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.28), transparent);
}

.hero-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    color: var(--primary-700);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.hero-slide-text {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    display: grid;
    gap: 8px;
}

.hero-slide-text strong {
    font-size: 26px;
    line-height: 1.2;
}

.hero-slide-text em {
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
}

.hero-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.hero-thumb {
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 14px;
    opacity: 0.64;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-thumb.is-active,
.hero-thumb:hover {
    opacity: 1;
    border-color: var(--white);
    transform: translateY(-2px);
}

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

.section {
    padding-block: 64px;
}

.soft-section {
    background: var(--white);
}

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

.section-heading h2,
.rank-card h2,
.content-card h2,
.category-overview-title h2 {
    margin: 0;
    color: var(--secondary-900);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-link {
    color: var(--primary-600);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--secondary-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    border-color: rgba(14, 165, 233, 0.36);
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-200), var(--primary-100));
}

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

.poster-link img {
    transition: transform 0.5s ease;
}

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

.card-year,
.card-score,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

.card-year {
    top: 10px;
    left: 10px;
}

.card-score {
    right: 10px;
    bottom: 10px;
    background: rgba(2, 132, 199, 0.82);
}

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

.card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--secondary-500);
    font-size: 13px;
    font-weight: 800;
}

.card-meta a {
    color: var(--primary-600);
}

.card-body h3 {
    margin: 0;
    color: var(--secondary-900);
    font-size: 18px;
    line-height: 1.3;
}

.card-body h3 a:hover {
    color: var(--primary-600);
}

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

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--primary-700);
    background: var(--primary-50);
    font-size: 12px;
    font-weight: 800;
}

.tag-strong {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.category-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.03);
    transition: transform 0.5s ease;
}

.category-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.82), rgba(15, 23, 42, 0.86));
}

.category-card:hover .category-bg {
    transform: scale(1.12);
}

.category-content {
    position: relative;
    z-index: 2;
    display: grid;
    height: 100%;
    align-content: end;
    gap: 8px;
    padding: 22px;
}

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

.category-content strong {
    font-size: 24px;
    line-height: 1.1;
}

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

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.rank-card,
.content-card,
.player-card,
.category-overview-card {
    border: 1px solid var(--secondary-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.rank-card {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.sticky-card {
    position: sticky;
    top: 92px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 34px 68px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    background: var(--secondary-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: var(--primary-50);
    transform: translateX(2px);
}

.rank-number {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--white);
    background: var(--primary-600);
    border-radius: 10px;
    font-weight: 900;
}

.rank-row img {
    width: 68px;
    height: 52px;
    border-radius: 10px;
}

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

.rank-info strong {
    overflow: hidden;
    color: var(--secondary-900);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info em {
    overflow: hidden;
    color: var(--secondary-500);
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-hot {
    color: var(--primary-600);
    font-weight: 900;
}

.page-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 12% 30%, rgba(186, 230, 253, 0.18), transparent 30%),
        linear-gradient(135deg, var(--secondary-900), var(--primary-700));
    padding-block: 76px;
}

.page-hero .container {
    display: grid;
    gap: 16px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--secondary-500);
    font-size: 14px;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: var(--primary-600);
}

.light-breadcrumb {
    color: rgba(255, 255, 255, 0.72);
}

.light-breadcrumb a:hover {
    color: var(--white);
}

.filter-panel,
.search-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    padding: 14px;
    border: 1px solid var(--secondary-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.filter-input-wrap {
    position: relative;
    flex: 1 1 320px;
}

.filter-input-wrap span {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--secondary-400);
    transform: translateY(-50%);
}

.filter-panel input {
    padding: 12px 14px 12px 38px;
}

.filter-panel select,
.search-toolbar select {
    width: auto;
    min-width: 140px;
    padding: 12px 14px;
}

.filter-count,
.search-result-count {
    margin-left: auto;
    color: var(--secondary-500);
    font-weight: 800;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    overflow: hidden;
}

.category-overview-cover {
    display: grid;
    min-height: 280px;
    place-items: center;
    color: var(--white);
    background-position: center;
    background-size: cover;
    isolation: isolate;
    position: relative;
}

.category-overview-cover::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.82), rgba(15, 23, 42, 0.8));
}

.category-overview-cover span {
    font-size: 48px;
}

.category-overview-body {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 24px;
}

.category-overview-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.category-overview-title strong {
    color: var(--primary-600);
}

.category-overview-body p {
    margin: 0;
    color: var(--secondary-600);
}

.category-overview-body ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-overview-body li a {
    color: var(--secondary-700);
}

.category-overview-body li a:hover {
    color: var(--primary-600);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--secondary-900);
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(12px);
    opacity: 0.34;
    transform: scale(1.08);
}

.detail-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.38));
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding-block: 48px;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    width: 260px;
    aspect-ratio: 3 / 4;
    border: 6px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.detail-meta-row span {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.detail-tags {
    margin-block: 18px;
}

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

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

.player-card {
    overflow: hidden;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--black);
}

.video-player {
    width: 100%;
    height: 100%;
    background: var(--black);
}

.video-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    color: var(--white);
    border: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18));
}

.video-start span {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    color: var(--primary-700);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.video-start strong {
    font-size: 18px;
}

.video-shell.is-playing .video-start {
    opacity: 0;
    pointer-events: none;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: none;
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.82);
}

.player-message.is-visible {
    display: block;
}

.content-card {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.content-card p {
    margin: 0;
    color: var(--secondary-700);
}

.lead-text {
    color: var(--secondary-900) !important;
    font-size: 18px;
    font-weight: 800;
}

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

.movie-info-list div {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 12px;
    background: var(--secondary-50);
}

.movie-info-list dt {
    color: var(--secondary-500);
    font-size: 13px;
    font-weight: 900;
}

.movie-info-list dd {
    margin: 0;
    color: var(--secondary-900);
    font-weight: 800;
}

.detail-side .rank-row {
    grid-template-columns: 30px 62px minmax(0, 1fr);
}

.detail-side .rank-hot {
    display: none;
}

.search-page-form {
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.16);
}

.site-footer {
    color: var(--secondary-300);
    background: var(--secondary-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 1fr 1fr;
    gap: 32px;
    padding-block: 46px;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 14px;
}

.footer-brand p {
    max-width: 560px;
    margin: 0;
    color: var(--secondary-400);
}

.site-footer h3 {
    margin: 0 0 12px;
    color: var(--white);
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: var(--primary-200);
}

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

.footer-bottom p {
    margin: 0;
    color: var(--secondary-500);
    font-size: 14px;
}

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

@media (max-width: 1120px) {
    .hero-grid,
    .two-column-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-card {
        transform: none;
    }

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

    .sticky-card {
        position: static;
    }
}

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-bottom: 12px;
    }

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

    .nav-link {
        border-radius: 12px;
        padding: 10px 12px;
        background: var(--secondary-100);
    }

    .header-search {
        order: 4;
        width: 100%;
        min-width: 0;
        padding-bottom: 12px;
    }

    .hero-grid {
        min-height: auto;
        padding-block: 48px;
    }

    .hero-search,
    .search-page-form {
        flex-direction: column;
    }

    .hero-card {
        min-height: 330px;
    }

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

    .category-overview-card,
    .detail-hero-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-cover {
        min-height: 180px;
    }

    .detail-poster {
        width: min(100%, 260px);
    }

    .movie-info-list {
        grid-template-columns: 1fr;
    }
}

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

    .hero-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .section,
    .page-hero {
        padding-block: 44px;
    }

    .filter-panel,
    .search-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-panel select,
    .search-toolbar select {
        width: 100%;
    }

    .filter-count,
    .search-result-count {
        margin-left: 0;
    }

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

    .rank-hot {
        display: none;
    }
}
