:root {
    --bg: #fff7fb;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(219, 39, 119, 0.12);
    --pink: #ec4899;
    --pink-strong: #db2777;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --orange: #f97316;
    --shadow: 0 24px 60px rgba(139, 92, 246, 0.18);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.16), transparent 38rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 32rem),
        linear-gradient(180deg, #fff7fb 0%, #ffffff 38%, #f8fbff 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(236, 72, 153, 0.12);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 74px;
    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.04em;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.86rem;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 700;
    color: #4b5563;
}

.desktop-nav a,
.mobile-nav a {
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--pink-strong);
}

.desktop-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--purple));
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    cursor: pointer;
    padding: 11px;
    box-shadow: 0 16px 28px rgba(236, 72, 153, 0.22);
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.10), rgba(139, 92, 246, 0.10));
}

.main-wrap {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 68px;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, var(--pink), var(--purple), var(--blue));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.22), transparent 18rem),
        radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.16), transparent 20rem),
        linear-gradient(90deg, rgba(31, 41, 55, 0.55), rgba(31, 41, 55, 0.22));
    z-index: 2;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 1s ease;
    transform: scale(1.04);
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.82) 0%, rgba(17, 24, 39, 0.48) 48%, rgba(17, 24, 39, 0.72) 100%),
        linear-gradient(0deg, rgba(236, 72, 153, 0.40), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 5;
    width: min(1220px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 52px;
    padding: 90px 0 64px;
}

.hero-copy {
    max-width: 740px;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero h1 {
    margin: 24px 0 18px;
    font-size: clamp(2.8rem, 7vw, 6.8rem);
    line-height: 0.94;
    letter-spacing: -0.08em;
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}

.hero p {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.90);
    font-size: clamp(1.05rem, 2.3vw, 1.45rem);
    line-height: 1.8;
    text-shadow: 0 14px 36px rgba(0, 0, 0, 0.30);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.primary-btn,
.secondary-btn,
.filter-btn,
.page-btn {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.34);
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
}

.primary-btn:hover,
.secondary-btn:hover,
.filter-btn:hover,
.page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(139, 92, 246, 0.26);
}

.hero-panel {
    position: relative;
    padding: 22px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(20px);
    box-shadow: 0 32px 80px rgba(17, 24, 39, 0.30);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}

.hero-panel h2 {
    margin: 18px 0 8px;
    font-size: 1.45rem;
}

.hero-panel p {
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 18px;
}

.hero-search {
    display: flex;
    width: min(620px, 100%);
    padding: 6px;
    margin-top: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.30);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 0 18px;
    font-weight: 700;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.74);
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 13px 20px;
    color: var(--pink-strong);
    background: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

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

.hero-dots button {
    width: 34px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 58px;
    background: #ffffff;
}

.section-block {
    margin-bottom: 62px;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
    background: linear-gradient(90deg, var(--pink-strong), var(--purple), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-strong);
    box-shadow: 0 18px 44px rgba(139, 92, 246, 0.12);
    border: 1px solid var(--line);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(236, 72, 153, 0.28);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(59, 130, 246, 0.18));
}

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

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

.poster-wrap::after,
.compact-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(17, 24, 39, 0.70));
    pointer-events: none;
}

.quality-badge,
.score-badge,
.rank-no {
    position: absolute;
    z-index: 3;
    border-radius: 999px;
    font-weight: 900;
    color: #ffffff;
}

.quality-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.score-badge {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(17, 24, 39, 0.76);
    backdrop-filter: blur(12px);
}

.rank-no {
    top: 12px;
    right: 12px;
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.movie-meta-line span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.08);
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 1.14rem;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.movie-card h3 a:hover {
    color: var(--pink-strong);
}

.movie-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.94rem;
    min-height: 3.1em;
}

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

.tag-row span {
    padding: 6px 10px;
    color: var(--pink-strong);
    background: rgba(236, 72, 153, 0.09);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.horizontal-scroll {
    overflow-x: auto;
    padding: 4px 0 18px;
    scroll-snap-type: x mandatory;
}

.horizontal-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 340px);
    gap: 20px;
}

.horizontal-row .movie-card {
    scroll-snap-align: start;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 24px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: var(--shadow);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, var(--purple), var(--blue));
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.28), transparent 7rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent);
    opacity: 0.9;
}

.category-card h3,
.category-card p,
.category-card span {
    position: relative;
    z-index: 2;
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 1.45rem;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.category-card span {
    display: inline-block;
    margin-top: 18px;
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 42px;
    padding: 62px;
    border-radius: 34px;
    color: #ffffff;
    background: linear-gradient(120deg, var(--pink), var(--purple), var(--blue));
    box-shadow: var(--shadow);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.25), transparent 12rem),
        radial-gradient(circle at 10% 78%, rgba(255, 255, 255, 0.16), transparent 16rem);
}

.page-hero > * {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    margin: 14px 0 14px;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.07em;
}

