:root {
    --candy-pink: #ffb3d9;
    --candy-rose: #ff8dc7;
    --candy-orange: #ffb347;
    --candy-yellow: #ffe66d;
    --candy-mint: #a8e6ce;
    --candy-blue: #87ceeb;
    --ink: #1f2937;
    --muted: #6b7280;
    --paper: rgba(255, 255, 255, 0.86);
    --line: rgba(255, 141, 199, 0.2);
    --shadow: 0 20px 60px rgba(255, 179, 217, 0.24);
}

body {
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 8%, rgba(255, 179, 217, 0.36), transparent 30rem),
        radial-gradient(circle at 85% 16%, rgba(168, 230, 206, 0.36), transparent 28rem),
        linear-gradient(135deg, #fff5f8 0%, #ffffff 46%, #ffe5ec 100%);
}

img {
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
    gap: 1rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-icon {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--candy-rose), var(--candy-yellow), var(--candy-mint));
    box-shadow: 0 12px 30px rgba(255, 141, 199, 0.35);
}

.brand-text {
    font-size: 1.55rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link,
.mobile-link {
    border-radius: 999px;
    padding: 0.62rem 1rem;
    color: #4b5563;
    font-weight: 700;
    transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: white;
    background: linear-gradient(135deg, var(--candy-rose), var(--candy-orange), var(--candy-yellow));
    box-shadow: 0 12px 32px rgba(255, 141, 199, 0.28);
}

.header-search,
.mobile-search,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-panel select {
    width: 100%;
    border: 2px solid rgba(255, 179, 217, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-panel select:focus {
    border-color: var(--candy-rose);
    box-shadow: 0 0 0 4px rgba(255, 179, 217, 0.18);
}

.header-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--candy-rose), var(--candy-orange));
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 1.25rem;
    height: 2px;
    margin: 0.28rem auto;
    border-radius: 99px;
    background: var(--candy-rose);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
}

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

.mobile-panel-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) blur(1px);
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 245, 248, 0.98) 0%, rgba(255, 245, 248, 0.8) 42%, rgba(255, 229, 236, 0.26) 100%),
        linear-gradient(0deg, rgba(255, 245, 248, 0.98) 0%, transparent 38%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 680px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    align-items: center;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.hero-copy {
    max-width: 760px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--shadow);
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    color: #be185d;
    font-size: 0.85rem;
    font-weight: 900;
    background: rgba(255, 179, 217, 0.22);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0.9rem 0 1rem;
    font-size: clamp(2.4rem, 7vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.08em;
    background-image: linear-gradient(135deg, #ff8dc7, #ffb347, #18b97f, #259bc7);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-copy p,
.page-hero p,
.detail-one-line,
.detail-block p,
.category-tile p,
.category-overview p,
.site-footer p {
    color: #4b5563;
    line-height: 1.85;
}

.hero-tags,
.movie-tags,
.detail-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tags span,
.movie-tags span,
.detail-meta span,
.movie-meta span {
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    color: #6b2355;
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 179, 217, 0.24);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.6rem;
}

.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 141, 199, 0.3);
    padding: 0.75rem 1.15rem;
    color: #be185d;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.62);
    transition: all 0.25s ease;
}

.ghost-button:hover,
.text-link:hover {
    color: white;
    background: linear-gradient(135deg, var(--candy-rose), var(--candy-orange));
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 0.8rem solid rgba(255, 255, 255, 0.76);
    border-radius: 2.1rem;
    aspect-ratio: 3 / 4.25;
    box-shadow: 0 30px 70px rgba(190, 24, 93, 0.26);
}

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

.hero-poster span {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    width: 3.3rem;
    height: 3.3rem;
    place-items: center;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--candy-rose), var(--candy-orange));
}

.hero-controls {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 2rem;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border-radius: 999px;
    color: #be185d;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
}

.hero-dots {
    display: flex;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
}

.hero-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(190, 24, 93, 0.22);
}

.hero-dot.is-active {
    width: 2rem;
    background: linear-gradient(135deg, var(--candy-rose), var(--candy-orange));
}

.page-main {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.page-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

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

.section-heading h2,
.detail-block h2,
.site-footer h2,
.category-overview h2 {
    margin: 0.45rem 0 0;
    color: #1f2937;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    font-weight: 950;
    letter-spacing: -0.05em;
}

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

.category-tile {
    display: grid;
    min-height: 13rem;
    align-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 1.5rem;
    padding: 1.35rem;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-0.35rem);
    box-shadow: 0 25px 70px rgba(255, 141, 199, 0.34);
}

.category-tile strong {
    font-size: 1.35rem;
    font-weight: 950;
}

.tile-links {
    display: grid;
    gap: 0.28rem;
    min-height: 3.5rem;
}

.tile-links a {
    color: #be185d;
    font-size: 0.88rem;
    font-weight: 700;
}

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

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

.movie-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.62);
}

.movie-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.32), rgba(168, 230, 206, 0.26));
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.46), transparent 52%);
}

.rating-pill {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border-radius: 999px;
    padding: 0.28rem 0.58rem;
    color: white;
    font-weight: 950;
    background: linear-gradient(135deg, var(--candy-rose), var(--candy-orange));
}

