:root {
    --pink: #ec4899;
    --pink-strong: #db2777;
    --purple: #a855f7;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --yellow: #f59e0b;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fdf2f8;
    --paper: #ffffff;
    --line: rgba(236, 72, 153, 0.16);
    --shadow: 0 20px 50px rgba(148, 88, 190, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fff1f7 0%, #f7efff 46%, #eff8ff 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(244, 114, 182, 0.18);
    box-shadow: 0 12px 34px rgba(236, 72, 153, 0.08);
}

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

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.32);
}

.logo-text {
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
    color: #374151;
}

.main-nav a,
.footer-links a,
.breadcrumb a,
.pager a {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.footer-links a:hover,
.breadcrumb a:hover {
    color: var(--pink);
}

.search-form {
    position: relative;
    width: min(270px, 28vw);
}

.search-form input,
.search-box input,
.filter-input {
    width: 100%;
    border: 1px solid #fbcfe8;
    border-radius: 999px;
    padding: 12px 48px 12px 18px;
    outline: none;
    color: #374151;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.08);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.search-box input:focus,
.filter-input:focus {
    border-color: #f472b6;
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.18);
}

.search-form button,
.search-box button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #374151;
    font-size: 28px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(244, 114, 182, 0.16);
}

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

.mobile-panel a {
    display: block;
    padding: 12px 0;
    font-weight: 700;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, #f472b6 0%, #a855f7 46%, #3b82f6 100%);
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.32;
    background: white;
}

.hero-section::before {
    width: 240px;
    height: 240px;
    left: 4%;
    top: 8%;
    animation: floatGlow 8s ease-in-out infinite;
}

.hero-section::after {
    width: 300px;
    height: 300px;
    right: 10%;
    bottom: 6%;
    animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-24px) scale(1.08);
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    align-items: center;
    gap: 42px;
    padding: 78px 0;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-title {
    margin: 20px 0 16px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.03;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-desc {
    max-width: 660px;
    margin: 0 0 28px;
    font-size: clamp(17px, 2.3vw, 23px);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.75;
}

.hero-actions,
.card-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 0;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    color: white;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    box-shadow: 0 16px 32px rgba(219, 39, 119, 0.28);
}

.btn-light {
    color: var(--pink);
    background: white;
    box-shadow: 0 16px 32px rgba(255, 255, 255, 0.24);
}

.btn-outline {
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.08);
}

.hero-slider {
    position: relative;
    min-height: 430px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(28px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-card {
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 70px rgba(47, 18, 93, 0.28);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-cover {
    position: relative;
    height: 278px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.04));
}

.hero-cover img,
.card-poster img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

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

.image-missing {
    opacity: 0;
}

.hero-cover::after,
.card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 58%);
    pointer-events: none;
}

.hero-card-body {
    padding: 24px;
}

.hero-card-title {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

.hero-dots {
    position: absolute;
    left: 24px;
    bottom: -24px;
    display: flex;
    gap: 8px;
}

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

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

.category-pills,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-strip {
    padding: 54px 0 28px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 28px rgba(168, 85, 247, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill:nth-child(3n+2) {
    background: linear-gradient(135deg, var(--purple), var(--blue));
}

.pill:nth-child(3n) {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.pill:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 16px 34px rgba(168, 85, 247, 0.28);
}

.section {
    padding: 46px 0;
}

.section-tinted {
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.92), rgba(245, 243, 255, 0.92));
    padding: 60px 0;
    margin: 20px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 950;
    letter-spacing: -0.05em;
}

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

.more-link {
    font-weight: 850;
    color: var(--pink);
    white-space: nowrap;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: white;
    box-shadow: 0 10px 28px rgba(148, 88, 190, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-poster,
.detail-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fbcfe8, #ddd6fe, #bfdbfe);
}

.movie-grid.large .card-poster {
    aspect-ratio: 16 / 10;
}

.card-body {
    padding: 16px;
}

.card-title {
    margin: 0 0 8px;
    min-height: 48px;
    font-size: 17px;
    line-height: 1.42;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-desc {
    margin: 0 0 12px;
    min-height: 44px;
    color: var(--muted);
    line-height: 1.58;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.badge,
.score-badge,
.time-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 850;
    backdrop-filter: blur(10px);
}

.badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: rgba(236, 72, 153, 0.88);
}

.score-badge {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.72);
}

.time-badge {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.76);
}

