:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --orange: #f97316;
    --yellow: #f59e0b;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff7ed;
    --panel: #ffffff;
    --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 18%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.6;
}

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

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

main {
    min-height: 60vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.top-ribbon {
    padding: 8px 16px;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(90deg, #fb923c, #f472b6, #ef4444);
}

.nav-shell {
    max-width: 1220px;
    min-height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
}

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

.site-nav a {
    position: relative;
    font-size: 15px;
    font-weight: 700;
    color: #4b5563;
    transition: color 0.25s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--pink);
    transition: width 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--pink-dark);
}

.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}

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

.nav-search input,
.wide-search input,
.filter-controls input,
.filter-controls select {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-search input {
    width: 170px;
    padding: 10px 14px;
}

.nav-search button,
.wide-search button,
.primary-btn {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-search button {
    padding: 10px 16px;
}

.nav-search input:focus,
.wide-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 30px;
    cursor: pointer;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: linear-gradient(135deg, #fce7f3 0%, #fffbeb 45%, #fff7ed 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(48px);
    opacity: 0.42;
    animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow-a {
    width: 230px;
    height: 230px;
    left: 7%;
    top: 8%;
    background: #f472b6;
}

.hero-glow-b {
    width: 280px;
    height: 280px;
    right: 8%;
    bottom: 10%;
    background: #fb923c;
    animation-delay: 1.2s;
}

.hero-glow-c {
    width: 200px;
    height: 200px;
    left: 42%;
    bottom: 18%;
    background: #facc15;
    animation-delay: 2s;
}

@keyframes floatGlow {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(16px, -18px, 0) scale(1.08);
    }
}

.hero-inner,
.section-block,
.page-hero,
.detail-hero,
.player-panel,
.home-search-block,
.site-footer .footer-grid,
.footer-bottom {
    max-width: 1220px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 54px;
    padding-bottom: 56px;
}

.hero-topline,
.section-title-row,
.overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-topline {
    margin-bottom: 28px;
    color: #9d174d;
    font-weight: 800;
}

.hero-topline span,
.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #9d174d;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 26px rgba(236, 72, 153, 0.12);
}

.hero-topline span,
.eyebrow {
    padding: 8px 14px;
}

.section-kicker {
    padding: 6px 12px;
    margin-bottom: 10px;
}

.hero-topline a,
.section-title-row a,
.text-link,
.ghost-link {
    color: var(--pink-dark);
    font-weight: 800;
}

.hero-stage {
    position: relative;
    min-height: 440px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    align-items: center;
    gap: 42px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.06em;
    background: linear-gradient(90deg, var(--pink-dark), var(--orange), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 720px;
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 19px;
}

.hero-meta,
.card-meta,
.detail-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.card-meta span,
.detail-meta-grid span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.hero-meta span {
    padding: 8px 14px;
}

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

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
}

.primary-btn:hover,
.nav-search button:hover,
.wide-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(236, 72, 153, 0.28);
}

.secondary-btn {
    color: #be185d;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.hero-poster {
    display: block;
    padding: 14px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-poster img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 26px;
}

.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(219, 39, 119, 0.24);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 58px;
    background: linear-gradient(90deg, var(--pink), var(--orange));
}

.home-search-block {
    margin-top: -34px;
    position: relative;
    z-index: 3;
}

.wide-search {
    display: flex;
    gap: 12px;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.wide-search input {
    flex: 1;
    min-width: 0;
    padding: 15px 20px;
    font-size: 16px;
}

.wide-search button {
    padding: 0 26px;
    font-size: 16px;
}

.section-block,
.player-panel {
    padding-top: 54px;
    padding-bottom: 54px;
}

.section-title-row {
    margin-bottom: 26px;
}

.section-title-row h2,
.filter-head h2,
.detail-content h2,
.category-overview-card h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.04em;
}

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

.category-tile,
.category-overview-card,
.movie-card,
.filter-panel,
.detail-poster-card,
.detail-content article {
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.category-tile {
    padding: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.category-tile a:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 18px;
    font-weight: 900;
    color: #be185d;
}

.category-tile p,
.category-overview-card p,
.filter-head p {
    color: var(--muted);
}

.tile-links,
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tile-links a {
    color: #4b5563;
    font-size: 14px;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #fdf2f8;
}

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

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

.card-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.24);
}

