:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(168, 85, 247, 0.22);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --soft: #94a3b8;
    --purple: #a855f7;
    --pink: #ec4899;
    --blue: #38bdf8;
    --radius: 1.25rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(168, 85, 247, 0.28), transparent 32rem),
        radial-gradient(circle at 90% 15%, rgba(236, 72, 153, 0.18), transparent 30rem),
        linear-gradient(135deg, #020617 0%, #0f172a 50%, #000000 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(88, 28, 135, 0.94), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.site-header-inner {
    max-width: 80rem;
    height: 4.25rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-logo-mark {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #ffffff;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.45);
}

.site-logo-text {
    font-size: 1.25rem;
    background: linear-gradient(90deg, #c084fc, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-link,
.mobile-nav-link {
    color: #d1d5db;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: 0.2s ease;
}

.nav-link {
    padding: 0.65rem 0.9rem;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-search input,
.mobile-search input,
.filter-controls input,
.filter-controls select {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.32);
    border-radius: 0.85rem;
    outline: none;
    transition: 0.2s ease;
}

.header-search input {
    width: min(19rem, 24vw);
    padding: 0.62rem 0.85rem;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
    border-color: rgba(192, 132, 252, 0.88);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.16);
}

.header-search button,
.mobile-search button,
.detail-actions button,
.page-actions a {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(90deg, #9333ea, #db2777);
    border-radius: 0.85rem;
    padding: 0.62rem 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.8rem;
    padding: 0.55rem 0.75rem;
    font-size: 1.25rem;
}

.mobile-panel {
    display: none;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.25rem 1.25rem;
}

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

.mobile-panel nav {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.mobile-nav-link {
    padding: 0.75rem 0.9rem;
}

.mobile-search input {
    min-width: 0;
    flex: 1;
    padding: 0.75rem 0.9rem;
}

.hero-carousel {
    position: relative;
    height: 37.5rem;
    overflow: hidden;
    background: #000000;
}

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

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

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

.hero-gradient {
    position: absolute;
    inset: 0;
}

.hero-gradient-bottom {
    background: linear-gradient(to top, #000000, rgba(0, 0, 0, 0.54), transparent);
}

.hero-gradient-side {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.72), transparent 66%);
}

.hero-content-wrap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 4rem 1.5rem;
}

.hero-content {
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
}

.hero-content > * {
    max-width: 42rem;
}

.hero-tags,
.detail-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-tags span,
.tag-chip,
.detail-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.8rem;
    line-height: 1;
}

.hero-tags span {
    padding: 0.48rem 0.85rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-tags span:first-child,
.main-tag {
    background: linear-gradient(90deg, #9333ea, #db2777);
    color: #ffffff;
}

.hero-content h1 {
    margin: 1.1rem 0 1rem;
    color: #ffffff;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 0.96;
    font-weight: 900;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    color: #e5e7eb;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.85;
    margin: 0 0 1.6rem;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.35rem;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    transition: 0.25s ease;
}

.primary-action {
    background: linear-gradient(90deg, #9333ea, #db2777);
    box-shadow: 0 18px 40px rgba(168, 85, 247, 0.32);
}

.secondary-action {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.primary-action:hover,
.secondary-action:hover,
.page-actions a:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    font-size: 2rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
}

.hero-arrow-left {
    left: 1rem;
}

.hero-arrow-right {
    right: 1rem;
}

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

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

.hero-dot.is-active {
    width: 2.1rem;
    background: #a855f7;
}

.site-main {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
}

.page-shell {
    padding-top: 2rem;
}

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

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

.section-heading > div {
    min-width: 0;
}

.section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.75rem, 4vw, 2.45rem);
    font-weight: 900;
}

.section-heading p {
    margin: 0.35rem 0 0;
    color: var(--soft);
}

.section-heading a {
    flex: 0 0 auto;
    color: #c084fc;
    text-decoration: none;
    font-weight: 700;
}

.section-kicker {
    display: inline-block;
    width: 0.35rem;
    height: 1.6rem;
    border-radius: 99px;
    background: linear-gradient(#c084fc, #f472b6);
    margin-right: 0.45rem;
    vertical-align: middle;
}

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

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

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

.movie-card {
    position: relative;
    min-width: 0;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.78));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
    transition: 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(192, 132, 252, 0.52);
    box-shadow: 0 28px 60px rgba(88, 28, 135, 0.28);
}

.movie-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.movie-cover-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.12));
    overflow: hidden;
}

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

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

