
:root {
    --blue: #2563eb;
    --blue-dark: #1e3a8a;
    --cyan: #06b6d4;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 45%, #ecfeff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

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: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    position: relative;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.brand-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.brand strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand em {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.nav-link {
    position: relative;
    padding: 10px 14px;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
    background: #eff6ff;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #111827;
    border-radius: 99px;
}

.home-hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

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

.hero-slide {
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

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

.hero-slide img.is-hidden {
    display: none;
}

.hero-slide.missing-image {
    background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.45), transparent 30%),
        linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0891b2);
}

.hero-slide.missing-image::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 32px;
    color: #ffffff;
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 900;
    text-align: center;
    text-shadow: 0 18px 45px rgba(2, 6, 23, 0.65);
    content: attr(data-title);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(30, 58, 138, 0.74) 46%, rgba(15, 23, 42, 0.18)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    min-height: 560px;
    padding-top: 50px;
}

.hero-copy {
    max-width: 690px;
    animation: fadeUp 0.8s ease both;
}

.hero-label,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.28);
    backdrop-filter: blur(12px);
}

.hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(40px, 7vw, 74px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin: 0 0 22px;
    max-width: 620px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.filter-chips,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag,
.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    background: #dbeafe;
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.32);
}

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

.primary-button.light {
    color: var(--blue);
    background: #ffffff;
}

.primary-button.full {
    width: 100%;
    margin-top: 16px;
}

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

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 64px;
    z-index: 5;
    transform: translateX(-50%);
}

.hero-search label {
    display: block;
    margin-bottom: 9px;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 700;
}

.search-bar,
.filter-panel,
.search-panel-large {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.search-bar input,
.filter-panel input,
.search-panel-large input,
.filter-panel select {
    width: 100%;
    color: #111827;
    border: 1px solid #d1d5db;
    outline: none;
    background: #ffffff;
    border-radius: 14px;
}

.search-bar input {
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    background: transparent;
}

.search-bar a {
    white-space: nowrap;
    padding: 11px 16px;
    color: #ffffff;
    font-weight: 800;
    border-radius: 14px;
    background: var(--blue);
}

.hero-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.hero-category-links a {
    padding: 7px 11px;
    color: #e0f2fe;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(10px);
}

.hero-dots {
    position: absolute;
    right: max(28px, calc((100vw - 1180px) / 2));
    bottom: 118px;
    z-index: 6;
    display: grid;
    gap: 10px;
}

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

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

.featured-strip {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: -58px;
}

.page-section {
    padding: 64px 0;
}

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

.section-kicker {
    color: var(--blue);
    border: 0;
    background: #dbeafe;
}

.section-head h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-more {
    color: var(--blue);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

.four-cols {
    grid-template-columns: repeat(4, 1fr);
}

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

.grid-card,
.featured-card,
.list-card,
.info-card,
.content-card,
.player-card,
.side-card,
.category-card,
.callout-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.grid-card,
.featured-card,
.list-card,
.category-card {
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.grid-card:hover,
.featured-card:hover,
.list-card:hover,
.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1d4ed8 55%, #06b6d4);
}

.poster-wrap::after,
.category-cover::after {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    padding: 20px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 2px 12px rgba(15, 23, 42, 0.55);
    content: attr(data-title);
}

.poster-wrap.missing-image::after,
.category-cover.missing-image::after {
    display: grid;
}

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

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

.movie-cover.is-hidden,
.category-cover img.is-hidden {
    display: none;
}

.poster-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(2, 6, 23, 0.42);
    transition: opacity 0.28s ease;
}

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

.duration-badge,
.rank-badge,
.category-pill,
.category-mini {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
}

.duration-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.78);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    color: #ffffff;
    font-size: 24px;
    border-radius: 999px;
    opacity: 0;
    background: rgba(37, 99, 235, 0.82);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.34);
    transform: translate(-50%, -50%) scale(0.88);
    transition: all 0.28s ease;
}

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

.card-body {
    padding: 16px;
}

.card-title-line,
.list-card-head {
    display: flex;
    align-items: center;
    gap: 9px;
}

.card-body h3,
.list-card h3,
.featured-card h3 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.card-body p,
.list-card p,
.featured-card p {
    display: -webkit-box;
    margin: 8px 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: #6b7280;
    font-size: 13px;
}

.category-mini,
.category-pill {
    padding: 4px 9px;
    color: #1d4ed8;
    background: #dbeafe;
}

.rank-badge {
    flex-shrink: 0;
    padding: 4px 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.featured-card {
    position: relative;
    min-height: 360px;
    color: #ffffff;
}

.featured-card .poster-wrap,
.featured-card .movie-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

.featured-card::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.1));
    content: "";
}

.featured-copy {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 26px;
}

.featured-copy h3,
.featured-copy p,
.light-meta {
    color: #ffffff;
}

.list-stack {
    display: grid;
    gap: 16px;
}

.list-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: stretch;
}

.list-poster {
    height: 100%;
    min-height: 138px;
    aspect-ratio: auto;
}

.list-card-body {
    padding: 18px 18px 18px 0;
}

.stats-band {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 48px 0;
    text-align: center;
}

.stats-grid strong {
    display: block;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1;
}

.stats-grid span {
    color: #e0f2fe;
    font-weight: 700;
}

.light-section {
    background: rgba(248, 250, 252, 0.78);
}

