:root {
    color-scheme: light;
    --page-bg: #fff7f7;
    --panel-bg: rgba(255, 255, 255, 0.88);
    --panel-strong: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --accent: #e11d48;
    --accent-deep: #be123c;
    --accent-soft: #ffe4e6;
    --line: rgba(225, 29, 72, 0.14);
    --shadow: 0 20px 70px rgba(190, 18, 60, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(244, 63, 94, 0.18), transparent 28rem),
        radial-gradient(circle at 90% 8%, rgba(236, 72, 153, 0.14), transparent 26rem),
        var(--page-bg);
    color: var(--text-main);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid var(--line);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #ec4899);
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.28);
    font-weight: 900;
}

.brand-name {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
    background: linear-gradient(90deg, #e11d48, #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #374151;
    font-weight: 700;
    white-space: nowrap;
}

.main-nav a {
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px 7px 14px;
    border: 1px solid rgba(225, 29, 72, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.08);
}

.header-search input,
.filter-input,
.filter-select {
    border: 0;
    outline: 0;
    color: var(--text-main);
    background: transparent;
}

.header-search input {
    width: 160px;
}

.search-submit,
.hero-button,
.section-link,
.play-chip,
.filter-button,
.player-start-button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #ec4899);
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(225, 29, 72, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-submit {
    padding: 8px 14px;
}

.hero-button,
.section-link,
.play-chip,
.filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
}

.search-submit:hover,
.hero-button:hover,
.section-link:hover,
.play-chip:hover,
.filter-button:hover,
.player-start-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(225, 29, 72, 0.30);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--accent);
    font-size: 22px;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.mobile-menu a {
    display: block;
    padding: 12px 10px;
    border-radius: 14px;
    font-weight: 800;
}

.mobile-menu a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

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

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

.hero {
    position: relative;
    min-height: 610px;
    margin: 26px auto 42px;
    border-radius: 38px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 28px 90px rgba(31, 41, 55, 0.22);
}

.hero-slide {
    display: none;
    min-height: 610px;
    position: relative;
    isolation: isolate;
}

.hero-slide.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
    align-items: stretch;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(9px) saturate(1.16);
    transform: scale(1.05);
    opacity: 0.66;
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.68) 52%, rgba(17, 24, 39, 0.35)),
        radial-gradient(circle at 28% 18%, rgba(244, 63, 94, 0.42), transparent 36rem);
}

.hero-copy {
    padding: clamp(36px, 6vw, 76px);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffe4e6;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.hero-summary {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.9;
}

.hero-meta,
.meta-row,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.meta-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff1f2;
    font-size: 13px;
    font-weight: 800;
}

.meta-pill,
.tag-pill {
    background: #fff1f2;
    color: var(--accent-deep);
}

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

.hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #ffffff;
    font-weight: 900;
    transition: background 0.2s ease;
}

.hero-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

