:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #06b6d4;
    --purple: #7c3aed;
    --red: #ef4444;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1240px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon,
.footer-brand:hover .brand-icon {
    transform: scale(1.08);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: transparent;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

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

.desktop-nav a,
.mobile-panel a {
    color: #334155;
    font-weight: 650;
    transition: color 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
    color: var(--blue);
}

.top-search {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.top-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 8px 10px 8px 16px;
    background: transparent;
    color: var(--text);
}

.top-search button,
.primary-button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    padding: 10px 18px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.26);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.top-search button:hover,
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.32);
}

.primary-button.small {
    padding: 8px 14px;
    font-size: 14px;
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    font-weight: 750;
    transition: background 0.25s ease, transform 0.25s ease;
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--blue);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.mobile-panel.is-open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: #020617;
}

.hero-track,
.hero-slide {
    min-height: 660px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: center;
    gap: 42px;
    width: 100%;
    padding: 112px max(32px, calc((100vw - 1240px) / 2)) 80px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: blur(3px) saturate(1.1);
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 20%, rgba(6, 182, 212, 0.36), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.82) 48%, rgba(30, 41, 59, 0.42));
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content .hero-kicker {
    color: #93c5fd;
}

.hero-content h1 {
    max-width: 820px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 5.7vw, 72px);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content h2 {
    margin: 20px 0 10px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 850;
}

.hero-content p {
    max-width: 700px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
}

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

.hero-tags {
    margin-top: 20px;
}

.hero-poster {
    display: block;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 38px 90px rgba(0, 0, 0, 0.45);
    aspect-ratio: 3 / 4;
    transform: rotate(2deg);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
    font-size: 26px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-controls button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-controls button.is-active {
    width: 34px;
    background: #ffffff;
}

.section {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.section-white {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100vw - 1240px) / 2));
    padding-right: max(16px, calc((100vw - 1240px) / 2));
    background: #ffffff;
}

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

.section-head h2,
.page-hero h1,
.detail-card h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-head p:not(.section-kicker) {
    color: var(--muted);
}

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

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

.movie-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: #bfdbfe;
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7));
    opacity: 0.85;
}

