:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #172033;
    --muted: #64748b;
    --soft: #e2e8f0;
    --line: #e5e7eb;
    --brand: #ef4444;
    --brand-dark: #dc2626;
    --accent: #f97316;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --radius: 1.25rem;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff7ed 0, #f8fafc 24rem, #f8fafc 100%);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(18px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
}

.header-inner {
    height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 12px 26px rgba(239, 68, 68, 0.25);
}

.brand-text {
    font-size: 1.25rem;
    background: linear-gradient(90deg, var(--brand-dark), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.94rem;
    font-weight: 650;
    color: #334155;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-dark);
}

.nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.28rem;
    background: #f1f5f9;
}

.nav-toggle span {
    width: 1.15rem;
    height: 2px;
    border-radius: 999px;
    background: #334155;
}

.page-main {
    padding-top: 6rem;
}

.hero-carousel {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    height: 500px;
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    background: #0f172a;
}

.hero-track,
.hero-slide,
.hero-slide img,
.hero-mask {
    position: absolute;
    inset: 0;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-mask {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.82) 0%, rgba(15, 23, 42, 0.58) 45%, rgba(15, 23, 42, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: #fff;
}

.hero-badge {
    width: max-content;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.92);
    font-size: 0.86rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.hero-content h1,
.hero-content h2 {
    margin: 1rem 0 0.85rem;
    font-size: clamp(2.1rem, 5vw, 4.25rem);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 640px;
    color: #f1f5f9;
    font-size: 1.08rem;
    line-height: 1.85;
}

.hero-tags,
.tag-row,
.detail-tags,
.genre-row,
.rank-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tags {
    margin: 1.25rem 0 1.7rem;
}

.hero-tags span,
.detail-tags span,
.genre-row span,
.rank-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.78rem;
}

.hero-tags span {
    padding: 0.36rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(12px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.primary-btn,
.ghost-btn,
.secondary-link,
.search-form button,
.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 750;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
    min-height: 3.25rem;
    padding: 0 1.7rem;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 16px 30px rgba(239, 68, 68, 0.30);
}

.primary-btn:hover,
.search-form button:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.ghost-btn {
    min-height: 3.25rem;
    padding: 0 1.45rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%);
    backdrop-filter: blur(14px);
    transition: background 0.2s ease;
}

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

.hero-prev {
    left: 1rem;
}

.hero-next {
    right: 1rem;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    z-index: 4;
    display: flex;
    gap: 0.45rem;
    transform: translateX(-50%);
}

.hero-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 2rem;
    background: #fff;
}

.intro-strip,
.page-hero,
.search-panel,
.latest-panel,
.category-preview,
.detail-content,
.related-section {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem 1.8rem;
    margin-bottom: 4rem;
}

.intro-strip h2,
.page-hero h1,
.section-head h2,
.latest-panel h2,
.detail-copy h1,
.detail-copy h2,
.category-preview h2 {
    color: #1e293b;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.intro-strip h2 {
    font-size: 1.55rem;
}

.intro-strip p,
.page-hero p,
.category-preview p,
.movie-info p,
.rank-body p,
.detail-line,
.detail-copy p,
.latest-panel p {
    color: var(--muted);
}

.secondary-link {
    min-width: max-content;
    padding: 0.75rem 1.1rem;
    color: var(--brand-dark);
    background: #fee2e2;
}

.secondary-link:hover {
    background: #fecaca;
}

section.container {
    margin-bottom: 4rem;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-head.tight {
    margin-bottom: 1rem;
}

.section-head span,
.page-hero span,
.detail-kicker {
    display: inline-flex;
    margin-bottom: 0.25rem;
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-head h2 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.section-head > a {
    color: var(--brand-dark);
    font-weight: 750;
}

.horizontal-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.15rem 0.15rem 1rem;
    scrollbar-width: none;
}

.horizontal-row::-webkit-scrollbar {
    display: none;
}

.horizontal-row .movie-card {
    flex: 0 0 18rem;
    scroll-snap-align: start;
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(248, 113, 113, 0.55);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.13);
}

.movie-poster {
    position: relative;
    height: 13.5rem;
    overflow: hidden;
    background: #e2e8f0;
}

.movie-card-small .movie-poster {
    height: 10rem;
}

.movie-card-medium .movie-poster {
    height: 14rem;
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.06));
    transition: opacity 0.25s ease;
}

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

.movie-type {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    padding: 0.28rem 0.55rem;
    border-radius: 0.45rem;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 0.72rem;
    backdrop-filter: blur(10px);
}

.movie-play-mark {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 2;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
    padding: 1rem;
}

.movie-info h3 {
    min-height: 2.9em;
    margin-bottom: 0.45rem;
    color: #1e293b;
    font-weight: 780;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-info p {
    min-height: 3.25em;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
    color: #94a3b8;
    font-size: 0.78rem;
}

.tag-row span,
.rank-tags span,
.detail-tags span,
.genre-row span {
    padding: 0.26rem 0.56rem;
    background: #f1f5f9;
    color: #64748b;
}

.search-panel {
    padding: 1rem;
    margin-bottom: 1.3rem;
}

.search-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.search-form input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    outline: none;
}

.search-form input:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.14);
}

.search-form button {
    min-width: 5.5rem;
    height: 3rem;
    color: #fff;
    background: var(--brand);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.filter-chips button {
    padding: 0.46rem 0.85rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 700;
}

.filter-chips button.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}

.hidden-by-search,
.hidden-by-filter {
    display: none !important;
}

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

.category-tile {
    position: relative;
    min-height: 13rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 1.1rem;
    border-radius: 1.15rem;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.45s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.88));
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 2;
}

