* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.92);
    --bg-card-strong: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --danger: #ef4444;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 28rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 26rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::selection {
    color: #111827;
    background: #fbbf24;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: white;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.25);
}

.brand-text {
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

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

.nav-link {
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 14px;
    transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link-active {
    color: white;
    background: rgba(245, 158, 11, 0.14);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
}

.top-search input,
.mobile-search input,
.hero-search input,
.filter-panel input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.top-search input::placeholder,
.mobile-search input::placeholder,
.hero-search input::placeholder,
.filter-panel input::placeholder {
    color: rgba(203, 213, 225, 0.7);
}

.top-search input {
    width: 220px;
    padding: 8px 10px;
}

.top-search button,
.mobile-search button,
.hero-search button,
.filter-buttons button {
    border: 0;
    color: white;
    cursor: pointer;
    border-radius: 999px;
    background: var(--accent);
    transition: transform 180ms ease, background 180ms ease;
}

.top-search button {
    padding: 8px 14px;
}

.top-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.filter-buttons button:hover,
.primary-button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
}

.mobile-menu-button span {
    width: 18px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: white;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.is-open {
    display: grid;
    gap: 10px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--muted-strong);
    background: rgba(148, 163, 184, 0.08);
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.mobile-search input {
    flex: 1;
    padding: 10px;
}

.mobile-search button {
    padding: 10px 14px;
}

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 800ms ease;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.78) 36%, rgba(2, 6, 23, 0.24) 70%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.58) 34%, transparent 70%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100% - 1280px) / 2 + 24px));
    bottom: 138px;
    width: min(720px, calc(100% - 48px));
}

.eyebrow,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.hero p {
    max-width: 640px;
    margin: 0 0 22px;
    color: #dbeafe;
    font-size: clamp(16px, 1.7vw, 21px);
    line-height: 1.8;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

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

.hero-tags span,
.detail-tags span {
    padding: 8px 12px;
    border: 1px solid rgba(226, 232, 240, 0.12);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.7);
    font-size: 13px;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, border 180ms ease;
}

.primary-button {
    color: white;
    background: var(--accent);
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.22);
}

.ghost-button {
    border: 1px solid rgba(226, 232, 240, 0.22);
    color: white;
    background: rgba(15, 23, 42, 0.55);
}

.ghost-button:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 158, 11, 0.48);
    background: rgba(245, 158, 11, 0.12);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 64px;
    border: 1px solid rgba(226, 232, 240, 0.16);
    border-radius: 16px;
    color: white;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(14px);
    font-size: 42px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-arrow-left {
    left: 24px;
}

.hero-arrow-right {
    right: 24px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(226, 232, 240, 0.36);
}

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

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 86px;
    display: flex;
    gap: 10px;
    width: min(640px, calc(100% - 48px));
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, 0.14);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.hero-search input {
    flex: 1;
    padding: 14px 16px;
}

.hero-search button {
    padding: 0 20px;
}

.content-section,
.page-shell,
.detail-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

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

.no-top-gap {
    padding-top: 28px;
}

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

.section-heading h2,
.page-hero h1,
.detail-intro h1,
.player-section h2,
.story-block h2 {
    margin: 0;
    letter-spacing: -0.03em;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.section-heading p,
.page-hero p,
.site-footer p,
.category-overview-body p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.section-more {
    flex-shrink: 0;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.76);
}

.section-more:hover {
    color: white;
    border-color: rgba(245, 158, 11, 0.44);
}

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

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

.movie-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
}

.movie-row .movie-card {
    scroll-snap-align: start;
}

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.20);
    transition: transform 180ms ease, border 180ms ease, box-shadow 180ms ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

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

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

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

.poster-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 48%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.26), transparent 36%);
}

.poster-play,
.player-start-icon {
    position: absolute;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    color: white;
    background: rgba(245, 158, 11, 0.94);
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.24);
}

.poster-play {
    left: 50%;
    top: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 180ms ease, transform 180ms ease;
}

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

.poster-year,
.poster-region {
    position: absolute;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 9px;
    color: white;
    background: rgba(2, 6, 23, 0.72);
    font-size: 12px;
    font-weight: 700;
}

.poster-year {
    top: 10px;
    right: 10px;
}

.poster-region {
    left: 10px;
    bottom: 10px;
}

.movie-card-body {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.movie-card-body strong {
    overflow: hidden;
    color: white;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-card-body em {
    display: -webkit-box;
    overflow: hidden;
    min-height: 40px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.movie-meta-row span {
    overflow: hidden;
    max-width: 58%;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.08);
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.category-tile {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #111827;
}

.category-cover {
    position: absolute;
    inset: 0;
}

.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.54;
    transform: scale(1.04);
    transition: transform 260ms ease, opacity 260ms ease;
}

.category-tile:hover .category-cover img {
    opacity: 0.68;
    transform: scale(1.1);
}

.category-info {
    position: absolute;
    inset: auto 0 0;
    padding: 24px;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent);
}

.category-info strong,
.category-info em {
    display: block;
}

.category-info strong {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 900;
}

.category-info em {
    color: var(--muted-strong);
    font-size: 13px;
    font-style: normal;
    line-height: 1.6;
}

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.compact-heading {
    align-items: start;
    margin-bottom: 16px;
}

.compact-heading h2 {
    font-size: 28px;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.07);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #111827;
    background: #fbbf24;
    font-weight: 900;
}

