* {
    box-sizing: border-box;
}

:root {
    --color-bg: #fff8ed;
    --color-surface: #ffffff;
    --color-surface-soft: #fff4dc;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-line: #f1dfc2;
    --color-primary: #f59e0b;
    --color-primary-dark: #b45309;
    --color-accent: #f97316;
    --color-dark: #111827;
    --shadow-soft: 0 18px 55px rgba(146, 64, 14, 0.12);
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #fff7e8 0%, #ffffff 38%, #fffaf2 100%);
    color: var(--color-text);
    min-height: 100vh;
}

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

img {
    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.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.16);
    box-shadow: 0 8px 28px rgba(120, 53, 15, 0.08);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

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

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.06em;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 23px;
    letter-spacing: -0.02em;
}

.brand-text small {
    color: var(--color-muted);
    margin-top: 5px;
}

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

.desktop-nav a,
.mobile-panel a {
    font-weight: 700;
    color: #4b5563;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search {
    width: 260px;
    display: flex;
    align-items: center;
    padding: 3px;
    border: 1px solid #ead7b8;
    border-radius: 999px;
    background: #ffffff;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text);
}

.header-search input {
    width: 100%;
    padding: 10px 10px 10px 16px;
}

.header-search button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    background: var(--color-primary);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 28px;
    color: var(--color-primary-dark);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel.open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 14px;
    padding: 12px 0 16px;
}

.mobile-search {
    display: flex;
    gap: 10px;
}

.mobile-search input {
    flex: 1;
    border: 1px solid #ead7b8;
    border-radius: 999px;
    padding: 12px 16px;
    background: #ffffff;
}

.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #ffffff;
    background: var(--color-primary);
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 54%, #f97316 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.22), transparent 34%), radial-gradient(circle at 80% 18%, rgba(255, 247, 237, 0.16), transparent 26%);
    z-index: -2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: saturate(1.1) contrast(1.05);
    transform: scale(1.05);
    transition: opacity 0.65s ease, transform 6s ease;
}

.hero-image.active {
    opacity: 0.34;
    transform: scale(1.12);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(36, 19, 4, 0.86), rgba(120, 53, 15, 0.45), rgba(245, 158, 11, 0.15));
    z-index: -1;
}

.hero-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 52px;
    padding: 72px 0 86px;
}

.hero-copy {
    color: #ffffff;
}

.hero-slide {
    display: none;
    animation: fadeRise 0.6s ease both;
}

.hero-slide.active {
    display: block;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fffbeb;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero p {
    max-width: 700px;
    margin: 0;
    color: #fff7ed;
    font-size: 20px;
    line-height: 1.9;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 34px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff2d6;
    color: #a16207;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 11px;
}

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

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

.btn,
.hero-actions a,
.filter-bar button,
.player-action,
.load-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.hero-actions a:first-child,
.filter-bar button,
.player-action.primary,
.load-more-link {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 16px 38px rgba(180, 83, 9, 0.28);
}

.btn-ghost,
.hero-actions a:last-child,
.player-action.secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(12px);
}

.hero-actions a,
.load-more-link {
    min-height: 54px;
    padding: 0 28px;
}

.btn:hover,
.hero-actions a:hover,
.filter-bar button:hover,
.player-action:hover,
.load-more-link:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 32px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 70px rgba(67, 20, 7, 0.28);
    backdrop-filter: blur(18px);
}

.hero-feature-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #92400e, #f59e0b);
}

.hero-feature-cover .cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    position: absolute;
    inset: 0;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-feature-cover .cover-image.active {
    opacity: 1;
}

.hero-feature-cover::after,
.poster-shell::after,
.compact-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
    pointer-events: none;
}

