:root {
    --page-bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --surface-deep: #0f172a;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #d97706;
    --brand-dark: #b45309;
    --rose: #e11d48;
    --blue: #2563eb;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--rose));
    color: #fff;
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
}

.brand-text {
    white-space: nowrap;
    font-size: 20px;
}

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

.nav-link,
.mobile-link {
    border-radius: 999px;
    padding: 10px 16px;
    color: #334155;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    background: #0f172a;
    color: #fff;
}

.header-search {
    display: flex;
    align-items: center;
    width: 260px;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.header-search input,
.mobile-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    background: transparent;
}

.header-search button,
.mobile-search button {
    border: 0;
    padding: 10px 14px;
    background: var(--text);
    color: #fff;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 22px;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

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

.mobile-search {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
}

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

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

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.28), transparent 30%),
        linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.45) 50%, rgba(2, 6, 23, 0.08));
}

.hero-content {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 0;
    width: min(1280px, calc(100% - 32px));
    transform: translateX(-50%);
    padding: 0 0 74px;
    color: #fff;
}

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

.hero-badges span,
.hero-tags span,
.detail-tags span,
.genre-cloud span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 700;
}

.hero-content h1 {
    max-width: 900px;
    margin: 18px 0 14px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 780px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-actions.is-page {
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--rose));
    color: #fff;
    box-shadow: 0 18px 34px rgba(225, 29, 72, 0.28);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    backdrop-filter: blur(16px);
}

.btn-light {
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-soft);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 42px;
    line-height: 1;
    backdrop-filter: blur(14px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 28px;
    transform: translateY(-50%);
}

.hero-next {
    right: 28px;
    transform: translateY(-50%);
}

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

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

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

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

.home-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 0 24px;
}

.home-intro h2,
.page-hero h1,
.ranking-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.home-intro p,
.page-hero p,
.ranking-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.section {
    padding: 56px 0;
}

.section-white {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1280px) / 2));
    padding-right: max(16px, calc((100% - 1280px) / 2));
    background: #fff;
}

.section-soft {
    border-radius: 32px;
    padding: 40px;
    background: linear-gradient(135deg, #fff, #f1f5f9);
    box-shadow: var(--shadow-soft);
}

.section-split {
    border-radius: 32px;
    padding: 44px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    box-shadow: var(--shadow);
}

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

.section-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 13px;
    background: rgba(217, 119, 6, 0.11);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 900;
}

.section-split .section-kicker {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.section-head h2,
.content-card h2,
.side-card h2,
.watch-section h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-more,
.text-link {
    color: var(--brand-dark);
    font-weight: 900;
}

.section-split .section-more {
    color: #fff;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

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

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

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

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.76), transparent 55%);
}

.play-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    font-weight: 900;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-year {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(15, 23, 42, 0.66);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

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

.movie-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.28;
}

.movie-title a:hover {
    color: var(--brand-dark);
}

.movie-desc {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.movie-meta a {
    color: var(--brand-dark);
}

.movie-tags span {
    background: #f1f5f9;
    color: #475569;
    backdrop-filter: none;
    font-size: 12px;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 24px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
    background: #0f172a;
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.category-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.45s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.12));
}

.category-card span {
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.rank-list,
.rank-page-list {
    display: grid;
    gap: 12px;
}

.rank-row,
.rank-page-row {
    display: grid;
    grid-template-columns: 58px 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-page-row {
    grid-template-columns: 72px 92px minmax(0, 1fr) auto;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.rank-row:hover,
.rank-page-row:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.18);
}

.rank-page-row:hover {
    background: #fff7ed;
}

.rank-no {
    color: #fbbf24;
    font-size: 22px;
    font-weight: 950;
}

.rank-no.large {
    color: var(--brand-dark);
    font-size: 28px;
}

.rank-row img,
.rank-page-row img {
    width: 72px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-page-row img {
    width: 92px;
    height: 122px;
}

.rank-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.rank-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
}

.rank-main em {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    opacity: 0.72;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-meta {
    color: inherit;
    opacity: 0.72;
    font-weight: 800;
    white-space: nowrap;
}

.page-main {
    padding: 42px 0 72px;
}

.page-hero,
.ranking-hero {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: clamp(32px, 6vw, 68px);
    background:
        radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.18), transparent 32%),
        linear-gradient(135deg, #fff, #f1f5f9);
    box-shadow: var(--shadow-soft);
}

.category-page-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.16), transparent 32%),
        linear-gradient(135deg, #ffffff, #eff6ff);
}