.callout-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 72px;
    padding: 42px;
    color: #ffffff;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
        linear-gradient(135deg, var(--blue), var(--cyan));
    overflow: hidden;
}

.callout-card span {
    color: #dbeafe;
    font-weight: 900;
}

.callout-card h2 {
    margin: 8px 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.callout-card p {
    max-width: 680px;
    margin: 0;
    color: #e0f2fe;
}

.page-hero {
    padding: 70px 0;
}

.gradient-hero {
    color: #ffffff;
    background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.16), transparent 25%),
        linear-gradient(135deg, #1d4ed8, #0891b2);
}

.page-hero h1 {
    margin: 12px 0 10px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 700;
}

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

.detail-breadcrumb {
    margin: 26px 0;
    color: #64748b;
}

.detail-breadcrumb a:hover {
    color: var(--blue);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    display: grid;
    grid-template-columns: 148px 1fr;
    gap: 18px;
    min-height: 170px;
}

.category-cover {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #2563eb, #06b6d4);
}

.category-card > div:last-child {
    padding: 22px 18px 22px 0;
}

.category-card span {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.category-card h2 {
    margin: 6px 0;
    font-size: 24px;
}

.category-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 20px;
    margin-bottom: 18px;
    padding: 20px;
}

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

.filter-panel label,
.search-panel-large label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.search-panel-large input {
    min-height: 46px;
    padding: 0 14px;
}

.filter-chips {
    margin: 0 0 24px;
}

.filter-chip {
    color: #475569;
    background: #f1f5f9;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    background: var(--blue);
}

.search-panel-large {
    margin-bottom: 26px;
    padding: 24px;
}

.search-panel-large input {
    min-height: 58px;
    font-size: 18px;
}

.filter-count {
    margin: 12px 0 0;
    color: var(--muted);
}

.top-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 34px;
}

.ranking-list .list-card:nth-child(-n + 12) .rank-badge {
    background: linear-gradient(135deg, #facc15, #f97316);
}

.detail-page {
    padding-bottom: 76px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.detail-main {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.player-card,
.info-card,
.content-card,
.side-card {
    overflow: hidden;
}

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

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.2));
    font-size: 18px;
    font-weight: 900;
    transition: background 0.25s ease, opacity 0.25s ease;
}

.player-start span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.38);
}

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

.player-message {
    position: absolute;
    left: 18px;
    bottom: 18px;
    max-width: calc(100% - 36px);
    padding: 8px 12px;
    color: #e5e7eb;
    font-size: 13px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.68);
}

.source-tabs {
    display: flex;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid #111827;
    background: #020617;
}

.source-button {
    padding: 9px 14px;
    color: #cbd5e1;
    border: 1px solid #334155;
    border-radius: 999px;
    background: #0f172a;
}

.source-button.active,
.source-button:hover {
    color: #ffffff;
    border-color: var(--blue);
    background: var(--blue);
}

.info-card,
.content-card,
.side-card {
    padding: 24px;
}

.info-card h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.14;
    letter-spacing: -0.04em;
}

.one-line {
    margin: 0 0 16px;
    color: #475569;
    font-size: 18px;
}

.detail-meta {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.tag-row {
    margin-top: 18px;
}

.movie-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 22px 0 0;
}

.movie-facts div {
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.movie-facts dt {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.movie-facts dd {
    margin: 4px 0 0;
    color: #111827;
    font-weight: 800;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.content-card p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
}

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

.detail-side > * {
    position: sticky;
    top: 96px;
}

.side-list .list-card {
    grid-template-columns: 114px 1fr;
    gap: 12px;
    border: 0;
    box-shadow: none;
}

.side-list .list-card + .list-card {
    margin-top: 12px;
}

.side-list .list-card-body {
    padding: 8px 0;
}

.side-list .list-poster {
    min-height: 82px;
}

.side-list p,
.side-list .card-meta {
    display: none;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.prev-next a {
    flex: 1;
    padding: 15px 18px;
    color: var(--blue);
    font-weight: 900;
    text-align: center;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: #eff6ff;
}

.related-section {
    padding-bottom: 0;
}

.site-footer {
    color: #e5e7eb;
    background: linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0f172a);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding: 54px 0 34px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer h2 {
    background: linear-gradient(90deg, #93c5fd, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-footer p,
.site-footer a {
    color: #cbd5e1;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a:hover {
    color: #67e8f9;
}

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

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .four-cols,
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .detail-side > * {
        position: static;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .mobile-menu-button {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 74px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 14px;
    }

    .home-hero {
        min-height: 760px;
    }

    .hero-content {
        align-items: start;
        min-height: 520px;
        padding-top: 82px;
    }

    .hero-search {
        bottom: 36px;
    }

    .hero-dots {
        right: 18px;
        bottom: 30px;
    }

    .featured-strip,
    .top-three,
    .three-cols,
    .four-cols,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-strip {
        margin-top: 26px;
    }

    .featured-card {
        min-height: 300px;
    }

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

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

    .callout-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

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

    .home-hero {
        min-height: 800px;
    }

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

    .search-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-bar a {
        text-align: center;
    }

    .featured-strip,
    .top-three,
    .three-cols,
    .four-cols,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .prev-next {
        align-items: stretch;
        flex-direction: column;
    }

    .list-card,
    .category-card {
        grid-template-columns: 128px 1fr;
    }

    .list-card-body,
    .category-card > div:last-child {
        padding: 14px 14px 14px 0;
    }

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