:root {
    --bg: #fff7fb;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-solid: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(244, 114, 182, 0.22);
    --rose: #f43f5e;
    --pink: #ec4899;
    --amber: #f59e0b;
    --deep: #0f172a;
    --shadow: 0 22px 60px rgba(136, 19, 55, 0.14);
    --soft-shadow: 0 12px 35px rgba(136, 19, 55, 0.10);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: min(1180px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(251, 207, 232, 0.95), transparent 30rem),
        radial-gradient(circle at top right, rgba(254, 243, 199, 0.95), transparent 26rem),
        linear-gradient(135deg, #f8fafc 0%, #fff1f7 48%, #fff7ed 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(244, 63, 94, 0.08);
}

.nav-shell {
    width: var(--container);
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--amber));
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.35);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 132px;
}

.brand-copy strong {
    font-size: 1.22rem;
    line-height: 1.15;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.76rem;
}

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

.desktop-nav a,
.mobile-nav a {
    color: #4b5563;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 999px;
    transition: all 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--rose);
    background: rgba(255, 228, 240, 0.9);
}

.top-search {
    position: relative;
    width: min(270px, 24vw);
}

.top-search input {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(244, 114, 182, 0.35);
    outline: none;
    border-radius: 999px;
    padding: 0 44px 0 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.76);
}

.top-search input:focus {
    border-color: rgba(244, 63, 94, 0.65);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.10);
}

.top-search button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 14px;
    background: #fff1f7;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: #4b5563;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: var(--container);
    margin: 0 auto;
    padding: 0 0 16px;
    gap: 8px;
    flex-wrap: wrap;
}

.home-hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: var(--deep);
}

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

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

.hero-mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hero-tile {
    position: relative;
    overflow: hidden;
}

.hero-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.02);
    transition: transform 5s ease;
}

.hero-slide.is-active .hero-tile img {
    transform: scale(1.12);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(244, 63, 94, 0.16), transparent 28rem),
        linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.72) 48%, rgba(248, 250, 252, 0.95) 100%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.76));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(900px, calc(100vw - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 40px;
}

.hero-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--amber));
    box-shadow: 0 0 45px rgba(244, 63, 94, 0.45);
}

.hero-tags,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.hero-tags span,
.card-tags span,
.detail-tags a {
    border-radius: 999px;
    padding: 5px 10px;
    color: #be123c;
    background: rgba(255, 228, 240, 0.92);
    border: 1px solid rgba(244, 114, 182, 0.22);
    font-size: 0.82rem;
    text-decoration: none;
}

.hero-content h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.4rem, 6vw, 5.6rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 14px 40px rgba(15, 23, 42, 0.42);
    background: linear-gradient(90deg, #fff1f2, #f9a8d4, #fde68a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    width: min(720px, 100%);
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.8;
    text-shadow: 0 8px 24px rgba(15, 23, 42, 0.4);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.btn-primary,
.btn-ghost,
.btn-light,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.22s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 32px rgba(244, 63, 94, 0.28);
}

.btn-primary:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(244, 63, 94, 0.34);
}

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

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
}

.btn-light {
    color: var(--rose);
    border: 1px solid rgba(244, 114, 182, 0.35);
    background: #ffffff;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.22s ease;
}

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

.section-shell {
    width: var(--container);
    margin: 0 auto;
    padding: 72px 0;
}

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

.compact-heading {
    margin-bottom: 20px;
}

.section-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--rose);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.section-heading h2,
.filter-panel h2,
.rank-panel h2,
.sidebar-card h2 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.section-heading p,
.filter-panel p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-link {
    color: var(--rose);
    border: 1px solid rgba(244, 114, 182, 0.32);
    background: rgba(255, 255, 255, 0.82);
}

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

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

.movie-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.movie-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4ee, #fff7ed);
}

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

.movie-card:hover .movie-poster img,
.ranking-item:hover img,
.category-tile:hover img,
.category-overview-card:hover img {
    transform: scale(1.08);
}

