:root {
    --strawberry-50: #fff1f3;
    --strawberry-100: #ffe4e8;
    --strawberry-400: #ff6b8e;
    --strawberry-500: #ff3366;
    --strawberry-600: #ed1659;
    --candy-500: #ff33aa;
    --gummy-400: #facc15;
    --gummy-500: #eab308;
    --ink-900: #1f2937;
    --ink-700: #374151;
    --ink-500: #6b7280;
    --paper: #ffffff;
    --soft-shadow: 0 2px 15px -3px rgba(255, 51, 102, 0.3), 0 10px 20px -2px rgba(255, 51, 102, 0.15);
    --float-shadow: 0 20px 60px -15px rgba(255, 51, 102, 0.4);
    --radius-2xl: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink-900);
    background:
        radial-gradient(circle at top left, rgba(255, 51, 170, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.16), transparent 30rem),
        linear-gradient(180deg, #fff7fa 0%, #ffffff 52%, #fff7fb 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 51, 102, 0.12);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--strawberry-600);
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--strawberry-500), var(--candy-500));
    box-shadow: var(--soft-shadow);
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--ink-700);
    font-weight: 650;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--strawberry-600);
    background: var(--strawberry-50);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--strawberry-50);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: var(--strawberry-600);
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: #fff;
    background: #24101b;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) saturate(1.12);
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(21, 9, 22, 0.92), rgba(80, 21, 58, 0.72), rgba(255, 51, 102, 0.18)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 380px;
    align-items: center;
    gap: 54px;
    padding: 108px 0 92px;
}

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

.hero-kicker,
.section-heading p,
.detail-kicker,
.page-hero p {
    margin: 0 0 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--gummy-400);
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 680px;
    margin: 24px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--strawberry-600);
    background: rgba(255, 255, 255, 0.88);
}

.tag-row span {
    color: var(--strawberry-600);
    background: var(--strawberry-50);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--strawberry-500), var(--candy-500));
    box-shadow: var(--soft-shadow);
}

.ghost-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
}

.primary-button.large,
.ghost-button.large {
    min-height: 54px;
    padding: 0 28px;
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--float-shadow);
}

.hero-poster {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: -1;
    border-radius: 34px;
    background: linear-gradient(135deg, var(--gummy-400), var(--candy-500));
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 4;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

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

.hero-arrow {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background-color 0.2s ease;
}

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

.search-hero-card {
    position: relative;
    z-index: 5;
    margin-top: -34px;
}

.hero-search,
.filter-panel,
.page-hero,
.movie-card,
.ranking-card,
.category-overview-card,
.detail-content,
.player-card,
.watch-info,
.detail-side-card {
    border: 1px solid rgba(255, 51, 102, 0.12);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
}

.hero-search input,
.search-input,
.filter-select {
    min-height: 48px;
    width: 100%;
    border: 1px solid rgba(255, 51, 102, 0.14);
    border-radius: 999px;
    outline: 0;
    padding: 0 18px;
    color: var(--ink-700);
    background: #fff;
}

.hero-search input:focus,
.search-input:focus,
.filter-select:focus {
    border-color: var(--strawberry-400);
    box-shadow: 0 0 0 4px rgba(255, 51, 102, 0.1);
}

.section-block {
    margin: 74px 0;
}

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

.section-heading h2,
.ranking-title h2,
.detail-content h2,
.detail-side-card h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    color: var(--ink-900);
}

.section-heading a,
.ranking-title a,
.text-link {
    color: var(--strawberry-600);
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--float-shadow);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-tile:hover img,
.movie-card:hover img {
    transform: scale(1.06);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(31, 10, 25, 0.82), rgba(31, 10, 25, 0.08));
}

.category-tile span,
.category-tile small {
    position: absolute;
    z-index: 1;
    left: 18px;
    right: 18px;
    color: #fff;
}

.category-tile span {
    bottom: 58px;
    font-size: 1.2rem;
    font-weight: 900;
}

.category-tile small {
    bottom: 20px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 24px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-2xl);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--strawberry-50), #fff7d6);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4.15;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.play-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    opacity: 0;
    background: rgba(0, 0, 0, 0.28);
    transition: opacity 0.2s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--strawberry-500), var(--gummy-500));
    box-shadow: var(--soft-shadow);
}

.card-body {
    padding: 16px;
}

.card-meta {
    margin-bottom: 8px;
    color: var(--ink-500);
    font-size: 0.78rem;
    font-weight: 700;
}

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

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

.card-body p {
    min-height: 46px;
    margin: 0 0 12px;
    color: var(--ink-500);
    font-size: 0.88rem;
    line-height: 1.65;
}

.compact-card .card-body p {
    min-height: 42px;
}

.ranking-card {
    position: sticky;
    top: 96px;
    padding: 20px;
    border-radius: var(--radius-2xl);
}