.play-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: rgba(236, 72, 153, 0.9);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.24s ease;
}

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

.horizontal-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 8px 0 24px;
    scroll-snap-type: x mandatory;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 90px 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: white;
    box-shadow: 0 10px 28px rgba(148, 88, 190, 0.1);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: white;
    font-weight: 950;
    background: linear-gradient(135deg, var(--yellow), #ef4444);
}

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fce7f3, #e0e7ff);
}

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

.page-hero {
    padding: 70px 0 44px;
    text-align: center;
}

.page-title {
    margin: 0 0 14px;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 950;
    letter-spacing: -0.055em;
}

.page-desc {
    max-width: 780px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 14px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
    align-items: start;
}

.player-panel,
.detail-card,
.content-panel,
.search-panel,
.category-card {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    border: 1px solid rgba(244, 114, 182, 0.16);
}

.player-panel {
    overflow: hidden;
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
}

.video-play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: white;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.26), rgba(15, 23, 42, 0.62));
}

.video-play-layer.is-hidden {
    display: none;
}

.video-play-button {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 34px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 20px 48px rgba(236, 72, 153, 0.34);
}

.player-title-row {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.detail-card {
    overflow: hidden;
}

.detail-info {
    padding: 24px;
}

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 950;
    letter-spacing: -0.05em;
}

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

.info-cell {
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(253, 242, 248, 0.92), rgba(239, 246, 255, 0.92));
}

.info-cell span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.info-cell strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
}

.tag {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--pink-strong);
    font-size: 13px;
    font-weight: 800;
    background: #fce7f3;
}

.content-panel {
    padding: 30px;
    margin-top: 30px;
}

.content-panel h2,
.content-panel h3 {
    margin: 0 0 14px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.content-panel h2 {
    font-size: 28px;
}

.content-panel p {
    color: #4b5563;
    line-height: 1.95;
    margin: 0 0 18px;
}

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

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

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(148, 88, 190, 0.22);
}

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

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 36px 0 16px;
}

.pager a,
.pager span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 850;
    background: white;
    color: #374151;
    border: 1px solid #fbcfe8;
}

.pager a:hover,
.pager .current {
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border-color: transparent;
}

.search-panel {
    padding: 26px;
    margin-bottom: 28px;
}

.search-box {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.site-footer {
    margin-top: 60px;
    background: linear-gradient(90deg, #fce7f3, #ede9fe, #dbeafe);
    border-top: 1px solid rgba(244, 114, 182, 0.18);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 26px;
}

.footer-inner h3 {
    margin: 0 0 14px;
    font-weight: 900;
}

.footer-inner p,
.footer-inner li {
    color: var(--muted);
    line-height: 1.75;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding: 18px 16px;
    color: var(--muted);
    border-top: 1px solid rgba(244, 114, 182, 0.22);
    font-size: 14px;
}

@media (max-width: 1024px) {
    .main-nav,
    .header-search {
        display: none;
    }

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

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

    .hero-slider {
        min-height: 500px;
    }

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

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

@media (max-width: 640px) {
    .header-inner,
    .container,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .logo {
        font-size: 20px;
    }

    .hero-inner {
        min-height: auto;
        padding: 48px 0 76px;
    }

    .hero-slider {
        min-height: 470px;
    }

    .hero-cover {
        height: 220px;
    }

    .movie-grid,
    .movie-grid.large,
    .movie-grid.compact,
    .category-grid,
    .rank-list,
    .footer-inner,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 74px 1fr;
        gap: 12px;
    }

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

    .content-panel,
    .detail-info,
    .search-panel {
        padding: 20px;
    }
}
