:root {
    color-scheme: light;
    --color-sky: #0ea5e9;
    --color-sky-dark: #0284c7;
    --color-rose: #f43f5e;
    --color-amber: #f59e0b;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-soft: #f9fafb;
    --color-line: #e5e7eb;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-hover: 0 24px 60px rgba(15, 23, 42, 0.18);
}

* {
    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(--color-text);
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #f8fafc 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(12px);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.site-logo:hover {
    color: var(--color-sky-dark);
}

.logo-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-sky), #38bdf8);
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.28);
}

.logo-mark::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid currentColor;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
}

.nav-links a {
    transition: color 0.2s ease;
}

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

.mobile-nav-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #374151;
    background: transparent;
    cursor: pointer;
}

.mobile-nav-button:hover {
    background: #f3f4f6;
}

.mobile-nav-button span,
.mobile-nav-button span::before,
.mobile-nav-button span::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-button span::before,
.mobile-nav-button span::after {
    content: "";
    position: relative;
}

.mobile-nav-button span::before {
    top: -7px;
}

.mobile-nav-button span::after {
    top: 5px;
}

.mobile-nav-button.is-open span {
    transform: rotate(45deg);
}

.mobile-nav-button.is-open span::before {
    top: 0;
    transform: rotate(90deg);
}

.mobile-nav-button.is-open span::after {
    top: -2px;
    opacity: 0;
}

.mobile-menu {
    display: none;
    padding: 0 16px 16px;
}

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

.mobile-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #4b5563;
    font-weight: 600;
}

.mobile-menu a:hover {
    color: var(--color-sky-dark);
    background: #f0f9ff;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(90deg, #0f172a, #334155);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.52) 46%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 44px 0 72px;
    color: #ffffff;
}

.hero-inner {
    max-width: 760px;
}

.hero-kicker,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.92);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.28);
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 700;
}

.hero-title {
    margin: 18px 0 16px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
}

.hero-summary {
    max-width: 760px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.7;
}

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

.hero-meta span,
.meta-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(6px);
    font-size: 14px;
    font-weight: 700;
}

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

.button,
.hero-button,
.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: var(--color-sky);
    box-shadow: 0 16px 36px rgba(14, 165, 233, 0.24);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.hero-button:hover,
.link-button:hover {
    transform: translateY(-2px);
    background: var(--color-sky-dark);
    box-shadow: 0 22px 42px rgba(14, 165, 233, 0.32);
}

.button.button-ghost,
.hero-button.button-ghost,
.link-button.button-ghost {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.52);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.button.button-ghost:hover,
.hero-button.button-ghost:hover,
.link-button.button-ghost:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    transform: translateY(-50%);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.05);
}

.hero-control-prev {
    left: 22px;
}

.hero-control-next {
    right: 22px;
}

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

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

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

.page-shell {
    padding: 48px 0 80px;
}

.stack-large {
    display: grid;
    gap: 72px;
}

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

.section-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: #e0f2fe;
}

.section-icon.rose {
    background: #ffe4e6;
}

.section-icon.amber {
    background: #fef3c7;
}

.section-heading h2,
.section-heading h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.04em;
}

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

.page-hero {
    padding: 46px;
    margin-bottom: 36px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 28px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 54%, #eef2ff 100%);
    box-shadow: var(--shadow-card);
}

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

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.75;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.38);
    box-shadow: var(--shadow-hover);
}

.card-link {
    display: block;
    height: 100%;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #e5e7eb, #f8fafc);
}

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

.movie-card:hover .poster-frame img,
.mini-card:hover img,
.rail-card:hover img {
    transform: scale(1.055);
}

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 62%);
    transition: opacity 0.24s ease;
}

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

.score-badge,
.type-badge,
.rank-badge {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    line-height: 1;
}

.score-badge {
    top: 12px;
    right: 12px;
    min-width: 52px;
    padding: 8px 9px;
    background: rgba(245, 158, 11, 0.96);
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.28);
}

.type-badge {
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    background: rgba(2, 132, 199, 0.94);
    font-size: 12px;
}

.card-body {
    padding: 15px;
}

