:root {
    --color-red: #dc2626;
    --color-red-dark: #b91c1c;
    --color-orange: #ea580c;
    --color-yellow: #fde68a;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-line: #e5e7eb;
    --color-bg: #f8fafc;
    --shadow-soft: 0 18px 35px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: min(1180px, calc(100% - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--color-text);
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 46%, #fff7ed 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.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, 231, 235, 0.85);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.nav-shell {
    width: var(--container);
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.22rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    box-shadow: 0 10px 18px rgba(220, 38, 38, 0.28);
    font-size: 0.88rem;
}

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

.desktop-nav a {
    font-weight: 650;
    color: #374151;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--color-red);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(320px, 30vw);
}

.header-search input,
.mobile-nav input,
.filter-bar input,
.filter-bar select,
.search-panel input {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-nav input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus {
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.header-search button,
.mobile-nav button,
.search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    cursor: pointer;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    background: #f3f4f6;
    color: #374151;
}

.mobile-nav {
    display: none;
    width: var(--container);
    margin: 0 auto;
    padding: 12px 0 16px;
    border-top: 1px solid #f3f4f6;
}

.mobile-nav.is-open {
    display: grid;
    gap: 10px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    color: #374151;
}

.mobile-nav a:hover {
    color: var(--color-red);
    background: #fff1f2;
}

.mobile-nav form {
    display: flex;
    gap: 8px;
}

.hero {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(253, 230, 138, 0.32), transparent 25%), linear-gradient(135deg, #dc2626 0%, #ea580c 48%, #991b1b 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.06));
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
    background-size: 58px 58px;
}

.hero-inner {
    position: relative;
    width: var(--container);
    min-height: 540px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.08fr 0.72fr;
    align-items: center;
    gap: 56px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-badge,
.page-hero span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    font-weight: 750;
    font-size: 0.92rem;
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.08em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 1.2rem;
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn,
.action-row button,
.action-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 14px;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.action-row button:hover,
.action-row a:hover {
    transform: translateY(-2px);
}

.btn-light {
    color: var(--color-red);
    background: #ffffff;
    box-shadow: 0 14px 26px rgba(255, 255, 255, 0.22);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-red,
.action-row button,
.action-row a {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
}

.hero-tags,
.movie-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.movie-tags span,
.tag-cloud a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    max-height: 430px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08));
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.32);
    transform: rotate(2deg);
}

.hero-poster::before,
.poster::before,
.row-poster::before,
.category-cover::before,
.category-collage::before,
.ranking-poster::before {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 900;
    background: linear-gradient(135deg, #ef4444, #f97316 48%, #111827);
}

.hero-poster img,
.poster img,
.row-poster img,
.category-cover img,
.category-collage img,
.ranking-poster img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-play {
    position: absolute;
    z-index: 2;
    inset: auto 22px 22px auto;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--color-red);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 38px;
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 28px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.34);
}

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

.stats-strip {
    width: var(--container);
    margin: -42px auto 24px;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stats-strip div {
    padding: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.stats-strip strong {
    display: block;
    color: var(--color-red);
    font-size: 2rem;
    line-height: 1;
}

.stats-strip span {
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.content-section {
    width: var(--container);
    margin: 0 auto;
    padding: 54px 0;
}

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

.section-heading h2,
.detail-card h2,
.side-card h2,
.ranking-side h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 7px 0 0;
    color: var(--color-muted);
}

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

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

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

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

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

.movie-card > a:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

.poster img {
    transition: transform 0.5s ease;
}

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

.poster::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.18), transparent 58%);
}

.poster-year {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    border-radius: 9px;
    padding: 4px 8px;
    color: #ffffff;
    background: var(--color-red);
    font-size: 0.75rem;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--color-red);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-caption {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px;
    color: #ffffff;
}

.poster-caption h3,
.movie-meta h3 {
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.poster-caption h3 {
    font-size: 0.98rem;
    line-height: 1.25;
}

.poster-caption p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
}

.movie-meta {
    padding: 14px;
}

.movie-meta h3 {
    font-size: 1rem;
    line-height: 1.3;
}

.movie-meta p {
    min-height: 42px;
    margin: 8px 0 12px;
    color: var(--color-muted);
    font-size: 0.86rem;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-tags span,
.tag-cloud a {
    color: var(--color-red);
    background: #fff1f2;
}

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

.category-tile,
.category-panel > a {
    display: grid;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-panel > a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.category-cover,
.category-collage,
.ranking-poster,
.row-poster {
    position: relative;
    overflow: hidden;
    background: #111827;
}

.category-cover {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
}

.category-tile h3,
.category-panel h2 {
    margin: 0;
    font-size: 1.25rem;
}

.category-tile p,
.category-panel p {
    margin: 6px 0;
    color: var(--color-muted);
}

.category-tile span,
.category-panel strong {
    color: var(--color-red);
    font-weight: 900;
}

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

.category-collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    aspect-ratio: 18 / 8;
    border-radius: 20px;
}

.category-collage img {
    min-width: 0;
}

.category-panel-body {
    padding: 4px 4px 8px;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 80% 20%, rgba(253, 230, 138, 0.22), transparent 28%), linear-gradient(135deg, var(--color-red), var(--color-orange));
}