.rank-badge {
    left: auto;
    right: 12px;
    background: rgba(17, 24, 39, 0.78);
}

.card-body {
    padding: 16px;
}

.card-meta span {
    padding: 5px 9px;
    background: #f9fafb;
    color: #6b7280;
}

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

.card-body h2 a:hover,
.tile-links a:hover,
.footer-links a:hover,
.mini-link:hover,
.breadcrumb a:hover {
    color: var(--pink-dark);
}

.card-body p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

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

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #9d174d;
    background: #fce7f3;
    font-size: 12px;
    font-weight: 800;
}

.ranking-band {
    background: linear-gradient(135deg, rgba(252, 231, 243, 0.58), rgba(255, 247, 237, 0.7));
    border-radius: 38px;
}

.page-hero,
.detail-hero {
    margin-top: 28px;
    padding-top: 54px;
    padding-bottom: 54px;
    border-radius: 38px;
    background: linear-gradient(135deg, #fce7f3, #fff7ed 56%, #fffbeb);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.slim-hero {
    padding-top: 42px;
    padding-bottom: 42px;
}

.filter-panel {
    max-width: 1220px;
    margin: 26px auto 0;
    padding: 24px 20px;
}

.filter-controls {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) auto;
    gap: 12px;
    margin-top: 18px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
}

.ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fce7f3;
}

.empty-state {
    display: none;
    margin: 20px 0 0;
    padding: 18px;
    border-radius: 18px;
    color: #9d174d;
    background: #fce7f3;
    font-weight: 800;
}

.empty-state.is-visible {
    display: block;
}

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

.category-overview-card {
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mini-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.mini-link {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: #374151;
    font-weight: 800;
}

.mini-link img {
    width: 54px;
    height: 68px;
    border-radius: 12px;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

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

.detail-poster-card {
    padding: 12px;
}

.detail-poster-card img {
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    object-fit: cover;
}

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 58px);
}

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

.detail-meta-grid span {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
}

.detail-meta-grid strong {
    display: block;
    color: #9d174d;
    font-size: 12px;
}

.player-panel {
    padding-top: 42px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: var(--shadow);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.68));
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    width: 78px;
    height: 78px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    box-shadow: 0 18px 38px rgba(236, 72, 153, 0.32);
}

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

.detail-content article {
    padding: 26px;
}

.detail-content p {
    color: #4b5563;
    font-size: 17px;
}

.site-footer {
    margin-top: 40px;
    color: #e5e7eb;
    background: linear-gradient(135deg, #111827, #1f2937 58%, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
    padding-top: 46px;
    padding-bottom: 38px;
}

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

.site-footer p,
.footer-links a {
    color: #cbd5e1;
}

.footer-bottom {
    padding-top: 16px;
    padding-bottom: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
}

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

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

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

@media (max-width: 820px) {
    .nav-shell {
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border-radius: 20px;
        background: #ffffff;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    }

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

    .site-nav a {
        padding: 12px 14px;
    }

    .site-nav a::after {
        display: none;
    }

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

    .nav-search input {
        flex: 1;
        width: auto;
    }

    .hero-slide,
    .detail-layout,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 720px;
    }

    .hero-poster {
        max-width: 360px;
        margin: 0 auto;
    }

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

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

@media (max-width: 560px) {
    .top-ribbon {
        font-size: 12px;
    }

    .brand,
    .footer-brand {
        font-size: 22px;
    }

    .hero-section {
        min-height: 760px;
    }

    .hero-stage {
        min-height: 650px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .wide-search,
    .hero-actions,
    .filter-controls {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .wide-search {
        display: grid;
    }

    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .compact-grid,
    .listing-grid,
    .mini-list {
        grid-template-columns: 1fr;
    }

    .section-title-row,
    .overview-head,
    .hero-topline {
        align-items: flex-start;
        flex-direction: column;
    }
}