.play-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 28px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.play-mark::before {
    content: "";
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    z-index: -1;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: scale(1.06);
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 4px 9px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: auto;
    right: 12px;
    background: rgba(239, 68, 68, 0.92);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card h3 a:hover {
    color: var(--blue);
}

.movie-card-meta,
.movie-card-text {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.movie-card-text {
    min-height: 46px;
    margin-top: 8px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-card .tag-row {
    margin-top: 14px;
}

.tag-row span,
.quick-links a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.category-tile {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: 22px;
    padding: 22px;
    color: #ffffff;
    box-shadow: var(--soft-shadow);
}

.category-tile img,
.category-glow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-glow {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(6, 182, 212, 0.72));
}

.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 2;
    display: block;
}

.category-tile strong {
    margin-top: 52px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile em {
    margin-top: 4px;
    font-style: normal;
    color: #dbeafe;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 32px;
}

.compact-head {
    margin-bottom: 18px;
}

.rank-list,
.side-panel {
    display: grid;
    gap: 12px;
}

.mini-card {
    display: grid;
    grid-template-columns: auto 76px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.side-panel .mini-card {
    grid-template-columns: 64px minmax(0, 1fr);
}

.mini-card:hover {
    transform: translateX(4px);
    border-color: #bfdbfe;
    box-shadow: var(--soft-shadow);
}

.mini-card img {
    width: 76px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    background: #e2e8f0;
}

.side-panel .mini-card img {
    width: 64px;
    height: 48px;
}

.mini-card strong,
.mini-card em {
    display: block;
    min-width: 0;
}

.mini-card strong {
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    font-weight: 850;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mini-card em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.mini-rank {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), #f97316);
    border-radius: 999px;
    font-weight: 900;
}

.search-panel-card {
    min-height: 100%;
    padding: 28px;
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 90% 0%, rgba(6, 182, 212, 0.5), transparent 30%),
        linear-gradient(135deg, #1e3a8a, #312e81);
    box-shadow: var(--shadow);
}

.search-panel-card h3 {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.25;
}

.large-search-form {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.large-search-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 12px 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    outline: none;
}

.large-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.large-search-form button {
    border: 0;
    border-radius: 999px;
    padding: 0 20px;
    color: var(--blue);
    background: #ffffff;
    font-weight: 900;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.page-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 88px 0 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 32px;
    align-items: end;
}

.small-hero,
.category-hero,
.search-hero {
    display: block;
    max-width: 980px;
    text-align: center;
}

.page-hero p:not(.section-kicker) {
    margin: 16px auto 0;
    max-width: 820px;
    color: var(--muted);
    font-size: 18px;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    background: #e2e8f0;
}

.category-card-large h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
}

.category-card-large p {
    margin: 0 0 16px;
    color: var(--muted);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #f8fafc;
}

.wide-filter {
    grid-template-columns: minmax(260px, 1fr) 170px 170px 170px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 11px 14px;
    color: var(--text);
    background: #ffffff;
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.filter-status {
    min-height: 24px;
    margin: -10px 0 22px;
    color: var(--muted);
    font-weight: 700;
}

.rank-hero-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.rank-hero-item {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    border-radius: 20px;
    color: #ffffff;
    background: #0f172a;
    box-shadow: var(--soft-shadow);
}

.rank-hero-item img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    opacity: 0.78;
}

.rank-hero-item span,
.rank-hero-item strong {
    position: absolute;
    z-index: 2;
}

.rank-hero-item span {
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.92);
    font-weight: 900;
}

.rank-hero-item strong {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 16px;
}

.detail-main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 12px 0 22px;
    color: var(--muted);
    font-size: 14px;
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.32);
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background:
        radial-gradient(circle, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.68)),
        rgba(0, 0, 0, 0.12);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.93);
    border-radius: 50%;
    font-size: 36px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

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

.detail-card,
.side-panel {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.detail-one-line {
    margin: 18px 0 0;
    color: #334155;
    font-size: 18px;
    font-weight: 700;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 800;
    font-size: 13px;
}

.detail-tags {
    margin-bottom: 22px;
}

.detail-card h2,
.side-panel h2 {
    margin: 24px 0 10px;
    font-size: 22px;
    font-weight: 900;
}

.detail-card p {
    color: #334155;
}

.side-poster {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.side-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #e2e8f0;
}

.detail-related-section {
    padding-top: 52px;
}

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

.footer-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr;
    gap: 30px;
}

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

.site-footer p {
    max-width: 520px;
    color: #94a3b8;
}

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

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

.site-footer a:hover {
    color: #60a5fa;
}

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

[data-card].is-hidden {
    display: none;
}

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding-top: 100px;
    }

    .hero-poster {
        display: none;
    }

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

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

    .split-section,
    .detail-layout,
    .page-hero {
        grid-template-columns: 1fr;
    }

    .category-large-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        height: 64px;
    }

    .brand-copy strong {
        font-size: 17px;
    }

    .hero-carousel,
    .hero-track,
    .hero-slide {
        min-height: 620px;
    }

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

    .hero-content p {
        font-size: 16px;
    }

    .hero-actions,
    .large-search-form {
        flex-direction: column;
    }

    .movie-grid,
    .category-grid,
    .rank-hero-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-card-large {
        grid-template-columns: 1fr;
    }

    .filter-bar,
    .wide-filter {
        grid-template-columns: 1fr;
    }

    .detail-title-row {
        flex-direction: column;
    }

    .section,
    .section-white {
        padding-top: 46px;
        padding-bottom: 46px;
    }

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

@media (max-width: 520px) {
    .movie-grid {
        gap: 16px;
    }

    .movie-card-body,
    .detail-card,
    .side-panel {
        padding: 18px;
    }

    .mobile-panel.is-open {
        grid-template-columns: 1fr;
    }

    .mini-card,
    .side-panel .mini-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .mini-rank {
        display: none;
    }
}
