:root {
    --pink: #ec4899;
    --orange: #f97316;
    --yellow: #facc15;
    --blue: #2563eb;
    --purple: #7c3aed;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(236, 72, 153, 0.18);
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 80px rgba(236, 72, 153, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 28rem),
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.22), transparent 25rem),
        linear-gradient(135deg, #fff7fb 0%, #fff7ed 45%, #fefce8 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    object-fit: cover;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--pink), var(--orange), var(--yellow));
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.34);
}

.brand-name {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.mobile-toggle {
    display: none;
    padding: 9px 14px;
    color: var(--pink);
    font-weight: 800;
    border-radius: 999px;
    background: #fff1f8;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
}

.mobile-nav a:hover {
    background: #fff1f8;
}

.hero-slider {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 690px;
    filter: saturate(1.06) contrast(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.52), rgba(236, 72, 153, 0.18)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.78), transparent 50%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 690px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    padding: 120px 0 80px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    color: #be185d;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 999px;
    background: rgba(255, 241, 248, 0.92);
    border: 1px solid rgba(236, 72, 153, 0.18);
}

.hero-copy h1 {
    max-width: 780px;
    margin-top: 20px;
    font-size: clamp(2.8rem, 8vw, 6.4rem);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.06em;
    text-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
}

.hero-copy p {
    max-width: 680px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2.4vw, 1.28rem);
    line-height: 1.85;
}

.hero-tags,
.detail-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span {
    padding: 5px 10px;
    border-radius: 999px;
    color: #be185d;
    background: rgba(255, 241, 248, 0.92);
    font-size: 0.78rem;
    font-weight: 800;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    box-shadow: 0 18px 45px rgba(236, 72, 153, 0.36);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 2.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

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

.hero-dot.active {
    width: 34px;
    background: linear-gradient(90deg, var(--pink), var(--yellow));
}

.search-panel,
.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 28px;
    align-items: center;
    margin-top: 34px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.search-panel h2,
.section-heading h2,
.inner-hero h1,
.detail-intro h1,
.content-card h2 {
    font-weight: 950;
    letter-spacing: -0.035em;
}

.search-panel h2 {
    margin-top: 12px;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.search-panel p,
.inner-hero p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.85;
}

.quick-search,
.filter-panel.global {
    display: flex;
    gap: 12px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(236, 72, 153, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    outline: none;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.quick-search button,
.filter-years button {
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--orange));
}

.section-block {
    margin-top: 56px;
}

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

.section-heading h2 {
    margin-top: 10px;
    font-size: clamp(1.65rem, 3.4vw, 2.45rem);
}

.section-heading > a {
    color: var(--pink);
    font-weight: 900;
}

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

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
    transform: translateZ(0);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), rgba(236, 72, 153, 0.12));
}

.category-content {
    position: absolute;
    inset: auto 18px 18px 18px;
    color: #ffffff;
}

.category-content strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 950;
}

.category-content em {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    font-style: normal;
    line-height: 1.6;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(236, 72, 153, 0.16);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 50px rgba(236, 72, 153, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 80px rgba(236, 72, 153, 0.2);
}

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

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

.movie-poster img {
    width: 100%;
    height: 100%;
    transition: transform 0.28s ease;
}

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

.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.movie-info {
    padding: 17px;
}

.movie-tags {
    margin-bottom: 12px;
}

.movie-title {
    display: block;
    color: var(--ink);
    font-weight: 950;
    font-size: 1.06rem;
    line-height: 1.35;
}

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

.movie-info p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 0.91rem;
    line-height: 1.68;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: #6b7280;
    font-size: 0.83rem;
    font-weight: 800;
}

.movie-meta span,
.movie-meta a,
.detail-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff1f8;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.ranking-panel,
.content-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    padding: 24px;
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-row {
    display: grid;
    grid-template-columns: 30px 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 241, 248, 0.65);
}

.rank-row:hover {
    background: #fff1f8;
}

.rank-row > span {
    color: var(--pink);
    font-weight: 950;
    font-size: 1.15rem;
}

.rank-row img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
}

.rank-row strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 900;
}

.rank-row em {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.inner-hero {
    margin-top: 42px;
    padding: 56px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.9)),
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.22), transparent 22rem);
    box-shadow: var(--shadow);
}

