:root {
    --page-bg: #f8fafc;
    --ink: #0f172a;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.22);
    --dark: #020617;
    --dark-soft: #0f172a;
    --gold: #facc15;
    --orange: #f97316;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --card: #ffffff;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 45%, #f8fafc 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.page-shell {
    min-height: 100vh;
    overflow-x: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: rgba(2, 6, 23, 0.94);
    box-shadow: 0 14px 44px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(16px);
}

.site-header-inner {
    width: min(1200px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: transparent;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-decoration: none;
    white-space: nowrap;
}

.site-logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(250, 204, 21, 0.24);
    font-size: 16px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    font-size: 15px;
    font-weight: 700;
}

.site-nav a,
.mobile-menu a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.22s ease, transform 0.22s ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.mobile-menu a:hover {
    color: var(--gold);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

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

.mobile-menu a {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.hero {
    position: relative;
    min-height: 620px;
    color: #fff;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.74) 45%, rgba(2, 6, 23, 0.24) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.02) 35%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 54px;
}

.hero-copy {
    max-width: 720px;
    padding: 80px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    color: #111827;
    background: var(--gold);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    color: rgba(226, 232, 240, 0.9);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.75;
}

.hero-meta,
.movie-meta-row,
.detail-meta,
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta {
    margin: 22px 0 30px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.hero-meta span,
.detail-meta span,
.movie-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.btn-primary,
.btn-secondary,
.search-submit,
.play-main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary,
.search-submit,
.play-main-button {
    color: #fff;
    background: linear-gradient(90deg, #eab308, #f97316);
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover,
.search-submit:hover,
.play-main-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 54px rgba(249, 115, 22, 0.34);
}

.btn-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-poster-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-poster-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), transparent 48%);
}

.hero-poster-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 22px;
}

.hero-poster-info strong {
    display: block;
    font-size: 22px;
}

.hero-poster-info em {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
}

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

.hero-dot {
    width: 36px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.is-active {
    width: 64px;
    background: var(--gold);
}

.section {
    padding: 70px 0;
}

.section-dark {
    color: #fff;
    background: linear-gradient(115deg, #172554 0%, #020617 100%);
}

.section-warm {
    color: #fff;
    background: linear-gradient(135deg, #581c87 0%, #9d174d 52%, #9a3412 100%);
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 720px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.section-dark .section-desc,
.section-warm .section-desc {
    color: rgba(226, 232, 240, 0.78);
}

.section-more {
    flex-shrink: 0;
    color: #2563eb;
    font-weight: 900;
    text-decoration: none;
}

.section-dark .section-more,
.section-warm .section-more {
    color: var(--gold);
}

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

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

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

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

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

.movie-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    background: var(--card);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 38px rgba(15, 23, 42, 0.1);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.movie-card-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.section-dark .movie-card-link,
.section-warm .movie-card-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.movie-card-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

.movie-card-poster.wide-poster {
    width: 180px;
    aspect-ratio: auto;
    min-height: 252px;
    flex-shrink: 0;
}

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

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

.movie-card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 58%);
    transition: opacity 0.26s ease;
}

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

.movie-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 4px 9px;
    color: #fff;
    background: #ef4444;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.movie-play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.26s ease, transform 0.26s ease;
    backdrop-filter: blur(10px);
}

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

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

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body p {
    min-height: 46px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-dark .movie-card-body p,
.section-warm .movie-card-body p {
    color: rgba(226, 232, 240, 0.74);
}

.movie-meta-row {
    margin-top: 12px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-list span,
.detail-tags span {
    display: inline-flex;
    padding: 5px 9px;
    color: #334155;
    background: #e2e8f0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.section-dark .tag-list span,
.section-warm .tag-list span {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.movie-card-wide .movie-card-link {
    display: flex;
    min-height: 252px;
}

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

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

.category-tile {
    position: relative;
    min-height: 220px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    text-decoration: none;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #020617;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
    opacity: 0.86;
}

.category-tile-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.16));
}

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

.category-tile strong {
    font-size: 24px;
    font-weight: 950;
}

.category-tile em {
    margin-top: 9px;
    color: rgba(226, 232, 240, 0.82);
    font-size: 14px;
    font-style: normal;
    line-height: 1.6;
}

.search-panel {
    margin-top: -48px;
    position: relative;
    z-index: 8;
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-box input,
.filter-row input,
.filter-row select {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    outline: none;
    font-size: 15px;
}

.search-submit {
    min-width: 132px;
    border: 0;
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
}

.page-hero {
    color: #fff;
    background: radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.2), transparent 28%),
        linear-gradient(135deg, #020617 0%, #172554 52%, #3b0764 100%);
    padding: 86px 0 92px;
}

.page-hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    color: rgba(226, 232, 240, 0.85);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.breadcrumb a {
    color: #fde68a;
    text-decoration: none;
}

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

.rank-link {
    display: grid;
    grid-template-columns: 62px 86px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 14px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14);
}

.rank-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 16px;
    font-size: 20px;
    font-weight: 950;
}

