:root {
    --bg: #fff7f9;
    --surface: #ffffff;
    --surface-soft: #fff1f4;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f1cbd3;
    --brand: #f43f5e;
    --brand-dark: #be123c;
    --brand-soft: rgba(244, 63, 94, 0.12);
    --shadow: 0 20px 55px rgba(190, 18, 60, 0.15);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #fff7f9 0%, #ffffff 42%, #fff7f9 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    font-weight: 800;
    color: var(--brand-dark);
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, #fb7185, #db2777);
    box-shadow: 0 12px 24px rgba(219, 39, 119, 0.28);
}

.desktop-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    white-space: nowrap;
}

.desktop-nav a {
    color: #4b5563;
    font-weight: 600;
    transition: color 0.25s ease;
}

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

.header-search,
.mobile-search,
.hero-search,
.page-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.page-filter input {
    width: 230px;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    background: #ffffff;
    padding: 11px 16px;
    color: var(--text);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.page-filter input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.header-search button,
.mobile-search button,
.hero-search button,
.page-filter button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb7185, #e11d48);
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(225, 29, 72, 0.18);
}

.mobile-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--brand-dark);
    font-size: 28px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(244, 63, 94, 0.15);
    padding: 16px 24px 20px;
    background: rgba(255, 255, 255, 0.98);
}

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

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.mobile-panel nav a {
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--brand-dark);
    font-weight: 700;
}

.hero {
    max-width: 1280px;
    margin: 30px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.hero-stage {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: var(--shadow);
    background: #111827;
}

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

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

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

.hero-shade,
.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.93) 0%, rgba(17, 24, 39, 0.58) 48%, rgba(17, 24, 39, 0.18) 100%);
}

.hero-content {
    position: absolute;
    left: 0;
    bottom: 0;
    max-width: 720px;
    padding: 56px;
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content .eyebrow {
    color: #fecdd3;
}

.hero-content h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 620px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-meta,
.detail-meta,
.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.hero-meta span,
.detail-meta span,
.ranking-meta {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.detail-meta span {
    background: rgba(244, 63, 94, 0.13);
    color: #fff1f2;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.primary-button,
.secondary-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #fb7185, #e11d48);
    box-shadow: 0 16px 30px rgba(225, 29, 72, 0.28);
}

.secondary-button,
.text-link {
    color: var(--brand-dark);
    background: #ffffff;
}

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

.hero-controls {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    pointer-events: none;
}

.hero-arrow,
.hero-dot {
    pointer-events: auto;
    border: 0;
    color: #ffffff;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 30px;
    line-height: 1;
    backdrop-filter: blur(10px);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
}

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

.hero-panel {
    min-height: 610px;
    padding: 30px;
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.hero-panel h2 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.04em;
}

.hero-search {
    align-items: stretch;
    flex-direction: column;
}

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

.hero-links {
    display: grid;
    gap: 12px;
}

.hero-links a {
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--surface-soft);
    color: var(--brand-dark);
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-links a:hover {
    transform: translateX(3px);
    background: #ffe4e9;
}

.section-wrap,
.ranking-list,
.overview-list {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading a {
    color: var(--brand-dark);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 16px 40px rgba(190, 18, 60, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(190, 18, 60, 0.16);
}

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

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

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(225, 29, 72, 0.88);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.3;
}

.movie-card h3 a:hover,
.ranking-content h3 a:hover,
.overview-card h2 a:hover {
    color: var(--brand);
}

.movie-meta,
.movie-one-line,
.overview-text p,
.site-footer p,
.ranking-content p,
.detail-content p,
.page-hero p {
    color: var(--muted);
}

.movie-meta {
    margin: 0 0 10px;
    font-size: 13px;
}

.movie-one-line {
    min-height: 66px;
    margin: 0 0 14px;
    font-size: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-list span {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    font-size: 12px;
    font-weight: 700;
}

.tinted-section {
    max-width: none;
    margin: 20px 0 0;
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.8), rgba(253, 242, 248, 0.92));
}

.tinted-section > .section-heading,
.tinted-section > .category-grid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

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

.category-card,
.overview-card {
    border: 1px solid rgba(244, 63, 94, 0.13);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(190, 18, 60, 0.08);
}

.category-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
}

.category-card strong {
    font-size: 22px;
    color: var(--brand-dark);
}

.category-card span {
    color: var(--muted);
}

.category-card em {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-style: normal;
}

.category-card em a {
    font-size: 13px;
    color: var(--brand-dark);
    font-weight: 700;
}

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

.compact-heading {
    align-items: center;
}

.compact-grid,
.overview-samples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.compact-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(244, 63, 94, 0.1);
    box-shadow: 0 12px 28px rgba(190, 18, 60, 0.08);
}