.hero-dots {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.hero-dot {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 10px;
    text-align: left;
    color: #ffffff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.active,
.hero-dot:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateX(4px);
}

.hero-dot span:first-child {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 900;
}

.hero-dot strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hero-dot small {
    color: #ffedd5;
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 86px;
    background: linear-gradient(0deg, #fff8ed 0%, rgba(255, 248, 237, 0) 100%);
}

.page-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.page-hero {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #ffffff;
    padding: 72px 0;
    overflow: hidden;
    position: relative;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -8%;
    top: -20%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 6vw, 56px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #fff7ed;
    font-size: 19px;
    line-height: 1.8;
}

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

.stat-card,
.category-card,
.movie-card,
.compact-card,
.info-card,
.ranking-card,
.filter-panel {
    background: var(--color-surface);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.stat-card,
.category-card {
    padding: 26px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover,
.category-card:hover,
.movie-card:hover,
.compact-card:hover,
.ranking-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.stat-card strong,
.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    font-size: 28px;
    font-weight: 900;
}

.stat-card h3,
.category-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.stat-card p,
.category-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

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

.eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--color-primary-dark);
    font-weight: 900;
    letter-spacing: 0.12em;
}

.section-heading h2,
.detail-content h2,
.sidebar h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--color-muted);
    font-size: 17px;
}

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-shell {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 48%, #92400e 100%);
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .cover-image,
.compact-card:hover .cover-image,
.ranking-card:hover .cover-image {
    transform: scale(1.08);
}

.movie-year {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.play-chip {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.play-chip.small {
    width: 42px;
    height: 42px;
}

.movie-card:hover .play-chip,
.compact-card:hover .play-chip,
.ranking-card:hover .play-chip,
.poster-shell:hover .play-chip {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-meta-line,
.compact-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--color-muted);
    font-size: 14px;
}

.movie-card h3,
.compact-card h3,
.ranking-card h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.compact-card h3 a:hover,
.ranking-card h3 a:hover {
    color: var(--color-primary-dark);
}

.movie-card p,
.compact-card p,
.ranking-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 28px;
    align-items: start;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.ranking-card {
    display: grid;
    grid-template-columns: 46px 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    font-weight: 900;
}

.ranking-cover {
    border-radius: 14px;
    aspect-ratio: 16 / 10;
}

.category-card {
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
    transition: transform 0.2s ease;
}

.category-card:hover::after {
    transform: scale(1.22);
}

.filter-panel {
    padding: 20px;
    margin-bottom: 28px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(120px, 170px)) auto;
    gap: 12px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid #ead7b8;
    border-radius: 999px;
    padding: 13px 16px;
    background: #ffffff;
}

.filter-bar button {
    padding: 0 22px;
}

.empty-state {
    display: none;
    padding: 44px 20px;
    text-align: center;
    color: var(--color-muted);
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px dashed #ead7b8;
}

.empty-state.show {
    display: block;
}

.detail-page {
    background: #f9fafb;
}

.player-section {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    padding: 36px 0;
}

.player-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.16), rgba(0, 0, 0, 0.62));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start span {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    font-size: 34px;
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.36);
}

.player-status {
    position: absolute;
    left: 22px;
    bottom: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 64px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 28px;
}

.detail-content,
.sidebar,
.info-card {
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.detail-content {
    padding: 32px;
}

.detail-content h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.detail-meta {
    margin-bottom: 20px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.player-action {
    min-height: 46px;
    padding: 0 20px;
}

.player-action.secondary {
    color: var(--color-primary-dark);
    border-color: #f3d9a8;
    background: #fff7ed;
}

.detail-block {
    border-top: 1px solid #f1dfc2;
    padding-top: 24px;
    margin-top: 24px;
}

.detail-block h2 {
    margin: 0 0 12px;
    font-size: 25px;
}

.detail-block p {
    margin: 0;
    color: #374151;
    line-height: 2;
    font-size: 17px;
}

.review-box {
    padding: 22px;
    border-left: 5px solid var(--color-primary);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.sidebar {
    padding: 22px;
}

.sidebar .compact-card {
    grid-template-columns: 110px minmax(0, 1fr);
}

.sidebar .compact-card h3 {
    font-size: 15px;
}

.info-card {
    padding: 24px;
    margin-bottom: 22px;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f4e7d0;
}

.info-list dt {
    color: var(--color-muted);
}

.info-list dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
}

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

.site-footer p {
    max-width: 520px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: center;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    text-align: center;
    color: #9ca3af;
}

@keyframes fadeRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .hero-panel {
        max-width: 620px;
    }

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

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

@media (max-width: 820px) {
    .header-inner {
        height: 68px;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
        font-size: 14px;
    }

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

    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 52px 0 74px;
    }

    .hero p {
        font-size: 17px;
    }

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

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

    .split-layout,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .compact-card,
    .ranking-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .ranking-number {
        position: absolute;
        margin: 8px;
        z-index: 3;
    }

    .ranking-card {
        position: relative;
    }

    .ranking-cover {
        grid-column: 1;
    }
}

@media (max-width: 560px) {
    .page-wrap {
        width: min(100% - 24px, 1180px);
        padding: 42px 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-actions a {
        width: 100%;
    }

    .stats-grid,
    .category-grid,
    .movie-grid,
    .movie-grid.dense,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .detail-content {
        padding: 22px;
    }

    .compact-card,
    .sidebar .compact-card,
    .ranking-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .compact-cover,
    .ranking-cover {
        aspect-ratio: 3 / 4;
    }
}