.page-hero p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
    font-size: 1.12rem;
}

.filter-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 32px;
    padding: 20px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    box-shadow: 0 16px 42px rgba(139, 92, 246, 0.10);
    backdrop-filter: blur(14px);
}

.search-box {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(236, 72, 153, 0.12);
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 14px;
    color: var(--text);
    font-weight: 700;
}

.search-box button {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-weight: 900;
    cursor: pointer;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 16px;
    color: #4b5563;
    background: #ffffff;
    border: 1px solid rgba(236, 72, 153, 0.13);
}

.filter-btn.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.empty-state {
    display: none;
    padding: 36px;
    border-radius: 26px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--line);
}

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

.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 76px 120px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 38px rgba(139, 92, 246, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.ranking-number {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.ranking-item img {
    width: 120px;
    height: 74px;
    border-radius: 16px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(59, 130, 246, 0.18));
}

.ranking-item h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.ranking-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.ranking-score {
    min-width: 92px;
    text-align: right;
    color: var(--pink-strong);
    font-weight: 900;
    font-size: 1.2rem;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: blur(2px) saturate(1.15);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.74) 48%, rgba(17, 24, 39, 0.92) 100%),
        linear-gradient(0deg, rgba(236, 72, 153, 0.26), transparent 58%);
}

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 34px 84px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(59, 130, 246, 0.18));
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.detail-title {
    margin: 18px 0;
    font-size: clamp(2.4rem, 5vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.detail-desc {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.86;
    font-size: 1.08rem;
}

.detail-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.detail-meta-grid span {
    padding: 10px 14px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.player-section {
    width: min(1220px, calc(100% - 32px));
    margin: 48px auto 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #0f172a;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.30);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(236, 72, 153, 0.30), transparent 18rem),
        rgba(15, 23, 42, 0.36);
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    font-size: 2rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 24px 56px rgba(236, 72, 153, 0.38);
}

.play-overlay strong {
    font-size: 1.1rem;
}

.player-shell.is-playing .play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-content {
    width: min(1220px, calc(100% - 32px));
    margin: 46px auto 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
}

.article-panel,
.side-panel {
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 44px rgba(139, 92, 246, 0.10);
}

.article-panel {
    padding: 34px;
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 18px;
    font-size: 1.55rem;
    letter-spacing: -0.03em;
}

.article-panel p {
    margin: 0 0 22px;
    color: #4b5563;
    line-height: 1.95;
    font-size: 1.04rem;
}

.side-panel {
    padding: 22px;
    align-self: start;
}

.compact-list {
    display: grid;
    gap: 14px;
}

.compact-card {
    position: relative;
    overflow: hidden;
    min-height: 146px;
    border-radius: 22px;
    background: #111827;
}

.compact-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.compact-card:hover img {
    transform: scale(1.08);
}

.compact-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.82));
}

.compact-info {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 15px;
    z-index: 3;
    color: #ffffff;
}

.compact-info strong {
    display: block;
    font-size: 1.02rem;
    line-height: 1.35;
}

.compact-info em {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.76);
    font-style: normal;
    font-size: 0.84rem;
}

.ranking-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.site-footer {
    margin-top: 70px;
    color: #d1d5db;
    background:
        radial-gradient(circle at 15% 10%, rgba(236, 72, 153, 0.22), transparent 20rem),
        linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 32px;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 34px;
}

.site-footer p {
    max-width: 430px;
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #d1d5db;
}

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

.copyright {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #9ca3af;
    font-size: 0.92rem;
}

@keyframes gradient-x {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero-content,
    .detail-shell,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 430px;
    }

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

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

    .detail-poster {
        max-width: 360px;
    }
}

@media (max-width: 720px) {
    .nav-shell {
        min-height: 66px;
    }

    .brand {
        font-size: 1.12rem;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .hero,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        padding-top: 78px;
        gap: 26px;
    }

    .hero h1 {
        letter-spacing: -0.06em;
    }

    .hero-actions,
    .hero-search {
        width: 100%;
    }

    .hero-search {
        border-radius: 24px;
        display: grid;
    }

    .hero-search input {
        min-height: 44px;
    }

    .hero-panel {
        padding: 16px;
    }

    .main-wrap {
        padding-top: 32px;
    }

    .page-hero {
        padding: 38px 24px;
        border-radius: 26px;
    }

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

    .movie-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .ranking-item {
        grid-template-columns: 52px 88px 1fr;
    }

    .ranking-score {
        grid-column: 3;
        text-align: left;
    }

    .ranking-number {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .ranking-item img {
        width: 88px;
        height: 62px;
    }

    .detail-shell {
        padding: 44px 0;
    }

    .detail-poster {
        max-width: 260px;
    }

    .detail-title {
        font-size: 2.4rem;
    }

    .article-panel {
        padding: 24px;
    }

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

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

    .footer-grid {
        gap: 24px;
    }
}

.category-overview {
    min-height: 260px;
}

.category-thumbs {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 18px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.16);
}