.category-tile span {
    margin-bottom: 0.35rem;
    font-size: 1.2rem;
    font-weight: 850;
}

.category-tile p {
    color: #e2e8f0;
    font-size: 0.86rem;
    line-height: 1.55;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 22rem;
    gap: 1.2rem;
    align-items: start;
}

.rank-list {
    display: grid;
    gap: 0.8rem;
}

.full-rank {
    gap: 0.9rem;
}

.rank-item {
    display: grid;
    grid-template-columns: 3.5rem 7rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11);
}

.rank-number {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    font-size: 1.1rem;
    font-weight: 850;
}

.rank-item img {
    width: 7rem;
    height: 4.75rem;
    object-fit: cover;
    border-radius: 0.75rem;
}

.rank-body h3 {
    color: #1e293b;
    font-weight: 780;
    margin-bottom: 0.2rem;
}

.rank-body p {
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    line-height: 1.55;
}

.rank-action {
    padding: 0.6rem 1rem;
    color: var(--brand-dark);
    background: #fee2e2;
}

.latest-panel {
    padding: 1.2rem;
}

.latest-panel h2 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.compact-list {
    display: grid;
    gap: 0.8rem;
}

.compact-card {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.compact-card img {
    width: 5.5rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.75rem;
}

.compact-card strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #1e293b;
    font-weight: 780;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-card span {
    color: #94a3b8;
    font-size: 0.82rem;
}

.page-hero {
    padding: 2.4rem;
}

.small-hero {
    margin-bottom: 2rem;
}

.page-hero h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.page-hero p {
    max-width: 760px;
    line-height: 1.8;
}

.category-directory {
    display: grid;
    gap: 1.2rem;
}

.category-preview {
    padding: 1.2rem;
}

.category-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-preview h2 {
    margin-bottom: 0.4rem;
    font-size: 1.55rem;
}

.detail-layout {
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

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

.player-section {
    margin-bottom: 1.2rem;
}

.player-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1.35rem;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.player-cover-bg,
.player-cover-mask {
    position: absolute;
    inset: 0;
}

.player-cover-bg {
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.player-cover-mask {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.28));
}

.player-play {
    position: relative;
    z-index: 4;
    width: 5.3rem;
    height: 5.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ef4444;
    background: rgba(255, 255, 255, 0.94);
    font-size: 2rem;
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.28);
    transition: transform 0.2s ease;
}

.player-cover:hover .player-play {
    transform: scale(1.08);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 1.4rem;
    padding: 1.4rem;
}

.detail-copy h1 {
    margin-bottom: 0.8rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.detail-line {
    margin-bottom: 1rem;
    font-size: 1.06rem;
    line-height: 1.8;
}

.detail-tags,
.genre-row {
    margin-bottom: 1.35rem;
}

.detail-copy h2 {
    margin: 1.4rem 0 0.65rem;
    font-size: 1.35rem;
}

.detail-copy p {
    line-height: 1.9;
}

.detail-aside img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.detail-aside dl {
    display: grid;
    gap: 0.75rem;
}

.detail-aside dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.detail-aside dt {
    color: #94a3b8;
    font-size: 0.86rem;
}

.detail-aside dd {
    color: #334155;
    font-weight: 750;
    text-align: right;
}

.related-section {
    padding: 1.2rem;
}

.site-footer {
    margin-top: 4rem;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

.footer-brand {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.15rem;
}

.site-footer p {
    max-width: 36rem;
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer h2 {
    margin-bottom: 0.9rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.footer-links {
    display: grid;
    gap: 0.55rem;
}

.footer-links a:hover {
    color: #fca5a5;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 1.1rem 1rem;
    color: #94a3b8;
    text-align: center;
}

@media (max-width: 1080px) {
    .movie-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .two-column,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .detail-aside {
        display: grid;
        grid-template-columns: 12rem 1fr;
        gap: 1rem;
        align-items: start;
    }
}

@media (max-width: 760px) {
    .main-nav {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: calc(100% + 0.5rem);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding: 0.8rem;
        border: 1px solid #e2e8f0;
        border-radius: 1rem;
        background: #fff;
        box-shadow: 0 20px 38px rgba(15, 23, 42, 0.12);
    }

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

    .nav-link {
        padding: 0.7rem 0.85rem;
        border-radius: 0.75rem;
    }

    .nav-link.active,
    .nav-link:hover {
        background: #fee2e2;
    }

    .nav-toggle {
        display: flex;
    }

    .page-main {
        padding-top: 5.2rem;
    }

    .hero-carousel {
        height: 560px;
        width: min(100% - 20px, 1180px);
        border-radius: 1.1rem;
    }

    .hero-mask {
        background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.20));
    }

    .hero-content {
        justify-content: end;
        padding: 2rem 1.2rem 4.25rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-arrow {
        width: 2.5rem;
        height: 2.5rem;
    }

    .intro-strip,
    .section-head,
    .category-preview-head,
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

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

    .movie-poster,
    .movie-card-medium .movie-poster,
    .movie-card-small .movie-poster {
        height: 11rem;
    }

    .movie-info {
        padding: 0.8rem;
    }

    .rank-item {
        grid-template-columns: 2.6rem 5.2rem minmax(0, 1fr);
    }

    .rank-number {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 0.92rem;
    }

    .rank-item img {
        width: 5.2rem;
        height: 4rem;
    }

    .rank-action {
        display: none;
    }

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

    .detail-aside img {
        max-width: 16rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

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

    .horizontal-row .movie-card {
        flex-basis: 82vw;
    }

    .page-hero,
    .detail-content,
    .related-section,
    .category-preview {
        padding: 1rem;
    }

    .player-play {
        width: 4.25rem;
        height: 4.25rem;
        font-size: 1.55rem;
    }
}
