:root {
    --rose: #ff4f93;
    --pink: #ffb3d9;
    --yellow: #ffe66d;
    --mint: #a8e6ce;
    --blue: #87ceeb;
    --ink: #1f2937;
    --muted: #6b7280;
    --panel: rgba(255, 255, 255, 0.86);
    --line: rgba(255, 179, 217, 0.34);
}

body {
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 179, 217, 0.30), transparent 28rem),
        radial-gradient(circle at 88% 14%, rgba(168, 230, 206, 0.32), transparent 26rem),
        linear-gradient(135deg, #fff7fb 0%, #fffdf5 45%, #f5fffb 100%);
}

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

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
}

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

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

.brand-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--rose), #ffb347, var(--mint));
    box-shadow: 0 10px 30px rgba(255, 79, 147, 0.28);
}

.brand-name {
    font-size: 1.55rem;
}

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

.nav-link {
    font-weight: 700;
    color: #4b5563;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose);
    border-bottom-color: var(--rose);
}

.nav-search,
.mobile-search,
.hero-search,
.live-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.hero-search input,
.live-search input,
.search-panel input,
.search-panel select {
    min-height: 42px;
    border: 2px solid rgba(255, 179, 217, 0.45);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.live-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(255, 79, 147, 0.12);
}

.nav-search button,
.mobile-search button,
.hero-search button,
.search-panel button,
.player-button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: white;
    font-weight: 800;
    background: linear-gradient(90deg, var(--rose), #ffb347, var(--mint));
    box-shadow: 0 12px 30px rgba(255, 79, 147, 0.22);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    background: rgba(255, 179, 217, 0.18);
    color: var(--rose);
    border-radius: 14px;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
}

.mobile-panel {
    display: none;
    padding: 0 1rem 1rem;
}

.mobile-panel.open {
    display: grid;
    gap: 12px;
}

.mobile-link {
    display: block;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    color: #374151;
    font-weight: 700;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 22%, rgba(255, 179, 217, 0.52), transparent 20rem),
        radial-gradient(circle at 80% 6%, rgba(135, 206, 235, 0.36), transparent 18rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.18));
    pointer-events: none;
}

.hero-shell {
    position: relative;
    padding: 56px 0 64px;
}

.hero-slider {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(255, 79, 147, 0.23);
    background: #111827;
}

.hero-slide {
    display: none;
    min-height: 540px;
    position: relative;
    isolation: isolate;
}

.hero-slide.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 44%);
    align-items: stretch;
    animation: fadeIn 0.45s ease-out;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    filter: blur(28px) saturate(1.2);
    transform: scale(1.08);
    opacity: 0.52;
}

.hero-bg img,
.hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.48) 58%, rgba(17, 24, 39, 0.18));
}

.hero-copy {
    padding: clamp(32px, 6vw, 72px);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.hero h1,
.page-hero h1,
.detail-title h1 {
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.06em;
    margin: 0 0 18px;
}

.hero-copy p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.primary-btn,
.secondary-btn,
.filter-btn,
.category-link,
.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    color: white;
    padding: 14px 22px;
    background: linear-gradient(90deg, var(--rose), #ffb347, var(--mint));
    box-shadow: 0 16px 38px rgba(255, 79, 147, 0.28);
}

.secondary-btn {
    color: white;
    padding: 13px 22px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.secondary-btn:hover,
.filter-btn:hover,
.category-link:hover,
.small-btn:hover,
.movie-card:hover,
.category-card:hover,
.compact-card:hover {
    transform: translateY(-4px);
}

.hero-cover {
    min-height: 540px;
    position: relative;
}

.hero-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.46), transparent 48%);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

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

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

.hero-quick {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    margin-top: 20px;
}

.hero-search {
    padding: 18px;
    border-radius: 28px;
    background: var(--panel);
    box-shadow: 0 20px 55px rgba(255, 179, 217, 0.20);
}

.hero-search input {
    flex: 1;
}

.quick-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.category-link,
.small-btn {
    padding: 10px 15px;
    color: #374151;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
}

main {
    min-height: 62vh;
}

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

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

