:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-500: #ec4899;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow-soft: 0 20px 60px rgba(225, 29, 72, 0.16);
    --shadow-card: 0 14px 40px rgba(17, 24, 39, 0.09);
    --radius-xl: 24px;
    --radius-lg: 18px;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, #fff7f9 0%, #ffffff 28%, #f9fafb 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 14px 26px rgba(244, 63, 94, 0.28);
}

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

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

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-700);
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: var(--rose-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose-500);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.site-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: min(360px, 34vw);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 4px;
}

.site-search-form input {
    border: 0;
    outline: 0;
    flex: 1;
    min-width: 0;
    background: transparent;
    padding: 10px 14px;
    color: var(--gray-900);
}

.site-search-form button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 700;
}

.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--rose-100);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    z-index: 80;
}

.search-results.open {
    display: block;
}

.search-results a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.search-results a:hover {
    background: var(--rose-50);
    color: var(--rose-600);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: #fff;
    color: var(--gray-900);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--gray-100);
    background: #fff;
    padding: 10px 16px 16px;
}

.mobile-panel.open {
    display: grid;
    gap: 8px;
}

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--gray-50);
    font-weight: 700;
}

.hero {
    position: relative;
    padding-bottom: 46px;
    overflow: hidden;
}

.hero-shell {
    position: relative;
    min-height: 680px;
    background: var(--gray-900);
    overflow: hidden;
}

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

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) blur(2px);
    transform: scale(1.04);
}

.hero-shade,
.detail-mask {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 18%, rgba(244, 63, 94, 0.46), transparent 32%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.84) 46%, rgba(17, 24, 39, 0.28) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 54px;
    align-items: center;
    padding-top: 28px;
}

.hero-copy {
    color: #fff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rose-500);
    background: var(--rose-50);
    border: 1px solid var(--rose-100);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-kicker {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.26);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.hero p,
.page-hero p,
.detail-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
    max-width: 720px;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags a,
.tag-row span,
.detail-meta span,
.meta-row span,
.card-meta span {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-meta span,
.tag-row span,
.meta-row span {
    color: var(--rose-600);
    background: var(--rose-50);
    border-color: var(--rose-100);
}

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

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

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

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

.btn.ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-poster {
    position: relative;
    display: block;
    width: min(360px, 82%);
    justify-self: center;
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

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

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

.hero-dot {
    width: 34px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.hero-dot.active {
    background: #fff;
}

.hero-search-panel {
    position: relative;
    z-index: 5;
    margin-top: -72px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 20px;
    backdrop-filter: blur(18px);
}

.hero-search {
    width: 100%;
    border-radius: 18px;
    background: #fff;
}

.hero-search input {
    padding: 16px 18px;
}

.hero-search button {
    padding: 13px 24px;
}

.hero-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hero-category-pills a {
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--rose-50);
    color: var(--rose-600);
    font-weight: 700;
    border: 1px solid var(--rose-100);
}

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

.soft-bg {
    background: linear-gradient(180deg, #fff, var(--gray-50));
}

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

.section-head h2,
.detail-article h2,
.detail-side h2,
.player-title h2,
.category-box h2,
.leaderboard-info h2 {
    margin: 12px 0 8px;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-head p,
.category-box p,
.detail-article p,
.detail-side,
.player-title p,
.leaderboard-info p {
    color: var(--gray-600);
    line-height: 1.75;
}

.section-more,
.text-link {
    color: var(--rose-600);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
    border: 1px solid rgba(244, 63, 94, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--gray-100);
}

.poster img,
.rank-cover img,
.leaderboard-poster img,
.category-art img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .poster img,
.movie-card:hover .rank-cover img,
.leaderboard-item:hover .leaderboard-poster img,
.category-box:hover .category-art img {
    transform: scale(1.08);
}

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.62));
    opacity: 0.76;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%) scale(0.9);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(244, 63, 94, 0.92);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-year {
    position: absolute;
    z-index: 2;
    right: 12px;
    top: 12px;
    color: #fff;
    background: rgba(17, 24, 39, 0.78);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-body h2 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.32;
    font-weight: 900;
}

.card-body h2 a:hover,
.leaderboard-info h2 a:hover,
.category-box h2 a:hover {
    color: var(--rose-600);
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 16px;
    padding: 12px;
}

.rank-cover {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
}

.rank-title {
    display: block;
    margin: 6px 0 8px;
    font-size: 18px;
    font-weight: 900;
}

.rank-info p {
    margin: 0 0 12px;
    color: var(--gray-600);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 20%, rgba(236, 72, 153, 0.32), transparent 30%),
        linear-gradient(135deg, #111827 0%, #3f0f21 56%, #831843 100%);
}

.page-hero.compact {
    padding: 86px 0 70px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.82);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #fff;
}

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

.category-box {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--rose-100);
    overflow: hidden;
    padding: 18px;
}

