:root {
    color-scheme: dark;
    --deep-space-950: #020617;
    --deep-space-925: #07111f;
    --deep-space-900: #0f172a;
    --deep-space-850: #111c31;
    --deep-space-800: #1e293b;
    --cloud-realm-500: #38bdf8;
    --cloud-realm-400: #7dd3fc;
    --cloud-realm-300: #bae6fd;
    --cyber-blue-700: #1d4ed8;
    --cyber-blue-600: #2563eb;
    --cyber-blue-500: #3b82f6;
    --aurora-violet: #8b5cf6;
    --hot-orange: #f97316;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-glow: rgba(125, 211, 252, 0.22);
    --card-shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
    --soft-shadow: 0 14px 38px rgba(2, 6, 23, 0.35);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-primary);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 36rem),
        radial-gradient(circle at 80% 10%, rgba(139, 92, 246, 0.14), transparent 34rem),
        linear-gradient(180deg, var(--deep-space-950), #030712 72%, var(--deep-space-950));
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(125, 211, 252, 0.15);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    color: white;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, var(--cloud-realm-500), var(--cyber-blue-600));
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.35);
}

.logo-text,
.footer-logo span:last-child {
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--cloud-realm-300), var(--cyber-blue-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.desktop-nav a,
.mobile-menu a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.62rem 0.78rem;
    border-radius: 0.8rem;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
    white-space: nowrap;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
    color: var(--cloud-realm-400);
    background: rgba(30, 41, 59, 0.92);
}

.header-search,
.mobile-search,
.wide-search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-card input {
    width: 100%;
    color: var(--text-primary);
    border: 1px solid rgba(125, 211, 252, 0.18);
    outline: none;
    background: rgba(15, 23, 42, 0.78);
    border-radius: 0.95rem;
    padding: 0.78rem 1rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-search input {
    width: 14rem;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-card input:focus {
    border-color: rgba(125, 211, 252, 0.85);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.header-search button,
.mobile-search button,
.wide-search button,
.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 1.15rem;
    border: 0;
    border-radius: 0.95rem;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.header-search button,
.mobile-search button,
.wide-search button,
.primary-button {
    color: white;
    background: linear-gradient(135deg, var(--cloud-realm-500), var(--cyber-blue-600));
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.ghost-button {
    color: var(--cloud-realm-300);
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: rgba(15, 23, 42, 0.65);
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(56, 189, 248, 0.28);
}

.menu-toggle {
    display: none;
    color: var(--text-primary);
    border: 1px solid rgba(125, 211, 252, 0.18);
    background: rgba(30, 41, 59, 0.88);
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.9rem;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0 1rem;
}

.mobile-menu.is-open {
    display: grid;
    gap: 0.35rem;
}

.hero-slider {
    position: relative;
    min-height: clamp(620px, 82vh, 860px);
    overflow: hidden;
    border-bottom: 1px solid rgba(125, 211, 252, 0.14);
    background: var(--deep-space-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 5rem 0 4rem;
    opacity: 0;
    transform: translateX(2.2rem);
    pointer-events: none;
    transition: opacity 500ms ease, transform 500ms ease;
}

.hero-slide::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.86) 42%, rgba(2, 6, 23, 0.55) 100%),
        radial-gradient(circle at 25% 38%, rgba(56, 189, 248, 0.18), transparent 32rem),
        var(--hero-image) center / cover no-repeat;
    filter: saturate(1.12);
}

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

.hero-content {
    max-width: 720px;
}

.section-kicker,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--cloud-realm-300);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 1rem 0 1.1rem;
    font-size: clamp(2.7rem, 7vw, 6.6rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
    max-width: 9em;
    text-shadow: 0 28px 80px rgba(2, 6, 23, 0.72);
}

.hero-content p,
.page-hero p,
.detail-hero p {
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.85;
}

.hero-tags,
.tag-row,
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-tags {
    margin: 1.35rem 0 2rem;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    color: var(--cloud-realm-300);
    font-size: 0.76rem;
    border: 1px solid rgba(125, 211, 252, 0.23);
    background: rgba(8, 47, 73, 0.42);
    border-radius: 999px;
    padding: 0.28rem 0.68rem;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 2rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(125, 211, 252, 0.2);
    box-shadow: 0 34px 90px rgba(2, 6, 23, 0.72);
    transform: rotate(2deg);
}

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

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 2.2rem;
    display: flex;
    gap: 0.55rem;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 0.7rem;
    height: 0.7rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 220ms ease, background 220ms ease;
}