.poster-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.65));
}

.duration-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    font-size: 0.74rem;
    backdrop-filter: blur(10px);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--rose);
    background: rgba(255, 255, 255, 0.90);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: all 0.25s ease;
}

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

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.movie-card-body h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.04rem;
    line-height: 1.38;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card:hover h3 {
    color: var(--rose);
}

.movie-card-body p {
    min-height: 44px;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 0.82rem;
}

.card-tags {
    justify-content: flex-start;
    margin-top: auto;
}

.movie-card-compact .movie-card-link {
    flex-direction: row;
}

.movie-card-compact .movie-poster {
    width: 38%;
    min-width: 124px;
    aspect-ratio: 3 / 4;
}

.movie-card-compact .movie-card-body {
    padding: 14px;
}

.category-band {
    background: linear-gradient(135deg, rgba(255, 241, 247, 0.88), rgba(255, 247, 237, 0.88));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.category-tile,
.category-overview-card {
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(244, 114, 182, 0.22);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 220px;
    padding: 20px;
    overflow: hidden;
}

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

.category-emoji,
.overview-icon {
    font-size: 2rem;
}

.category-tile strong {
    font-size: 1.05rem;
}

.category-tile small,
.category-tile p {
    color: var(--muted);
}

.poster-strip,
.overview-posters {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.poster-strip img,
.overview-posters img {
    width: 32%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

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

.rank-panel,
.sidebar-card,
.detail-info-card,
.player-card,
.filter-panel,
.category-overview-card,
.page-hero-inner {
    border: 1px solid rgba(244, 114, 182, 0.22);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(16px);
}

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
}

.rank-panel-head span {
    color: var(--rose);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 42px 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    border-radius: 16px;
    padding: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
    background: #fff1f7;
    transform: translateX(4px);
}

.ranking-no {
    font-size: 1.3rem;
    font-weight: 900;
    color: #f9a8d4;
}

.top-rank .ranking-no {
    color: var(--rose);
}

.ranking-item img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
    background: #fff1f7;
    transition: transform 0.25s ease;
}

.ranking-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ranking-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-copy small {
    color: var(--muted);
    line-height: 1.35;
}

.page-hero {
    padding: 42px 0 0;
}

.page-hero-inner {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    align-items: center;
    padding: 38px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(251, 207, 232, 0.88), transparent 20rem),
        rgba(255, 255, 255, 0.78);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.08;
    color: #111827;
}

.page-hero p {
    width: min(680px, 100%);
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 152px;
    gap: 18px;
    align-items: center;
    padding: 22px;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    color: #1f2937;
}

.category-overview-card p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.7;
}

.category-overview-card span {
    color: var(--rose);
    font-weight: 700;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 28px;
    padding: 26px;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(140px, 1fr)) auto;
    gap: 14px;
    align-items: end;
}

.filter-controls label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #4b5563;
    font-weight: 700;
    font-size: 0.88rem;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(244, 114, 182, 0.34);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.10);
}

.filter-reset {
    height: 46px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    padding: 0 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.filter-result {
    color: var(--muted);
}

.empty-state {
    margin: 30px 0 0;
    padding: 32px;
    text-align: center;
    border-radius: 20px;
    color: var(--muted);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

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

.breadcrumb a {
    color: var(--rose);
    text-decoration: none;
}

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

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

.detail-main {
    min-width: 0;
}

.player-card {
    overflow: hidden;
    margin-bottom: 24px;
    background: #0f172a;
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f172a;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(244, 63, 94, 0.22), rgba(15, 23, 42, 0.48)),
        linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.72));
    cursor: pointer;
}

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

.big-play {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--rose);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    font-size: 2rem;
}

.player-overlay strong {
    font-size: 1.25rem;
}

.player-overlay small {
    color: rgba(255, 255, 255, 0.78);
}

.detail-info-card {
    padding: 28px;
}

.detail-title-row {
    display: flex;
    gap: 16px;
    align-items: start;
    justify-content: space-between;
}

