:root {
    --orange: #f97316;
    --amber: #f59e0b;
    --yellow: #eab308;
    --red: #ef4444;
    --blue: #2563eb;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--slate-800);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 52%, #e2e8f0 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #ea580c 0%, #d97706 48%, #ca8a04 100%);
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.28);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.logo {
    flex: 0 0 auto;
    font-size: 21px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link,
.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    border: 0;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    cursor: pointer;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-toggle:hover {
    color: #fef3c7;
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 6px;
    min-width: 300px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.dropdown-panel a {
    padding: 10px 12px;
    color: #e2e8f0;
    border-radius: 12px;
}

.dropdown-panel a:hover {
    color: var(--white);
    background: rgba(249, 115, 22, 0.22);
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(310px, 100%);
}

.nav-search input {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 11px 84px 11px 18px;
    color: var(--white);
    outline: 0;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

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

.nav-search button {
    position: absolute;
    right: 5px;
    border: 0;
    border-radius: 999px;
    padding: 7px 15px;
    color: #7c2d12;
    background: #fff7ed;
    cursor: pointer;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 8px 11px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.6fr);
    align-items: center;
    gap: 48px;
    padding: 70px max(24px, calc((100vw - 1180px) / 2));
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(124, 45, 18, 0.94) 0%, rgba(146, 64, 14, 0.84) 42%, rgba(202, 138, 4, 0.46) 100%);
    backdrop-filter: blur(8px);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 15px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #fef3c7;
    background: rgba(255, 255, 255, 0.15);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero h1,
.hero h2 {
    margin: 0;
    color: var(--white);
    text-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.hero h1 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    margin-bottom: 14px;
}

.hero h2 {
    max-width: 760px;
    font-size: clamp(28px, 4vw, 50px);
    line-height: 1.12;
    margin-bottom: 18px;
}

.hero-text {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-tags,
.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.hero-tags span,
.meta-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange), var(--amber));
    box-shadow: 0 16px 28px rgba(194, 65, 12, 0.34);
}

.primary-btn:hover,
.section-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 34px rgba(194, 65, 12, 0.38);
}

.ghost-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

.hero-poster {
    justify-self: end;
    width: min(360px, 100%);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.45);
    transform: rotate(1.5deg);
}

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

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

.hero-dots button {
    width: 35px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #fef3c7;
}

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

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

.section-head h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: var(--slate-800);
}

.section-head h2 {
    font-size: clamp(26px, 3vw, 36px);
}

.section-head p,
.page-title p,
.detail-title p {
    margin: 8px 0 0;
    color: var(--slate-600);
    line-height: 1.7;
}

.section-link {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange), var(--amber));
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.movie-card.standard .poster-wrap,
.movie-card.search-card .poster-wrap {
    aspect-ratio: 3 / 4;
}

.movie-card.wide .poster-wrap {
    aspect-ratio: 16 / 10;
}

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

.movie-card:hover img,
.wide-card:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.78);
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    text-align: center;
    padding: 6px 9px;
    background: var(--red);
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.card-body strong {
    color: var(--slate-800);
    font-size: 17px;
    line-height: 1.35;
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.card-meta em {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.15);
}

.wide-card img {
    width: 100%;
    height: 100%;
    min-height: 142px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.wide-card span {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px;
}

.wide-card strong {
    font-size: 20px;
}

.wide-card em,
.wide-card small {
    color: var(--slate-600);
    font-style: normal;
    line-height: 1.7;
}

.wide-card small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border-radius: 24px;
    color: var(--white);
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 18px 42px rgba(217, 119, 6, 0.24);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    transition: transform 0.4s ease;
}

.category-card span {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 230px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(124, 45, 18, 0.74));
}

.category-card strong {
    font-size: 26px;
    margin-bottom: 10px;
}

.category-card em {
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
    line-height: 1.65;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0;
    color: var(--white);
    background: radial-gradient(circle at 10% 10%, rgba(251, 146, 60, 0.55), transparent 32%), linear-gradient(115deg, #7c2d12, #d97706 55%, #ca8a04);
}

.page-hero .container {
    position: relative;
    z-index: 2;
    padding: 0;
}

.page-title h1 {
    color: var(--white);
    font-size: clamp(34px, 5vw, 58px);
}

.page-title p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: min(720px, 100%);
    margin-top: 28px;
}

