:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --pink: #db2777;
    --blue: #2563eb;
    --cyan: #0891b2;
    --ink: #111827;
    --muted: #6b7280;
    --line: #f3d6df;
    --soft: #fff7fb;
    --card: #ffffff;
    --shadow: 0 18px 55px rgba(190, 18, 60, 0.12);
    --shadow-strong: 0 22px 70px rgba(17, 24, 39, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(253, 164, 175, 0.28), transparent 32rem),
        linear-gradient(180deg, #fff7fb 0%, #ffffff 38%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(244, 114, 182, 0.25);
    background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(253, 242, 248, 0.94));
    backdrop-filter: blur(18px);
    box-shadow: 0 6px 30px rgba(190, 18, 60, 0.06);
}

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

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 12px 26px rgba(225, 29, 72, 0.28);
    transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
    transform: rotate(12deg) scale(1.04);
}

.brand-name,
.footer-brand {
    font-size: 1.25rem;
    color: transparent;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    background-clip: text;
    -webkit-background-clip: text;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 700;
    color: #374151;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
    color: var(--rose);
}

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid rgba(244, 114, 182, 0.42);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.07);
}

.header-search input {
    width: 235px;
    border: 0;
    outline: none;
    padding: 11px 14px 11px 18px;
    background: transparent;
}

.header-search button,
.primary-button,
.secondary-button,
.filter-button,
.play-button {
    border: 0;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button {
    padding: 11px 18px;
    color: white;
    background: var(--rose);
}

.header-search button:hover,
.primary-button:hover,
.play-button:hover {
    transform: translateY(-1px) scale(1.02);
}

.mobile-menu-button,
.mobile-nav {
    display: none;
}

.hero {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.28), transparent 22rem),
        linear-gradient(135deg, #e11d48 0%, #db2777 44%, #7c3aed 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    filter: blur(4px);
}

.hero::before {
    width: 360px;
    height: 360px;
    top: -150px;
    right: -90px;
}