.rank-card strong,
.rank-card em {
    display: block;
}

.rank-card strong {
    overflow: hidden;
    margin-bottom: 4px;
    color: white;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-card em {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-shell {
    padding-top: 42px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    margin-top: 28px;
    padding: clamp(30px, 6vw, 72px);
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.14), transparent 38%),
        linear-gradient(160deg, rgba(59, 130, 246, 0.10), transparent 44%),
        rgba(15, 23, 42, 0.84);
    box-shadow: var(--shadow);
}

.small-page-hero {
    padding-bottom: 48px;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 60px);
}

.page-hero p {
    max-width: 820px;
    font-size: 17px;
}

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

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

.filter-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
}

.filter-panel input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.54);
}

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

.filter-buttons button {
    padding: 9px 13px;
    color: var(--muted-strong);
    background: rgba(148, 163, 184, 0.10);
}

.filter-buttons button.is-active {
    color: white;
    background: var(--accent);
}

.empty-state {
    display: none;
    margin: 32px 0 0;
    padding: 24px;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.86);
}

.category-overview-cover {
    min-height: 220px;
    background: #111827;
}

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

.category-overview-body {
    padding: 22px;
}

.category-overview-body h2 {
    margin: 0;
    font-size: 24px;
}

.category-sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-sample-links a {
    max-width: 100%;
    overflow: hidden;
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(148, 163, 184, 0.09);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 64px 92px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.82);
}

.ranking-index {
    color: #fbbf24;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.ranking-cover {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    background: #111827;
}

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

.ranking-body h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.ranking-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.detail-shell {
    padding-top: 42px;
}

.detail-main {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.16);
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    background: #111827;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-intro h1 {
    max-width: 880px;
    font-size: clamp(36px, 6vw, 76px);
    line-height: 1;
}

.detail-one-line {
    max-width: 820px;
    margin: 18px 0 22px;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.8;
}

.detail-watch-button {
    margin-top: 26px;
}

.player-section {
    margin-top: 34px;
}

.player-section h2 {
    margin-bottom: 18px;
    font-size: clamp(28px, 4vw, 42px);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 32px;
    aspect-ratio: 16 / 9;
    background: black;
    box-shadow: var(--shadow);
}

.player-shell video,
.player-cover,
.player-cover img,
.player-cover-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-shell video {
    z-index: 1;
    object-fit: contain;
    background: black;
}

.player-cover {
    z-index: 2;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #111827;
    transition: opacity 200ms ease, visibility 200ms ease;
}

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

.player-cover img {
    object-fit: cover;
}

.player-cover-shade {
    background:
        radial-gradient(circle, rgba(245, 158, 11, 0.16), transparent 36%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.42));
}

.player-start-icon {
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 74px;
    height: 74px;
    font-size: 28px;
    transform: translate(-50%, -50%);
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.story-block {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.82);
}

.story-block h2 {
    margin-bottom: 14px;
    font-size: 26px;
}

.story-block p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 16px;
    line-height: 1.92;
}

.related-section {
    width: 100%;
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.78);
}

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

.site-footer strong {
    font-size: 18px;
}

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

.footer-links a {
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(148, 163, 184, 0.08);
}

.footer-links a:hover {
    color: white;
    background: rgba(245, 158, 11, 0.14);
}

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

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

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

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

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .site-header-inner {
        min-height: 64px;
    }

    .brand-text {
        font-size: 16px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        bottom: 170px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-search {
        bottom: 92px;
    }

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

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

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

    .category-overview-cover {
        min-height: 260px;
    }

    .detail-poster {
        width: min(260px, 78vw);
    }

    .ranking-row {
        grid-template-columns: 46px 74px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .ranking-body h2 {
        font-size: 18px;
    }
}

@media (max-width: 560px) {
    .site-header-inner,
    .mobile-nav,
    .content-section,
    .page-shell,
    .detail-shell,
    .site-footer-inner {
        width: min(100% - 22px, 1280px);
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .brand-text {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero {
        min-height: 580px;
    }

    .hero-content {
        left: 16px;
        bottom: 164px;
        width: calc(100% - 32px);
    }

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

    .hero p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .hero-tags span:nth-child(3) {
        display: none;
    }

    .hero-search {
        display: grid;
        bottom: 66px;
    }

    .hero-search button {
        min-height: 44px;
    }

    .hero-dots {
        bottom: 28px;
    }

    .section-heading {
        display: grid;
    }

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

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

    .movie-card-body strong {
        font-size: 14px;
    }

    .movie-card-body em {
        font-size: 12px;
    }

    .category-tile {
        min-height: 150px;
    }

    .page-hero,
    .detail-hero,
    .story-block {
        border-radius: 24px;
        padding: 24px;
    }

    .detail-intro h1 {
        font-size: 38px;
    }

    .detail-one-line {
        font-size: 16px;
    }

    .player-shell {
        border-radius: 20px;
    }

    .player-start-icon {
        width: 62px;
        height: 62px;
    }

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

    .ranking-index {
        text-align: left;
    }

    .ranking-cover {
        width: 120px;
    }

    .site-footer-inner {
        display: grid;
    }
}