.movie-cover-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12));
    transition: 0.25s ease;
}

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

.movie-play-icon {
    width: 3.4rem;
    height: 3.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #9333ea, #db2777);
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.52);
}

.movie-year-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.25rem 0.58rem;
    font-size: 0.78rem;
    backdrop-filter: blur(10px);
}

.movie-card-body {
    padding: 1rem;
}

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #c084fc;
    font-size: 0.8rem;
    margin-bottom: 0.55rem;
}

.movie-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    margin: 0.6rem 0 0.85rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-chip {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.22);
    padding: 0.32rem 0.55rem;
}

.movie-card-horizontal .movie-card-link {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
}

.movie-card-horizontal .movie-cover-wrap {
    aspect-ratio: auto;
    min-height: 11rem;
}

.movie-card-large .movie-card-link {
    display: grid;
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
}

.movie-card-large .movie-cover-wrap {
    aspect-ratio: auto;
    min-height: 25rem;
}

.movie-card-large h3 {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.movie-card-large p {
    -webkit-line-clamp: 5;
    font-size: 1rem;
}

.editorial-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    gap: 1.25rem;
}

.editorial-side {
    display: grid;
    gap: 1rem;
}

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

.category-tile,
.overview-card,
.filter-panel,
.detail-card,
.sidebar-block,
.poster-card,
.player-card,
.page-hero {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.82));
    border-radius: var(--radius);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.2);
}

.category-tile {
    min-height: 8rem;
    padding: 1.25rem;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: 0.25s ease;
}

.category-tile:hover,
.overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 132, 252, 0.55);
}

.category-tile span,
.overview-card span {
    font-size: 1.18rem;
    font-weight: 900;
}

.category-tile small,
.overview-card p {
    color: var(--soft);
    line-height: 1.65;
    margin-top: 0.45rem;
}

.ranking-list {
    display: grid;
    gap: 0.75rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 3rem 3.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
    padding: 0.75rem;
    border: 1px solid rgba(168, 85, 247, 0.16);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.66);
    transition: 0.2s ease;
}

.rank-row:hover {
    background: rgba(88, 28, 135, 0.22);
    transform: translateX(4px);
}

.rank-number {
    color: #f472b6;
    font-weight: 900;
    font-size: 1.2rem;
}

.rank-row img {
    width: 3.5rem;
    height: 4.8rem;
    object-fit: cover;
    border-radius: 0.7rem;
}

.rank-title {
    min-width: 0;
    color: #ffffff;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: var(--soft);
    font-size: 0.9rem;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 4rem);
    margin-bottom: 2.5rem;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto auto;
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.28), transparent 68%);
}

.page-kicker {
    color: #f0abfc;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 800;
    font-size: 0.8rem;
}

.page-hero h1 {
    margin: 0.75rem 0 0.6rem;
    color: #ffffff;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1;
    font-weight: 900;
}

.page-hero p {
    max-width: 48rem;
    color: #cbd5e1;
    line-height: 1.85;
    margin: 0 0 1.2rem;
}

.overview-card {
    min-height: 14rem;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    display: grid;
    align-content: end;
    padding: 1rem;
    position: relative;
    transition: 0.25s ease;
}

.overview-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    transition: 0.35s ease;
}

.overview-card:hover img {
    transform: scale(1.06);
    opacity: 0.48;
}

.overview-card span,
.overview-card p {
    position: relative;
    z-index: 1;
}

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

.compact-overview {
    min-height: 10rem;
}

