* {
    box-sizing: border-box;
}

:root {
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --pink-300: #f9a8d4;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 4px 14px rgba(219, 39, 119, 0.08);
    --shadow-md: 0 12px 30px rgba(219, 39, 119, 0.12);
    --shadow-lg: 0 24px 60px rgba(17, 24, 39, 0.18);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: linear-gradient(180deg, var(--pink-50) 0%, #ffffff 44%, var(--rose-50) 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(255, 241, 242, 0.96), rgba(253, 242, 248, 0.96));
    border-bottom: 1px solid rgba(251, 207, 232, 0.85);
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.08);
    backdrop-filter: blur(14px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.35);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.nav-links a,
.mobile-links a {
    color: var(--gray-700);
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.mobile-links a:hover {
    color: var(--pink-600);
}

.nav-toggle {
    display: none;
    border: 0;
    color: var(--gray-700);
    background: rgba(252, 231, 243, 0.9);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.mobile-links {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-links a {
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
}

.site-search {
    position: relative;
    width: min(310px, 32vw);
    flex-shrink: 0;
}

.site-search input,
.catalog-toolbar input,
.catalog-toolbar select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--pink-200);
    border-radius: 999px;
    background: #ffffff;
    color: var(--gray-700);
    padding: 0 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus,
.catalog-toolbar input:focus,
.catalog-toolbar select:focus {
    border-color: var(--pink-400);
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.16);
}

.global-search-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(430px, 92vw);
    background: #ffffff;
    border: 1px solid var(--pink-100);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.global-search-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-result {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
}

.search-result:hover {
    background: var(--pink-50);
}

.search-result img {
    width: 54px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--pink-100);
}

.search-result strong {
    display: block;
    color: var(--gray-800);
    font-size: 14px;
}

.search-result span {
    display: block;
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 12px;
}

.hero-slider {
    position: relative;
    height: 500px;
    min-height: 500px;
    overflow: hidden;
    background: var(--gray-900);
}

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

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.56), rgba(17, 24, 39, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1180px;
}

.hero-content > * {
    max-width: 650px;
}

.hero-label,
.section-heading span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: max-content;
    color: var(--pink-300);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 14px 0 16px;
    color: #ffffff;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-content p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.7;
}

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

.hero-tags span,
.detail-tags span,
.tag-cloud span,
.quick-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.ghost-light-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 12px 26px rgba(244, 63, 94, 0.35);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(244, 63, 94, 0.4);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.ghost-light-button,
.text-button {
    color: var(--pink-600);
    background: var(--pink-50);
    border: 1px solid var(--pink-200);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #ffffff;
}

.quick-entry,
.content-section,
.page-main,
.footer-inner,
.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.quick-entry {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 26px;
    align-items: center;
    margin-top: 44px;
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ffffff, var(--pink-50));
    box-shadow: var(--shadow-md);
}

.quick-entry h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-text-card h2 {
    margin: 0;
    color: var(--gray-800);
}

.quick-entry p {
    color: var(--gray-600);
    line-height: 1.8;
}

.quick-links a {
    color: var(--pink-600);
    background: #ffffff;
    border-color: var(--pink-200);
}

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

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

.section-heading span,
.page-hero span {
    color: var(--pink-500);
    font-size: 13px;
}

.section-heading h2 {
    margin-top: 4px;
    font-size: clamp(26px, 3vw, 36px);
}

.section-heading > a {
    color: var(--pink-600);
    font-weight: 800;
}

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

.compact-heading h2 {
    font-size: 25px;
}

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

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

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

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

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

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--pink-100), var(--rose-100));
}

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

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

.movie-badge,
.movie-year {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.58);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.movie-badge {
    left: 12px;
}

.movie-year {
    right: 12px;
}

.movie-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.36);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: 0.25s ease;
}

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

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

.movie-card-body h3 {
    margin: 0 0 10px;
    color: var(--gray-800);
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-card-body p {
    margin: 0;
    min-height: 48px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.65;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.rank-panel,
.category-overview-card,
.detail-text-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 38px 52px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.rank-number {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    font-weight: 900;
}

.rank-row img {
    width: 52px;
    height: 68px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--pink-100);
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    color: var(--gray-800);
    font-size: 14px;
    line-height: 1.35;
}

.rank-info em {
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
}

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

.category-card {
    display: grid;
    gap: 8px;
    min-height: 170px;
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, #ffffff, var(--pink-50));
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span {
    color: var(--pink-600);
    font-size: 22px;
    font-weight: 900;
}

.category-card strong {
    color: var(--gray-700);
    line-height: 1.5;
}

.category-card em {
    display: grid;
    gap: 6px;
    color: var(--gray-500);
    font-size: 13px;
    font-style: normal;
}

.page-main {
    padding: 36px 0 30px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin: 0 auto 38px;
    padding: 48px;
    border-radius: 34px;
    color: #ffffff;
    background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.28), transparent 28%), linear-gradient(135deg, var(--pink-500), var(--rose-600));
    box-shadow: var(--shadow-lg);
}

