* {
    box-sizing: border-box;
}

:root {
    --candy-pink: #ffb3d9;
    --candy-rose: #ff8dc7;
    --candy-orange: #ffb347;
    --candy-yellow: #ffe66d;
    --candy-mint: #a8e6ce;
    --candy-blue: #87ceeb;
    --candy-purple: #c8b6ff;
    --text-main: #1f2937;
    --text-soft: #667085;
    --glass: rgba(255, 255, 255, 0.84);
    --shadow-candy: 0 10px 40px rgba(255, 179, 217, 0.38);
    --shadow-card: 0 16px 45px rgba(120, 90, 140, 0.12);
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at 8% 6%, rgba(255, 179, 217, 0.38), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(168, 230, 206, 0.38), transparent 24%),
        linear-gradient(180deg, #fff7fb 0%, #ffffff 48%, #f7fffc 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

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

.gradient-text {
    background-image: linear-gradient(135deg, #ff8dc7, #ffb347, #72d7b4, #68bde3, #a889ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glass-effect {
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 141, 199, 0.24);
    box-shadow: 0 10px 30px rgba(255, 179, 217, 0.18);
}

.nav-bar {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 25px;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--candy-rose), var(--candy-yellow), var(--candy-mint));
    box-shadow: var(--shadow-candy);
    font-size: 14px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.main-nav a,
.mobile-nav a {
    color: #374151;
    font-weight: 700;
    padding: 9px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--candy-rose);
    border-color: var(--candy-rose);
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input {
    width: 210px;
    border: 2px solid rgba(255, 179, 217, 0.42);
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.72);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-search input:focus,
.search-panel input:focus {
    border-color: var(--candy-rose);
    box-shadow: 0 0 0 4px rgba(255, 141, 199, 0.13);
}

.nav-search button,
.candy-button,
.hero-actions a,
.search-panel button,
.player-link {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--candy-rose), var(--candy-yellow), var(--candy-mint));
    box-shadow: 0 8px 26px rgba(255, 141, 199, 0.28);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-search button:hover,
.candy-button:hover,
.hero-actions a:hover,
.search-panel button:hover,
.player-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 34px rgba(255, 141, 199, 0.34);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: var(--candy-rose);
    background: rgba(255, 179, 217, 0.16);
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    gap: 14px;
    flex-wrap: wrap;
}

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

.hero-section {
    padding: 36px 0 28px;
}

.hero-shell {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 28px 80px rgba(116, 84, 132, 0.24);
    background: #111827;
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.64) 42%, rgba(17, 24, 39, 0.15) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 44%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 78px);
    bottom: clamp(30px, 8vw, 76px);
    width: min(680px, calc(100% - 48px));
    color: #fff;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 14px;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.75;
}

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

.hero-tags span,
.card-tags span,
.detail-tags span,
.filter-row button {
    border: 0;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
    color: #be397e;
    background: rgba(255, 179, 217, 0.22);
}

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

.hero-actions a.secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.hero-dots {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 3;
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.page-hero {
    padding: 62px 0 28px;
}

.page-hero-card,
.search-panel,
.detail-panel,
.side-panel,
.category-tile,
.rank-item,
.list-strip {
    border: 1px solid rgba(255, 179, 217, 0.22);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
}

.page-hero-card {
    padding: clamp(28px, 6vw, 56px);
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 179, 217, 0.35), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(168, 230, 206, 0.4), transparent 24%),
        rgba(255, 255, 255, 0.78);
}

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

.page-hero-card p {
    max-width: 760px;
    margin: 0;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.8;
}

.section-block {
    padding: 38px 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.section-title a {
    color: var(--candy-rose);
    font-weight: 800;
}

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

.video-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-candy);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.35), rgba(168, 230, 206, 0.35));
}

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

.video-card:hover .poster-wrap img,
.rank-item:hover .rank-cover img,
.list-strip:hover img,
.category-tile:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 64%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.video-card:hover .poster-shade {
    opacity: 1;
}

.play-dot {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--candy-rose);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
    transform: scale(0.88);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.video-card:hover .play-dot {
    opacity: 1;
    transform: scale(1);
}

.year-pill,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.64);
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, var(--candy-rose), var(--candy-orange));
}