.ranking-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 32px 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 51, 102, 0.09);
}

.ranking-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    border-radius: 11px;
    color: var(--strawberry-600);
    background: var(--strawberry-50);
    font-weight: 900;
}

.ranking-row img {
    width: 48px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-row em {
    color: var(--gummy-500);
    font-style: normal;
    font-weight: 900;
}

.page-main {
    padding-top: 32px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: clamp(34px, 6vw, 64px);
    border-radius: 34px;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 51, 170, 0.2), transparent 68%);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.04em;
}

.page-hero span {
    display: block;
    max-width: 780px;
    color: var(--ink-500);
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--ink-500);
    font-size: 0.92rem;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.45fr);
    align-items: center;
    gap: 24px;
    margin: 28px 0;
    padding: 24px;
    border-radius: 28px;
}

.filter-panel h1 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.filter-panel p {
    margin: 0;
    color: var(--ink-500);
    line-height: 1.7;
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 140px auto;
    gap: 10px;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 74px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border-radius: var(--radius-2xl);
}

.category-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-stack img {
    width: 100%;
    aspect-ratio: 1 / 1.28;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-card h2 {
    margin: 5px 0 10px;
}

.category-overview-card p {
    margin: 0 0 18px;
    color: var(--ink-500);
    line-height: 1.75;
}

.ranking-showcase .top-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: stretch;
    gap: 24px;
}

.player-card,
.watch-info,
.detail-content,
.detail-side-card {
    border-radius: 30px;
}

.player-card {
    padding: 14px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.16), rgba(0, 0, 0, 0.32));
}

.player-overlay.hidden {
    display: none;
}

.play-circle {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 7px;
    border-radius: 999px;
    color: var(--strawberry-600);
    font-size: 2.6rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--float-shadow);
}

.watch-info {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
}

.detail-cover {
    width: 120px;
    height: 168px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--soft-shadow);
}

.watch-info h1 {
    margin: 0 0 12px;
    font-size: 1.7rem;
    line-height: 1.25;
}

.watch-info p:not(.detail-kicker) {
    color: var(--ink-500);
    line-height: 1.75;
}

.detail-tags {
    margin-bottom: 12px;
}

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

.detail-content article p {
    margin: 12px 0 28px;
    color: var(--ink-700);
    font-size: 1rem;
    line-height: 2;
}

.detail-side-card {
    padding: 22px;
    align-self: start;
}

.detail-side-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 18px 0;
}

.detail-side-card dt {
    color: var(--ink-500);
    font-weight: 800;
}

.detail-side-card dd {
    margin: 0;
    color: var(--ink-900);
}

.large-tags span {
    margin-bottom: 4px;
}

.site-footer {
    margin-top: 80px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 241, 243, 0.92));
    border-top: 1px solid rgba(255, 51, 102, 0.12);
}

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

.site-footer p {
    max-width: 520px;
    color: var(--ink-500);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--strawberry-600);
    font-size: 1.05rem;
}

.site-footer a:not(.footer-logo) {
    display: block;
    margin: 8px 0;
    color: var(--ink-500);
    font-weight: 650;
}

.site-footer a:hover {
    color: var(--strawberry-600);
}

.footer-bottom {
    padding: 18px 0 26px;
    text-align: center;
    color: var(--ink-500);
    font-size: 0.9rem;
}

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

@media (max-width: 1100px) {
    .category-grid,
    .wide-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .two-column,
    .watch-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .ranking-card {
        position: static;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--soft-shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-link {
        text-align: center;
    }

    .hero-carousel,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 104px;
    }

    .hero-poster {
        width: min(260px, 70vw);
        margin: 0 auto;
    }

    .hero-controls {
        bottom: 20px;
    }

    .category-grid,
    .movie-grid,
    .wide-grid,
    .ranking-showcase .top-three,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel,
    .filter-form,
    .footer-grid,
    .hero-search,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .filter-form {
        gap: 12px;
    }
}

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

    .header-inner {
        min-height: 68px;
    }

    .site-logo {
        font-size: 1.08rem;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
        border-radius: 13px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 680px;
    }

    .hero-copy p {
        font-size: 0.96rem;
    }

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

    .hero-controls {
        justify-content: center;
        gap: 18px;
    }

    .category-grid,
    .movie-grid,
    .wide-grid,
    .ranking-showcase .top-three {
        grid-template-columns: 1fr;
    }

    .category-tile {
        min-height: 220px;
    }

    .watch-info {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .detail-cover {
        width: 90px;
        height: 126px;
        border-radius: 16px;
    }

    .watch-info h1 {
        font-size: 1.32rem;
    }

    .play-circle {
        width: 76px;
        height: 76px;
        font-size: 2.1rem;
    }

    .detail-side-card dl {
        grid-template-columns: 1fr;
    }
}