.filter-bar input {
    border: 0;
    border-radius: 18px;
    padding: 15px 18px;
    color: var(--slate-800);
    outline: 0;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.filter-bar button {
    border: 0;
    border-radius: 18px;
    padding: 0 24px;
    color: var(--white);
    background: var(--slate-900);
    cursor: pointer;
    font-weight: 800;
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.quick-tags button,
.quick-tags a {
    border: 0;
    border-radius: 999px;
    padding: 8px 13px;
    color: #7c2d12;
    background: #fff7ed;
    cursor: pointer;
    font-weight: 700;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 68px 150px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.15);
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--orange));
    font-size: 20px;
    font-weight: 900;
}

.rank-item img {
    width: 150px;
    height: 92px;
    border-radius: 18px;
    object-fit: cover;
}

.rank-info strong {
    display: block;
    font-size: 19px;
    margin-bottom: 8px;
}

.rank-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 10px;
    color: var(--slate-600);
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-950);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(124, 45, 18, 0.82), rgba(202, 138, 4, 0.42));
}

.detail-hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 58px 0;
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

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

.detail-title h1 {
    color: var(--white);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.detail-title p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
}

.breadcrumb a:hover {
    color: #fef3c7;
}

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

.player-card,
.content-card,
.related-card {
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 15px 38px rgba(15, 23, 42, 0.1);
}

.player-card {
    overflow: hidden;
    background: #020617;
}

.video-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.54));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    padding-left: 6px;
    background: rgba(249, 115, 22, 0.92);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
    font-size: 36px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-overlay:hover span {
    background: var(--orange);
    transform: scale(1.08);
}

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

.content-card {
    margin-top: 24px;
    padding: 28px;
}

.content-card h2,
.related-card h2 {
    margin: 0 0 14px;
    color: var(--slate-800);
    font-size: 24px;
}

.content-card p {
    margin: 0 0 24px;
    color: var(--slate-700);
    line-height: 1.9;
}

.highlight-text {
    padding: 18px;
    border-left: 5px solid var(--orange);
    border-radius: 18px;
    background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud span {
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-size: 14px;
}

.related-card {
    position: sticky;
    top: 96px;
    padding: 22px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-item img {
    width: 110px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
}

.related-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-800);
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-item small {
    display: block;
    margin-top: 6px;
    color: var(--slate-500);
}

.site-footer {
    margin-top: 42px;
    color: #cbd5e1;
    background: #111827;
}

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

.footer-logo {
    color: var(--white);
    font-size: 22px;
}

.footer-inner p {
    max-width: 480px;
    line-height: 1.8;
}

.footer-inner h2 {
    margin: 0 0 16px;
    color: #fb923c;
    font-size: 18px;
}

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

.footer-links a {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: var(--white);
    background: rgba(249, 115, 22, 0.34);
}

.is-filtered-out {
    display: none !important;
}

@media (max-width: 1024px) {
    .movie-grid,
    .movie-grid.compact,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .related-card {
        position: static;
    }

    .rank-list,
    .wide-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .site-nav {
        flex-wrap: wrap;
        gap: 12px;
        padding: 13px 0;
    }

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

    .nav-menu {
        display: none;
        flex: 0 0 100%;
        align-items: stretch;
        flex-direction: column;
        padding: 14px 0 4px;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-links {
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
    }

    .nav-link,
    .dropdown-toggle {
        padding: 10px 0;
    }

    .nav-dropdown:hover .dropdown-panel,
    .nav-dropdown:focus-within .dropdown-panel,
    .dropdown-panel {
        position: static;
        grid-template-columns: 1fr;
        min-width: 0;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        background: rgba(15, 23, 42, 0.16);
        box-shadow: none;
    }

    .nav-search {
        width: 100%;
    }

    .hero {
        min-height: 680px;
    }

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

    .hero-poster {
        justify-self: start;
        width: 190px;
    }

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

    .detail-cover {
        width: 220px;
    }

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

    .wide-card,
    .rank-item {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .rank-num {
        position: absolute;
        width: 42px;
        height: 42px;
        margin: 10px;
        font-size: 16px;
    }

    .rank-item {
        position: relative;
    }

    .rank-item img {
        width: 120px;
        height: 96px;
    }

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

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

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

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

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

    .filter-bar button {
        min-height: 48px;
    }

    .wide-card,
    .rank-item,
    .related-item {
        grid-template-columns: 1fr;
    }

    .wide-card img,
    .rank-item img,
    .related-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
}
