:root {
    color-scheme: light;
    --rose: #f43f5e;
    --rose-deep: #be123c;
    --pink: #ec4899;
    --orange: #f97316;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff1f2;
    --line: rgba(244, 63, 94, 0.14);
    --shadow: 0 24px 80px rgba(190, 18, 60, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(251, 113, 133, 0.20), transparent 34rem),
        linear-gradient(180deg, #fff7f9 0%, #ffffff 38%, #fff7ed 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: max-content;
}

.logo-mark {
    width: 2.65rem;
    height: 2.65rem;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 14px 34px rgba(244, 63, 94, 0.30);
    font-size: 1.25rem;
}

.logo-text strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text span {
    display: block;
    margin-top: 0.18rem;
    font-size: 0.74rem;
    color: var(--muted);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.primary-nav a,
.mobile-menu a {
    font-weight: 700;
    color: #4b5563;
    transition: color 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active,
.mobile-menu a:hover {
    color: var(--rose);
}

.header-search {
    display: flex;
    align-items: center;
    min-width: 260px;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
}

.header-search input {
    width: 100%;
    padding: 0.68rem 1rem;
    color: #111827;
    outline: none;
}

.header-search button,
.hero-search button,
.filter-box button,
.search-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0 1.1rem;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover,
.filter-box button:hover,
.search-panel button:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 35px rgba(244, 63, 94, 0.26);
}

.mobile-menu-button {
    display: none;
    width: 2.55rem;
    height: 2.55rem;
    margin-left: auto;
    border-radius: 0.85rem;
    color: var(--rose);
    background: #fff1f2;
    font-size: 1.25rem;
}

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(244, 63, 94, 0.12);
    background: #ffffff;
    padding: 1rem 1.25rem 1.2rem;
}

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

.mobile-menu nav {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 0.95rem;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    color: #ffffff;
    background: #111827;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease, transform 0.75s ease;
    transform: scale(1.02);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(136, 19, 55, 0.72) 46%, rgba(249, 115, 22, 0.34) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.80) 0%, transparent 46%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    min-height: 650px;
    margin: 0 auto;
    padding: 5.8rem 1.25rem 4.2rem;
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.62fr);
    gap: 2rem;
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.2rem;
    padding: 0.42rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-weight: 800;
    font-size: 0.92rem;
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.6rem, 7vw, 5.7rem);
    line-height: 0.98;
    letter-spacing: -0.08em;
    font-weight: 950;
}

.hero h1 a:hover {
    color: #ffe4e6;
}

.hero-text {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 2vw, 1.24rem);
    line-height: 1.85;
}

.hero-actions,
.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.8rem;
}

.btn-primary,
.btn-ghost,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.9rem;
    padding: 0 1.25rem;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.btn-light {
    color: var(--rose-deep);
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(255, 255, 255, 0.18);
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 2rem;
    padding: 1.15rem;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    aspect-ratio: 4 / 5;
}

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

.hero-poster span {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.92);
    font-weight: 900;
}

.hero-search {
    display: flex;
    margin-top: 1.4rem;
    max-width: 560px;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 0.95rem 1.2rem;
    color: #111827;
    outline: none;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.55rem;
}

.hero-dot {
    width: 2.4rem;
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

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

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
    font-size: 1.4rem;
}

.hero-arrow.prev {
    left: 1rem;
}

.hero-arrow.next {
    right: 1rem;
}

.section {
    margin-top: 3.5rem;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.section-title {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    line-height: 1.15;
    font-weight: 950;
    color: #111827;
}

.section-desc {
    margin: 0.45rem 0 0;
    max-width: 680px;
    color: var(--muted);
    line-height: 1.75;
}

.link-more {
    min-width: max-content;
    color: var(--rose);
    font-weight: 900;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 50px rgba(190, 18, 60, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 63, 94, 0.32);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4.1;
    background: linear-gradient(135deg, #ffe4e6, #fed7aa);
}

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

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

.card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    font-size: 0.76rem;
    font-weight: 900;
}

.card-rating {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.3rem 0.58rem;
    border-radius: 999px;
    color: #78350f;
    background: rgba(254, 243, 199, 0.94);
    font-weight: 950;
}

.movie-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.95rem;
    flex: 1;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.movie-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 950;
    color: #111827;
    line-height: 1.35;
}

.movie-title a:hover {
    color: var(--rose);
}

.movie-summary {
    margin: 0;
    color: #6b7280;
    line-height: 1.65;
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    color: #be123c;
    background: #fff1f2;
    font-size: 0.76rem;
    font-weight: 800;
}

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

