:root {
    --color-red: #ef4444;
    --color-orange: #f97316;
    --color-pink: #ec4899;
    --color-purple: #a855f7;
    --color-blue: #60a5fa;
    --color-slate: #1f2937;
    --color-soft: #fff7fb;
    --shadow-soft: 0 18px 45px rgba(236, 72, 153, 0.14);
    --shadow-card: 0 14px 32px rgba(31, 41, 55, 0.10);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--color-slate);
    background: linear-gradient(180deg, #eff6ff 0%, #fdf2f8 46%, #faf5ff 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.94), rgba(239, 246, 255, 0.94), rgba(250, 245, 255, 0.94));
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
}

.header-inner {
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange), var(--color-pink));
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.25);
}

.brand-text {
    font-size: 21px;
    background: linear-gradient(90deg, var(--color-red), var(--color-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link,
.dropdown-trigger {
    border: 0;
    background: transparent;
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    cursor: pointer;
    transition: 0.2s ease;
}

.nav-link:hover,
.dropdown-trigger:hover,
.nav-link.is-active {
    background: rgba(255, 255, 255, 0.86);
    color: var(--color-pink);
    box-shadow: 0 8px 18px rgba(236, 72, 153, 0.12);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 310px;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 55px rgba(31, 41, 55, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.22s ease;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 16px;
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg, #fdf2f8, #faf5ff);
}

.dropdown-menu strong {
    display: block;
    color: #111827;
}

.dropdown-menu span {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 13px;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    padding: 11px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #374151;
}

.mobile-nav {
    display: none;
    padding: 12px 22px 18px;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.mobile-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: 14px;
    color: #374151;
}

.mobile-nav a:hover {
    background: #fdf2f8;
    color: var(--color-pink);
}

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

.main-wrap,
.section,
.hero-inner,
.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0 56px;
    background: linear-gradient(135deg, #fee2e2 0%, #dbeafe 50%, #f3e8ff 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(45px);
    opacity: 0.38;
    animation: blobMove 10s infinite ease-in-out;
}

.hero::before {
    width: 290px;
    height: 290px;
    left: 5%;
    top: 40px;
    background: #fecaca;
}

.hero::after {
    width: 360px;
    height: 360px;
    right: 7%;
    bottom: -90px;
    background: #f5d0fe;
    animation-delay: 2.4s;
}

.hero-glow {
    position: absolute;
    width: 330px;
    height: 330px;
    left: 44%;
    top: 24%;
    border-radius: 999px;
    filter: blur(50px);
    background: #bfdbfe;
    opacity: 0.32;
    animation: blobMove 12s infinite ease-in-out 4s;
}

@keyframes blobMove {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(26px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 24px) scale(0.96);
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: 34px;
    align-items: center;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-pink);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.12);
}

.hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--color-red), var(--color-orange), var(--color-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 650px;
    font-size: 19px;
    line-height: 1.8;
    color: #4b5563;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    transition: 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-red), var(--color-orange));
    box-shadow: 0 16px 30px rgba(239, 68, 68, 0.24);
}

.btn-light {
    color: #374151;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 25px rgba(31, 41, 55, 0.10);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.20);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 590px;
}

.stat-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}

.stat-card strong {
    display: block;
    color: var(--color-red);
    font-size: 24px;
}

.stat-card span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}

.hero-panel {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    border-radius: 34px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 30px 70px rgba(31, 41, 55, 0.24);
    opacity: 0;
    transform: translateX(22px) scale(0.985);
    pointer-events: none;
    transition: 0.48s ease;
}

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

.hero-slide img {
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.82));
}

.hero-slide-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 34px;
    color: #ffffff;
}

.hero-slide-content h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.hero-slide-content p {
    margin: 0 0 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

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

.hero-tags span,
.card-tags span,
.tag,
.tag-row span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: #db2777;
    font-size: 12px;
    font-weight: 700;
}

.hero-slide-content .hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    right: 24px;
    top: 24px;
    display: flex;
    gap: 8px;
}

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

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

.section {
    padding-top: 56px;
    padding-bottom: 20px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading h1,
.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
}

.section-heading p {
    margin: 8px 0 0;
    color: #6b7280;
    line-height: 1.7;
}

.more-link {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-pink);
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    transition: 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(236, 72, 153, 0.18);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #dbeafe, #f3e8ff);
}

.card-cover img {
    height: 100%;
    object-fit: cover;
    transition: 0.45s ease;
}

