:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.86);
    --bg-card-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --cyan-soft: rgba(34, 211, 238, 0.18);
    --shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 28rem),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 30rem),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), #67e8f9);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.38);
}

.brand-text {
    font-size: 1.1rem;
    color: var(--text);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--muted-strong);
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 0.94rem;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #a5f3fc;
    background: var(--cyan-soft);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--text);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 10px;
    background: var(--text);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mobile-nav.open {
    display: grid;
}

.hero {
    position: relative;
    height: min(760px, 78vh);
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 38%, rgba(2, 6, 23, 0.22) 72%, rgba(2, 6, 23, 0.84) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.22) 42%, rgba(2, 6, 23, 0.72) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: clamp(90px, 16vh, 155px);
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #67e8f9;
    background: rgba(8, 145, 178, 0.16);
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 0.86rem;
    font-weight: 700;
}

.hero h1,
.hero h2 {
    max-width: 760px;
    margin: 20px 0 16px;
    font-size: clamp(2.45rem, 7vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 640px;
    margin: 0 0 22px;
    color: var(--muted-strong);
    line-height: 1.8;
    font-size: 1.08rem;
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--line);
    color: var(--muted-strong);
    padding: 5px 9px;
    font-size: 0.78rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.primary-button,
.ghost-button,
.rank-watch,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.primary-button {
    min-height: 46px;
    padding: 0 20px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), #67e8f9);
    box-shadow: 0 16px 35px rgba(34, 211, 238, 0.22);
}

.ghost-button {
    min-height: 46px;
    padding: 0 20px;
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.rank-watch:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

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

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

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

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

.hero-dot.active {
    width: 34px;
    background: var(--cyan);
}

.quick-search {
    margin-top: -38px;
    position: relative;
    z-index: 10;
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}

.search-box input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    background: rgba(2, 6, 23, 0.74);
    color: var(--text);
    padding: 13px 14px;
}

.search-box input:focus {
    border-color: rgba(34, 211, 238, 0.64);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

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

.filter-button {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--muted-strong);
    padding: 10px 13px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
    color: #a5f3fc;
    background: var(--cyan-soft);
}

section.container {
    padding: 64px 0 0;
}

.home-grid-section {
    padding-top: 72px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

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

.section-more {
    color: #67e8f9;
    padding: 10px 0;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(34, 211, 238, 0.38);
    box-shadow: 0 24px 60px rgba(6, 182, 212, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-gradient,
.tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 58%);
}

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.82);
    border-radius: 999px;
    color: #001018;
    background: rgba(34, 211, 238, 0.92);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.82);
    border: 1px solid rgba(34, 211, 238, 0.45);
    color: #67e8f9;
    font-weight: 800;
}

.movie-info {
    padding: 14px;
}

.movie-info h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-content h2 a:hover,
.category-overview-card h2 a:hover {
    color: #67e8f9;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 0.82rem;
    margin-bottom: 10px;
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-card);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
}

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

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

.tile-content {
    position: absolute;
    inset: auto 18px 18px;
    display: grid;
    gap: 8px;
}

.tile-content strong {
    font-size: 1.35rem;
}

.tile-content em {
    color: var(--muted-strong);
    line-height: 1.55;
    font-style: normal;
}

.feature-band .band-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 32px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 30rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.86));
    box-shadow: var(--shadow);
}

.band-panel h2 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.band-panel p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.7;
}

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

.page-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #020617);
}

.compact-hero {
    min-height: 310px;
    padding-top: 40px;
}

.category-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08);
}

.page-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.58)),
        linear-gradient(0deg, rgba(2, 6, 23, 1), transparent 62%);
}

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

.page-hero h1 {
    margin: 18px 0 14px;
    max-width: 820px;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 700px;
    color: var(--muted-strong);
    line-height: 1.8;
}

.list-page {
    padding-bottom: 64px;
}

.list-page .filter-panel,
.ranking-page .filter-panel {
    margin-bottom: 28px;
}

