:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: rgba(244, 63, 94, 0.16);
    --shadow: 0 22px 70px rgba(190, 18, 60, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.62), #ffffff 32%, rgba(255, 241, 242, 0.38));
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 34px rgba(244, 63, 94, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.35);
}

.brand-text {
    display: grid;
    gap: 1px;
}

.brand-text strong {
    font-size: 22px;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500), var(--rose-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link,
.mobile-link {
    color: var(--muted);
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--rose-500);
    background: var(--rose-50);
    border-radius: 14px;
    padding: 8px 12px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 12px 20px 18px;
    background: white;
}

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

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 16% 24%, rgba(251, 113, 133, 0.32), transparent 24%), radial-gradient(circle at 86% 10%, rgba(244, 114, 182, 0.28), transparent 28%), linear-gradient(135deg, var(--rose-100), #fff7fb 48%, var(--rose-50));
}

.hero::before,
.hero::after {
    position: absolute;
    content: "";
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(30px);
    opacity: 0.28;
}

.hero::before {
    left: 6%;
    top: 10%;
    background: var(--rose-400);
}

.hero::after {
    right: 3%;
    bottom: 6%;
    background: var(--pink-400);
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 64px 0 112px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: var(--rose-500);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 750;
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.09);
}

.hero h1 {
    max-width: 900px;
    margin: 22px 0 14px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -2px;
    background: linear-gradient(90deg, #be123c, var(--rose-500), var(--pink-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 720px;
    margin: 0;
    color: #4b5563;
    font-size: 18px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: white;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 18px 40px rgba(244, 63, 94, 0.28);
}

.btn-light {
    color: var(--rose-500);
    background: rgba(255, 255, 255, 0.88);
    border-color: var(--line);
}

.hero-stage {
    position: relative;
    z-index: 4;
    margin-top: -84px;
}

.hero-panel {
    overflow: hidden;
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow);
}

.hero-slide {
    display: none;
    min-height: 460px;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
}

.hero-slide.is-active {
    display: grid;
}

.hero-cover {
    position: relative;
    min-height: 460px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-cover::after {
    position: absolute;
    content: "";
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
}

.hero-cover-content {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 32px;
    z-index: 2;
    color: white;
}

.hero-cover-content h2 {
    margin: 10px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.hero-cover-content p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.84);
}

.pill,
.hero-cover-content span {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 12px;
    color: white;
    background: rgba(244, 63, 94, 0.88);
    font-size: 13px;
    font-weight: 750;
}

.hero-side {
    padding: 34px;
    background: linear-gradient(135deg, var(--rose-50), #fff7fb);
}

.hero-side h2,
.section-heading h2,
.page-title h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.18;
}

.hero-side p {
    color: var(--muted);
}

.hero-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.hero-list a,
.ranking-row,
.category-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-list a:hover,
.ranking-row:hover,
.category-mini:hover {
    transform: translateY(-2px);
    background: white;
    box-shadow: 0 14px 34px rgba(244, 63, 94, 0.14);
}

.rank-num {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    font-weight: 900;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    background: white;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    padding: 0;
    border-radius: 999px;
    background: var(--rose-200);
}

.hero-dot.is-active {
    width: 32px;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

.main-section {
    padding: 70px 0;
}

.main-section.tight {
    padding-top: 34px;
}

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

.section-heading p,
.page-title p {
    max-width: 660px;
    margin: 8px 0 0;
    color: var(--muted);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, #fff, var(--rose-50));
    box-shadow: 0 14px 38px rgba(244, 63, 94, 0.08);
}

.category-card::after {
    position: absolute;
    content: "";
    width: 120px;
    height: 120px;
    right: -34px;
    bottom: -34px;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.12);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-size: 22px;
}

.category-card p,
.category-card span {
    position: relative;
    z-index: 1;
    color: var(--muted);
}

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

.movie-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: white;
    box-shadow: 0 15px 40px rgba(190, 18, 60, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--rose-100);
}

.poster-frame {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-frame {
    transform: scale(1.08);
}

.poster-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    display: grid;
    min-width: 42px;
    height: 28px;
    place-items: center;
    color: white;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    font-weight: 800;
    backdrop-filter: blur(8px);
}

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

.movie-card-title {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card-title:hover {
    color: var(--rose-500);
}

.movie-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.movie-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta span {
    color: #6b7280;
    font-size: 13px;
}

.tag-row span {
    color: var(--rose-500);
    background: var(--rose-50);
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 700;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: white;
    box-shadow: 0 14px 38px rgba(190, 18, 60, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    padding: 0 13px;
    color: var(--text);
    background: #fff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--rose-400);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.14);
}

.page-hero {
    padding: 54px 0 38px;
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.86), rgba(255, 255, 255, 0.92));
    border-bottom: 1px solid var(--line);
}

.page-title {
    display: grid;
    gap: 6px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--rose-500);
}

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

.ranking-row {
    align-items: stretch;
    color: inherit;
    background: white;
    border: 1px solid var(--line);
}

.ranking-row .mini-poster {
    flex: 0 0 150px;
    min-height: 92px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
}

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

.ranking-row p {
    margin: 6px 0 0;
    color: var(--muted);
}

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

.detail-card,
.sidebar-card {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: white;
    box-shadow: 0 16px 48px rgba(190, 18, 60, 0.08);
}

.detail-card {
    overflow: hidden;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.watch-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.player-cover::after {
    position: absolute;
    content: "";
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.22));
}

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

.player-start {
    position: relative;
    z-index: 4;
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 22px 54px rgba(244, 63, 94, 0.35);
    font-size: 30px;
}

.detail-body {
    padding: 28px;
}

.detail-body h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.12;
}

.detail-body h2,
.sidebar-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.detail-body p {
    color: #4b5563;
}

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

.info-item {
    padding: 12px;
    border-radius: 16px;
    background: var(--rose-50);
}

.info-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.info-item strong {
    display: block;
    margin-top: 2px;
}

.content-block {
    margin-top: 26px;
}

.content-block p {
    margin: 0;
    white-space: pre-line;
}

.sidebar-card {
    padding: 18px;
}

.sidebar-card + .sidebar-card {
    margin-top: 18px;
}

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

.sidebar-list a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.sidebar-list a:hover strong {
    color: var(--rose-500);
}

.sidebar-list strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-list span:last-child {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, var(--rose-50), white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    padding: 46px 0 30px;
}

.footer-brand {
    margin-bottom: 10px;
    color: var(--rose-500);
    font-size: 22px;
    font-weight: 900;
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.footer-grid p {
    margin: 0;
    color: var(--muted);
}

.footer-links {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

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

.footer-bottom {
    padding: 18px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--line);
}

.empty-state {
    display: none;
    margin: 28px 0;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--rose-200);
    border-radius: 24px;
    background: var(--rose-50);
}

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

@media (max-width: 1080px) {
    .category-grid,
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

    .hero-inner {
        padding: 46px 0 96px;
    }

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

    .hero-cover,
    .hero-slide {
        min-height: auto;
    }

    .hero-cover {
        aspect-ratio: 16 / 11;
    }

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

    .section-heading {
        display: grid;
    }

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

    .info-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .brand-text strong {
        font-size: 18px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-panel,
    .detail-card,
    .sidebar-card {
        border-radius: 20px;
    }

    .hero-side,
    .detail-body {
        padding: 22px;
    }

    .category-grid,
    .movie-grid,
    .info-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ranking-row .mini-poster {
        flex-basis: 108px;
    }
}
