:root {
    --rose: #e11d48;
    --rose-dark: #9f1239;
    --amber: #f59e0b;
    --slate: #0f172a;
    --ink: #1f2937;
    --muted: #64748b;
    --line: rgba(225, 29, 72, 0.16);
    --card: rgba(255, 255, 255, 0.82);
    --soft: rgba(255, 255, 255, 0.62);
    --shadow: 0 18px 60px rgba(148, 24, 64, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 36rem),
        radial-gradient(circle at top right, rgba(244, 63, 94, 0.2), transparent 34rem),
        linear-gradient(135deg, #f8fafc 0%, #fff1f2 48%, #fffbeb 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

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

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.28);
}

.brand-name {
    font-size: 20px;
    background: linear-gradient(135deg, var(--rose-dark), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
    padding: 10px 15px;
    border-radius: 14px;
    color: #475569;
    font-weight: 700;
    transition: all 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--rose);
    background: rgba(255, 228, 230, 0.78);
}

.top-search {
    width: min(300px, 28vw);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(251, 113, 133, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
}

.top-search input,
.mobile-nav input,
.search-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.top-search button,
.search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: white;
    cursor: pointer;
    font-weight: 800;
    background: linear-gradient(135deg, var(--rose), var(--amber));
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 228, 230, 0.8);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--rose-dark);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
}

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

.mobile-nav form {
    padding: 11px 14px;
    border: 1px solid rgba(251, 113, 133, 0.26);
    border-radius: 999px;
    background: white;
}

main {
    min-height: 60vh;
}

.hero-slider {
    width: min(1220px, calc(100% - 32px));
    margin: 28px auto 36px;
    position: relative;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 380px;
    align-items: center;
    gap: 36px;
    padding: clamp(28px, 5vw, 70px);
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-copy {
    color: white;
    max-width: 760px;
}

.hero-kicker,
.page-hero > span,
.section-head > span,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: #be123c;
    background: rgba(255, 228, 230, 0.9);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 7vw, 82px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-info p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 21px);
}

.hero-tags,
.detail-tags,
.movie-tags,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 24px 0;
}

.hero-tags span,
.detail-tags span,
.movie-tags span,
.filter-chips button {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 6px 10px;
    color: white;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.page-hero-actions a,
.card-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn,
.card-actions a:first-child,
.page-hero-actions a:first-child {
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    box-shadow: 0 14px 34px rgba(225, 29, 72, 0.26);
}

.ghost-btn,
.card-actions a:last-child,
.page-hero-actions a:last-child {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

.primary-btn:hover,
.ghost-btn:hover,
.page-hero-actions a:hover,
.card-actions a:hover {
    transform: translateY(-2px);
}

.hero-poster {
    display: block;
    border: 10px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, #fff1f2, #fef3c7);
}

.hero-control {
    position: absolute;
    left: 50%;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
    padding: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(18px);
}

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

.hero-control > button {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.16);
    font-size: 26px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

.hero-dots button.is-active {
    width: 32px;
    background: white;
}

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

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

.section-head h2 {
    margin: 8px 0 0;
    color: var(--slate);
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-head a {
    color: var(--rose);
    font-weight: 900;
}

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

.category-tile,
.category-card a {
    display: grid;
    gap: 8px;
    min-height: 150px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 16px 40px rgba(148, 24, 64, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card a:hover,
.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 70px rgba(148, 24, 64, 0.18);
}

.category-tile span,
.category-card strong {
    color: var(--rose-dark);
    font-weight: 900;
}

.category-tile strong {
    color: var(--slate);
    font-size: 18px;
}

.category-tile em,
.category-card p {
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

.category-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-card div span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #9f1239;
    background: #ffe4e6;
    font-size: 12px;
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--card);
    box-shadow: 0 18px 50px rgba(148, 24, 64, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fff1f2, #fef3c7);
}

.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.05);
}

.poster-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    color: white;
    font-weight: 900;
    background: rgba(225, 29, 72, 0.88);
    backdrop-filter: blur(10px);
}

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

.movie-tags {
    margin-bottom: 10px;
}

.movie-tags span {
    color: #9f1239;
    border-color: rgba(225, 29, 72, 0.14);
    background: #ffe4e6;
    backdrop-filter: none;
}

.movie-card h2 {
    margin: 0 0 8px;
    color: var(--slate);
    font-size: 20px;
    line-height: 1.25;
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.card-actions {
    margin-top: 14px;
}

.card-actions a {
    padding: 8px 12px;
    font-size: 13px;
}

.card-actions a:last-child {
    color: var(--rose);
    border-color: rgba(225, 29, 72, 0.18);
    background: rgba(255, 241, 242, 0.76);
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 20px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 74px minmax(0, 1fr) 82px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 34px rgba(148, 24, 64, 0.08);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose), var(--amber));
}

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
    background: #fff1f2;
}

