:root {
    --sky: #0ea5e9;
    --sky-dark: #0369a1;
    --pink: #ec4899;
    --pink-soft: #fbcfe8;
    --amber: #f59e0b;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #ffffff;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    -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(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.nav-shell {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-icon,
.footer-brand span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--pink));
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.32);
}

.brand-text {
    font-size: clamp(20px, 2.4vw, 28px);
    background: linear-gradient(120deg, var(--sky-dark), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav,
.mobile-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.site-search-form input {
    width: 240px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 10px 42px 10px 16px;
    color: var(--ink);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.site-search-form button {
    position: absolute;
    right: 6px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: var(--muted);
    background: transparent;
}

.site-search-form button:hover {
    color: var(--sky-dark);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--ink);
    background: #f3f4f6;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px;
}

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

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

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

.mobile-nav {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, #38bdf8 0%, #f9a8d4 54%, #fde68a 100%);
}

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

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.28;
    background: #ffffff;
    animation: glowPulse 4s ease-in-out infinite alternate;
}

.hero-glow-one {
    top: 70px;
    left: 8%;
    width: 170px;
    height: 170px;
}

.hero-glow-two {
    right: 10%;
    top: 180px;
    width: 220px;
    height: 220px;
    animation-delay: 0.8s;
}

.hero-glow-three {
    left: 34%;
    bottom: 60px;
    width: 250px;
    height: 250px;
    animation-delay: 1.2s;
}

@keyframes glowPulse {
    from {
        transform: scale(0.92);
    }

    to {
        transform: scale(1.06);
    }
}

.hero-slides {
    position: relative;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 46px;
    padding: 48px 64px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-copy {
    max-width: 680px;
    color: #ffffff;
    text-shadow: 0 4px 22px rgba(15, 23, 42, 0.24);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 18px;
    margin-bottom: 18px;
    color: var(--sky-dark);
    text-shadow: none;
    font-size: 14px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
    margin: 0 0 20px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 650px;
    margin: 0 0 24px;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

.hero-meta,
.detail-meta,
.movie-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta {
    margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span {
    border-radius: 999px;
    padding: 7px 13px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(10px);
}

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

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

.primary-button {
    color: var(--sky-dark);
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

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

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-poster {
    flex: 0 0 min(34vw, 360px);
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.26);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.18);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

.hero-prev {
    left: 8px;
}

.hero-next {
    right: 8px;
}

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

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

.hero-dot.active {
    width: 34px;
    background: #ffffff;
}

.section {
    padding: 76px 0;
}

.section-white {
    background: #ffffff;
}

.section-soft {
    background: linear-gradient(135deg, #f0f9ff, #fdf2f8);
}

.section-pastel {
    background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 52%, #f0f9ff 100%);
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading span,
.page-hero p {
    display: inline-flex;
    margin-bottom: 9px;
    color: var(--sky-dark);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-heading h2,
.page-hero h1,
.detail-intro h1,
.article-panel h2,
.sidebar-card h2,
.cta-card h2 {
    margin: 0;
    color: var(--ink);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading h2 {
    font-size: clamp(26px, 4vw, 40px);
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.split-heading > a {
    color: var(--sky-dark);
    font-weight: 800;
}

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

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

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

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

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

.movie-card-link,
.movie-card > a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover,
.movie-card > a:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.movie-thumb {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e5e7eb;
}

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

.movie-card-link:hover .movie-thumb img,
.movie-card > a:hover .movie-thumb img {
    transform: scale(1.08);
}

.movie-thumb::after {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.08));
    transition: opacity 0.25s ease;
}

.movie-card-link:hover .movie-thumb::after,
.movie-card > a:hover .movie-thumb::after {
    opacity: 1;
}

.movie-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    max-width: calc(100% - 24px);
    border-radius: 999px;
    padding: 6px 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(14, 165, 233, 0.88);
    backdrop-filter: blur(8px);
}

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

.movie-card h3 {
    min-height: 3em;
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.5;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    min-height: 3.4em;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span {
    border-radius: 999px;
    padding: 4px 8px;
    background: #f3f4f6;
}

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

.ranking-page-grid {
    margin-top: 26px;
}

.ranking-item a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 132px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(90deg, #ffffff, #f9fafb);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item a:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.rank-number {
    position: absolute;
    top: -10px;
    left: -10px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 12px 22px rgba(245, 158, 11, 0.32);
}

.ranking-item img {
    flex: 0 0 130px;
    width: 130px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
    background: #e5e7eb;
}

.ranking-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.ranking-copy strong {
    color: var(--ink);
    font-size: 17px;
    line-height: 1.45;
}

.ranking-copy em,
.ranking-copy small {
    color: var(--muted);
    font-style: normal;
    line-height: 1.55;
}

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

.category-tile,
.category-overview-card a {
    position: relative;
    display: grid;
    gap: 10px;
    min-height: 190px;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #f3f4f6);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::before,
.category-overview-card a::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(236, 72, 153, 0.18));
    transition: opacity 0.25s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.category-tile:hover::before,
.category-overview-card a:hover::before {
    opacity: 1;
}

.category-tile span,
.category-tile strong,
.category-tile em,
.category-overview-card h2,
.category-overview-card p,
.category-overview-card strong,
.category-preview-list {
    position: relative;
    z-index: 1;
}

.category-tile span,
.category-overview-card h2 {
    color: var(--ink);
    font-size: 20px;
    font-weight: 900;
}

.category-tile strong,
.category-overview-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.category-tile em {
    align-self: end;
    color: var(--sky-dark);
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
}

.category-overview-card h2 {
    margin: 0;
}

.category-overview-card p {
    margin: 0;
}

.category-preview-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #475569;
    font-size: 14px;
}

.category-overview-card strong {
    color: var(--sky-dark);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    background: linear-gradient(135deg, #e0f2fe, #fdf2f8 56%, #fef3c7);
}

.page-hero::after,
.detail-hero::after {
    position: absolute;
    right: -80px;
    bottom: -130px;
    width: 360px;
    height: 360px;
    content: "";
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.16);
}

.page-hero .container,
.detail-layout {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero span {
    display: block;
    max-width: 780px;
    margin-top: 16px;
    color: #475569;
    font-size: 18px;
    line-height: 1.8;
}

.page-hero-hot {
    background: linear-gradient(135deg, #fff7ed, #fdf2f8 58%, #e0f2fe);
}

.page-hero-search {
    background: linear-gradient(135deg, #f0f9ff, #ffffff 45%, #fce7f3);
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel div {
    display: grid;
    gap: 8px;
}

.filter-panel label {
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 11px 13px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 34px;
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
    background: #f8fafc;
}

.empty-state.show {
    display: block;
}

.cta-section {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-dark), var(--pink));
}

.cta-card {
    text-align: center;
}

.cta-card h2 {
    color: #ffffff;
    font-size: clamp(28px, 4vw, 44px);
}

.cta-card p {
    max-width: 720px;
    margin: 18px auto 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #e5e7eb;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--sky-dark);
    font-weight: 800;
}

.detail-intro h1 {
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.08;
}

.detail-one-line {
    max-width: 860px;
    margin: 18px 0 20px;
    color: #475569;
    font-size: 19px;
    line-height: 1.85;
}

.detail-meta span {
    color: #075985;
    background: rgba(255, 255, 255, 0.72);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.tag-row a {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    background: #f1f5f9;
}

.tag-row a:hover {
    color: #ffffff;
    background: var(--sky);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: start;
}

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

.player-card,
.article-panel,
.sidebar-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}

.player-card {
    background: #020617;
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    background: #020617;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    filter: saturate(1.1);
}

.player-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.18), rgba(2, 6, 23, 0.58));
}

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

.player-start {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--sky), var(--pink));
    box-shadow: 0 20px 42px rgba(14, 165, 233, 0.36);
}

.article-panel,
.sidebar-card {
    margin-top: 24px;
    padding: 26px;
}

.article-panel h2,
.sidebar-card h2 {
    margin-bottom: 14px;
    font-size: 24px;
}

.article-panel p {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.95;
}

.tag-row-large {
    margin-top: 0;
}

.detail-sidebar {
    position: sticky;
    top: 98px;
}

.sidebar-related {
    display: grid;
    gap: 15px;
}

.sidebar-related .movie-card-link,
.sidebar-related .movie-card > a {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: stretch;
    border-radius: 16px;
    box-shadow: none;
    border: 1px solid var(--line);
}

.sidebar-related .movie-thumb {
    height: 100%;
    aspect-ratio: auto;
}

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

.sidebar-related .movie-card h3 {
    min-height: auto;
    font-size: 15px;
}

.sidebar-related .movie-card p {
    min-height: auto;
    font-size: 13px;
    -webkit-line-clamp: 2;
}

.sidebar-related .movie-meta {
    display: none;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 48%, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 42px;
    padding: 52px 0;
}

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

.site-footer p {
    max-width: 470px;
    margin: 18px 0 0;
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 18px;
    color: #ffffff;
}

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

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 14px;
    }

    .site-search-form input {
        width: 190px;
    }

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

@media (max-width: 900px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .hero,
    .hero-stage,
    .hero-slides {
        min-height: 680px;
    }

    .hero-slide {
        flex-direction: column;
        justify-content: center;
        padding: 42px 36px 76px;
        text-align: center;
    }

    .hero-poster {
        flex-basis: auto;
        width: min(280px, 76vw);
    }

    .hero-meta,
    .hero-actions {
        justify-content: center;
    }

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

    .filter-panel,
    .detail-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }
}

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

    .nav-shell {
        min-height: 66px;
    }

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

    .hero,
    .hero-stage,
    .hero-slides {
        min-height: 650px;
    }

    .hero-slide {
        padding: 32px 22px 78px;
    }

    .hero-control {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .hero-prev {
        left: 12px;
    }

    .hero-next {
        right: 12px;
    }

    .section {
        padding: 56px 0;
    }

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

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

    .ranking-item a {
        min-height: 116px;
    }

    .ranking-item img {
        flex-basis: 110px;
        width: 110px;
        height: 84px;
    }

    .page-hero,
    .detail-hero {
        padding: 52px 0;
    }

    .detail-poster {
        max-width: 260px;
    }

    .sidebar-related .movie-card-link,
    .sidebar-related .movie-card > a {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}
