:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --secondary-50: #f0fdf4;
    --secondary-500: #22c55e;
    --secondary-600: #16a34a;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 16px 40px rgba(2, 132, 199, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--neutral-800);
    background: linear-gradient(180deg, var(--neutral-50), #ffffff 42%);
}

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

img {
    display: block;
    max-width: 100%;
    background: linear-gradient(135deg, var(--primary-100), var(--secondary-50));
}

button,
input,
select {
    font: inherit;
}

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

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

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-700);
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.nav-link {
    color: var(--neutral-700);
    font-weight: 650;
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid var(--neutral-200);
    border-radius: 999px;
    background: #ffffff;
}

.nav-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
    border: 0;
    outline: 0;
    color: var(--neutral-800);
    background: #ffffff;
}

.nav-search input {
    width: 180px;
    padding: 9px 12px;
}

.nav-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #ffffff;
    background: var(--primary-600);
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--primary-50);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: var(--primary-700);
}

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

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

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 14px 0;
}

.mobile-search input {
    min-width: 0;
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--neutral-200);
    border-radius: 999px;
}

.mobile-link {
    display: block;
    padding: 12px 10px;
    border-radius: 12px;
    color: var(--neutral-700);
    font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
    color: var(--primary-700);
    background: var(--primary-50);
}

.hero-slider {
    position: relative;
    min-height: 620px;
    height: 72vh;
    max-height: 820px;
    overflow: hidden;
    color: #ffffff;
    background: var(--neutral-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 1.2s ease;
}

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

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

.hero-mask {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 20%, rgba(56, 189, 248, 0.28), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.56) 44%, rgba(0, 0, 0, 0.12)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 38%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    top: 50%;
    width: min(650px, calc(100% - 48px));
    transform: translateY(-50%);
}

.hero-eyebrow,
.section-kicker {
    color: var(--primary-400);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.hero-content p {
    max-width: 600px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

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

.hero-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions,
.intro-actions,
.compact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.26);
}

.button-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.button-soft {
    color: var(--primary-800);
    background: rgba(224, 242, 254, 0.95);
}

.button-outline {
    color: var(--primary-700);
    border-color: var(--primary-200);
    background: #ffffff;
}

.button-wide {
    width: 100%;
}

.hero-controls {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 148px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 26px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

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

.hero-thumbs {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 28px;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.hero-thumb {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
}

.hero-thumb.is-active {
    border-color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.18);
}

.hero-thumb img {
    width: 74px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-thumb span {
    min-width: 0;
}

.hero-thumb strong,
.hero-thumb em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-thumb strong {
    font-size: 14px;
}

.hero-thumb em {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    font-style: normal;
}

.section {
    padding: 72px 0;
}

.section-tight {
    padding: 44px 0 18px;
}

.section-gradient {
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
}

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

.section-heading-inner {
    margin-bottom: 22px;
}

.section-heading h2,
.intro-grid h2,
.panel-head h2,
.page-hero h1 {
    margin: 8px 0 0;
    color: var(--neutral-900);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.lead,
.page-hero p,
.category-hero p {
    color: var(--neutral-600);
    font-size: 18px;
    line-height: 1.8;
}

.text-link {
    color: var(--primary-700);
    font-weight: 800;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.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));
    gap: 28px;
}

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

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

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(229, 229, 229, 0.88);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card-link:hover {
    transform: translateY(-5px);
    border-color: var(--primary-200);
    box-shadow: var(--shadow-card);
}

.card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
}

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

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

.card-badge,
.card-rank {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(2, 132, 199, 0.88);
    backdrop-filter: blur(10px);
}

.card-badge {
    left: 12px;
    top: 12px;
}

.card-rank {
    right: 12px;
    top: 12px;
    background: rgba(22, 163, 74, 0.88);
}

.card-content {
    display: block;
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 46px;
    color: var(--neutral-900);
    font-size: 18px;
    line-height: 1.28;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin-top: 8px;
    color: var(--neutral-600);
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.card-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--neutral-100);
}

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

.category-card,
.category-overview-card a {
    display: block;
    overflow: hidden;
    height: 100%;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.category-overview-card a:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 56px rgba(2, 132, 199, 0.18);
}

