:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --amber: #f59e0b;
    --rose: #f43f5e;
    --green: #10b981;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
    --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--slate-50) 0%, #ffffff 42%, var(--slate-50) 100%);
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #ffffff;
    background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.26);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #38bdf8, #06b6d4, #2563eb);
    box-shadow: 0 12px 24px rgba(8, 145, 178, 0.36);
}

.brand-mark.small {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.brand-name {
    font-size: 1.22rem;
}

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

.nav-link {
    position: relative;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.2s ease;
}

.nav-link:hover {
    color: #67e8f9;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #ffffff;
}

.mobile-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    position: relative;
    background: var(--slate-950);
}

.hero-stage {
    position: relative;
    height: 560px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
    transform: scale(1.02);
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: radial-gradient(circle at 20% 20%, #1d4ed8 0, transparent 28%), radial-gradient(circle at 80% 30%, #0891b2 0, transparent 30%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.image-missing {
    opacity: 0;
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.64) 42%, rgba(2, 6, 23, 0.12)), linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 42%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    left: 0;
    right: 0;
}

.hero-copy {
    max-width: 720px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    margin: 0 0 18px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 10px 26px rgba(6, 182, 212, 0.28);
}

.hero h1,
.hero h2 {
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    font-weight: 900;
    text-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.hero-desc {
    max-width: 650px;
    margin: 22px 0 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.88);
}

.hero-meta,
.detail-tags-row,
.card-topline,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin-top: 20px;
}

.hero-meta span,
.detail-tags-row span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

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

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

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.3);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-size: 2.5rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

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

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

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

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

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

.hero-dot.active {
    width: 32px;
    background: #ffffff;
}

.hero-search-panel {
    width: min(1100px, calc(100% - 32px));
    margin: -42px auto 0;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.quick-search,
.inline-search {
    display: flex;
    gap: 10px;
}

.quick-search input,
.inline-search input {
    flex: 1;
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 0 16px;
    outline: none;
    background: #ffffff;
    color: var(--slate-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus,
.inline-search input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.quick-search button,
.inline-search button {
    min-width: 92px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

.hero-links a {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-weight: 700;
}

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

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

.section-heading h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--slate-600);
    line-height: 1.75;
}

.section-link {
    flex: 0 0 auto;
    color: var(--cyan);
    font-weight: 800;
}

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

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

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

.movie-card-link {
    display: block;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: radial-gradient(circle at 22% 18%, rgba(6, 182, 212, 0.68), transparent 30%), radial-gradient(circle at 84% 28%, rgba(37, 99, 235, 0.62), transparent 32%), linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

.movie-poster img,
.poster-card img,
.category-tile img,
.category-card-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

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

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), transparent 50%);
}

.play-mark,
.big-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.play-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
}

.year-badge {
    right: 12px;
}

.rank-badge {
    left: 12px;
    background: linear-gradient(135deg, var(--amber), var(--rose));
}

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

.card-topline {
    justify-content: space-between;
    color: var(--slate-500);
    font-size: 0.8rem;
}

.type-pill {
    padding: 5px 9px;
    border-radius: 999px;
    color: #0e7490;
    background: #cffafe;
    font-weight: 800;
}

.movie-card h3 {
    margin: 12px 0 8px;
    min-height: 2.8em;
    color: var(--slate-900);
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    margin: 0;
    min-height: 3.2em;
    color: var(--slate-600);
    font-size: 0.92rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    justify-content: space-between;
    margin-top: 14px;
    color: var(--slate-500);
    font-size: 0.82rem;
    font-weight: 700;
}