.card-title {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 8px;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    line-height: 1.38;
    font-weight: 800;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-summary {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.movie-card--wide .card-link {
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 210px;
}

.movie-card--wide .poster-frame {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card--wide .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.feature-block {
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, #f0f9ff, #eff6ff);
    box-shadow: inset 0 0 0 1px rgba(186, 230, 253, 0.65);
}

.rail-section {
    margin-top: 28px;
}

.rail-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.rail-title h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 21px;
}

.rail-title h3::before {
    content: "";
    width: 5px;
    height: 26px;
    border-radius: 999px;
    background: var(--color-sky);
}

.rail-scroll {
    overflow-x: auto;
    margin: 0 -18px;
    padding: 0 18px 8px;
    scrollbar-width: thin;
}

.rail-track {
    display: flex;
    width: max-content;
    gap: 16px;
}

.rail-card {
    width: 220px;
    flex: 0 0 auto;
}

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

.category-panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    min-height: 280px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-panel::after {
    content: "";
    position: absolute;
    top: -68px;
    right: -68px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
}

.category-panel h2,
.category-panel h3 {
    position: relative;
    z-index: 1;
    margin: 12px 0 10px;
    font-size: 24px;
}

.category-panel p {
    position: relative;
    z-index: 1;
    margin: 0 0 20px;
    color: #5b6472;
    line-height: 1.7;
}

.category-preview {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.filter-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
    margin: 28px 0;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.filter-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #dbe3ef;
    border-radius: 15px;
    outline: none;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input:focus {
    border-color: var(--color-sky);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button {
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
    color: #ffffff;
    background: var(--color-sky);
}

.empty-state {
    display: none;
    padding: 44px 16px;
    color: #6b7280;
    text-align: center;
    font-weight: 700;
}

.empty-state.is-visible {
    display: block;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 70px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.ranking-number {
    color: var(--color-rose);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.ranking-cover {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 2 / 3;
    background: #f3f4f6;
}

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

.ranking-content h2,
.ranking-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.ranking-content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #6b7280;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ranking-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 12px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-amber);
    font-weight: 900;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

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

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

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card,
.detail-card,
.review-card,
.side-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

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

.movie-player {
    width: 100%;
    height: 100%;
    background: #030712;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    z-index: 3;
}

.player-overlay.is-hidden {
    display: none;
}

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.95);
    box-shadow: 0 20px 42px rgba(14, 165, 233, 0.36);
}

.play-circle::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid #ffffff;
}

.detail-card,
.review-card,
.side-card {
    padding: 28px;
}

.detail-card h1 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.detail-meta .meta-chip {
    color: #0369a1;
    background: #e0f2fe;
    backdrop-filter: none;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 20px 0 0;
}

.tag-list span {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    color: #374151;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 700;
}

.content-section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.content-section h2,
.review-card h2,
.side-card h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 22px;
}

.content-section p,
.review-card p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
    white-space: pre-line;
}

.review-card {
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.detail-aside {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 22px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.mini-card img {
    width: 76px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    object-fit: cover;
    background: #f3f4f6;
    transition: transform 0.24s ease;
}

.mini-card h3 {
    display: -webkit-box;
    margin: 0 0 6px;
    overflow: hidden;
    color: #111827;
    font-size: 14px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mini-card:hover h3 {
    color: var(--color-sky-dark);
}

.mini-card p {
    display: -webkit-box;
    margin: 0 0 6px;
    overflow: hidden;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.footer {
    margin-top: 80px;
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    padding: 44px 0;
}

.footer p {
    max-width: 560px;
    margin: 14px 0 0;
    color: #6b7280;
    line-height: 1.7;
}

.footer h2,
.footer h3 {
    margin: 0 0 14px;
    font-size: 16px;
}

.footer a {
    display: block;
    margin: 8px 0;
    color: #6b7280;
    font-size: 14px;
}

.footer a:hover {
    color: var(--color-sky-dark);
}

.footer-bottom {
    padding: 22px 0;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 1120px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .detail-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .nav-links {
        display: none;
    }

    .mobile-nav-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        padding-bottom: 78px;
    }

    .hero-control {
        display: none;
    }

    .page-shell {
        padding-top: 28px;
    }

    .page-hero {
        padding: 28px;
        border-radius: 22px;
    }

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

    .movie-card--wide .card-link {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .movie-card--wide .poster-frame {
        aspect-ratio: 2 / 3;
    }

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

    .ranking-row {
        grid-template-columns: 50px 72px minmax(0, 1fr);
    }

    .ranking-score {
        grid-column: 2 / 4;
        justify-self: start;
    }

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

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

@media (max-width: 520px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-summary {
        font-size: 16px;
    }

    .movie-grid,
    .movie-grid.grid-wide,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .rail-card {
        width: 190px;
    }

    .ranking-row {
        grid-template-columns: 42px 66px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .ranking-number {
        font-size: 22px;
    }
}
