:root {
    --text: #1f2937;
    --muted: #667085;
    --soft: rgba(255, 255, 255, 0.72);
    --panel: rgba(255, 255, 255, 0.88);
    --line: rgba(239, 68, 100, 0.16);
    --red: #ef4444;
    --orange: #f97316;
    --pink: #ec4899;
    --purple: #8b5cf6;
    --blue: #60a5fa;
    --shadow: 0 20px 60px rgba(244, 114, 182, 0.18);
    --shadow-strong: 0 26px 80px rgba(236, 72, 153, 0.26);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #eff6ff 0%, #fff1f8 42%, #f5f3ff 100%);
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 247, 252, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 10px 28px rgba(244, 114, 182, 0.12);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.32);
}

.brand-text,
.footer-brand {
    font-size: 22px;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--pink);
    background: white;
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.14);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 620px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 80px rgba(148, 43, 104, 0.22);
    border: 1px solid rgba(236, 72, 153, 0.12);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 18px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(255, 241, 248, 0.8), rgba(239, 246, 255, 0.8));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dropdown-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(236, 72, 153, 0.16);
}

.dropdown-link strong {
    color: #374151;
}

.dropdown-link span {
    color: var(--muted);
    font-size: 13px;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.14);
    cursor: pointer;
}

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

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(236, 72, 153, 0.12);
    background: rgba(255, 255, 255, 0.97);
    padding: 12px 20px 22px;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel > a,
.mobile-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    color: #374151;
    font-weight: 700;
}

.mobile-panel > a:hover,
.mobile-category-list a:hover {
    background: #fff1f8;
    color: var(--pink);
}

.mobile-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-top: 10px;
}

.mobile-category-list span {
    color: var(--muted);
    font-size: 12px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    padding: 68px 0 56px;
    background: radial-gradient(circle at top left, rgba(252, 165, 165, 0.38), transparent 34%),
        radial-gradient(circle at top right, rgba(192, 132, 252, 0.34), transparent 38%),
        linear-gradient(135deg, #ffe4ef 0%, #eff6ff 48%, #f5f3ff 100%);
}

.hero-blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(42px);
    opacity: 0.38;
    animation: blob 12s ease-in-out infinite;
}

.hero-blob.one {
    top: 70px;
    left: 8%;
    width: 300px;
    height: 300px;
    background: #fda4af;
}

.hero-blob.two {
    right: 5%;
    top: 130px;
    width: 340px;
    height: 340px;
    background: #93c5fd;
    animation-delay: 2s;
}

.hero-blob.three {
    bottom: 40px;
    left: 42%;
    width: 380px;
    height: 380px;
    background: #f9a8d4;
    animation-delay: 4s;
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(34px, -42px) scale(1.08);
    }

    66% {
        transform: translate(-30px, 26px) scale(0.94);
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(236, 72, 153, 0.12);
    color: #7c2d12;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.hero-kicker strong {
    color: var(--pink);
}

.hero-stage {
    position: relative;
    min-height: 470px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: 48px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--pink);
    font-weight: 900;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(42px, 7vw, 88px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    background: linear-gradient(90deg, #ef4444, #f97316, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.08;
    color: #111827;
}

.hero p {
    max-width: 660px;
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

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

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

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

.btn.primary {
    color: white;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
    box-shadow: 0 18px 38px rgba(239, 68, 68, 0.28);
}

.btn.ghost {
    color: #374151;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.14);
}

.btn.text {
    color: var(--pink);
    background: transparent;
}

.hero-visual {
    position: relative;
    display: block;
    border-radius: 36px;
    overflow: hidden;
    min-height: 360px;
    transform: rotate(1.5deg);
    box-shadow: var(--shadow-strong);
    border: 10px solid rgba(255, 255, 255, 0.6);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.hero-badge,
.hero-play,
.poster-type,
.poster-duration,
.poster-play {
    position: absolute;
    z-index: 2;
}

.hero-badge {
    top: 18px;
    left: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    color: white;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(12px);
    font-weight: 900;
}

.hero-play {
    left: 50%;
    top: 50%;
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    color: white;
    background: rgba(236, 72, 153, 0.82);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    font-size: 34px;
}

.hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.28);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 36px;
    background: linear-gradient(90deg, var(--red), var(--pink));
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 760px;
    margin-top: 32px;
}

.hero-stats div {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    text-align: center;
}

.hero-stats strong {
    display: block;
    font-size: 30px;
    color: var(--pink);
}

.hero-stats span {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

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

.content-section.tight {
    padding-top: 34px;
}

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

.section-head span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--pink);
    font-weight: 900;
}

.section-head h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    white-space: nowrap;
    color: var(--pink);
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 30px;
    padding: 22px;
    color: white;
    box-shadow: var(--shadow);
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile img,
.category-tile::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-tile img {
    object-fit: cover;
    z-index: -2;
    transition: transform 0.5s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile::after {
    content: "";
    z-index: -1;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.72));
}

.category-glow {
    position: absolute;
    inset: auto 18px 18px 18px;
    height: 80px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.42);
    filter: blur(35px);
    z-index: -1;
}

.category-tile strong {
    display: block;
    font-size: 24px;
    margin-top: 80px;
}

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