.page-hero > div {
    width: var(--container);
    margin: 0 auto;
    padding: 66px 0;
}

.page-hero.compact > div {
    padding: 48px 0;
}

.page-hero h1 {
    margin: 16px 0 10px;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.08em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.90);
    font-size: 1.1rem;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.filter-bar.rich {
    display: grid;
    grid-template-columns: 1fr 180px 180px auto;
}

.filter-bar span,
.search-panel p {
    color: var(--color-muted);
    font-weight: 800;
    white-space: nowrap;
}

.detail-main {
    background: #f8fafc;
}

.breadcrumb {
    width: var(--container);
    margin: 0 auto;
    padding: 20px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--color-red);
    font-weight: 750;
}

.detail-layout {
    width: var(--container);
    margin: 0 auto;
    padding: 24px 0 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.detail-content {
    display: grid;
    gap: 20px;
}

.player-card,
.detail-card,
.side-card,
.search-panel,
.ranking-side {
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at center, #1f2937, #020617);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.80), rgba(0, 0, 0, 0.22));
}

.player-overlay span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--color-red);
    background: rgba(255, 255, 255, 0.94);
    font-size: 1.6rem;
    box-shadow: var(--shadow-soft);
}

.player-overlay strong {
    font-size: 1.4rem;
}

.player-overlay em {
    color: rgba(255, 255, 255, 0.74);
    font-style: normal;
}

.player-stage.is-playing .player-overlay {
    display: none;
}

.player-message {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    z-index: 3;
    margin: 0;
    color: #fecaca;
    text-align: center;
    font-weight: 700;
}

.detail-card {
    padding: 24px;
}

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

.detail-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-heading p {
    margin: 10px 0 0;
    color: var(--color-muted);
    font-size: 1.05rem;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.detail-meta div {
    padding: 14px;
    border-radius: 16px;
    background: #f9fafb;
}

.detail-meta dt {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.detail-meta dd {
    margin: 4px 0 0;
    font-weight: 850;
}

.tag-cloud {
    margin-bottom: 18px;
}

.action-row button,
.action-row a {
    min-height: 40px;
    font-size: 0.9rem;
}

.prose-card p {
    margin: 14px 0 0;
    color: #374151;
    white-space: pre-line;
}

.detail-sidebar {
    display: grid;
    gap: 20px;
    align-content: start;
}

.side-card,
.ranking-side {
    padding: 20px;
}

.side-card {
    position: sticky;
    top: 88px;
}

.side-card + .side-card {
    position: static;
}

.media-row {
    display: grid;
    grid-template-columns: auto 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.media-row:last-child {
    border-bottom: 0;
}

.row-poster {
    width: 58px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
}

.media-row strong {
    display: block;
    line-height: 1.25;
}

.media-row span:not(.rank-number) {
    display: block;
    color: var(--color-muted);
    font-size: 0.78rem;
    margin-top: 4px;
}

.rank-number {
    width: 30px;
    color: var(--color-red);
    font-weight: 950;
}

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

.ranking-list {
    display: grid;
    gap: 14px;
}

.ranking-card > a {
    display: grid;
    grid-template-columns: 64px 112px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-card > a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.ranking-index {
    color: transparent;
    -webkit-text-stroke: 1px var(--color-red);
    font-size: 2rem;
    font-weight: 950;
}

.ranking-poster {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
}

.ranking-card h2 {
    margin: 0;
    font-size: 1.25rem;
}

.ranking-card p {
    margin: 8px 0;
    color: var(--color-muted);
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-meta {
    color: var(--color-red);
    font-weight: 800;
    font-size: 0.88rem;
}

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

.search-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.site-footer {
    margin-top: 30px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 46%, #0f172a);
}

.footer-grid {
    width: var(--container);
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

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

.site-footer p {
    margin: 12px 0 0;
    color: #9ca3af;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

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

.footer-bottom {
    width: var(--container);
    margin: 0 auto;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #9ca3af;
    font-size: 0.9rem;
}

[hidden],
.is-hidden {
    display: none !important;
}

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

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

    .hero-slide {
        grid-template-columns: 1fr 300px;
        gap: 28px;
    }

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

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

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

    .side-card {
        position: static;
    }
}

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

    .nav-shell {
        height: 62px;
    }

    .brand {
        font-size: 1.05rem;
    }

    .hero,
    .hero-inner {
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
        padding: 34px 0 82px;
    }

    .hero-poster {
        max-height: 320px;
        width: min(240px, 70vw);
        justify-self: center;
    }

    .hero-dots {
        bottom: 24px;
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 18px;
    }

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

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

    .movie-meta {
        padding: 12px;
    }

    .movie-meta p,
    .movie-tags {
        display: none;
    }

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

    .filter-bar,
    .filter-bar.rich {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

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

    .ranking-card > a {
        grid-template-columns: 44px 82px 1fr;
        gap: 12px;
    }

    .ranking-card p {
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .movie-grid.large {
        grid-template-columns: 1fr;
    }

    .stats-strip,
    .detail-meta {
        grid-template-columns: 1fr;
    }

    .search-panel form,
    .mobile-nav form {
        grid-template-columns: 1fr;
        display: grid;
    }
}