.play-mark {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    color: white;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.movie-info {
    display: flex;
    min-height: 13rem;
    flex: 1;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
}

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

.movie-title a:hover {
    color: #be185d;
}

.movie-desc {
    display: -webkit-box;
    min-height: 3.3rem;
    margin: 0;
    overflow: hidden;
    color: #6b7280;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    margin-top: auto;
}

.movie-tags span {
    color: #9d174d;
    background: rgba(255, 179, 217, 0.17);
}

.ranking-band {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    background: linear-gradient(90deg, rgba(255, 179, 217, 0.14), rgba(255, 230, 109, 0.15), rgba(168, 230, 206, 0.16));
}

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

.compact-grid.mini {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-card {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 1.2rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.78);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow);
}

.compact-card img {
    width: 5rem;
    height: 6.7rem;
    border-radius: 0.9rem;
    object-fit: cover;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 950;
}

.compact-card em {
    margin-top: 0.35rem;
    color: #6b7280;
    font-size: 0.86rem;
    font-style: normal;
    line-height: 1.5;
}

.page-hero,
.detail-shell,
.filter-panel,
.detail-block,
.category-overview {
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 1.8rem;
    padding: clamp(1.25rem, 3vw, 2.3rem);
    box-shadow: var(--shadow);
}

.page-hero {
    margin-bottom: 1.8rem;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.94rem;
}

.breadcrumb a {
    color: #be185d;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-panel label {
    display: grid;
    gap: 0.4rem;
    color: #4b5563;
    font-weight: 900;
}

.empty-state {
    display: none;
    margin-top: 1.5rem;
    border-radius: 1.25rem;
    padding: 1.2rem;
    text-align: center;
    color: #9d174d;
    background: rgba(255, 179, 217, 0.17);
}

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

.category-overview-list {
    display: grid;
    gap: 1.2rem;
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.ranking-section {
    margin-top: 2rem;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 3.5rem 4rem minmax(0, 1fr) 4rem;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 1.2rem;
    padding: 0.7rem 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow);
}

.rank-no {
    color: #be185d;
    font-size: 1.4rem;
    font-weight: 950;
}

.rank-row img {
    width: 4rem;
    height: 5.4rem;
    border-radius: 0.8rem;
    object-fit: cover;
}

.rank-main strong,
.rank-main em {
    display: block;
}

.rank-main strong {
    font-weight: 950;
}

.rank-main em {
    margin-top: 0.35rem;
    color: #6b7280;
    font-style: normal;
}

.rank-score {
    color: #be185d;
    font-size: 1.25rem;
    font-weight: 950;
    text-align: right;
}

.search-page-form {
    margin-top: 1.4rem;
}

.search-page-form input {
    max-width: 620px;
    border-radius: 1.1rem;
    padding: 1rem 1.15rem;
}

.search-status {
    margin: 0 0 1rem;
    color: #6b7280;
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.6rem;
    aspect-ratio: 2 / 3;
}

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

.detail-copy h1 {
    font-size: clamp(2.4rem, 6vw, 5rem);
}

.detail-meta {
    margin: 1rem 0;
}

.detail-tags {
    margin-bottom: 1.3rem;
}

.player-section {
    margin-top: 1.8rem;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 1.8rem;
    background: #111827;
    box-shadow: 0 25px 80px rgba(17, 24, 39, 0.26);
    aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover,
.player-cover img,
.player-cover-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    background: #111827;
}

.player-cover {
    z-index: 5;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #111827;
}

.player-cover.is-hidden {
    display: none;
}

.player-cover img {
    object-fit: cover;
    opacity: 0.82;
}

.player-cover-shade {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.14), rgba(17, 24, 39, 0.66));
}

.player-start {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: clamp(4rem, 9vw, 6.5rem);
    height: clamp(4rem, 9vw, 6.5rem);
    place-items: center;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--candy-rose), var(--candy-orange), var(--candy-yellow));
    box-shadow: 0 24px 60px rgba(255, 141, 199, 0.42);
    transform: translate(-50%, -50%);
}

.detail-block {
    margin-top: 1.8rem;
}

.related-grid {
    margin-top: 1rem;
}

.site-footer {
    margin-top: 3rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.52);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand {
    margin-bottom: 0.75rem;
    font-size: 1.65rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.footer-links a {
    color: #be185d;
    font-weight: 800;
}

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

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

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

    .menu-toggle {
        display: block;
    }

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

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

    .hero-poster {
        max-width: 320px;
        margin: 0 auto;
    }

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

@media (max-width: 720px) {
    .section-heading,
    .category-overview-head {
        align-items: stretch;
        flex-direction: column;
    }

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

    .compact-card {
        grid-template-columns: 4.2rem minmax(0, 1fr);
    }

    .compact-card img {
        width: 4.2rem;
        height: 5.8rem;
    }

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

    .rank-row img {
        width: 3.4rem;
        height: 4.8rem;
    }

    .rank-score {
        display: none;
    }
}

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

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

    .hero-poster {
        display: none;
    }

    .hero-copy {
        padding: 1.2rem;
    }

    .movie-info {
        min-height: auto;
    }
}