.category-art {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 1 / 1;
}

.category-art img {
    min-width: 0;
    min-height: 0;
}

.category-box-body {
    align-self: center;
}

.category-sample {
    font-size: 14px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 160px 160px 160px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--rose-100);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    padding: 0 12px;
    outline: 0;
}

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

.empty-state {
    display: none;
    margin: 28px 0;
    padding: 32px;
    text-align: center;
    border-radius: 20px;
    background: var(--gray-50);
    color: var(--gray-600);
    font-weight: 800;
}

.empty-state.open {
    display: block;
}

.leaderboard {
    display: grid;
    gap: 16px;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 74px 150px 1fr;
    align-items: center;
    gap: 20px;
    padding: 14px;
    border-radius: 24px;
}

.leaderboard-no {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    font-weight: 900;
    font-size: 18px;
}

.leaderboard-poster {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
}

.leaderboard-info h2 {
    font-size: 24px;
}

.detail-hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #fff;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 82px 0 70px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 46px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.42);
}

.detail-copy p {
    color: rgba(255, 255, 255, 0.86);
}

.detail-meta {
    margin: 22px 0;
}

.detail-tags {
    margin-bottom: 28px;
}

.detail-tags a {
    background: rgba(255, 255, 255, 0.12);
}

.player-card {
    overflow: hidden;
    background: #fff;
    border-radius: 30px;
    border: 1px solid var(--rose-100);
    box-shadow: var(--shadow-card);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(244, 63, 94, 0.18), rgba(0, 0, 0, 0.42));
}

.player-overlay span {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 22px 50px rgba(244, 63, 94, 0.42);
    font-size: 34px;
    padding-left: 5px;
}

.player-overlay.is-hidden {
    display: none;
}

.player-title {
    padding: 24px 28px;
}

.player-title h2 {
    font-size: 28px;
}

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

.detail-article,
.detail-side {
    background: #fff;
    border-radius: 26px;
    border: 1px solid var(--rose-100);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
    padding: 30px;
}

.detail-article h2,
.detail-side h2 {
    font-size: 26px;
}

.detail-article p {
    margin: 0 0 24px;
    font-size: 16px;
}

.detail-side dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-side dl div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.detail-side dt {
    color: var(--gray-500);
    font-weight: 700;
}

.detail-side dd {
    margin: 0;
    color: var(--gray-900);
    font-weight: 800;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--gray-200);
    background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    padding: 48px 0 30px;
}

.site-footer h2 {
    margin: 4px 0 12px;
    font-size: 16px;
    font-weight: 900;
}

.site-footer p {
    color: var(--gray-600);
    line-height: 1.75;
}

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

.footer-links a {
    color: var(--rose-600);
    font-weight: 700;
}

.footer-bottom {
    padding: 18px 16px 28px;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
}

@media (max-width: 980px) {
    .desktop-nav,
    .site-header .site-search-form {
        display: none;
    }

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

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

    .hero-content {
        gap: 24px;
        padding: 98px 0 130px;
    }

    .hero-poster {
        width: min(300px, 72%);
        justify-self: start;
    }

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

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

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

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

    .header-inner {
        height: 64px;
    }

    .brand-name {
        font-size: 18px;
    }

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

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 36px;
    }

    .hero p,
    .page-hero p,
    .detail-copy p {
        font-size: 16px;
    }

    .hero-actions,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search-panel {
        margin-top: -54px;
        padding: 14px;
    }

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

    .hero-search button {
        border-radius: 14px;
    }

    .movie-grid,
    .small-grid {
        grid-template-columns: 1fr;
    }

    .rank-card,
    .category-box,
    .leaderboard-item {
        grid-template-columns: 1fr;
    }

    .rank-cover,
    .leaderboard-poster {
        aspect-ratio: 16 / 9;
    }

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

    .detail-hero-inner {
        padding-top: 56px;
    }

    .detail-poster {
        width: min(260px, 70vw);
    }

    .player-overlay span {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
}