.rank-link img {
    width: 86px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    background: #0f172a;
}

.rank-content {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.rank-content strong {
    font-size: 19px;
    font-weight: 950;
}

.rank-content em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-content span {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    color: #fff;
    background: #020617;
    overflow: hidden;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    transform: scale(1.08);
    opacity: 0.42;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72)),
        linear-gradient(0deg, #020617, transparent 40%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info h1 {
    margin: 14px 0 16px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-info p {
    max-width: 820px;
    color: rgba(226, 232, 240, 0.84);
    font-size: 18px;
    line-height: 1.78;
}

.detail-meta {
    margin: 18px 0 20px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 800;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.detail-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.player-section {
    padding: 54px 0 24px;
    background: #020617;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.42);
}

.player-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.play-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.32));
}

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

.play-main-button {
    position: relative;
    z-index: 4;
    min-width: 176px;
    height: 58px;
    border: 0;
    font-size: 18px;
}

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

.content-card,
.side-card {
    padding: 28px;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 16px 52px rgba(15, 23, 42, 0.08);
}

.content-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 950;
}

.content-card p {
    margin: 0 0 18px;
    color: #334155;
    font-size: 17px;
    line-height: 1.9;
}

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

.side-link {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.side-link img {
    width: 72px;
    height: 102px;
    object-fit: cover;
    border-radius: 12px;
    background: #0f172a;
}

.side-link strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.35;
}

.side-link span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-footer {
    color: rgba(226, 232, 240, 0.82);
    background: #020617;
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.site-footer p {
    max-width: 420px;
    margin: 16px 0 0;
    line-height: 1.75;
    color: rgba(226, 232, 240, 0.7);
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #facc15;
    font-size: 18px;
    font-weight: 900;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: rgba(226, 232, 240, 0.74);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 38px auto 0;
    padding-top: 24px;
    color: rgba(148, 163, 184, 0.76);
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.empty-state {
    display: none;
    padding: 30px;
    color: var(--muted);
    background: #fff;
    border-radius: 22px;
    text-align: center;
}

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

@media (max-width: 1100px) {
    .site-nav {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster-card {
        display: none;
    }

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

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

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

@media (max-width: 820px) {
    .hero,
    .hero-inner {
        min-height: 560px;
    }

    .hero-copy {
        padding: 56px 0 92px;
    }

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

    .movie-card-wide .movie-card-link {
        display: block;
    }

    .movie-card-poster.wide-poster {
        width: 100%;
        aspect-ratio: 2 / 3;
        min-height: auto;
    }

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

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

    .detail-cover {
        max-width: 250px;
    }

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

@media (max-width: 560px) {
    .container,
    .site-header-inner,
    .mobile-menu,
    .hero-inner,
    .detail-hero-inner,
    .footer-bottom {
        width: min(100% - 24px, 1200px);
    }

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

    .search-box {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

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

    .rank-link {
        grid-template-columns: 48px 72px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .rank-link img {
        width: 72px;
        height: 102px;
    }

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