.detail-title-row h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
    color: #111827;
}

.detail-category {
    white-space: nowrap;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    padding: 9px 14px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #4b5563;
    background: #fff1f7;
}

.one-line {
    margin: 0 0 18px;
    color: #374151;
    font-size: 1.08rem;
    line-height: 1.8;
    font-weight: 600;
}

.detail-tags {
    justify-content: flex-start;
    margin-bottom: 22px;
}

.detail-actions {
    justify-content: flex-start;
    margin-bottom: 26px;
}

.copy-link {
    border: 1px solid rgba(244, 114, 182, 0.35);
    cursor: pointer;
}

.content-block {
    border-top: 1px solid rgba(244, 114, 182, 0.18);
    padding-top: 24px;
    margin-top: 24px;
}

.content-block h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.content-block p {
    margin: 0;
    color: #4b5563;
    line-height: 2;
    white-space: pre-line;
}

.review-block {
    padding: 22px;
    border: 1px solid rgba(244, 114, 182, 0.22);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 241, 247, 0.88), rgba(255, 247, 237, 0.88));
}

.related-section {
    margin-top: 30px;
}

.detail-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-card {
    padding: 20px;
}

.poster-card {
    overflow: hidden;
    padding: 0;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.poster-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
}

.poster-card span {
    color: var(--rose);
    font-weight: 800;
}

.compact-ranking .ranking-item {
    grid-template-columns: 34px 58px minmax(0, 1fr);
    padding: 8px;
}

.compact-ranking .ranking-item img {
    width: 58px;
    height: 78px;
}

.rankings-page-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--soft-shadow);
}

.site-footer {
    color: #e5e7eb;
    background: linear-gradient(135deg, #0f172a, #4c0519 58%, #0f172a);
}

.footer-shell {
    width: var(--container);
    margin: 0 auto;
    padding: 48px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 30px;
}

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

.footer-grid p {
    color: #d1d5db;
    line-height: 1.8;
}

.footer-grid a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    margin: 9px 0;
}

.footer-grid a:hover {
    color: #f9a8d4;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #9ca3af;
    font-size: 0.9rem;
}

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

    .movie-grid,
    .movie-grid-latest {
        grid-template-columns: repeat(3, 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;
    }
}

@media (max-width: 820px) {
    :root {
        --container: min(100vw - 24px, 1180px);
    }

    .nav-shell {
        height: 68px;
    }

    .desktop-nav {
        display: none;
    }

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

    .mobile-nav.is-open {
        display: flex;
    }

    .home-hero {
        min-height: 620px;
        height: 78vh;
    }

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

    .hero-tile:nth-child(n + 3) {
        display: none;
    }

    .hero-content h1 {
        font-size: clamp(2.2rem, 12vw, 4.4rem);
    }

    .section-shell {
        padding: 52px 0;
    }

    .section-heading,
    .detail-title-row,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .movie-grid,
    .movie-grid-latest,
    .category-grid,
    .category-overview-grid,
    .rankings-page-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-hero-inner {
        grid-template-columns: 1fr;
        padding: 26px;
    }

    .page-hero-poster {
        display: none;
    }

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

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

    .overview-posters {
        max-width: 220px;
    }

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

@media (max-width: 560px) {
    .brand-copy small {
        display: none;
    }

    .home-hero {
        min-height: 560px;
    }

    .hero-icon {
        width: 56px;
        height: 56px;
    }

    .hero-actions,
    .detail-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-primary,
    .btn-ghost,
    .btn-light {
        width: 100%;
    }

    .movie-grid,
    .movie-grid-latest,
    .category-grid,
    .category-overview-grid,
    .rankings-page-list {
        grid-template-columns: 1fr;
    }

    .movie-card-compact .movie-card-link {
        flex-direction: column;
    }

    .movie-card-compact .movie-poster {
        width: 100%;
    }

    .detail-info-card,
    .filter-panel,
    .sidebar-card {
        padding: 20px;
    }

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