.hero-poster-wrap {
    padding: 52px 58px 52px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-poster {
    width: min(340px, 78vw);
    aspect-ratio: 2 / 3;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

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

.hero-controls {
    position: absolute;
    left: clamp(28px, 6vw, 76px);
    bottom: 28px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 34px;
    border-radius: 999px;
    background: #ffffff;
}

.section {
    margin: 46px 0;
}

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

.section-title {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-desc {
    color: var(--text-muted);
    margin-top: 8px;
    max-width: 720px;
    line-height: 1.8;
}

.category-strip,
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-chip,
.quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: #374151;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(225, 29, 72, 0.08);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-chip:hover,
.quick-link:hover {
    transform: translateY(-2px);
    color: var(--accent);
    border-color: rgba(225, 29, 72, 0.36);
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 26px;
    overflow: hidden;
    background: var(--panel-strong);
    border: 1px solid rgba(225, 29, 72, 0.10);
    box-shadow: 0 18px 45px rgba(225, 29, 72, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(225, 29, 72, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.movie-badge,
.score-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.movie-badge {
    left: 12px;
    background: rgba(225, 29, 72, 0.84);
}

.score-badge {
    right: 12px;
    background: rgba(17, 24, 39, 0.78);
}

.movie-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.movie-title {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 950;
    color: #111827;
}

.movie-title:hover {
    color: var(--accent);
}

.movie-one-line {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9f1239;
    font-size: 12px;
    font-weight: 800;
}

.movie-meta span {
    border-radius: 999px;
    padding: 5px 9px;
    background: #fff1f2;
}

.rank-panel,
.category-card,
.content-panel,
.player-panel,
.info-panel {
    border-radius: 30px;
    background: var(--panel-bg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

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

.rank-item,
.rank-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(225, 29, 72, 0.10);
}

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

.rank-title {
    font-weight: 950;
    color: #111827;
}

.rank-title:hover {
    color: var(--accent);
}

.rank-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin-top: 3px;
}

.rank-score {
    color: var(--accent-deep);
    font-weight: 950;
}

.page-hero {
    margin: 30px 0;
    padding: clamp(30px, 5vw, 58px);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(225, 29, 72, 0.92), rgba(236, 72, 153, 0.86)),
        radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.28), transparent 22rem);
    color: #ffffff;
    box-shadow: 0 28px 80px rgba(225, 29, 72, 0.22);
}

.page-hero p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.9;
    margin-top: 14px;
}

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

.category-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-card h2 {
    font-size: 24px;
    font-weight: 950;
}

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

.category-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-preview a {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-deep);
    background: #fff1f2;
    border-radius: 999px;
    padding: 7px 10px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(225, 29, 72, 0.09);
    margin-bottom: 24px;
}

.filter-input,
.filter-select {
    min-height: 46px;
    border-radius: 18px;
    padding: 0 14px;
    background: #fff7f7;
    border: 1px solid rgba(225, 29, 72, 0.12);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 26px 0 16px;
    color: #9f1239;
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 24px;
    align-items: start;
}

.player-panel {
    overflow: hidden;
    background: #111827;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.72)),
        radial-gradient(circle at center, rgba(225, 29, 72, 0.32), transparent 20rem);
    cursor: pointer;
    z-index: 2;
}

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

.player-start-button {
    width: 98px;
    height: 98px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 34px;
    padding-left: 6px;
}

.player-caption {
    padding: 22px;
    color: #ffffff;
}

.player-caption h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 950;
    line-height: 1.1;
}

.player-caption p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
    margin-top: 10px;
}

.info-panel {
    padding: 24px;
    background: #ffffff;
}

.detail-poster {
    border-radius: 26px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    margin-bottom: 18px;
}

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

.detail-info-list {
    display: grid;
    gap: 10px;
    color: #374151;
}

.detail-info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(225, 29, 72, 0.10);
}

.detail-info-list strong {
    color: #111827;
}

.content-panel {
    padding: 28px;
    margin-top: 24px;
}

.content-panel h2 {
    font-size: 28px;
    font-weight: 950;
    margin-bottom: 14px;
}

.content-panel p {
    color: #374151;
    line-height: 2;
    margin: 10px 0;
}

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

.site-footer {
    margin-top: 72px;
    padding: 36px 0;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.58);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 16px;
    font-weight: 800;
}

.footer-links a:hover {
    color: var(--accent);
}

.is-filter-hidden {
    display: none !important;
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--text-muted);
    font-weight: 800;
}

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

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

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

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

    .hero-poster-wrap {
        padding: 0 30px 42px;
    }

    .movie-grid,
    .category-grid,
    .related-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: 640px) {
    .nav-shell,
    .page-shell,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

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

    .brand-subtitle {
        display: none;
    }

    .hero,
    .hero-slide {
        min-height: 0;
        border-radius: 28px;
    }

    .hero-copy {
        padding: 34px 24px 28px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 34px;
    }

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

    .hero-controls {
        left: 24px;
        bottom: 18px;
    }

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

    .movie-grid,
    .category-grid,
    .related-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .rank-score {
        grid-column: 2;
    }
}