.category-overview {
    display: grid;
    gap: 24px;
    padding-bottom: 70px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

.overview-text h2 {
    margin: 0 0 12px;
    font-size: 1.6rem;
}

.overview-text p {
    color: var(--muted-strong);
    line-height: 1.75;
}

.ranking-page {
    padding-bottom: 70px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 62px 92px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    border-color: rgba(34, 211, 238, 0.38);
    transform: translateY(-2px);
    background: var(--bg-card-strong);
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #67e8f9;
    background: rgba(34, 211, 238, 0.12);
    font-weight: 900;
}

.rank-cover {
    display: block;
    width: 80px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
}

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

.rank-content h2 {
    margin: 0 0 6px;
    font-size: 1.16rem;
}

.rank-content p {
    margin: 0 0 10px;
    color: var(--muted-strong);
    line-height: 1.6;
}

.rank-watch {
    color: #001018;
    background: var(--cyan);
    min-height: 40px;
    padding: 0 16px;
}

.detail-head {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: end;
    padding: 70px 0 56px;
}

.detail-bg,
.detail-bg-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-bg {
    object-fit: cover;
    filter: blur(10px) saturate(1.18);
    transform: scale(1.08);
    opacity: 0.52;
}

.detail-bg-shade {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.88)),
        linear-gradient(0deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0.18));
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: end;
    gap: 34px;
}

.detail-poster {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.24);
    box-shadow: var(--shadow);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 18px;
}

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

.detail-title-block h1 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.detail-title-block p {
    max-width: 760px;
    color: var(--muted-strong);
    line-height: 1.8;
    font-size: 1.05rem;
}

.detail-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
    padding-bottom: 20px;
}

.video-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: black;
    border: 1px solid rgba(34, 211, 238, 0.24);
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    cursor: pointer;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    background: rgba(2, 6, 23, 0.42);
    color: var(--text);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), #67e8f9);
    box-shadow: 0 20px 55px rgba(34, 211, 238, 0.35);
    font-size: 2rem;
}

.play-layer strong {
    max-width: min(620px, 90%);
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 2rem);
}

.detail-article,
.side-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    padding: 24px;
}

.detail-article {
    margin-top: 24px;
}

.detail-article h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 1.35rem;
}

.detail-article p {
    margin: 0 0 22px;
    color: var(--muted-strong);
    line-height: 1.88;
    font-size: 1.02rem;
}

.detail-side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 92px;
}

.detail-facts {
    display: grid;
    gap: 10px;
}

.detail-facts div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.detail-facts span {
    color: var(--muted);
}

.detail-facts strong {
    text-align: right;
}

.side-card a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted-strong);
}

.side-card a:hover {
    color: var(--cyan);
}

.related-section {
    padding-bottom: 72px;
}

.site-footer {
    margin-top: 64px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 1));
}

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

.footer-brand p {
    color: var(--muted);
    line-height: 1.7;
    max-width: 620px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin: 24px 0;
    color: var(--muted-strong);
}

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

.copyright {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

[data-card].is-hidden {
    display: none;
}

.empty-state {
    display: none;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--muted-strong);
    background: var(--bg-card);
}

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

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

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

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

    .menu-toggle {
        display: flex;
    }

    .hero {
        min-height: 620px;
        height: auto;
    }

    .hero-content {
        padding-top: 90px;
        padding-bottom: 86px;
    }

    .hero-control {
        display: none;
    }

    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .section-heading,
    .feature-band .band-panel {
        align-items: start;
        flex-direction: column;
    }

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

    .category-overview-card,
    .detail-layout,
    .detail-main {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 220px;
    }

    .detail-side {
        position: static;
    }

    .rank-row {
        grid-template-columns: 46px 72px 1fr;
    }

    .rank-watch {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .container,
    .header-inner,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .brand-text {
        font-size: 0.96rem;
    }

    .hero h1,
    .hero h2,
    .page-hero h1,
    .detail-title-block h1 {
        letter-spacing: -0.03em;
    }

    .movie-grid,
    .movie-grid.compact,
    .movie-grid.mini,
    .category-grid,
    .ranking-strip {
        gap: 12px;
    }

    .movie-info {
        padding: 12px;
    }

    .movie-info p {
        min-height: auto;
    }

    .rank-row {
        grid-template-columns: 40px 62px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-number {
        width: 38px;
        height: 38px;
    }

    .rank-cover {
        width: 62px;
    }

    .filter-buttons {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .filter-button {
        white-space: nowrap;
    }
}
