:root {
    --bg: #f8fafc;
    --paper: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --pink: #ec4899;
    --red: #ef4444;
    --orange: #f97316;
    --blue: #3b82f6;
    --green: #10b981;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 20px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 38%, #f8fafc 100%);
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(239, 246, 255, 0.96), rgba(236, 253, 245, 0.96));
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

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

.logo,
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.32);
}

.logo-text {
    display: grid;
    gap: 3px;
}

.logo strong,
.footer-logo strong {
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(90deg, #dc2626, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo small,
.footer-logo small {
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

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

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-panel input,
.filter-bar input,
.hero-search input {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.filter-bar input:focus,
.hero-search input:focus {
    border-color: #f472b6;
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.18);
}

.header-search button,
.mobile-panel button,
.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(90deg, var(--pink), var(--blue));
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #374151;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(209, 213, 219, 0.8);
}

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

.mobile-panel a {
    padding: 10px 0;
    color: #374151;
    font-weight: 600;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 35%, rgba(236, 72, 153, 0.24), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.64) 45%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: center;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    color: #f9a8d4;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 24px;
    font-size: clamp(17px, 2vw, 22px);
    color: #e5e7eb;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn-primary,
.btn-ghost,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    padding: 13px 24px;
    background: linear-gradient(90deg, var(--pink), var(--blue));
    box-shadow: 0 15px 32px rgba(59, 130, 246, 0.28);
}

.btn-ghost {
    color: #ffffff;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-ghost:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
    background: rgba(255, 255, 255, 0.12);
    padding: 10px;
}

.hero-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 20px;
}

.hero-control {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 3;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.hero-control button {
    border: 0;
    cursor: pointer;
}

.hero-control > button {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-dots {
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-search {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%);
    width: min(640px, calc(100% - 32px));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    border-radius: 999px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
}

.hero-search input {
    width: 100%;
    border-color: transparent;
}

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

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-mark {
    width: 5px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--pink), var(--blue));
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
}

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

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

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

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.3);
}

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

.card-meta,
.card-foot,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

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

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

.movie-card .tag-row span {
    color: #9d174d;
    background: #fdf2f8;
    border-color: #fbcfe8;
}

.card-foot {
    justify-content: space-between;
    margin-top: 14px;
    font-weight: 700;
}

.movie-card-horizontal,
.movie-card-rank {
    display: grid;
    grid-template-columns: 170px 1fr;
}

.movie-card-horizontal .poster-link img,
.movie-card-rank .poster-link img {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card-featured .poster-link img {
    aspect-ratio: 16 / 10;
}

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

.movie-card-compact h3 {
    font-size: 16px;
}

.soft-band {
    background: linear-gradient(90deg, #fdf2f8, #eff6ff, #ecfdf5);
}

.category-band {
    background: #ffffff;
}

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

.category-tile {
    min-height: 146px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    border-radius: 22px;
    color: #111827;
    background: linear-gradient(135deg, #fdf2f8, #eff6ff);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile small {
    color: var(--muted);
    line-height: 1.7;
}

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

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

.center-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 76% 24%, rgba(236, 72, 153, 0.3), transparent 30%),
        linear-gradient(135deg, #111827, #1e293b 55%, #0f172a);
}

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

.small-hero {
    padding: 64px 0;
}

.page-hero h1,
.detail-hero h1 {
    margin: 12px 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.page-hero p,
.detail-line {
    max-width: 780px;
    color: #e5e7eb;
    line-height: 1.8;
    font-size: 18px;
}

.breadcrumb {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

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

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

.category-card-large {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    align-items: center;
    padding: 20px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.category-cover-stack img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.category-card-large h2 {
    margin: 0 0 10px;
}

.category-card-large p {
    color: var(--muted);
    line-height: 1.7;
}

.category-sample {
    color: #9d174d;
}

.text-link {
    color: var(--pink);
    font-weight: 900;
}

.filter-bar {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.filter-bar input {
    width: 100%;
}

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

.filter-buttons button {
    border: 1px solid #fbcfe8;
    border-radius: 999px;
    padding: 8px 14px;
    color: #9d174d;
    background: #fdf2f8;
    cursor: pointer;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--blue));
    border-color: transparent;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 30px;
}

.detail-hero {
    min-height: 620px;
}

.detail-bg,
.detail-shade {
    position: absolute;
    inset: 0;
}

.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) saturate(1.1);
    transform: scale(1.05);
    opacity: 0.38;
}

.detail-shade {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.54));
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    margin-top: 26px;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.4);
    padding: 10px;
    background: rgba(255, 255, 255, 0.12);
}

.detail-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 20px;
}

.detail-meta {
    color: #d1d5db;
    margin: 18px 0;
    font-size: 15px;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.22);
}

.scroll-play {
    margin-top: 28px;
}

.player-shell {
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.player-stage {
    position: relative;
    background: #000000;
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.62));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    font-size: 34px;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    box-shadow: 0 20px 45px rgba(59, 130, 246, 0.35);
}

.player-info {
    padding: 24px;
    color: #ffffff;
}

.player-info h2 {
    margin: 0 0 10px;
}

.player-info p {
    margin: 0;
    color: #d1d5db;
    line-height: 1.8;
}

.article-section {
    padding-top: 10px;
}

.detail-article {
    padding: 30px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-article h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin: 0;
    color: #4b5563;
    line-height: 2;
    font-size: 17px;
}

.site-footer {
    color: #e5e7eb;
    background: linear-gradient(90deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding: 50px 0;
}

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

.footer-logo strong {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
}

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

.site-footer p,
.site-footer a,
.site-footer li {
    color: #cbd5e1;
    line-height: 1.8;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-bottom {
    padding: 18px;
    text-align: center;
    color: #cbd5e1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

    .menu-button {
        display: inline-flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

    .three-col,
    .two-col,
    .ranking-page-list,
    .category-large-grid {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 30px;
    }
}

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

    .logo strong {
        font-size: 20px;
    }

    .hero {
        height: 680px;
    }

    .hero-content {
        align-items: start;
        padding-top: 86px;
    }

    .hero-search {
        grid-template-columns: 1fr;
        border-radius: 24px;
        bottom: 78px;
    }

    .hero-control {
        bottom: 24px;
    }

    .four-col,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal,
    .movie-card-rank,
    .category-card-large,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal .poster-link img,
    .movie-card-rank .poster-link img {
        aspect-ratio: 16 / 10;
    }

    .detail-hero {
        min-height: auto;
    }

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

    .mobile-panel form {
        flex-direction: column;
    }
}