.movie-card:hover .card-cover img {
    transform: scale(1.07);
}

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

.movie-card:hover .play-glow {
    opacity: 1;
    background: rgba(17, 24, 39, 0.25);
}

.duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.76);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

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

.card-body h2 a:hover {
    color: var(--color-pink);
}

.card-body p {
    min-height: 44px;
    margin: 0 0 12px;
    color: #6b7280;
    line-height: 1.6;
    font-size: 14px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 13px;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f9fafb;
}

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

.category-card {
    min-height: 180px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
    transition: 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #ffffff, #fdf2f8);
    box-shadow: 0 22px 42px rgba(236, 72, 153, 0.18);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    color: #111827;
}

.category-card p {
    margin: 0 0 16px;
    color: #6b7280;
    line-height: 1.7;
}

.category-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-card li {
    margin-top: 8px;
    color: #db2777;
    font-weight: 700;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 168px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.rank-num {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
}

.rank-cover {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #dbeafe);
}

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

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

.rank-info p {
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
}

.rank-meta {
    display: grid;
    gap: 7px;
    justify-items: end;
    color: #6b7280;
    font-size: 14px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 190px 190px;
    gap: 12px;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    margin-bottom: 28px;
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 16px;
    padding: 0 14px;
    background: #ffffff;
    outline: 0;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.10);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px auto 0;
    max-width: 1240px;
    padding: 0 22px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #db2777;
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(310px, 0.85fr);
    gap: 26px;
    align-items: start;
}

.player-card,
.detail-card,
.side-card {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

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

.player-area video {
    width: 100%;
    height: 100%;
    display: block;
    background: #111827;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.72));
    cursor: pointer;
    transition: 0.22s ease;
}

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

.player-button {
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    box-shadow: 0 20px 44px rgba(239, 68, 68, 0.34);
    cursor: pointer;
}

.player-meta {
    padding: 24px;
}

.player-meta h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
}

.player-meta p {
    margin: 0;
    color: #6b7280;
    line-height: 1.75;
}

.detail-card {
    padding: 24px;
    margin-top: 24px;
}

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

.detail-card p {
    margin: 0 0 16px;
    color: #4b5563;
    line-height: 1.9;
}

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

.detail-meta div {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f9fafb;
    color: #4b5563;
}

.detail-meta strong {
    color: #111827;
}

.side-card {
    padding: 20px;
}

.compact-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    transition: 0.2s ease;
}

.compact-card:hover {
    background: #fdf2f8;
}

.compact-cover {
    width: 112px;
    aspect-ratio: 16 / 10;
    flex: 0 0 auto;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #dbeafe);
}

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

.compact-info {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 8px;
}

.compact-info strong {
    line-height: 1.35;
}

.compact-info small {
    color: #6b7280;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.site-footer {
    margin-top: 72px;
    background: linear-gradient(180deg, rgba(249, 250, 251, 0.7), #f3f4f6);
    border-top: 1px solid rgba(229, 231, 235, 0.9);
}

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

.footer-brand p {
    max-width: 430px;
    color: #6b7280;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-links h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.footer-links a {
    color: #6b7280;
}

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

.footer-bottom {
    text-align: center;
    padding: 18px 22px 28px;
    color: #6b7280;
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
    box-shadow: 0 14px 30px rgba(168, 85, 247, 0.28);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: 0.22s ease;
}

.back-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.empty-state {
    display: none;
    padding: 34px;
    border-radius: 24px;
    text-align: center;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

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

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

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

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

    .hero-panel {
        min-height: 460px;
    }

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

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

    .menu-button {
        display: block;
    }

    .hero {
        padding-top: 48px;
    }

    .hero-inner,
    .section,
    .main-wrap,
    .footer-inner,
    .breadcrumb {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-panel {
        min-height: 420px;
    }

    .hero-slide-content {
        padding: 24px;
    }

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

    .section-heading {
        display: block;
    }

    .more-link {
        display: inline-flex;
        margin-top: 14px;
    }

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

    .rank-item {
        grid-template-columns: 44px 112px minmax(0, 1fr);
    }

    .rank-meta {
        grid-column: 2 / -1;
        justify-items: start;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

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

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

@media (max-width: 560px) {
    .header-inner {
        height: 62px;
        padding: 0 16px;
    }

    .brand-text {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero-panel {
        min-height: 380px;
    }

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

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

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

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

    .player-button {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