.category-card {
    display: flex;
    flex-direction: column;
    min-height: 12rem;
    padding: 1.2rem;
    border-radius: 1.4rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

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

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.category-card span {
    margin-top: auto;
    font-weight: 900;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
    color: var(--muted);
    font-weight: 700;
}

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

.page-hero {
    overflow: hidden;
    border-radius: 2rem;
    padding: clamp(1.4rem, 4vw, 2.6rem);
    color: #ffffff;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.22), transparent 18rem),
        linear-gradient(135deg, #881337, #db2777 48%, #f97316);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 820px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.85;
}

.filter-box,
.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 190px auto;
    gap: 0.75rem;
    margin: 1.4rem 0 1.7rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 34px rgba(190, 18, 60, 0.08);
}

.filter-box input,
.filter-box select,
.search-panel input,
.search-panel select {
    min-height: 2.85rem;
    padding: 0 0.95rem;
    border: 1px solid #fecdd3;
    border-radius: 0.95rem;
    color: #111827;
    background: #ffffff;
    outline: none;
}

.filter-box input:focus,
.filter-box select:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.10);
}

.rank-list {
    display: grid;
    gap: 0.85rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 4.2rem 5rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 36px rgba(190, 18, 60, 0.08);
}

.rank-no {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    font-size: 1.1rem;
    font-weight: 950;
}

.rank-thumb {
    overflow: hidden;
    width: 5rem;
    aspect-ratio: 3 / 4;
    border-radius: 0.85rem;
}

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

.rank-info h2,
.rank-info h3 {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    font-weight: 950;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.rank-score {
    color: #b45309;
    font-weight: 950;
}

.detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 1.4rem;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.6rem;
    background: #0f172a;
    box-shadow: 0 26px 90px rgba(15, 23, 42, 0.26);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(244, 63, 94, 0.38), transparent 16rem),
        rgba(2, 6, 23, 0.42);
    z-index: 3;
}

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

.play-circle {
    width: clamp(4rem, 9vw, 6.2rem);
    height: clamp(4rem, 9vw, 6.2rem);
    display: grid;
    place-items: center;
    padding-left: 0.25rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 24px 70px rgba(244, 63, 94, 0.42);
    font-size: clamp(1.8rem, 4vw, 2.55rem);
}

.detail-card {
    border: 1px solid var(--line);
    border-radius: 1.6rem;
    padding: 1.15rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 55px rgba(190, 18, 60, 0.08);
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.2rem;
    aspect-ratio: 3 / 4;
    margin-bottom: 1rem;
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-card h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.15;
    font-weight: 950;
    color: #111827;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.85rem 0;
}

.detail-meta span {
    padding: 0.35rem 0.62rem;
    border-radius: 999px;
    color: #be123c;
    background: #fff1f2;
    font-weight: 800;
    font-size: 0.82rem;
}

.content-box {
    margin-top: 1.4rem;
    padding: clamp(1.2rem, 3vw, 1.8rem);
    border: 1px solid var(--line);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 50px rgba(190, 18, 60, 0.08);
}

.content-box h2 {
    margin: 0 0 0.8rem;
    color: #111827;
    font-size: 1.45rem;
    font-weight: 950;
}

.content-box p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
}

.content-box p + p {
    margin-top: 0.9rem;
}

.empty-state {
    display: none;
    padding: 2.2rem;
    text-align: center;
    border: 1px dashed #fecdd3;
    border-radius: 1.25rem;
    color: var(--muted);
    background: #fff7f9;
}

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

.site-footer {
    margin-top: 3rem;
    color: #ffe4e6;
    background: linear-gradient(135deg, #881337, #9f1239 45%, #7c2d12);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 1.4rem;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 0.8rem;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 950;
}

.footer-inner p,
.footer-inner a {
    color: #ffe4e6;
    line-height: 1.75;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 1rem 1.25rem;
    text-align: center;
    color: #fecdd3;
}

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

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

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

    .hero-content,
    .detail-top {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 420px;
    }
}

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

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

    .header-inner {
        padding: 0.75rem 1rem;
    }

    .hero,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        padding-top: 4.5rem;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .rank-row {
        grid-template-columns: 3rem 4rem minmax(0, 1fr);
    }

    .rank-row .btn-primary {
        grid-column: 1 / -1;
    }

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

@media (max-width: 480px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

    .hero-search {
        border-radius: 1.1rem;
        flex-direction: column;
    }

    .hero-search button {
        width: 100%;
    }
}

.mobile-menu .header-search {
    display: flex;
    width: 100%;
    min-width: 0;
}

.mobile-menu .header-search input {
    min-width: 0;
}