.tint-section {
    width: min(1180px, calc(100% - 32px));
    padding: 56px;
    border-radius: 36px;
    background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

.category-grid,
.category-index-grid {
    display: grid;
    gap: 22px;
}

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

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

.category-tile,
.category-card-large {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card-large:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-tile {
    min-height: 220px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.category-tile img {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.54;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.16));
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.category-tile span {
    font-size: 1.25rem;
    font-weight: 900;
}

.category-tile p {
    margin: 8px 0 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.category-card-large {
    padding: 20px;
}

.category-cover-row {
    height: 190px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

.category-card-large h2 {
    margin: 18px 0 10px;
    font-size: 1.4rem;
}

.category-card-large p {
    margin: 0 0 18px;
    color: var(--slate-600);
    line-height: 1.7;
}

.category-card-large span {
    color: var(--cyan);
    font-weight: 800;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.rank-row a {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row a:hover {
    transform: translateX(4px);
    box-shadow: var(--soft-shadow);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--rose));
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 850;
}

.rank-tag,
.rank-score {
    color: var(--slate-500);
    font-size: 0.9rem;
    font-weight: 800;
}

.rank-score {
    color: var(--cyan);
}

.side-panel {
    padding: 30px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
    box-shadow: var(--shadow);
}

.side-panel h2 {
    margin: 0 0 12px;
    font-size: 1.8rem;
}

.side-panel p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 12% 20%, rgba(6, 182, 212, 0.55), transparent 30%), radial-gradient(circle at 82% 20%, rgba(37, 99, 235, 0.46), transparent 34%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

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

.page-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    line-height: 1.8;
}

.filter-box {
    position: sticky;
    top: 82px;
    z-index: 20;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.72);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 8px 13px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.movie-card.is-hidden,
.rank-row.is-hidden {
    display: none;
}

.compact-rank-section {
    padding-top: 0;
}

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

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

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

.breadcrumb a {
    color: var(--cyan);
    font-weight: 800;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24));
}

.big-play {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    font-size: 2rem;
}

.player-card.is-playing .play-overlay {
    display: none;
}

.detail-content,
.info-card,
.poster-card,
.prose-page {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: var(--soft-shadow);
}

.detail-content {
    margin-top: 24px;
    padding: 32px;
}

.detail-content h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-tags-row {
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--slate-200);
}

.detail-tags-row span {
    color: var(--slate-700);
    background: var(--slate-100);
}

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

.detail-content h2,
.info-card h2,
.prose-page h2 {
    margin: 0 0 12px;
    font-size: 1.32rem;
    font-weight: 900;
}

.detail-content p,
.prose-page p {
    margin: 0;
    color: var(--slate-700);
    line-height: 1.9;
    white-space: pre-line;
}

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

.tag-cloud a {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-weight: 800;
}

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

.poster-card {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

.info-card {
    padding: 24px;
}

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

.info-card dt {
    color: var(--slate-500);
    font-size: 0.86rem;
}

.info-card dd {
    margin: 4px 0 0;
    color: var(--slate-900);
    font-weight: 800;
}

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

.related-section {
    padding-top: 56px;
}

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

.prose-page {
    padding: 34px;
}

.prose-page section + section {
    margin-top: 28px;
}

.site-footer {
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 1.1rem;
}

.site-footer p {
    max-width: 430px;
    margin: 0;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
}

.site-footer a {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
    color: #67e8f9;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    text-align: center;
    font-size: 0.92rem;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .all-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .detail-grid,
    .split-section {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
        grid-template-columns: 260px 1fr;
    }
}

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

    .nav-toggle {
        display: block;
    }

    .site-header.nav-open .mobile-nav {
        display: block;
    }

    .hero-stage {
        height: 620px;
    }

    .hero-content {
        align-items: end;
        padding-bottom: 110px;
    }

    .hero-arrow {
        display: none;
    }

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

    .quick-search,
    .inline-search {
        flex-direction: column;
    }

    .quick-search button,
    .inline-search button {
        min-height: 46px;
    }

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

    .movie-grid,
    .all-grid,
    .category-grid,
    .category-index-grid,
    .related-grid,
    .long-rank-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tint-section {
        padding: 34px 20px;
    }

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

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

@media (max-width: 560px) {
    .nav-wrap,
    .mobile-nav,
    .page-section,
    .detail-hero,
    .page-hero-inner,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, 1180px);
    }

    .brand-name {
        font-size: 1rem;
    }

    .hero-stage {
        height: 590px;
    }

    .hero h1,
    .hero h2 {
        font-size: 2.6rem;
    }

    .hero-desc {
        font-size: 0.98rem;
    }

    .hero-search-panel {
        border-radius: 22px;
    }

    .movie-grid,
    .all-grid,
    .category-grid,
    .category-index-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .detail-content,
    .info-card,
    .prose-page {
        padding: 22px;
        border-radius: 22px;
    }

    .player-card {
        border-radius: 22px;
    }

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

    .rank-tag,
    .rank-score {
        display: none;
    }
}