.ranking-hero {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: center;
    gap: 34px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
}

.ranking-hero img {
    width: 280px;
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.ranking-hero p {
    color: rgba(255, 255, 255, 0.78);
}

.filter-panel {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    margin: 30px 0 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.filter-panel strong {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
}

.filter-panel p {
    margin: 0;
    color: var(--muted);
}

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

.filter-controls label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-weight: 800;
    font-size: 13px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 12px;
    outline: none;
    background: #fff;
    color: var(--text);
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.filter-search-label {
    grid-column: span 1;
}

.filter-empty {
    display: none;
    margin: 28px 0 0;
    border: 1px dashed var(--line);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
    background: #fff;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 22px;
}

.category-cover-stack img {
    width: 100%;
    height: 132px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 10px 0 8px;
    font-size: 28px;
}

.category-overview-card p {
    margin: 0 0 12px;
    color: var(--muted);
}

.category-sample {
    font-size: 14px;
}

.detail-main {
    background: #f8fafc;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #fff;
    background: #020617;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px);
    transform: scale(1.08);
    opacity: 0.42;
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(225, 29, 72, 0.18), transparent 30%),
        linear-gradient(to top, #020617, rgba(2, 6, 23, 0.64));
}

.detail-layout {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: end;
    gap: 42px;
    padding: 70px 0;
}

.detail-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.detail-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 900;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 800;
}

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

.detail-info h1 {
    margin: 18px 0 14px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 780px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 800;
    backdrop-filter: blur(14px);
}

.watch-section {
    padding: 56px 0 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.66));
    color: #fff;
    transition: opacity 0.25s ease;
}

.player-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    font-size: 34px;
    box-shadow: var(--shadow);
}

.player-overlay strong {
    font-size: 22px;
}

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

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    padding: 34px 0 0;
}

.content-card,
.side-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.content-card p {
    color: #334155;
    font-size: 17px;
}

.genre-cloud span {
    background: #fff7ed;
    color: var(--brand-dark);
    backdrop-filter: none;
}

.side-card dl {
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
}

.side-card dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.side-card dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.side-card a {
    color: var(--brand-dark);
}

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

.site-footer {
    margin-top: 40px;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    gap: 14px;
}

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

.footer-inner p {
    max-width: 760px;
    margin: 0;
}

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

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

.is-hidden-card {
    display: none !important;
}

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

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

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

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

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

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        padding-bottom: 78px;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .section-soft,
    .section-split {
        border-radius: 24px;
        padding: 26px;
    }

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

    .ranking-hero img,
    .detail-poster {
        width: min(280px, 100%);
    }

    .detail-layout {
        align-items: center;
    }

    .rank-row,
    .rank-page-row {
        grid-template-columns: 44px 64px minmax(0, 1fr);
    }

    .rank-meta {
        display: none;
    }
}

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

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

    .hero {
        min-height: 620px;
    }

    .hero-content h1,
    .detail-info h1 {
        font-size: 40px;
    }

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

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

    .rank-page-row {
        grid-template-columns: 42px 70px minmax(0, 1fr);
    }

    .rank-page-row img {
        width: 70px;
        height: 94px;
    }

    .category-cover-stack {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-cover-stack img {
        height: 110px;
    }
}
