:root {
    --color-peach: #FFD4B2;
    --color-coral: #FF9A8B;
    --color-mint: #B8E0D2;
    --color-lavender: #E8D5E1;
    --color-soft-yellow: #FFF4A3;
    --color-warm-beige: #F5E6D3;
    --color-soft-pink: #FFB3C6;
    --color-sage: #C8D5B9;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --pink: #EC4899;
    --pink-soft: #FDF2F8;
    --purple: #A855F7;
    --blue: #3B82F6;
    --orange: #F97316;
    --shadow-soft: 0 18px 45px rgba(109, 40, 217, 0.14);
    --shadow-card: 0 12px 26px rgba(31, 41, 55, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8e0 42%, #f8e8ee 100%);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover,
button:hover {
    transform: translateY(-2px);
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.12);
    backdrop-filter: blur(10px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1280px;
    min-height: 64px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(90deg, #F472B6, #C084FC);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #F472B6, #C084FC);
    box-shadow: 0 10px 18px rgba(236, 72, 153, 0.22);
    font-size: 18px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

.desktop-nav a,
.mobile-panel a {
    font-weight: 650;
    color: #374151;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
    color: var(--pink);
}

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

.nav-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 2px solid #FBCFE8;
    border-radius: 999px;
    outline: none;
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-main);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-search input,
.mobile-search input {
    padding: 10px 16px;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #F472B6;
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.16);
}

.nav-search button,
.mobile-search button {
    padding: 10px 18px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, #F472B6, #C084FC);
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--pink);
    background: var(--pink-soft);
    font-size: 22px;
}

.mobile-panel {
    display: none;
    padding: 16px 24px 24px;
    border-top: 1px solid #FCE7F3;
    background: #fff;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

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

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

.home-main {
    padding-bottom: 64px;
}

.inner-main,
.detail-main {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 64px;
}

.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 56px;
    background: #111827;
}

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

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

.hero-image-link,
.hero-image-link img,
.detail-bg {
    width: 100%;
    height: 100%;
}

.hero-image-link img,
.detail-bg {
    object-fit: cover;
}

.hero-shade,
.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(1280px, 100%);
    transform: translateX(-50%);
    padding: 72px 24px;
    color: #fff;
}

.eyebrow {
    margin: 0 0 12px;
    color: #FBCFE8;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    line-height: 1.12;
    font-weight: 900;
}

.hero-content h1 {
    max-width: 780px;
    font-size: clamp(38px, 7vw, 72px);
    animation: slideIn 0.55s ease both;
}

.hero-content p {
    max-width: 720px;
    margin: 20px 0 0;
    font-size: clamp(17px, 2vw, 22px);
    opacity: 0.92;
}

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

.hero-tags,
.detail-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags span {
    padding: 8px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(5px);
}

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

.btn-primary,
.btn-secondary,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.btn-primary {
    padding: 13px 30px;
    color: #fff;
    background: linear-gradient(90deg, #F472B6, #C084FC);
    box-shadow: 0 16px 28px rgba(236, 72, 153, 0.28);
}

.btn-secondary {
    padding: 12px 24px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    font-size: 34px;
    line-height: 1;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: all 0.3s ease;
}

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

.content-section {
    max-width: 1280px;
    margin: 0 auto 64px;
}

.home-main .content-section {
    padding: 0 24px;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
}

.section-head p {
    margin: 5px 0 0;
    color: var(--text-muted);
}

.section-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #F472B6, #C084FC);
    box-shadow: 0 12px 20px rgba(236, 72, 153, 0.2);
}

.section-icon.hot {
    background: linear-gradient(135deg, #FB7185, #F97316);
}

.section-icon.blue {
    background: linear-gradient(135deg, #60A5FA, #2DD4BF);
}

.section-icon.orange {
    background: linear-gradient(135deg, #FDBA74, #FB7185);
}

.section-icon.purple {
    background: linear-gradient(135deg, #A78BFA, #F472B6);
}

.section-link {
    margin-left: auto;
    padding: 10px 18px;
    color: var(--pink);
    background: #fff;
    box-shadow: var(--shadow-card);
}

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

.movie-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 2px 18px;
    scrollbar-width: none;
}

.movie-strip::-webkit-scrollbar {
    display: none;
}

.movie-strip .movie-card {
    width: 292px;
    flex: 0 0 292px;
}

.movie-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(31, 41, 55, 0.18);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #FFE4E6, #EDE9FE);
}

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

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

.poster-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: all 0.3s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #FB7185, #F97316);
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.28);
}

.movie-body {
    display: grid;
    gap: 7px;
    padding: 16px;
}

.movie-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 18px;
    line-height: 1.25;
}

.movie-meta {
    color: var(--text-muted);
    font-size: 13px;
}

.movie-desc {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: #4B5563;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    padding: 5px 9px;
    color: #BE185D;
    background: #FCE7F3;
    font-size: 12px;
}

.movie-card-large {
    grid-column: span 2;
}

.movie-card-large .poster-wrap {
    aspect-ratio: 16 / 9;
}

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