.filter-panel {
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.filter-title {
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 0.85rem;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12rem 12rem;
    gap: 0.75rem;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    padding: 0.8rem 0.9rem;
}

.empty-result {
    display: none;
    text-align: center;
    color: var(--soft);
    padding: 3rem 1rem;
}

.empty-result.is-visible {
    display: block;
}

.detail-main {
    padding-top: 2rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: var(--soft);
    margin-bottom: 1.25rem;
}

.breadcrumb a {
    color: #c084fc;
    text-decoration: none;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 1.5rem;
    align-items: start;
}

.detail-primary {
    min-width: 0;
    display: grid;
    gap: 1.25rem;
}

.player-card {
    overflow: hidden;
    background: #000000;
}

.player-shell {
    position: relative;
    background: #000000;
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    display: block;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.66));
    transition: 0.25s ease;
}

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

.play-overlay-button {
    width: 5rem;
    height: 5rem;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #9333ea, #db2777);
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.58);
    transition: 0.2s ease;
}

.play-overlay-button:hover {
    transform: scale(1.06);
}

.detail-card,
.sidebar-block,
.poster-card {
    padding: 1.25rem;
}

.detail-card h1 {
    margin: 1rem 0;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.05;
    font-weight: 900;
}

.detail-tag {
    padding: 0.45rem 0.7rem;
    color: #bfdbfe;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(37, 99, 235, 0.16);
}

.detail-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.detail-facts div {
    padding: 1rem;
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 1rem;
    background: rgba(2, 6, 23, 0.42);
}

.detail-facts strong {
    display: block;
    color: #ffffff;
    font-size: 1.05rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-facts span {
    color: var(--soft);
    font-size: 0.86rem;
}

.detail-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.detail-actions button:last-child {
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.22);
}

.detail-text {
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}

.detail-text h2,
.sidebar-block h2 {
    color: #ffffff;
    font-size: 1.35rem;
    margin: 1rem 0 0.75rem;
}

.detail-text p {
    color: #d1d5db;
    line-height: 1.95;
    text-align: justify;
    margin: 0 0 1rem;
}

.detail-sidebar {
    display: grid;
    gap: 1.25rem;
    position: sticky;
    top: 5.5rem;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 0.9rem;
}

.poster-card strong,
.poster-card span {
    display: block;
}

.poster-card strong {
    color: #ffffff;
    font-size: 1.15rem;
}

.poster-card span {
    color: var(--soft);
    margin-top: 0.2rem;
}

.side-related {
    display: grid;
    grid-template-columns: 3.8rem minmax(0, 1fr);
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
    padding: 0.55rem;
    border-radius: 0.9rem;
    transition: 0.2s ease;
}

.side-related:hover {
    background: rgba(168, 85, 247, 0.13);
}

.side-related img {
    grid-row: span 2;
    width: 3.8rem;
    height: 5.2rem;
    object-fit: cover;
    border-radius: 0.7rem;
}

.side-related span {
    color: #ffffff;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-related small {
    color: var(--soft);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
    padding: 2.5rem 1.25rem 1.5rem;
}

.footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-inner p {
    max-width: 34rem;
    color: var(--soft);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-content: start;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
}

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

.footer-bottom {
    max-width: 80rem;
    margin: 1.5rem auto 0;
    color: #64748b;
    font-size: 0.9rem;
}

.is-hidden-card {
    display: none !important;
}

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

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

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

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

    .detail-sidebar {
        position: static;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-header-inner {
        height: 4rem;
    }

    .hero-carousel {
        height: 34rem;
    }

    .hero-content-wrap {
        padding: 3.25rem 1rem;
    }

    .hero-arrow {
        display: none;
    }

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

    .movie-card-large .movie-card-link,
    .editorial-layout {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

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

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

    .footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .site-logo-text {
        font-size: 1.05rem;
    }

    .site-main {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .hero-carousel {
        height: 32rem;
    }

    .hero-content h1 {
        font-size: 2.35rem;
    }

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

    .movie-card-horizontal .movie-card-link {
        grid-template-columns: 7rem 1fr;
    }

    .movie-card-horizontal .movie-cover-wrap {
        min-height: 10rem;
    }

    .rank-row {
        grid-template-columns: 2.5rem 3rem minmax(0, 1fr);
    }

    .rank-meta {
        display: none;
    }
}
