:root {
    --site-pink: #ffb3d9;
    --site-rose: #ff8dc7;
    --site-orange: #ffb347;
    --site-yellow: #ffe66d;
    --site-mint: #a8e6ce;
    --site-blue: #87ceeb;
    --site-purple: #c497ff;
    --site-text: #1f2937;
    --site-muted: #667085;
    --site-card: rgba(255, 255, 255, 0.86);
    --site-border: rgba(255, 179, 217, 0.35);
    --site-shadow: 0 16px 45px rgba(255, 141, 199, 0.22);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--site-text);
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 179, 217, 0.38), transparent 26rem),
        radial-gradient(circle at 88% 10%, rgba(168, 230, 206, 0.35), transparent 25rem),
        radial-gradient(circle at 55% 85%, rgba(255, 230, 109, 0.30), transparent 26rem),
        linear-gradient(135deg, #fff8fb 0%, #ffffff 42%, #f4fffb 100%);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Microsoft YaHei",
        sans-serif;
}

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

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

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

.gradient-text {
    background-image: linear-gradient(135deg, #ff8dc7, #ffb347, #ffe66d, #53d7b5, #87ceeb, #c497ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--site-border);
    box-shadow: 0 12px 30px rgba(255, 179, 217, 0.18);
    backdrop-filter: blur(14px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.logo-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--site-rose), var(--site-orange), var(--site-mint));
    box-shadow: 0 10px 24px rgba(255, 141, 199, 0.42);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #4b5563;
    font-weight: 700;
}

.nav-links a {
    padding: 10px 12px;
    border-radius: 999px;
    transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: #d84e93;
    background: rgba(255, 179, 217, 0.18);
}

.nav-search {
    position: relative;
    width: min(280px, 26vw);
}

.nav-search input,
.search-panel input,
.filter-select {
    width: 100%;
    border: 2px solid rgba(255, 179, 217, 0.45);
    border-radius: 999px;
    padding: 12px 16px;
    color: var(--site-text);
    background: rgba(255, 255, 255, 0.88);
    outline: none;
    transition: 0.25s ease;
}

.nav-search input:focus,
.search-panel input:focus,
.filter-select:focus {
    border-color: var(--site-rose);
    box-shadow: 0 0 0 4px rgba(255, 179, 217, 0.22);
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 14px;
    padding: 10px 12px;
    color: #d84e93;
    background: rgba(255, 179, 217, 0.2);
    font-size: 22px;
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    padding: 36px 0 58px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -18% -8% auto -8%;
    height: 62%;
    background: linear-gradient(100deg, rgba(255, 179, 217, 0.45), rgba(255, 230, 109, 0.28), rgba(168, 230, 206, 0.42));
    filter: blur(60px);
    pointer-events: none;
}

.hero-stage {
    position: relative;
    min-height: 560px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 34px 90px rgba(255, 141, 199, 0.24);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
    align-items: stretch;
    gap: 0;
    opacity: 0;
    transform: scale(1.015);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 12, 28, 0.88) 0%, rgba(16, 20, 36, 0.62) 46%, rgba(255, 179, 217, 0.12) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.36), transparent 42%);
    z-index: 1;
}

.hero-copy {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 6vw, 76px);
    color: #ffffff;
}

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

.hero-copy h1,
.hero-copy h2 {
    max-width: 760px;
    margin: 18px 0 14px;
    font-size: clamp(34px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.hero-meta span,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    color: #7c2d58;
    background: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 800;
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

.candy-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.candy-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-rose), var(--site-orange), #61d6bb);
    box-shadow: 0 16px 30px rgba(255, 141, 199, 0.36);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.candy-button:hover,
.ghost-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(255, 141, 199, 0.38);
}

.hero-image {
    position: relative;
    z-index: 2;
    min-height: 560px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 12, 28, 0.65), transparent 40%);
}

.hero-controls {
    position: absolute;
    right: 28px;
    bottom: 26px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.hero-mini-search {
    position: absolute;
    left: clamp(32px, 6vw, 76px);
    bottom: 30px;
    z-index: 7;
    display: flex;
    width: min(520px, calc(100% - 64px));
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.hero-mini-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 13px 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.hero-mini-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-mini-search button {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    color: #7c2d58;
    background: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

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

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.section-subtitle {
    margin: 8px 0 0;
    color: var(--site-muted);
    line-height: 1.7;
}

.more-link {
    flex-shrink: 0;
    color: #d84e93;
    font-weight: 900;
}

.movie-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 24px;
    scroll-snap-type: x mandatory;
}

.movie-strip .movie-card {
    width: 260px;
    min-width: 260px;
    scroll-snap-align: start;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 179, 217, 0.28);
    border-radius: 24px;
    background: var(--site-card);
    box-shadow: 0 12px 32px rgba(31, 41, 55, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
    font-weight: 800;
}

.card-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.22);
    font-size: 42px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #8a4a6d;
    font-size: 12px;
    font-weight: 800;
}