.category-tile,
.category-panel {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-tile:hover,
.category-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.category-tile {
    display: grid;
    gap: 10px;
    min-height: 164px;
    padding: 22px;
}

.category-tile strong,
.category-panel h2 {
    font-size: 22px;
}

.category-tile span,
.category-panel p,
.category-samples a {
    color: var(--text-muted);
}

.category-panel {
    overflow: hidden;
}

.category-panel-main {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.category-panel-main span {
    font-size: 32px;
}

.category-panel-main h2,
.category-panel-main p {
    margin: 0;
}

.category-samples {
    display: grid;
    gap: 9px;
    padding: 0 24px 24px;
}

.category-samples a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.category-samples a:hover {
    color: var(--pink);
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 82px 1fr 48px;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-card);
}

.rank-row:hover {
    box-shadow: var(--shadow-soft);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #FB7185, #F97316);
    font-weight: 900;
}

.rank-row img {
    width: 82px;
    height: 112px;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(135deg, #FFE4E6, #EDE9FE);
}

.rank-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.rank-copy strong,
.rank-copy span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-copy em {
    color: var(--text-muted);
    font-style: normal;
    font-size: 13px;
}

.rank-play {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--pink);
    background: #FCE7F3;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin: 32px 0 40px;
    padding: 64px;
    border-radius: 32px;
    color: #fff;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.26), transparent 32%), linear-gradient(135deg, #F472B6, #C084FC 52%, #60A5FA);
    box-shadow: var(--shadow-soft);
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
    max-width: 740px;
    margin: 16px 0 0;
    font-size: 18px;
    opacity: 0.92;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 190px 170px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select {
    padding: 12px 16px;
}

.empty-state {
    padding: 40px 20px;
    border-radius: 22px;
    color: var(--text-muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.78);
}

.detail-main {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.detail-main .content-section {
    padding-left: 24px;
    padding-right: 24px;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    margin-bottom: 56px;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    filter: blur(1px);
    transform: scale(1.02);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 44px;
    align-items: end;
    width: min(1280px, 100%);
    min-height: 620px;
    margin: 0 auto;
    padding: 96px 24px 70px;
    color: #fff;
}

.detail-poster {
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.82);
}

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

.detail-copy h1 {
    max-width: 820px;
    font-size: clamp(34px, 5vw, 62px);
}

.detail-one {
    max-width: 820px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
}

.player-section {
    scroll-margin-top: 88px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #0F172A;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0F172A;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.18));
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
    font-size: 32px;
}

.video-overlay strong {
    max-width: min(760px, 90vw);
    font-size: clamp(22px, 4vw, 40px);
    text-align: center;
}

.article-section {
    display: grid;
    gap: 16px;
    padding-top: 6px;
}

.article-section h2 {
    margin: 0;
    font-size: 28px;
}

.article-section p {
    margin: 0 0 22px;
    padding: 26px;
    border-radius: 22px;
    color: #374151;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
    font-size: 17px;
    line-height: 1.9;
}

.site-footer {
    margin-top: 40px;
    background: linear-gradient(90deg, #FDF2F8, #FAF5FF);
    border-top: 1px solid #FCE7F3;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px;
}

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

.footer-inner p {
    max-width: 560px;
    margin: 0;
    color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

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

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 28px;
    color: var(--text-muted);
    text-align: center;
}

.fade-in {
    animation: fadeIn 0.6s ease-out both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1180px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav-search {
        margin-left: auto;
    }

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

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

@media (max-width: 860px) {
    .nav-wrap {
        padding: 0 16px;
    }

    .brand {
        font-size: 20px;
    }

    .nav-search {
        display: none;
    }

    .hero-slider {
        height: 560px;
    }

    .hero-content {
        padding: 60px 18px;
    }

    .hero-control {
        width: 42px;
        height: 42px;
    }

    .hero-prev {
        left: 12px;
    }

    .hero-next {
        right: 12px;
    }

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

    .movie-card-large {
        grid-column: span 1;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .detail-wrap {
        grid-template-columns: 1fr;
        align-items: end;
    }

    .detail-poster {
        width: min(260px, 72vw);
    }

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

@media (max-width: 560px) {
    .inner-main,
    .detail-main .content-section,
    .home-main .content-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .movie-grid,
    .category-grid,
    .category-panel-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .rank-row {
        grid-template-columns: 42px 68px 1fr;
    }

    .rank-row img {
        width: 68px;
        height: 94px;
    }

    .rank-play {
        display: none;
    }

    .page-hero {
        padding: 38px 22px;
        border-radius: 24px;
    }

    .hero-slider,
    .detail-hero,
    .detail-wrap {
        min-height: 540px;
    }

    .hero-slider {
        height: 540px;
    }

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

    .hero-content p,
    .detail-one {
        font-size: 16px;
    }

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

    .section-link {
        display: none;
    }

    .video-overlay strong {
        font-size: 22px;
    }

    .play-circle {
        width: 70px;
        height: 70px;
    }
}