.compact-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.compact-card span,
.compact-card small {
    display: block;
    padding: 0 12px;
}

.compact-card span {
    padding-top: 10px;
    color: var(--text);
    font-weight: 800;
}

.compact-card small {
    padding-bottom: 12px;
    color: var(--muted);
}

.page-hero {
    position: relative;
    max-width: 1280px;
    margin: 30px auto 0;
    padding: 54px 24px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.page-hero > div:first-child {
    max-width: 740px;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.page-filter input {
    min-width: min(420px, 80vw);
}

.overview-list {
    display: grid;
    gap: 22px;
}

.overview-card {
    padding: 24px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.overview-text h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 62px 96px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(190, 18, 60, 0.08);
}

.ranking-index {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb7185, #e11d48);
    font-size: 20px;
    font-weight: 900;
}

.ranking-cover {
    overflow: hidden;
    border-radius: 16px;
}

.ranking-cover img {
    width: 96px;
    height: 132px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ranking-content h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.ranking-content p {
    margin: 0 0 10px;
}

.ranking-meta {
    display: inline-flex;
    margin: 0;
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) saturate(1.05);
    transform: scale(1.04);
    opacity: 0.78;
}

.detail-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 70px 24px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    color: #ffffff;
}

.detail-poster-wrap {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
}

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

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
}

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

.player-section {
    padding-top: 64px;
}

.movie-player {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
    aspect-ratio: 16 / 9;
}

.player-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.32), rgba(136, 19, 55, 0.56));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.movie-player.is-started .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--brand-dark);
    background: #ffffff;
    font-size: 34px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.player-cover strong {
    max-width: 80%;
    text-align: center;
    font-size: 24px;
}

.player-message {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 4;
    color: #ffffff;
    text-align: center;
    pointer-events: none;
}

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

.detail-content article {
    padding: 30px;
    border-radius: 26px;
    border: 1px solid rgba(244, 63, 94, 0.12);
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(190, 18, 60, 0.08);
}

.detail-content h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.empty-state {
    display: none;
    max-width: 1280px;
    margin: 20px auto 60px;
    padding: 24px;
    border-radius: 22px;
    color: var(--brand-dark);
    background: var(--surface-soft);
    text-align: center;
    font-weight: 800;
}

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

.site-footer {
    margin-top: 40px;
    color: #e5e7eb;
    background: #111827;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 36px;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 12px;
}

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

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

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

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

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

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

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

    .mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .header-search {
        display: none;
    }

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

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

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

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

@media (max-width: 860px) {
    .hero-stage {
        min-height: 520px;
    }

    .hero-content {
        padding: 34px;
    }

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

    .category-grid,
    .split-section,
    .detail-content,
    .footer-grid,
    .overview-card {
        grid-template-columns: 1fr;
    }

    .page-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-inner {
        grid-template-columns: 1fr;
    }

    .detail-poster-wrap {
        max-width: 270px;
    }

    .ranking-row {
        grid-template-columns: 46px 78px minmax(0, 1fr);
        gap: 12px;
    }

    .ranking-index {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .ranking-cover img {
        width: 78px;
        height: 108px;
    }
}

@media (max-width: 560px) {
    .header-inner {
        padding: 12px 16px;
    }

    .logo {
        font-size: 20px;
    }

    .hero,
    .section-wrap,
    .ranking-list,
    .overview-list,
    .page-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-stage {
        min-height: 470px;
        border-radius: 24px;
    }

    .hero-content {
        padding: 28px 22px 78px;
    }

    .hero-controls {
        left: 22px;
        right: 22px;
        justify-content: center;
    }

    .movie-grid,
    .compact-grid,
    .overview-samples {
        grid-template-columns: 1fr;
    }

    .movie-one-line {
        min-height: auto;
    }

    .page-filter,
    .search-page-form {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .page-filter input,
    .page-filter button {
        width: 100%;
        min-width: 0;
    }

    .detail-info h1 {
        font-size: 38px;
    }

    .player-cover strong {
        font-size: 18px;
    }

    .play-icon {
        width: 68px;
        height: 68px;
    }
}