.category-cover {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.category-body,
.overview-content {
    display: block;
    padding: 16px;
}

.category-body strong,
.overview-content strong {
    display: block;
    color: var(--neutral-900);
    font-size: 18px;
}

.category-body span,
.overview-content span {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    color: var(--neutral-600);
    font-size: 14px;
    line-height: 1.58;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.overview-images {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4px;
    height: 150px;
    overflow: hidden;
}

.overview-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overview-content em {
    display: inline-flex;
    margin-top: 16px;
    color: var(--primary-700);
    font-style: normal;
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: start;
}

.ranking-panel {
    padding: 24px;
    border: 1px solid rgba(229, 229, 229, 0.88);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ranking-list {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.ranking-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: var(--neutral-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.rank-num {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    color: var(--neutral-900);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: var(--neutral-500);
    font-size: 13px;
}

.page-hero {
    padding: 78px 0;
    background: linear-gradient(180deg, var(--primary-50), #ffffff);
}

.page-hero-gradient {
    color: #ffffff;
    background:
        radial-gradient(circle at 75% 25%, rgba(34, 197, 94, 0.32), transparent 32%),
        linear-gradient(135deg, var(--primary-600), var(--primary-800));
}

.page-hero-gradient h1,
.page-hero-gradient p,
.page-hero-gradient .section-kicker {
    color: #ffffff;
}

.category-hero {
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
}

.category-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 36px;
    align-items: center;
}

.hero-mini-list,
.compact-list {
    display: grid;
    gap: 12px;
}

.compact-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
    transform: translateX(3px);
    background: #ffffff;
}

.compact-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
}

.compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-info {
    min-width: 0;
}

.compact-info strong,
.compact-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-info strong {
    color: var(--neutral-900);
    font-size: 15px;
}

.compact-info span {
    margin-top: 6px;
    color: var(--neutral-500);
    font-size: 13px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 26px;
    padding: 12px;
    border: 1px solid var(--neutral-200);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--neutral-200);
    border-radius: 999px;
}

.empty-state {
    padding: 30px;
    border-radius: 18px;
    color: var(--neutral-600);
    text-align: center;
    background: var(--neutral-50);
}

.search-page-form {
    display: flex;
    gap: 12px;
    width: min(660px, 100%);
    margin-top: 28px;
    padding: 8px;
    border-radius: 999px;
    background: #ffffff;
}

.search-page-form input {
    min-width: 0;
    flex: 1;
    padding: 0 16px;
    border-radius: 999px;
}

.search-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: start;
}

.detail-player-section {
    padding: 28px 0 38px;
    background: var(--neutral-900);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle, rgba(14, 165, 233, 0.28), transparent 36%),
        rgba(0, 0, 0, 0.34);
    cursor: pointer;
}

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

.play-circle {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--primary-700);
    background: #ffffff;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
    font-size: 32px;
    text-indent: 4px;
}

.detail-section {
    padding-top: 48px;
}

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

.detail-head {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    padding: 26px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.detail-head h1 {
    margin: 10px 0 12px;
    color: var(--neutral-900);
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-one-line {
    color: var(--neutral-600);
    font-size: 18px;
    line-height: 1.72;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 16px 0;
}

.detail-meta span,
.detail-tags span {
    color: var(--primary-800);
    border-color: var(--primary-200);
    background: var(--primary-50);
}

.detail-content {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.content-box {
    padding: 28px;
    border: 1px solid rgba(229, 229, 229, 0.88);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.content-box h2 {
    margin: 0 0 14px;
    color: var(--neutral-900);
    font-size: 24px;
}

.content-box p {
    margin: 0;
    color: var(--neutral-700);
    font-size: 16px;
    line-height: 1.9;
}

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

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 0.8fr 1fr;
    gap: 36px;
    padding: 54px 0 36px;
}

.footer-logo {
    color: #ffffff;
}

.footer-brand p {
    max-width: 560px;
    color: var(--neutral-300);
    line-height: 1.8;
}

.footer-col h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 17px;
}

.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 1;
}

.footer-col li {
    margin: 9px 0;
}

.footer-col a:hover {
    color: var(--primary-400);
}

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

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

    .nav-link:nth-last-child(-n + 3) {
        display: none;
    }

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

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

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

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

    .hero-slider {
        min-height: 660px;
        height: auto;
    }

    .hero-content {
        top: 42%;
    }

    .hero-thumbs {
        grid-template-columns: 1fr;
        max-height: 156px;
        overflow: auto;
    }

    .hero-controls {
        right: 24px;
        bottom: 204px;
    }

    .intro-grid,
    .split-layout,
    .category-hero-grid,
    .search-layout,
    .detail-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 640px) {
    .container,
    .nav-wrap,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .site-logo {
        font-size: 20px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero-slider {
        min-height: 710px;
    }

    .hero-content {
        left: 18px;
        width: calc(100% - 36px);
    }

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

    .hero-controls {
        left: 18px;
        right: auto;
    }

    .hero-thumbs {
        left: 18px;
        right: 18px;
    }

    .section {
        padding: 52px 0;
    }

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

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

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

    .search-page-form {
        flex-direction: column;
        border-radius: 22px;
    }

    .search-page-form input {
        min-height: 46px;
    }

    .compact-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .detail-head,
    .content-box,
    .ranking-panel {
        padding: 20px;
    }
}