.inner-hero h1 {
    margin-top: 14px;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.channel-hero {
    background:
        linear-gradient(135deg, rgba(255, 241, 248, 0.96), rgba(255, 247, 237, 0.94)),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 24rem);
}

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

.filter-panel.global {
    grid-template-columns: minmax(260px, 1fr) 210px 210px;
}

.filter-years {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-years button {
    min-height: 38px;
    padding: 0 16px;
    color: var(--pink);
    background: #fff1f8;
}

.filter-years button.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--orange));
}

.movie-card.hidden,
.ranking-card.hidden {
    display: none;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    border: 1px solid rgba(236, 72, 153, 0.16);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 52px rgba(236, 72, 153, 0.12);
}

.ranking-cover {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 3 / 4;
}

.ranking-cover img {
    width: 100%;
    height: 100%;
}

.ranking-cover span {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 950;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.ranking-info a {
    display: inline-block;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 950;
}

.ranking-info a:hover {
    color: var(--pink);
}

.ranking-info p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.8;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.65), rgba(236, 72, 153, 0.18)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent 60%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 56px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

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

.detail-intro {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: end;
    margin-top: 52px;
}

.detail-intro > img {
    width: 310px;
    aspect-ratio: 3 / 4.2;
    border-radius: 30px;
    box-shadow: 0 32px 95px rgba(0, 0, 0, 0.42);
}

.detail-intro h1 {
    margin-top: 18px;
    font-size: clamp(2.2rem, 5.8vw, 5.2rem);
    line-height: 1.02;
}

.detail-intro p {
    max-width: 820px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    line-height: 1.86;
}

.detail-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.detail-tags {
    margin: 22px 0;
}

.player-section {
    margin-top: -52px;
    position: relative;
    z-index: 3;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 30px 90px rgba(17, 24, 39, 0.28);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.22));
    pointer-events: auto;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    color: #ffffff;
    font-size: 2.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 24px 60px rgba(236, 72, 153, 0.34);
}

.play-overlay strong {
    font-size: 1.1rem;
    font-weight: 950;
}

.play-overlay.hidden {
    display: none;
}

.player-state {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: #ffffff;
    font-weight: 800;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    gap: 24px;
    margin-top: 44px;
}

.content-card h2 {
    font-size: 1.55rem;
}

.content-card p {
    margin-top: 14px;
    color: #4b5563;
    line-height: 2;
}

.accent-card {
    background: linear-gradient(135deg, rgba(255, 241, 248, 0.94), rgba(255, 247, 237, 0.92));
}

.site-footer {
    margin-top: 70px;
    padding: 42px 0 24px;
    border-top: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(252, 231, 243, 0.82), rgba(255, 237, 213, 0.82), rgba(254, 249, 195, 0.82));
}

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

.site-footer h2 {
    font-size: 1.15rem;
    font-weight: 950;
}

.site-footer p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.footer-links a {
    padding: 7px 11px;
    color: #be185d;
    font-size: 0.88rem;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 0;
    padding-top: 20px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid rgba(236, 72, 153, 0.18);
}

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

    .split-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        order: -1;
    }
}

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

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

    .hero-slider,
    .hero-slide img,
    .hero-copy {
        min-height: 620px;
    }

    .hero-copy {
        padding-top: 90px;
        align-items: center;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-control {
        display: none;
    }

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

    .quick-search {
        flex-direction: column;
    }

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

    .detail-intro {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .detail-intro > img {
        width: min(270px, 100%);
    }

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

@media (max-width: 560px) {
    .shell,
    .nav-wrap,
    .mobile-nav,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .hero-slider,
    .hero-slide img,
    .hero-copy {
        min-height: 580px;
    }

    .hero-copy h1 {
        font-size: 2.55rem;
    }

    .inner-hero,
    .search-panel,
    .filter-panel,
    .ranking-panel,
    .content-card {
        padding: 22px;
        border-radius: 24px;
    }

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

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

    .ranking-card {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .detail-hero-inner {
        padding-top: 32px;
    }

    .player-section {
        margin-top: -20px;
    }

    .play-overlay span {
        width: 68px;
        height: 68px;
        font-size: 1.9rem;
    }
}