.rank-thumb img {
    width: 74px;
    height: 96px;
    object-fit: cover;
}

.rank-main h2 {
    margin: 0 0 6px;
    color: var(--slate);
    font-size: 18px;
}

.rank-main p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
}

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

.rank-heat {
    text-align: right;
}

.rank-heat strong {
    display: block;
    color: var(--rose);
    font-size: 22px;
}

.rank-heat span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.side-recommend {
    position: sticky;
    top: 98px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
}

.side-recommend h2 {
    margin: 0 0 14px;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 32px;
    padding: clamp(34px, 7vw, 82px);
    border-radius: 34px;
    overflow: hidden;
    color: white;
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow);
}

.soft-hero {
    color: var(--slate);
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.34), transparent 28rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 228, 230, 0.72));
    border: 1px solid var(--line);
}

.soft-hero p {
    color: #475569;
}

.soft-hero h1,
.category-hero h1 {
    max-width: 820px;
}

.category-hero p {
    color: rgba(255, 255, 255, 0.88);
}

.page-hero-actions {
    margin-top: 22px;
}

.search-panel {
    display: flex;
    gap: 10px;
    max-width: 720px;
    margin-top: 26px;
    padding: 10px;
    border: 1px solid rgba(225, 29, 72, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

.filter-chips {
    margin-top: 16px;
}

.filter-chips button {
    color: #9f1239;
    border-color: rgba(225, 29, 72, 0.16);
    background: rgba(255, 228, 230, 0.84);
    cursor: pointer;
}

.search-empty {
    display: none;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--rose-dark);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 900;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 16px;
    color: #64748b;
    font-weight: 800;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) 420px;
    gap: 24px;
    align-items: stretch;
}

.player-card,
.detail-info,
.detail-copy article {
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
    padding: 12px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    border: 0;
    color: white;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.28), rgba(136, 19, 55, 0.18));
    cursor: pointer;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    box-shadow: 0 20px 60px rgba(225, 29, 72, 0.34);
    font-size: 32px;
}

.play-overlay strong {
    font-size: 18px;
}

.play-overlay.is-hidden {
    display: none;
}

.detail-info {
    padding: 26px;
}

.detail-info h1 {
    color: var(--slate);
    font-size: clamp(34px, 5vw, 58px);
}

.detail-info p {
    color: #475569;
}

.detail-tags {
    margin: 20px 0;
}

.detail-tags span {
    color: #9f1239;
    border-color: rgba(225, 29, 72, 0.16);
    background: #ffe4e6;
}

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

.detail-meta div {
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 241, 242, 0.72);
}

.detail-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.detail-meta dd {
    margin: 2px 0 0;
    color: var(--slate);
    font-weight: 900;
}

.detail-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.detail-copy article {
    padding: 24px;
}

.detail-copy h2 {
    margin: 0 0 12px;
    color: var(--slate);
    font-size: 26px;
}

.detail-copy p {
    margin: 0;
    color: #475569;
    font-size: 17px;
}

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.68);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px 220px;
    gap: 24px;
}

.site-footer p {
    max-width: 560px;
    color: var(--muted);
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--slate);
    font-size: 16px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 7px 0;
    color: #475569;
    font-weight: 800;
}

[data-search-card].is-hidden {
    display: none;
}

@media (max-width: 1040px) {
    .top-search {
        display: none;
    }

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

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

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

    .side-recommend {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-wrap {
        min-height: 64px;
    }

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

    .hero-stage {
        min-height: 690px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 26px;
    }

    .hero-poster {
        max-width: 230px;
        justify-self: center;
        order: -1;
    }

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

    .section-head {
        display: grid;
        align-items: start;
    }

    .category-grid,
    .category-overview,
    .movie-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-heat {
        grid-column: 2 / -1;
        text-align: left;
    }

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

    .search-panel {
        border-radius: 24px;
        align-items: stretch;
        flex-direction: column;
    }

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