.hero-dots button.is-active {
    width: 2.5rem;
    background: var(--cloud-realm-500);
}

.search-panel,
.content-section,
.split-section,
.detail-layout,
.related-section,
.filter-card,
.page-hero {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(260px, 1fr);
    gap: 1.5rem;
    align-items: center;
    margin-top: -3.4rem;
    padding: 1.4rem;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(18px);
}

.search-panel h2,
.section-heading h2,
.page-hero h1,
.content-block h2,
.footer-grid h2 {
    margin: 0;
}

.search-panel h2 {
    margin-top: 0.4rem;
    font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.content-section {
    padding: 4.8rem 0;
}

.no-top-padding {
    padding-top: 0;
}

.dark-band {
    width: 100%;
    max-width: none;
    padding-left: max(1rem, calc((100% - 1180px) / 2));
    padding-right: max(1rem, calc((100% - 1180px) / 2));
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.18));
    border-block: 1px solid rgba(125, 211, 252, 0.08);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.section-heading h2 {
    margin-top: 0.35rem;
    font-size: clamp(1.55rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
}

.section-heading a {
    color: var(--cloud-realm-300);
    font-weight: 700;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.15rem;
}

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

.movie-card {
    display: block;
    overflow: hidden;
    color: inherit;
    border: 1px solid rgba(125, 211, 252, 0.12);
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(125, 211, 252, 0.45);
    background: rgba(15, 23, 42, 0.92);
    box-shadow: var(--soft-shadow);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.72);
}

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

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

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

.play-chip {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    color: white;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.92);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.45);
}

.movie-card-body {
    display: grid;
    gap: 0.55rem;
    padding: 0.9rem;
}

.movie-card-title {
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-meta,
.movie-card-desc {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.movie-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.category-card {
    position: relative;
    display: grid;
    gap: 0.75rem;
    min-height: 15rem;
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.18), transparent 18rem),
        rgba(15, 23, 42, 0.8);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.28);
    transition: transform 180ms ease, border-color 180ms ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(125, 211, 252, 0.42);
}

.category-badge {
    width: max-content;
    color: var(--cloud-realm-300);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.35rem 0.62rem;
    border-radius: 999px;
    background: rgba(8, 47, 73, 0.55);
}

.category-title {
    font-size: 1.35rem;
    font-weight: 900;
}

.category-desc {
    color: var(--text-muted);
    line-height: 1.7;
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: auto;
}

.category-thumbs img {
    aspect-ratio: 2 / 3;
    width: 100%;
    object-fit: cover;
    border-radius: 0.65rem;
    opacity: 0.86;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2rem;
    padding: 4.8rem 0;
}

.rank-panel,
.filter-card,
.meta-box,
.content-block,
.player-card {
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: 1.4rem;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.28);
}

.rank-panel {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 1.25rem;
}

.small-heading {
    align-items: center;
    margin-bottom: 1rem;
}

.small-heading h2 {
    font-size: 1.35rem;
}

.rank-list {
    display: grid;
    gap: 0.6rem;
}

.rank-row {
    display: grid;
    grid-template-columns: auto 58px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem;
    border-radius: 1rem;
    transition: background 180ms ease, transform 180ms ease;
}

.rank-row:hover {
    background: rgba(30, 41, 59, 0.72);
    transform: translateX(4px);
}

.rank-number {
    color: var(--cloud-realm-300);
    font-weight: 900;
    font-size: 1rem;
}

.rank-row img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.rank-content {
    min-width: 0;
    display: grid;
    gap: 0.25rem;
}

.rank-title {
    overflow: hidden;
    color: var(--text-primary);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: var(--text-muted);
    font-size: 0.78rem;
}

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

.page-shell {
    padding-bottom: 4rem;
}

.page-hero {
    padding: 4rem 0 2.5rem;
}

.page-hero h1 {
    margin-top: 0.55rem;
    font-size: clamp(2.3rem, 6vw, 4.8rem);
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 760px;
    margin-top: 1rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    margin-bottom: 1.3rem;
    font-size: 0.9rem;
}

.breadcrumbs a:hover {
    color: var(--cloud-realm-300);
}

.filter-card {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.1rem;
}

