:root {
    --site-pink: #ec4899;
    --site-purple: #a855f7;
    --site-orange: #fb923c;
    --site-blue: #60a5fa;
    --ink: #243042;
    --muted: #667085;
    --panel: rgba(255, 255, 255, 0.92);
    --line: rgba(236, 72, 153, 0.15);
    --shadow: 0 20px 45px rgba(42, 36, 64, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    background: linear-gradient(135deg, #fff4e6, #ffe8e0, #f8e8ee);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 32px rgba(149, 67, 116, 0.08);
}

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

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.03em;
}

.site-logo::before {
    content: "";
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--site-pink), var(--site-purple));
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.32);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    color: #4b5563;
}

.nav-links a {
    padding: 9px 13px;
    border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--site-pink);
    background: rgba(236, 72, 153, 0.09);
}

.nav-divider {
    width: 1px;
    height: 22px;
    background: rgba(236, 72, 153, 0.18);
}

.menu-toggle {
    display: none;
    border: 0;
    background: #fff;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    font-size: 22px;
}

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

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

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: saturate(1.06);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.58) 48%, rgba(17, 24, 39, 0.12) 100%), linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    align-items: center;
    gap: 42px;
    color: #fff;
}

.hero-copy {
    animation: fadeIn 700ms ease both;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    margin: 0 0 18px;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 700px;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 24px;
}

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

.btn-primary,
.btn-ghost,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--site-pink), var(--site-purple));
    box-shadow: 0 16px 34px rgba(236, 72, 153, 0.34);
}

.btn-light {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.92);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.hero-poster {
    display: block;
    width: min(360px, 100%);
    justify-self: center;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 30px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.hero-arrows {
    display: flex;
    gap: 12px;
    pointer-events: auto;
}

.hero-arrow {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    font-size: 24px;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

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

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

.section-block {
    margin: 0 auto 56px;
}

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

.section-heading h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
    color: #1f2937;
}

.section-heading p,
.page-title p {
    max-width: 700px;
    color: var(--muted);
    margin-top: 10px;
}

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

.movie-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 35px rgba(71, 45, 95, 0.08);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #111827;
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 520ms ease;
}

.movie-card:hover .movie-cover img,
.compact-card:hover img {
    transform: scale(1.08);
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.02));
    opacity: 0;
    transition: opacity 260ms ease;
}

.movie-card:hover .cover-shade {
    opacity: 1;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--site-pink);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: scale(0.88);
    transition: all 260ms ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: scale(1);
}

.movie-info {
    padding: 18px;
}

.movie-info h3 {
    margin: 6px 0 8px;
    font-size: 18px;
    color: #1f2937;
}

.movie-info p {
    min-height: 44px;
    margin: 0 0 14px;
    color: #667085;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--site-pink);
    font-size: 13px;
    font-weight: 800;
}

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

.tag-row span,
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #7e3a64;
    background: rgba(236, 72, 153, 0.1);
}

.horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 310px);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 16px;
}

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

.category-tile {
    padding: 22px;
    border-radius: 24px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #1f2937;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(250, 245, 255, 0.82));
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.68);
}

.category-tile strong {
    font-size: 24px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 46px 82px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(71, 45, 95, 0.06);
}

.rank-num {
    font-size: 22px;
    font-weight: 900;
    color: var(--site-pink);
    text-align: center;
}

.rank-item img {
    width: 82px;
    height: 58px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-item strong,
.compact-card strong {
    display: block;
    color: #1f2937;
}

.rank-item span,
.compact-card em {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    margin-top: 4px;
}

.page-main {
    padding: 46px 0 64px;
}

.page-title {
    margin-bottom: 28px;
    padding: 34px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    color: #1f2937;
    box-shadow: 0 8px 18px rgba(71, 45, 95, 0.05);
}

.filter-bar input {
    flex: 1 1 260px;
}

.filter-empty {
    display: none;
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--muted);
}

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

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

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

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

.player-stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
    z-index: 1;
}

.player-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.1), rgba(0, 0, 0, 0.32));
    cursor: pointer;
}

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

.player-button {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--site-pink);
    font-size: 34px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.detail-card {
    padding: 26px;
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 48px);
    letter-spacing: -0.04em;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(236, 72, 153, 0.14);
}

.detail-body h2 {
    margin: 24px 0 10px;
    font-size: 22px;
}

.detail-body p {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.9;
}

.side-card {
    padding: 20px;
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.compact-card img {
    width: 104px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 320ms ease;
}

.site-footer {
    margin-top: 40px;
    padding: 30px 0;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(255, 255, 255, 0.72);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-inner strong {
    color: #1f2937;
}

@media (max-width: 980px) {
    .hero-content,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

@media (max-width: 760px) {
    .header-inner {
        height: 64px;
    }

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

    .nav-links {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

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

    .nav-divider {
        display: none;
    }

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

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

    .hero p {
        font-size: 16px;
    }

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

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

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

    .page-title {
        padding: 24px;
    }
}