.category-tile em {
    font-style: normal;
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

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

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

.movie-card {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(236, 72, 153, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-link {
    display: block;
    height: 100%;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #ffe4ef, #e0f2fe);
}

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

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(17, 24, 39, 0.62));
    opacity: 0.88;
}

.poster-type,
.poster-duration {
    top: 12px;
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: white;
    background: rgba(17, 24, 39, 0.65);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 900;
}

.poster-type {
    left: 12px;
}

.poster-duration {
    right: 12px;
}

.poster-play {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.82);
    border-radius: 999px;
    color: white;
    background: rgba(236, 72, 153, 0.86);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-body h2 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover h2 {
    color: var(--pink);
}

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

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #7c2d12;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.movie-meta-row span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff7ed;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #fdf2f8;
    color: #be185d;
    font-size: 12px;
    font-weight: 800;
}

.page-hero {
    padding: 54px 0 36px;
    background: linear-gradient(135deg, rgba(255, 228, 239, 0.82), rgba(224, 242, 254, 0.82));
    border-bottom: 1px solid rgba(236, 72, 153, 0.1);
}

.page-title {
    max-width: 860px;
}

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

.breadcrumb a {
    color: var(--pink);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #4b5563;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.1);
}

.pagination .current {
    color: white;
    background: linear-gradient(90deg, var(--red), var(--pink));
}

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

.rank-row {
    display: grid;
    grid-template-columns: 74px 144px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(236, 72, 153, 0.1);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.rank-number {
    font-size: 28px;
    font-weight: 950;
    color: var(--pink);
    text-align: center;
}

.rank-poster {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

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

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.65;
}

.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(90deg, var(--red), var(--pink));
    font-weight: 900;
}

.detail-hero {
    padding: 42px 0;
    background: linear-gradient(135deg, rgba(255, 228, 239, 0.84), rgba(239, 246, 255, 0.88));
}

.detail-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
}

.detail-title p {
    color: var(--muted);
    line-height: 1.8;
    margin: 14px 0 0;
    max-width: 860px;
}

.detail-score {
    padding: 18px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    text-align: center;
}

.detail-score strong {
    display: block;
    color: var(--pink);
    font-size: 30px;
}

.detail-score span {
    color: var(--muted);
}

.player-section {
    padding: 36px 0 20px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #111827;
    box-shadow: 0 30px 90px rgba(17, 24, 39, 0.36);
    border: 10px solid rgba(255, 255, 255, 0.72);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.72));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
}

.player-overlay[hidden] {
    display: none;
}

.player-overlay span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red), var(--pink));
    box-shadow: 0 20px 48px rgba(236, 72, 153, 0.44);
    font-size: 34px;
}

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

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

.detail-panel {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    border: 1px solid rgba(236, 72, 153, 0.1);
}

.detail-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.detail-panel p {
    margin: 0 0 16px;
    color: #4b5563;
    line-height: 1.9;
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(236, 72, 153, 0.18);
}

.info-list dt {
    color: var(--muted);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    text-align: right;
    font-weight: 900;
}

.related-list {
    display: grid;
    gap: 12px;
}

.related-list a {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff7fb;
    transition: transform 0.2s ease, background 0.2s ease;
}

.related-list a:hover {
    transform: translateX(4px);
    background: #fff1f8;
}

.related-list img {
    width: 96px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
}

.related-list strong {
    display: block;
    margin-bottom: 6px;
}

.related-list span {
    color: var(--muted);
    font-size: 13px;
}

.search-panel {
    padding: 22px;
    margin-bottom: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
    border: 1px solid rgba(236, 72, 153, 0.1);
}

.search-box {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-box input {
    flex: 1;
    min-height: 54px;
    border: 1px solid rgba(236, 72, 153, 0.2);
    outline: none;
    border-radius: 999px;
    padding: 0 20px;
    color: #374151;
    background: white;
    box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.04);
}

.search-count {
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.empty-text {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--muted);
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    z-index: 50;
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    box-shadow: 0 18px 38px rgba(139, 92, 246, 0.28);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

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

.site-footer {
    margin-top: 48px;
    padding: 48px 0 22px;
    background: rgba(255, 255, 255, 0.58);
    border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 0.9fr;
    gap: 36px;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

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

.footer-links a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.64);
}

.footer-links a:hover {
    color: var(--pink);
    background: white;
}

.footer-links span {
    color: var(--muted);
    font-size: 12px;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(236, 72, 153, 0.12);
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

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

    .mobile-toggle {
        display: inline-block;
    }

    .hero-slide,
    .detail-layout,
    .detail-title {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 300px;
    }

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

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

    .rank-action {
        grid-column: 2 / -1;
        width: fit-content;
    }

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

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        min-height: auto;
        padding: 44px 0 34px;
    }

    .hero-kicker,
    .hero-actions,
    .section-head,
    .search-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-stage {
        min-height: 0;
    }

    .hero-slide {
        gap: 28px;
    }

    .hero-visual,
    .hero-visual img {
        min-height: 240px;
    }

    .hero-stats,
    .category-grid,
    .movie-grid,
    .movie-grid.large,
    .mobile-category-list,
    .footer-links {
        grid-template-columns: 1fr;
    }

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

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

    .rank-poster {
        grid-column: 1 / -1;
        order: -1;
    }

    .rank-action {
        grid-column: 1 / -1;
    }

    .detail-panel {
        padding: 18px;
    }

    .player-shell {
        border-width: 5px;
        border-radius: 24px;
    }
}
