:root {
    --page-bg: #fff7fb;
    --surface: #ffffff;
    --surface-soft: #fff1f7;
    --text: #1f2937;
    --muted: #6b7280;
    --muted-strong: #4b5563;
    --line: rgba(236, 72, 153, 0.16);
    --pink: #ec4899;
    --pink-dark: #db2777;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --shadow: 0 18px 48px rgba(31, 41, 55, 0.12);
    --shadow-soft: 0 12px 30px rgba(236, 72, 153, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 32rem),
        var(--page-bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(31, 41, 55, 0.08);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.62rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(120deg, var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #f472b6, #fb923c);
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.25);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #374151;
    font-size: 0.96rem;
    font-weight: 650;
}

.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-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff1f7;
    padding: 10px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #374151;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 10px 0 18px;
    border-top: 1px solid var(--line);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 650;
}

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

main {
    min-height: 70vh;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-copy {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    color: #ffffff;
    padding: 92px 0 118px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffe4f1;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.86rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 820px;
    margin: 22px 0 18px;
    font-size: clamp(2.55rem, 7vw, 5.7rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
    font-weight: 900;
}

.hero-copy p {
    max-width: 690px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 2vw, 1.28rem);
}

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

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

.hero-tags span,
.tag-row span,
.detail-tag-row span,
.filter-chip {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

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

.primary-button,
.ghost-button,
.section-link,
.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.play-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.28);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.play-button:hover {
    transform: translateY(-2px);
}

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

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

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

.content-section,
.search-panel,
.sub-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto;
}

.search-panel,
.sub-hero {
    border-radius: var(--radius);
    padding: clamp(26px, 4vw, 46px);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.76);
}

.sub-hero {
    margin-top: 36px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(236, 72, 153, 0.92), rgba(249, 115, 22, 0.86)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 26rem);
}

.sub-hero.compact {
    padding: clamp(24px, 4vw, 40px);
}

.sub-hero h1 {
    margin: 16px 0 10px;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.sub-hero p,
.search-panel p,
.section-heading p {
    color: var(--muted);
    margin: 8px 0 0;
}

.sub-hero p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 760px;
}

.search-panel h2 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.search-panel.slim {
    margin-top: 24px;
}

.search-box {
    margin-top: 20px;
}

.search-box input {
    width: 100%;
    height: 56px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 22px;
    outline: none;
    color: var(--text);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.06);
}

.search-box input:focus {
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.11);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.06;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.section-link {
    color: var(--pink-dark);
    background: #fff1f7;
    white-space: nowrap;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.play-mark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.movie-card-body {
    padding: 16px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--pink-dark);
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

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

.movie-card p {
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row span,
.detail-tag-row span,
.filter-chip {
    color: #be185d;
    background: #fce7f3;
}

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

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

.category-card {
    display: block;
    min-height: 150px;
    padding: 22px;
    border-radius: 22px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(236, 72, 153, 0.92), rgba(249, 115, 22, 0.88)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 16rem);
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card.large {
    min-height: 180px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(236, 72, 153, 0.25);
}

.category-card span {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.filter-chip {
    border: 0;
}

.filter-chip.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: auto 74px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 98px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(31, 41, 55, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.rank-no {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-weight: 900;
}

.rank-item img {
    width: 74px;
    height: 74px;
    border-radius: 16px;
    object-fit: cover;
}

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

.rank-info strong {
    font-size: 1rem;
    line-height: 1.25;
}

.rank-info em {
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 0.86rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 42px;
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 34px;
    align-items: stretch;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #ffe4f1, #fff7ed);
}

.detail-cover img {
    height: 100%;
    min-height: 510px;
    object-fit: cover;
}

.detail-info {
    padding: clamp(28px, 4vw, 48px);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
    font-weight: 900;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #be185d;
    background: #fce7f3;
    font-size: 0.86rem;
    font-weight: 800;
}

.detail-info p {
    color: var(--muted-strong);
    font-size: 1.05rem;
}

.detail-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.movie-player {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--shadow);
}

.movie-player video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.54), rgba(236, 72, 153, 0.18));
    opacity: 1;
    transition: opacity 0.2s ease;
}

.movie-player.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    border: 0;
    min-height: 58px;
    padding: 0 28px;
    font-size: 1rem;
}

.text-panel {
    padding: clamp(24px, 4vw, 34px);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(31, 41, 55, 0.06);
}

.text-panel h2 {
    margin: 0 0 12px;
    font-size: 1.55rem;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.text-panel p {
    margin: 0;
    color: var(--muted-strong);
}

.text-panel p + p {
    margin-top: 14px;
}

.site-footer {
    margin-top: 64px;
    color: #ffffff;
    background: linear-gradient(135deg, #1f2937, #111827);
}

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

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.footer-grid p,
.footer-grid a {
    color: rgba(255, 255, 255, 0.68);
}

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

.footer-grid li + li {
    margin-top: 8px;
}

.footer-grid a:hover {
    color: #f9a8d4;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.58);
}

.is-hidden-card {
    display: none !important;
}

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

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

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

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

    .detail-cover img {
        min-height: 0;
        max-height: 620px;
    }

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

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

    .mobile-menu-button {
        display: block;
    }

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

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

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

    .rank-item {
        grid-template-columns: auto 64px 1fr;
    }

    .rank-item img {
        width: 64px;
        height: 64px;
    }
}

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

    .site-logo {
        font-size: 1.32rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .hero-copy {
        padding: 82px 0 96px;
    }

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

    .detail-info,
    .search-panel,
    .sub-hero {
        border-radius: 20px;
    }

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