:root {
    --rose: #e11d48;
    --pink: #db2777;
    --orange: #f97316;
    --amber: #f59e0b;
    --blue: #2563eb;
    --cyan: #0891b2;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #fff7fb;
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(244, 114, 182, 0.25), transparent 28rem),
        radial-gradient(circle at 90% 6%, rgba(251, 146, 60, 0.18), transparent 30rem),
        linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 15px 30px rgba(225, 29, 72, 0.28);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 9px 14px;
    color: #374151;
    font-weight: 700;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    box-shadow: 0 12px 24px rgba(225, 29, 72, 0.22);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    color: #374151;
    border-radius: 12px;
    background: #fff1f2;
    font-size: 22px;
}

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(135deg, #111827 0%, #831843 44%, #fb7185 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 24rem),
        radial-gradient(circle at 80% 18%, rgba(251, 146, 60, 0.38), transparent 28rem),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.5));
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.4s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

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

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 44px;
    align-items: center;
    padding: 72px 0;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    padding: 8px 14px;
    color: #ffe4e6;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 22px 0 16px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.hero p {
    margin: 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.84);
    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;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 18px 34px rgba(225, 29, 72, 0.32);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(225, 29, 72, 0.38);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.hero-panel {
    padding: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.hero-feature {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 18px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
}

.hero-feature .poster {
    position: relative;
    min-height: 184px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #fce7f3, #fecdd3);
}

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

.hero-feature h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.18;
}

.hero-feature p {
    color: #4b5563;
    font-size: 14px;
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    justify-content: center;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.active {
    width: 32px;
    background: #fff;
}

.search-strip {
    margin-top: -34px;
    position: relative;
    z-index: 4;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr 190px 160px;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-box input,
.search-box select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    outline: none;
    font: inherit;
}

.search-box input:focus,
.search-box select:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.section {
    padding: 72px 0;
}

.section.soft {
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.78), rgba(236, 254, 255, 0.78));
}

.section.warm {
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.8), rgba(255, 241, 242, 0.8));
}

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

.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

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

.grid {
    display: grid;
    gap: 22px;
}

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

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

.grid.cards.small {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(17, 24, 39, 0.16);
}

.movie-link {
    display: block;
    height: 100%;
}

.movie-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

.movie-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.76), transparent);
}

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

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

.movie-year {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 1;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.movie-info {
    padding: 16px;
}

.movie-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--rose);
    font-size: 12px;
    font-weight: 900;
}

.movie-info h3 {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

.movie-info p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span,
.detail-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff1f2;
    color: #be123c;
    font-size: 12px;
    font-weight: 800;
}

.movie-card-wide .movie-link {
    display: grid;
    grid-template-columns: 38% 1fr;
}

.movie-card-wide .movie-cover {
    aspect-ratio: auto;
    min-height: 230px;
}

.movie-card-small .movie-info h3 {
    font-size: 15px;
}

.movie-card-small .movie-info p,
.movie-card-small .tag-row {
    display: none;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 28px;
    padding: 22px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: linear-gradient(135deg, #db2777, #fb7185);
    box-shadow: 0 20px 40px rgba(225, 29, 72, 0.18);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
    transition: transform 0.55s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.08));
}

.category-tile div {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 12px;
    font-weight: 900;
    color: #ffe4e6;
}

.category-tile h3 {
    margin: 4px 0 4px;
    font-size: 24px;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
}

.page-hero {
    padding: 76px 0 44px;
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.95), rgba(239, 246, 255, 0.88));
}

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

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

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 86px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

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

.rank-item img {
    width: 86px;
    height: 116px;
    object-fit: cover;
    border-radius: 16px;
    background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

.rank-item h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

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

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

.player-card,
.detail-card,
.side-card {
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.player-box {
    position: relative;
    background: #050814;
}

.video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050814;
    cursor: pointer;
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 18px 44px rgba(225, 29, 72, 0.42);
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

.player-box.is-playing .player-start {
    display: none;
}

.player-caption {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(90deg, #111827, #831843);
    color: #fff;
}

.detail-card {
    padding: 26px;
    margin-top: 24px;
}

.detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-weight: 800;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.detail-section {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.detail-section h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.detail-section p {
    margin: 0;
    color: #374151;
}

.side-card {
    padding: 18px;
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

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

.side-link {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: #fff7fb;
    transition: background 0.25s ease;
}

.side-link:hover {
    background: #ffe4e6;
}

.side-link img {
    width: 72px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

.side-link h3 {
    margin: 2px 0 4px;
    font-size: 15px;
}

.side-link p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.search-page-box {
    margin-top: 22px;
}

.empty-state {
    display: none;
    padding: 40px;
    text-align: center;
    color: var(--muted);
    border-radius: 24px;
    background: #fff;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 48%, #111827);
    padding: 56px 0 28px;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 34px;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #fff;
}

.site-footer p {
    margin: 0;
    color: #d1d5db;
}

.site-footer a {
    display: block;
    margin: 6px 0;
    color: #f9a8d4;
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    text-align: center;
}

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

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

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

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

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

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 70px;
        display: none;
        padding: 14px;
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav.open {
        display: flex;
    }

    .hero {
        min-height: 760px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 50px 0;
    }

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

    .search-box {
        grid-template-columns: 1fr;
    }

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

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

    .movie-card-wide .movie-link {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 48px 76px 1fr;
    }

    .rank-item .btn {
        grid-column: 1 / -1;
    }

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

@media (max-width: 480px) {
    .grid.cards,
    .grid.cards.large,
    .grid.cards.small,
    .category-grid {
        grid-template-columns: 1fr;
    }

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