:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.78);
    --bg-card-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(125, 211, 252, 0.32);
    --text: #e5eef9;
    --muted: #94a3b8;
    --light: #f8fafc;
    --sky: #38bdf8;
    --sky-strong: #0284c7;
    --orange: #fb923c;
    --yellow: #facc15;
    --radius: 22px;
    --shadow: 0 22px 70px rgba(2, 6, 23, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 18% 0%, rgba(14, 165, 233, 0.18), transparent 32rem),
        radial-gradient(circle at 82% 8%, rgba(59, 130, 246, 0.16), transparent 36rem),
        linear-gradient(180deg, #020617 0%, #0f172a 50%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

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;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.03em;
    color: var(--light);
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sky), #1d4ed8);
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.28);
}

.logo-text {
    white-space: nowrap;
    font-size: 18px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    overflow: hidden;
}

.nav-link {
    position: relative;
    padding: 26px 0;
    color: #cbd5e1;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--sky);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.header-search,
.mobile-search,
.home-search-band form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.home-search-band input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    outline: 0;
    background: rgba(15, 23, 42, 0.86);
    color: var(--text);
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 210px;
}

.header-search input:focus,
.mobile-search input:focus,
.home-search-band input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.header-search button,
.mobile-search button,
.home-search-band button,
.primary-action,
.ghost-action,
.card-foot a,
.side-category {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sky), var(--sky-strong));
    color: white;
    cursor: pointer;
    font-weight: 800;
    padding: 12px 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.home-search-band button:hover,
.primary-action:hover,
.card-foot a:hover,
.side-category:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.28);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 8px;
    background: var(--light);
}

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

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

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.mobile-link {
    display: block;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    color: #dbeafe;
    padding: 12px 14px;
    font-weight: 700;
}

.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 28%, rgba(14, 165, 233, 0.22), transparent 28rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.58) 42%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 52%, rgba(2, 6, 23, 0.32) 100%);
}

.hero-copy {
    position: absolute;
    left: max(24px, calc((100vw - 1440px) / 2 + 32px));
    bottom: 12%;
    width: min(720px, calc(100% - 48px));
}

.hero-pill,
.section-heading span,
.detail-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.16);
    color: #bae6fd;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 6px 12px;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 18px 0 14px;
    max-width: 840px;
    color: white;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h2 + h2 {
    margin-top: -4px;
    color: #e0f2fe;
    font-size: clamp(28px, 4.4vw, 52px);
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 28px;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 20px);
}

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

.ghost-action {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(12px);
}

.ghost-action:hover {
    border-color: rgba(56, 189, 248, 0.48);
    background: rgba(14, 165, 233, 0.18);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.46);
    color: white;
    cursor: pointer;
    font-size: 34px;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.home-search-band,
.content-section,
.breadcrumb,
.watch-layout,
.detail-content,
.page-hero,
.site-footer .footer-inner,
.footer-bottom {
    width: min(1440px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.home-search-band {
    margin-top: -38px;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 20px;
    align-items: center;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
    padding: 26px;
    backdrop-filter: blur(18px);
}

.home-search-band h2,
.home-search-band p {
    margin: 0;
}

.home-search-band h2 {
    color: white;
    font-size: 24px;
}

.home-search-band p {
    color: var(--muted);
}

.content-section {
    padding: 72px 0 0;
}

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

.section-heading h2 {
    margin: 8px 0 0;
    color: white;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.18;
}

.section-heading a {
    color: var(--sky);
    font-weight: 800;
    white-space: nowrap;
}

.full-line {
    align-items: center;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 18px 52px rgba(2, 6, 23, 0.28);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.42);
    box-shadow: 0 22px 70px rgba(8, 47, 73, 0.34);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.movie-card.is-compact .poster-link {
    aspect-ratio: 3 / 4;
}

.movie-card.is-large .poster-link {
    aspect-ratio: 21 / 9;
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.84) 100%);
}

.movie-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.68);
    color: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
    backdrop-filter: blur(10px);
}

.play-mark {
    position: absolute;
    right: 14px;
    bottom: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.92);
    color: white;
    font-size: 16px;
    box-shadow: 0 10px 26px rgba(14, 165, 233, 0.28);
}

.movie-body {
    padding: 18px;
}

.movie-meta,
.side-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.movie-meta span,
.side-meta span {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
    padding: 4px 8px;
}

.movie-card h3 {
    min-height: 3.1em;
    margin: 12px 0 8px;
    color: white;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.detail-tags a:hover,
.side-tags a:hover {
    color: var(--sky);
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.3em;
    margin: 0 0 14px;
    overflow: hidden;
    color: #b6c2d2;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span,
.detail-tags a,
.side-tags a {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    font-size: 12px;
    padding: 5px 9px;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.score {
    color: var(--yellow);
    font-weight: 900;
}

.card-foot a {
    padding: 8px 12px;
    font-size: 13px;
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 84px 58px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.78));
    padding: 12px;
}

.rank-poster {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
}

.rank-number {
    color: rgba(56, 189, 248, 0.96);
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.rank-content h3 {
    margin: 6px 0;
    color: white;
    font-size: 18px;
}

.rank-content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #a8b4c5;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-score {
    display: grid;
    gap: 4px;
    min-width: 100px;
    text-align: right;
}

.rank-score strong {
    color: var(--yellow);
    font-size: 22px;
}

.rank-score span {
    color: var(--muted);
    font-size: 12px;
}

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

.category-card a {
    position: relative;
    min-height: 260px;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 84% 12%, rgba(56, 189, 248, 0.2), transparent 12rem),
        linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.86));
    padding: 22px;
    box-shadow: var(--shadow);
}