.page-hero h1 {
    color: #ffffff;
    margin: 8px 0 14px;
    font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.page-hero span {
    color: rgba(255, 255, 255, 0.82);
}

.inner-actions {
    margin-top: 24px;
}

.category-overview {
    display: grid;
    gap: 28px;
}

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

.category-overview-head h2 {
    margin: 0 0 6px;
    color: var(--gray-800);
    font-size: 26px;
}

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

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

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

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    align-items: center;
    margin-bottom: 42px;
    padding: 32px;
    border-radius: 34px;
    background: linear-gradient(135deg, #ffffff, var(--pink-50));
    box-shadow: var(--shadow-md);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 28px;
    background: var(--pink-100);
    box-shadow: var(--shadow-lg);
}

.detail-info h1 {
    margin-top: 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.14;
}

.detail-lead {
    color: var(--gray-600);
    font-size: 18px;
    line-height: 1.8;
}

.detail-tags span,
.tag-cloud span {
    color: var(--pink-600);
    background: #ffffff;
    border-color: var(--pink-200);
}

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

.detail-meta-grid div {
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--pink-100);
}

.detail-meta-grid span,
.detail-meta-grid strong {
    display: block;
}

.detail-meta-grid span {
    color: var(--gray-500);
    font-size: 12px;
    margin-bottom: 5px;
}

.detail-meta-grid strong {
    color: var(--gray-800);
}

.player-section {
    margin-bottom: 42px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #0f172a;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #0f172a;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.34), rgba(17, 24, 39, 0.62));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.player-start span {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 18px 48px rgba(244, 63, 94, 0.42);
    font-size: 34px;
}

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

.detail-content-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 26px;
    margin-bottom: 10px;
}

.detail-text-card {
    padding: 28px;
}

.detail-text-card h2 {
    font-size: 26px;
    margin-bottom: 14px;
}

.detail-text-card p {
    color: var(--gray-600);
    line-height: 1.9;
    margin: 0;
}

.wide-card {
    grid-column: 1 / -1;
}

.info-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.info-list p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.info-list strong {
    color: var(--gray-500);
}

.info-list span {
    color: var(--gray-800);
    font-weight: 700;
    text-align: right;
}

.related-section {
    padding-top: 36px;
}

.full-rank-panel {
    margin-bottom: 40px;
}

.site-footer {
    margin-top: 40px;
    padding: 44px 0 20px;
    background: linear-gradient(180deg, var(--pink-50), var(--rose-100));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 0.9fr;
    gap: 32px;
}

.footer-inner h3 {
    margin: 0 0 14px;
    color: var(--gray-800);
}

.footer-inner a {
    display: block;
    margin: 8px 0;
    color: var(--gray-600);
    font-size: 14px;
}

.footer-inner a:hover {
    color: var(--pink-600);
}

.footer-brand p {
    color: var(--gray-600);
    line-height: 1.8;
}

.footer-logo {
    margin-bottom: 12px;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(251, 207, 232, 0.9);
    color: var(--gray-500);
    font-size: 14px;
}

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

    .nav-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .mobile-links.is-open {
        display: grid;
    }

    .site-search {
        width: min(340px, 45vw);
    }

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

    .two-columns,
    .detail-hero,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .site-nav {
        flex-wrap: wrap;
        padding: 12px 0;
        gap: 12px;
    }

    .site-search {
        order: 5;
        width: 100%;
    }

    .brand-name {
        font-size: 19px;
    }

    .hero-slider {
        height: 560px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 86px;
    }

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

    .hero-control {
        display: none;
    }

    .quick-entry,
    .catalog-toolbar,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .quick-entry,
    .page-hero,
    .detail-hero {
        padding: 24px;
        border-radius: 24px;
    }

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

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

    .movie-card-body h3 {
        font-size: 16px;
    }

    .movie-card-body p {
        min-height: 0;
        font-size: 13px;
    }

    .section-heading,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .detail-poster {
        max-width: 300px;
        margin: 0 auto;
    }

    .player-shell {
        border-radius: 20px;
    }
}

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

    .rank-row {
        grid-template-columns: 34px 48px 1fr;
    }

    .page-main,
    .content-section {
        width: min(100% - 24px, 1180px);
    }
}