.card-body {
    padding: 16px;
}

.card-body h2 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h2 a:hover,
.rank-content h2 a:hover,
.list-strip h3 a:hover {
    color: var(--candy-rose);
}

.card-body p {
    min-height: 44px;
    margin: 0 0 14px;
    color: var(--text-soft);
    line-height: 1.55;
    font-size: 14px;
}

.card-meta,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.card-meta span,
.rank-meta span,
.detail-meta span {
    border-radius: 999px;
    padding: 5px 8px;
    background: rgba(168, 230, 206, 0.24);
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding: 6px 2px 18px;
    scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
    display: none;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 24px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-candy);
}

.category-tile img {
    position: absolute;
    right: -22px;
    bottom: -28px;
    width: 170px;
    height: 120px;
    object-fit: cover;
    border-radius: 24px;
    transform: rotate(-6deg);
    opacity: 0.62;
    transition: transform 0.3s ease;
}

.category-tile h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 24px;
}

.category-tile p {
    position: relative;
    z-index: 1;
    max-width: 72%;
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.search-panel {
    padding: 22px;
    margin-bottom: 28px;
}

.search-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 16px;
}

.search-panel input {
    width: 100%;
    border: 2px solid rgba(255, 179, 217, 0.36);
    border-radius: 18px;
    padding: 14px 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.84);
}

.filter-row button {
    cursor: pointer;
}

.filter-row button:hover,
.filter-row button.active {
    color: #fff;
    background: linear-gradient(90deg, var(--candy-rose), var(--candy-orange));
}

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

.rank-item {
    display: grid;
    grid-template-columns: 128px 54px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-candy);
}

.rank-cover {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 10;
}

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

.rank-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--candy-rose), var(--candy-orange));
    font-size: 20px;
    font-weight: 900;
}

.rank-content h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-content p {
    margin: 0 0 10px;
    color: var(--text-soft);
    line-height: 1.6;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 28px 0 0;
    color: #6b7280;
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    padding: 22px 0 44px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #05070d;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.26);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #05070d;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.16));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--candy-rose);
    background: rgba(255, 255, 255, 0.94);
    font-size: 36px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

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

.detail-panel {
    margin-top: 22px;
    padding: 26px;
}

.detail-panel h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.04em;
}

.detail-panel h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-panel p {
    color: #4b5563;
    line-height: 1.9;
    font-size: 16px;
}

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

.side-panel {
    position: sticky;
    top: 96px;
    padding: 18px;
}

.list-strip {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    margin-bottom: 12px;
    box-shadow: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.list-strip:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-candy);
}

.list-strip .strip-cover {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 10;
}

.list-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-strip h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.4;
}

.list-strip p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
}

.site-footer {
    margin-top: 42px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 179, 217, 0.24);
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.16), rgba(255, 230, 109, 0.08), rgba(168, 230, 206, 0.18));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 34px;
}

.footer-brand {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
}

.site-footer p {
    color: var(--text-soft);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #be397e;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #4b5563;
}

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

.footer-bottom {
    padding: 18px 16px;
    text-align: center;
    color: #6b7280;
    border-top: 1px solid rgba(255, 179, 217, 0.22);
}

.hidden-card {
    display: none !important;
}

@media (max-width: 1080px) {
    .main-nav,
    .nav-search {
        display: none;
    }

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

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

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

    .side-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .section-container {
        width: min(100% - 22px, 1280px);
    }

    .brand {
        font-size: 21px;
    }

    .hero-shell {
        min-height: 640px;
        border-radius: 24px;
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.32));
    }

    .hero-content {
        left: 22px;
        right: 22px;
        bottom: 34px;
        width: auto;
    }

    .hero-dots {
        left: 22px;
        right: auto;
        bottom: 18px;
    }

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

    .card-body {
        padding: 13px;
    }

    .card-body p {
        display: none;
    }

    .rank-item {
        grid-template-columns: 92px 38px 1fr;
        gap: 12px;
    }

    .rank-number {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .rank-content p {
        display: none;
    }

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

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

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

    .scroll-row {
        grid-auto-columns: minmax(220px, 78vw);
    }

    .player-overlay span {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
}