.section-title h2,
.section-title h1 {
    margin: 0;
    font-weight: 950;
    letter-spacing: -0.04em;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.section-title p,
.page-hero p,
.category-card p,
.movie-card p,
.detail-copy p,
.review-box p,
.site-footer p {
    color: var(--muted);
    line-height: 1.75;
}

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

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

.movie-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 46px rgba(255, 179, 217, 0.16);
    transition: all 0.25s ease;
}

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

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

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

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

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

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--rose);
    font-weight: 900;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose), #ffb347);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

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

.movie-card h3 {
    margin: 8px 0 8px;
    font-size: 1.12rem;
    line-height: 1.35;
    font-weight: 900;
}

.movie-meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--rose);
    font-size: 0.82rem;
    font-weight: 800;
}

.card-tags,
.detail-tags,
.channel-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #9f1239;
    background: rgba(255, 179, 217, 0.24);
    font-size: 0.78rem;
    font-weight: 750;
}

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

.category-card {
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 48px rgba(255, 179, 217, 0.16);
    transition: all 0.25s ease;
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 950;
}

.category-card .small-btn {
    margin-top: 16px;
}

.page-hero {
    padding: 58px 0 32px;
}

.page-hero-card {
    padding: clamp(28px, 5vw, 54px);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.34), rgba(255, 255, 255, 0.82), rgba(168, 230, 206, 0.30));
    border: 1px solid var(--line);
    box-shadow: 0 28px 80px rgba(255, 179, 217, 0.18);
}

.filter-bar,
.search-panel {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 28px;
}

.filter-btn {
    padding: 11px 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: #374151;
    cursor: pointer;
}

.filter-btn.active {
    color: white;
    background: linear-gradient(90deg, var(--rose), #ffb347);
    border-color: transparent;
}

.detail-hero {
    padding: 38px 0 24px;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 700;
}

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

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

.player-card,
.detail-side,
.detail-copy,
.review-box {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 22px 64px rgba(255, 179, 217, 0.16);
    overflow: hidden;
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050505;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
    cursor: pointer;
}

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

.player-button {
    width: 92px;
    height: 92px;
    padding: 0;
    font-size: 2.1rem;
}

.player-status {
    padding: 12px 18px;
    color: #4b5563;
    font-weight: 700;
}

.detail-title {
    padding: 28px;
}

.detail-title h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #111827;
}

.detail-facts {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.fact-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 179, 217, 0.24);
}

.fact-row span:first-child {
    color: var(--muted);
}

.fact-row span:last-child {
    font-weight: 850;
    text-align: right;
}

.detail-copy,
.review-box {
    padding: 28px;
    margin-top: 24px;
}

.detail-copy h2,
.review-box h2 {
    margin: 0 0 14px;
    font-size: 1.6rem;
    font-weight: 950;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    transition: all 0.25s ease;
}

.compact-card img {
    width: 92px;
    height: 122px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.35s ease;
}

.compact-card strong {
    display: block;
    color: #111827;
    font-weight: 900;
    line-height: 1.35;
}

.compact-card em {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.4;
}

.search-results-info {
    color: var(--muted);
    font-weight: 700;
    margin: 0 0 22px;
}

.site-footer {
    margin-top: 54px;
    padding: 46px 0 20px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1.2fr;
    gap: 30px;
}

.footer-brand {
    margin-bottom: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-weight: 750;
}

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

.footer-bottom {
    margin-top: 28px;
    text-align: center;
    color: var(--muted);
    font-weight: 700;
}

.no-results {
    padding: 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 800;
}

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

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

    .quick-tags {
        justify-content: flex-start;
    }
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

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

    .hero-cover {
        min-height: 330px;
        order: -1;
    }

    .hero-copy {
        padding: 28px;
    }

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

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

@media (max-width: 540px) {
    .brand-name {
        font-size: 1.25rem;
    }

    .hero-shell {
        padding-top: 28px;
    }

    .hero-slide,
    .hero-slide.active {
        min-height: auto;
    }

    .hero-cover {
        min-height: 260px;
    }

    .hero-search,
    .mobile-search,
    .filter-bar,
    .search-panel {
        align-items: stretch;
        flex-direction: column;
    }

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

    .compact-card {
        grid-template-columns: 78px 1fr;
    }

    .compact-card img {
        width: 78px;
        height: 104px;
    }
}