.hero::after {
    width: 260px;
    height: 260px;
    bottom: -90px;
    left: 18%;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
    align-items: center;
    gap: 42px;
    min-height: 610px;
    padding: 72px 0;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-kicker {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-title {
    margin: 20px 0 18px;
    font-size: clamp(2.45rem, 7vw, 5.3rem);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.hero-desc {
    max-width: 690px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.9;
}

.hero-actions,
.detail-actions,
.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.primary-button,
.secondary-button,
.filter-button,
.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 999px;
    padding: 12px 22px;
}

.primary-button,
.play-button {
    color: white;
    background: var(--rose);
    box-shadow: 0 14px 30px rgba(225, 29, 72, 0.28);
}

.secondary-button {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.hero-meta-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.hero-meta-strip span {
    display: block;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-meta-strip strong {
    display: block;
    font-size: 1.45rem;
}

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

.hero-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
    transform: translateZ(0);
}

.hero-card:first-child {
    grid-column: span 2;
    min-height: 290px;
}

.hero-card img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.hero-card:hover img,
.movie-card:hover img {
    transform: scale(1.08);
}

.hero-card::after,
.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(17, 24, 39, 0.84) 100%);
}

.hero-card-content {
    position: absolute;
    inset: auto 18px 18px;
    z-index: 2;
}

.hero-card-content h2 {
    margin: 0 0 8px;
    font-size: 1.45rem;
    line-height: 1.15;
}

.hero-card-content p {
    display: -webkit-box;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-main {
    padding: 54px 0 76px;
}

.section-head,
.page-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 26px;
}

.page-head {
    align-items: center;
    padding: 32px;
    border-radius: 30px;
    color: white;
    background: linear-gradient(135deg, #e11d48, #db2777 52%, #2563eb);
    box-shadow: var(--shadow);
}

.section-title,
.page-title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-desc,
.page-desc {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.85;
}

.page-head .page-desc {
    color: rgba(255, 255, 255, 0.86);
}

.section-kicker {
    color: var(--rose);
    background: #ffe4ec;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(244, 114, 182, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

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

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

.card-score,
.card-play {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: white;
    font-weight: 900;
}

.card-score {
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    background: rgba(225, 29, 72, 0.92);
}

.card-play {
    left: 14px;
    bottom: 14px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 9px;
    font-size: 1.06rem;
    line-height: 1.35;
    font-weight: 900;
}

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

.card-meta {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 0.9rem;
}

.card-desc {
    display: -webkit-box;
    margin: 0 0 13px;
    color: #4b5563;
    line-height: 1.68;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row span,
.info-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--rose-dark);
    background: #ffe4ec;
    font-size: 0.8rem;
    font-weight: 800;
}

.feature-strip {
    margin: 62px 0;
    padding: 34px;
    border-radius: 32px;
    background: linear-gradient(90deg, #eff6ff, #ecfeff);
    box-shadow: 0 16px 45px rgba(37, 99, 235, 0.08);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 88px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: white;
    border: 1px solid rgba(225, 29, 72, 0.08);
    box-shadow: 0 8px 26px rgba(17, 24, 39, 0.06);
}

.rank-index {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    font-weight: 950;
}

.rank-poster {
    width: 76px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-item h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.rank-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.category-tile {
    min-height: 154px;
    padding: 22px;
    border-radius: 28px;
    color: white;
    background: linear-gradient(135deg, #e11d48, #db2777 56%, #2563eb);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
}

.category-tile h2 {
    margin: 0 0 12px;
    font-size: 1.3rem;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.detail-hero {
    color: white;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(190, 18, 60, 0.66)),
        var(--detail-bg);
    background-size: cover;
    background-position: center;
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
    align-items: center;
    min-height: 420px;
    padding: 56px 0;
}

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

.detail-title {
    margin: 0 0 18px;
    font-size: clamp(2.25rem, 5vw, 4.45rem);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.detail-desc {
    max-width: 820px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.87);
    line-height: 1.9;
    font-size: 1.06rem;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
}

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

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

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.58));
    transition: opacity 0.25s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
}

.player-overlay .play-button {
    pointer-events: auto;
    min-width: 164px;
}

.player-note {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(15, 23, 42, 0.96);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    margin-top: 42px;
}

.content-panel,
.side-panel,
.search-panel {
    padding: 26px;
    border-radius: 28px;
    background: white;
    box-shadow: 0 14px 38px rgba(17, 24, 39, 0.07);
    border: 1px solid rgba(244, 114, 182, 0.1);
}

.content-panel + .content-panel {
    margin-top: 22px;
}

.content-panel h2,
.side-panel h2,
.search-panel h2 {
    margin: 0 0 14px;
    font-size: 1.35rem;
    font-weight: 950;
}

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

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

.small-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    border-radius: 18px;
}

.small-card .poster-link {
    aspect-ratio: 3 / 4;
}

.small-card .card-body {
    padding: 12px;
}

.small-card .card-desc {
    display: none;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin-bottom: 24px;
}

.filter-input,
.filter-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(244, 114, 182, 0.28);
    border-radius: 16px;
    padding: 0 15px;
    outline: none;
    background: white;
}

.filter-button {
    color: white;
    background: linear-gradient(90deg, var(--rose), var(--pink));
}

.result-count {
    margin: 0 0 18px;
    color: var(--muted);
}

.pager-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    margin-top: 30px;
}

.pager-links a {
    border-radius: 999px;
    padding: 12px 18px;
    color: var(--rose-dark);
    background: #ffe4ec;
    font-weight: 800;
}

.site-footer {
    padding: 46px 0;
    border-top: 1px solid rgba(244, 114, 182, 0.18);
    background: white;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner p {
    max-width: 540px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #4b5563;
    font-weight: 700;
}

.empty-state {
    padding: 38px;
    text-align: center;
    border-radius: 24px;
    background: white;
    color: var(--muted);
}

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

    .mobile-menu-button {
        display: inline-grid;
        gap: 4px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .mobile-menu-button span {
        width: 24px;
        height: 2px;
        border-radius: 99px;
        background: #374151;
    }

    .mobile-nav.is-open {
        display: grid;
        gap: 12px;
        width: min(1180px, calc(100% - 32px));
        margin: 0 auto;
        padding: 0 0 18px;
    }

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

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

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

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

@media (max-width: 760px) {
    .header-inner {
        min-height: 66px;
    }

    .header-search {
        display: none;
    }

    .hero-inner {
        min-height: auto;
        padding: 46px 0;
    }

    .hero-gallery,
    .hero-meta-strip,
    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-card:first-child {
        grid-column: auto;
        min-height: 230px;
    }

    .rank-item {
        grid-template-columns: 42px 68px 1fr;
    }

    .rank-item .primary-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .detail-hero-inner {
        padding: 38px 0;
    }

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

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

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

    .page-head {
        padding: 24px;
    }
}
