:root {
    --color-rose: #e11d48;
    --color-rose-dark: #be123c;
    --color-pink: #db2777;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-soft: #f9fafb;
    --color-line: #e5e7eb;
    --shadow-card: 0 10px 20px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 30px rgba(15, 23, 42, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-soft);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    background: linear-gradient(135deg, #f43f5e, #db2777);
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.28);
}

.logo-text {
    font-size: 20px;
    color: transparent;
    background: linear-gradient(90deg, #e11d48, #db2777);
    background-clip: text;
    -webkit-background-clip: text;
    white-space: nowrap;
}

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

.nav-link {
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.header-search input,
.mobile-search input,
.local-search input {
    width: 220px;
    border: 0;
    outline: 0;
    padding: 10px 12px;
    background: transparent;
}

.header-search button,
.mobile-search button {
    border: 0;
    color: #ffffff;
    background: var(--color-rose);
    padding: 10px 16px;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #111827;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-panel {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--color-line);
    background: #ffffff;
}

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

.mobile-search {
    display: flex;
    margin: 14px auto;
    max-width: 680px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    overflow: hidden;
}

.mobile-search input {
    flex: 1;
}

.mobile-link {
    display: block;
    max-width: 680px;
    margin: 6px auto;
    padding: 10px 12px;
    border-radius: 10px;
    color: #374151;
}

.mobile-link.is-active,
.mobile-link:hover {
    color: var(--color-rose);
    background: #fff1f2;
}

.hero-carousel {
    position: relative;
    height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #881337, #9d174d, #be123c);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 680px;
    padding-top: 40px;
}

.hero-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    margin-bottom: 16px;
    color: #ffffff;
    background: var(--color-rose);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-intro h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-intro p {
    max-width: 780px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: var(--color-rose);
}

.primary-button:hover {
    background: var(--color-rose-dark);
    transform: translateY(-2px);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-size: 34px;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.stats-section {
    position: relative;
    z-index: 5;
    margin-top: -76px;
    padding-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    min-height: 132px;
    padding: 24px;
    color: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

.stat-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 34px;
    line-height: 1;
}

.stat-card span {
    color: rgba(255, 255, 255, 0.82);
}

.stat-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

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

.section-white {
    background: #ffffff;
}

.section-soft {
    background: linear-gradient(135deg, #eef2ff, #fdf2f8);
}

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

.section-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
}

.section-heading p {
    margin: 0;
    color: var(--color-muted);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-rose);
    font-weight: 800;
    white-space: nowrap;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
}

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #be123c, #db2777);
}

.movie-card-compact .card-poster {
    aspect-ratio: 3 / 2;
}

.movie-card-horizontal .card-poster {
    aspect-ratio: auto;
    min-height: 100%;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 12px;
    color: #ffffff;
    background: rgba(225, 29, 72, 0.92);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

.card-badges,
.card-meta,
.detail-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-badges {
    margin-bottom: 10px;
}

.card-badges a,
.card-badges span,
.card-meta span,
.detail-meta span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    color: #374151;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.card-badges a,
.tag-list span {
    color: var(--color-rose);
    background: #fff1f2;
}

.card-body h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

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

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

.card-meta {
    color: var(--color-muted);
    font-size: 13px;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 22px;
    color: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.8), rgba(219, 39, 119, 0.62));
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.category-tile span,
.category-tile small {
    position: absolute;
    left: 22px;
    z-index: 2;
}

.category-tile span {
    bottom: 50px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile small {
    bottom: 24px;
    opacity: 0.86;
}

.page-hero {
    padding: 92px 0;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.6), transparent 32%), linear-gradient(135deg, #111827, #881337 55%, #db2777);
}

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

.page-hero h1 {
    max-width: 900px;
}

.page-hero p {
    margin-bottom: 0;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 22px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-thumb-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-thumb-stack img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
    background: #f3f4f6;
}

.category-count {
    color: var(--color-rose);
    font-weight: 900;
}

.category-overview-card h2 {
    margin: 8px 0;
    font-size: 28px;
}

.category-overview-card p {
    margin: 0;
    color: var(--color-muted);
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
    padding: 18px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

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

.filter-button {
    border: 0;
    padding: 9px 16px;
    color: #374151;
    background: #f3f4f6;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.filter-button.is-active {
    color: #ffffff;
    background: var(--color-rose);
}

.local-search {
    display: flex;
    align-items: center;
    min-width: 340px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.local-search span {
    padding-left: 14px;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 800;
}

.local-search input {
    flex: 1;
    width: auto;
}

.full-width {
    width: 100%;
}

.empty-state {
    display: none;
    padding: 38px;
    text-align: center;
    color: var(--color-muted);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 54px 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
    box-shadow: var(--shadow-card);
    transform: translateX(4px);
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #db2777);
    border-radius: 12px;
    font-weight: 900;
}

.ranking-row img {
    width: 78px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
    background: #f3f4f6;
}

.ranking-info strong {
    display: block;
    font-size: 18px;
}

.ranking-info small {
    color: var(--color-muted);
}

.ranking-action {
    color: var(--color-rose);
    font-weight: 900;
}

.scroll-row {
    display: flex;
    gap: 20px;
    padding: 6px 4px 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.scroll-item {
    width: 320px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

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

.detail-bg,
.detail-bg-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-bg {
    object-fit: cover;
    opacity: 0.28;
    filter: blur(2px);
    transform: scale(1.02);
}

.detail-bg-shade {
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(136, 19, 55, 0.78));
}

.detail-head-inner {
    position: relative;
    z-index: 2;
    padding: 42px 0 54px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.detail-intro {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.detail-poster {
    width: 230px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
}

.detail-meta {
    margin-bottom: 16px;
}

.detail-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

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

.detail-main,
.detail-side {
    display: grid;
    gap: 22px;
}

.player-card,
.article-card,
.side-card {
    overflow: hidden;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.player-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.42), rgba(15, 23, 42, 0.64));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.player-play span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding-left: 6px;
    border-radius: 999px;
    background: var(--color-rose);
    box-shadow: 0 18px 30px rgba(225, 29, 72, 0.35);
    font-size: 34px;
}

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

.article-card,
.side-card {
    padding: 24px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.article-card p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.side-card dt {
    color: var(--color-muted);
    font-weight: 800;
}

.side-card dd {
    margin: 0;
}

.side-link {
    display: block;
    margin-top: 10px;
    padding: 12px 14px;
    color: var(--color-rose);
    background: #fff1f2;
    border-radius: 12px;
    font-weight: 800;
}

.site-footer {
    padding: 48px 0;
    color: #d1d5db;
    background: #111827;
}

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

.footer-logo {
    margin-bottom: 16px;
}

.site-footer p {
    max-width: 560px;
    margin: 0;
    color: #9ca3af;
}

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

.site-footer a:not(.site-logo) {
    display: block;
    margin-bottom: 8px;
    color: #9ca3af;
}

.site-footer a:hover {
    color: #ffffff;
}

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

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

    .hero-carousel {
        height: 520px;
    }

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

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

    .category-overview-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

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

    .logo-text {
        font-size: 18px;
    }

    .hero-carousel {
        height: 500px;
    }

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

    .hero-control {
        display: none;
    }

    .stats-section {
        margin-top: -50px;
    }

    .stats-grid,
    .grid-3,
    .grid-4,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-card,
    .movie-card-horizontal,
    .detail-intro {
        grid-template-columns: 1fr;
    }

    .category-thumb-stack {
        max-width: 260px;
    }

    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .local-search {
        min-width: 0;
        width: 100%;
    }

    .detail-poster {
        width: 190px;
    }

    .ranking-row {
        grid-template-columns: 44px 64px minmax(0, 1fr);
    }

    .ranking-action {
        display: none;
    }
}