.category-card h2 {
    margin: 0 0 10px;
    color: white;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 16px;
    color: #b6c2d2;
}

.category-preview {
    display: grid;
    gap: 8px;
    margin: 12px 0 20px;
}

.category-preview a {
    min-height: 0;
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #bae6fd;
    padding: 0;
}

.category-card strong {
    color: var(--sky);
}

.page-hero {
    min-height: 310px;
    display: flex;
    align-items: center;
    margin-top: 36px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.78)),
        radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.24), transparent 26rem);
    box-shadow: var(--shadow);
    padding: 48px;
}

.page-hero h1 {
    margin: 16px 0 12px;
    color: white;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
    align-items: end;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.68);
    padding: 18px;
    margin-bottom: 24px;
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 30px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a {
    color: #bae6fd;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
    padding-top: 24px;
}

.player-panel,
.movie-side,
.detail-content {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: black;
    aspect-ratio: 16 / 9;
}

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: black;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.74));
    color: white;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.94);
    box-shadow: 0 16px 40px rgba(14, 165, 233, 0.32);
    font-size: 30px;
}

.player-overlay strong {
    max-width: min(720px, 90%);
    font-size: clamp(22px, 4vw, 38px);
}

.player-overlay em {
    color: #bae6fd;
    font-style: normal;
    font-weight: 800;
}

.movie-side {
    overflow: hidden;
    padding-bottom: 20px;
}

.movie-side img {
    aspect-ratio: 3 / 4;
}

.side-meta,
.side-tags,
.side-category {
    margin: 16px 18px 0;
}

.side-category {
    display: inline-flex;
}

.detail-content {
    margin-top: 28px;
    padding: clamp(22px, 4vw, 44px);
}

.detail-content header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    padding-bottom: 26px;
    margin-bottom: 28px;
}

.detail-content h1 {
    margin: 16px 0 12px;
    color: white;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
}

.detail-one-line {
    max-width: 960px;
    color: #cbd5e1;
    font-size: 19px;
}

.detail-content section {
    margin-top: 30px;
}

.detail-content h2 {
    margin: 0 0 12px;
    color: white;
    font-size: 26px;
}

.detail-content p {
    margin: 0;
    color: #c5d1e2;
    font-size: 17px;
}

.info-grid dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.info-grid div {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.3);
    padding: 14px;
}

.info-grid dt {
    color: #94a3b8;
    font-size: 13px;
}

.info-grid dd {
    margin: 6px 0 0;
    color: white;
    font-weight: 800;
}

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

.site-footer {
    margin-top: 84px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px;
    padding: 42px 0 30px;
}

.footer-inner p {
    max-width: 620px;
    color: var(--muted);
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: start;
}

.footer-inner nav a {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    color: #cbd5e1;
    padding: 8px 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: #64748b;
    padding: 18px 0 28px;
}

[hidden] {
    display: none !important;
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

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

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

    .home-ranking {
        grid-template-columns: 1fr;
    }

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

    .movie-side {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        align-items: start;
        gap: 18px;
        padding: 18px;
    }

    .movie-side img {
        border-radius: 16px;
    }

    .side-meta,
    .side-tags,
    .side-category {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 820px) {
    .hero-slider {
        height: 72vh;
        min-height: 540px;
    }

    .hero-copy {
        left: 20px;
        bottom: 86px;
        width: calc(100% - 40px);
    }

    .hero-arrow {
        display: none;
    }

    .home-search-band {
        grid-template-columns: 1fr;
        margin-top: 18px;
        padding: 20px;
    }

    .home-search-band form,
    .mobile-search {
        flex-direction: column;
        align-items: stretch;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

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

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

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

    .rank-number {
        position: absolute;
        margin-left: 8px;
        margin-top: 8px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    }

    .rank-score {
        grid-column: 2;
        text-align: left;
    }

    .page-hero {
        min-height: 260px;
        padding: 30px;
    }

    .info-grid dl {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .header-inner,
    .mobile-panel,
    .home-search-band,
    .content-section,
    .breadcrumb,
    .watch-layout,
    .detail-content,
    .page-hero,
    .site-footer .footer-inner,
    .footer-bottom {
        width: min(100% - 24px, 1440px);
    }

    .site-logo .logo-text {
        font-size: 16px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        letter-spacing: -0.03em;
    }

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

    .movie-card.is-compact .poster-link {
        aspect-ratio: 16 / 10;
    }

    .movie-side {
        display: block;
        padding: 0 0 20px;
    }

    .movie-side img {
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .side-meta,
    .side-tags,
    .side-category {
        margin-left: 18px;
        margin-right: 18px;
    }
}