.filter-pills button {
    color: var(--text-secondary);
    border: 1px solid rgba(125, 211, 252, 0.18);
    background: rgba(30, 41, 59, 0.6);
    border-radius: 999px;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-pills button:hover,
.filter-pills button.is-active {
    color: white;
    border-color: rgba(125, 211, 252, 0.55);
    background: rgba(56, 189, 248, 0.28);
}

.detail-page {
    padding-bottom: 4rem;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: end;
    border-bottom: 1px solid rgba(125, 211, 252, 0.12);
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.82) 48%, rgba(2, 6, 23, 0.45)),
        var(--detail-image) center / cover no-repeat;
    filter: saturate(1.08);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, var(--deep-space-950));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 5rem 0 3.2rem;
}

.detail-hero h1 {
    max-width: 820px;
    margin: 0.65rem 0 1rem;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.detail-hero p {
    max-width: 760px;
}

.detail-actions {
    margin-top: 1.6rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 2rem;
    padding: 3rem 0 0;
}

.detail-sidebar {
    display: grid;
    gap: 1rem;
    align-self: start;
    position: sticky;
    top: 96px;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 1.45rem;
    border: 1px solid rgba(125, 211, 252, 0.18);
    box-shadow: var(--card-shadow);
}

.meta-box {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.meta-box div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(125, 211, 252, 0.08);
    padding-bottom: 0.65rem;
}

.meta-box div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.meta-box strong {
    color: var(--text-primary);
    text-align: right;
}

.detail-main {
    display: grid;
    gap: 1.2rem;
}

.player-card {
    padding: 0.8rem;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 1.1rem;
    background: #000;
}

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.72));
    transition: opacity 220ms ease, visibility 220ms ease;
}

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

.player-pulse {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(4.5rem, 10vw, 6.5rem);
    height: clamp(4.5rem, 10vw, 6.5rem);
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.92);
    box-shadow: 0 0 0 12px rgba(56, 189, 248, 0.16), 0 0 60px rgba(56, 189, 248, 0.42);
}

.player-triangle {
    width: 0;
    height: 0;
    margin-left: 0.35rem;
    border-top: 0.9rem solid transparent;
    border-bottom: 0.9rem solid transparent;
    border-left: 1.35rem solid white;
}

.player-title {
    max-width: min(680px, calc(100% - 2rem));
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 900;
    text-align: center;
}

.content-block {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.content-block h2 {
    margin-bottom: 0.85rem;
    font-size: 1.35rem;
}

.content-block p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.9;
}

.large-tags .tag-pill {
    font-size: 0.86rem;
    min-height: 2rem;
}

.related-section {
    padding-top: 3rem;
}

.site-footer {
    border-top: 1px solid rgba(125, 211, 252, 0.12);
    background: rgba(2, 6, 23, 0.95);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0 2rem;
}

.footer-grid p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 1rem 0 0;
}

.footer-grid h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--cloud-realm-300);
}

.footer-bottom {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.2rem 0 2rem;
    color: #64748b;
    border-top: 1px solid rgba(125, 211, 252, 0.09);
    font-size: 0.9rem;
}

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

.empty-state {
    grid-column: 1 / -1;
    color: var(--text-muted);
    text-align: center;
    padding: 3rem;
    border: 1px solid rgba(125, 211, 252, 0.12);
    border-radius: 1.4rem;
    background: rgba(15, 23, 42, 0.65);
}

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

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

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

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

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

    .rank-panel,
    .detail-sidebar {
        position: static;
    }

    .detail-sidebar {
        grid-template-columns: 240px minmax(0, 1fr);
        align-items: start;
    }
}

@media (max-width: 840px) {
    .nav-wrap {
        height: 66px;
    }

    .header-search {
        display: none;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        min-height: 720px;
    }

    .hero-poster {
        max-width: 260px;
        margin: 0 auto;
        transform: none;
    }

    .search-panel {
        grid-template-columns: 1fr;
        margin-top: -2rem;
    }

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

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

    .detail-cover {
        max-width: 280px;
    }

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

@media (max-width: 520px) {
    .site-logo .logo-text {
        font-size: 1.05rem;
    }

    .logo-mark {
        width: 2rem;
        height: 2rem;
        border-radius: 0.7rem;
    }

    .hero-slider {
        min-height: 720px;
    }

    .hero-slide {
        width: min(100% - 1.25rem, 1180px);
        padding-top: 3.5rem;
    }

    .hero-content h1 {
        font-size: clamp(2.3rem, 15vw, 4rem);
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .large-categories,
    .full-rank-list {
        grid-template-columns: 1fr;
    }

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

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

    .detail-hero {
        min-height: 470px;
    }

    .detail-hero-inner {
        padding-bottom: 2.3rem;
    }
}