.meta-row span {
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(255, 179, 217, 0.22);
}

.movie-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: #d84e93;
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 10px 0 0;
    overflow: hidden;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-list span {
    border-radius: 999px;
    padding: 5px 9px;
    color: #7c2d58;
    background: rgba(168, 230, 206, 0.28);
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 179, 217, 0.34);
    border-radius: 28px;
    padding: 26px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.64)),
        radial-gradient(circle at 80% 10%, rgba(255, 230, 109, 0.45), transparent 9rem);
    box-shadow: 0 14px 38px rgba(31, 41, 55, 0.06);
    transition: 0.28s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 20px;
    color: var(--site-muted);
    line-height: 1.7;
}

.page-hero {
    padding: 64px 0 30px;
}

.page-hero-card {
    border-radius: 32px;
    padding: clamp(28px, 5vw, 60px);
    background:
        linear-gradient(135deg, rgba(255, 179, 217, 0.34), rgba(255, 230, 109, 0.22), rgba(168, 230, 206, 0.34)),
        rgba(255, 255, 255, 0.74);
    box-shadow: var(--site-shadow);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 820px;
    margin: 16px 0 0;
    color: var(--site-muted);
    font-size: 18px;
    line-height: 1.8;
}

.search-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 0;
}

.filter-select {
    max-width: 190px;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 68px 230px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 179, 217, 0.28);
    border-radius: 26px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.06);
    transition: 0.28s ease;
}

.rank-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--site-shadow);
}

.rank-number {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-rose), var(--site-orange));
    font-size: 22px;
    font-weight: 900;
}

.rank-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h2,
.rank-info h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.rank-info p {
    margin: 0 0 12px;
    color: var(--site-muted);
    line-height: 1.7;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--site-shadow);
}

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

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.12;
}

.detail-copy p {
    color: var(--site-muted);
    font-size: 18px;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 34px 0 0;
    color: #8a4a6d;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #d84e93;
}

.player-section {
    padding-top: 40px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #111827;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.22);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(0deg, rgba(8, 12, 28, 0.65), rgba(8, 12, 28, 0.24)),
        rgba(255, 179, 217, 0.18);
    cursor: pointer;
}

.play-cover span {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--site-rose), var(--site-orange));
    box-shadow: 0 18px 48px rgba(255, 141, 199, 0.42);
    font-size: 42px;
    transform: translateX(3px);
}

.player-shell.is-playing .play-cover {
    display: none;
}

.content-card {
    border: 1px solid rgba(255, 179, 217, 0.26);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 38px);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 32px rgba(31, 41, 55, 0.06);
}

.content-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.content-card p {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.95;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.7fr));
    gap: 26px;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 12px;
}

.footer-grid p,
.footer-grid a {
    color: var(--site-muted);
    line-height: 1.8;
}

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

.empty-state {
    display: none;
    border-radius: 22px;
    padding: 26px;
    color: var(--site-muted);
    background: rgba(255, 255, 255, 0.8);
}

.search-results {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

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

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

    .hero-image {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .hero-copy {
        min-height: 560px;
    }
}

@media (max-width: 860px) {
    .site-nav {
        flex-wrap: wrap;
    }

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

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0 0 16px;
    }

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

    .nav-search {
        order: 3;
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding-top: 22px;
    }

    .hero-stage,
    .hero-copy {
        min-height: 620px;
    }

    .hero-copy {
        padding: 30px 24px 120px;
    }

    .hero-mini-search {
        left: 20px;
        bottom: 72px;
        width: calc(100% - 40px);
    }

    .hero-controls {
        left: 24px;
        right: auto;
    }

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

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

    .rank-card {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .rank-cover {
        grid-column: 1 / -1;
        order: -1;
    }

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

    .search-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        max-width: none;
    }
}

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

    .logo {
        font-size: 20px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero-stage {
        border-radius: 24px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 34px;
    }

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

    .candy-button,
    .ghost-button {
        width: 100%;
    }

    .hero-mini-search {
        flex-direction: column;
        border-radius: 24px;
    }

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

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

    .movie-strip .movie-card {
        width: 238px;
        min-width: 238px;
    }

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