:root {
    --pink-50: #fff1f6;
    --pink-100: #ffe4ef;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --text-900: #1f2937;
    --text-700: #374151;
    --text-500: #6b7280;
    --line: #fbcfe8;
    --card: #ffffff;
    --shadow: 0 18px 50px rgba(190, 24, 93, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-900);
    background: linear-gradient(180deg, #ffffff 0%, #fff1f6 42%, #ffffff 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(251, 207, 232, 0.7);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--pink-600);
}

.site-logo::before,
.footer-logo::before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 10px 26px rgba(236, 72, 153, 0.35);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a {
    white-space: nowrap;
    color: var(--text-700);
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
    color: var(--pink-600);
    background: var(--pink-50);
}

.nav-search {
    position: relative;
    width: 230px;
}

.nav-search input,
.page-filter {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    background: #fff;
    color: var(--text-700);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input:focus,
.page-filter:focus {
    border-color: var(--pink-500);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.search-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(380px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    max-height: 460px;
    overflow: auto;
}

.search-panel.is-open {
    display: grid;
    gap: 8px;
}

.search-result {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.search-result:hover {
    background: var(--pink-50);
}

.search-result img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--pink-100);
}

.search-result strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    color: var(--text-900);
}

.search-result span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-500);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--pink-50);
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--pink-600);
    border-radius: 999px;
}

.hero-section {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 32px auto 0;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #fff1f6, #ffe4ef);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 42px;
    padding: 58px;
    opacity: 0;
    transform: translateX(36px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-label,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--pink-600);
    background: rgba(255, 228, 239, 0.92);
    border: 1px solid rgba(251, 207, 232, 0.9);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    font-size: 14px;
}

.hero-content h1 {
    margin: 24px 0 16px;
    max-width: 720px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-one-line {
    max-width: 760px;
    color: var(--text-700);
    font-size: clamp(18px, 2.4vw, 26px);
    line-height: 1.55;
    margin: 0 0 14px;
}

.hero-summary {
    max-width: 740px;
    color: var(--text-500);
    font-size: 16px;
    line-height: 1.85;
}

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

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

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.28);
}

.ghost-btn {
    color: var(--pink-600);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-poster {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 80px rgba(157, 23, 77, 0.28);
    transform: rotate(2deg);
}

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

.hero-poster span {
    display: block;
    padding: 16px;
    text-align: center;
    font-weight: 900;
    color: var(--pink-600);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 58px;
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(219, 39, 119, 0.24);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--pink-600);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(44px);
    opacity: 0.5;
    z-index: 1;
}

.glow-one {
    width: 170px;
    height: 170px;
    left: 40px;
    top: 40px;
    background: #f9a8d4;
}

.glow-two {
    width: 240px;
    height: 240px;
    right: 50px;
    bottom: 30px;
    background: #fda4af;
}

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

.soft-panel {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(90deg, rgba(255, 228, 239, 0.72), rgba(255, 241, 246, 0.4));
}

.section-heading {
    text-align: center;
    margin: 0 auto 34px;
    max-width: 760px;
}

.section-heading h2,
.page-hero h1,
.category-overview-head h2,
.story-card h2 {
    margin: 14px 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.category-overview-head p {
    color: var(--text-500);
    line-height: 1.85;
    margin: 0;
}

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

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

.category-tile,
.category-overview-card,
.story-card,
.player-info-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(190, 24, 93, 0.08);
}

.category-tile {
    display: block;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: #f9a8d4;
    box-shadow: var(--shadow);
}

.category-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    margin-bottom: 14px;
}

.category-tile h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.category-tile p {
    margin: 0;
    color: var(--text-500);
    line-height: 1.7;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.sticky-toolbar {
    position: sticky;
    top: 88px;
    z-index: 20;
    backdrop-filter: blur(14px);
}

.page-filter {
    max-width: 340px;
}

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

.filter-chips button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text-700);
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 800;
}

.filter-chips button.is-active,
.filter-chips button:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
}

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

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

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

.movie-card {
    min-width: 0;
}

.movie-card.is-hidden {
    display: none;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(251, 207, 232, 0.78);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(157, 23, 77, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card-link:hover {
    transform: translateY(-8px);
    border-color: #f9a8d4;
    box-shadow: 0 22px 52px rgba(157, 23, 77, 0.18);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--pink-100);
}

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

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

.type-badge,
.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    border-radius: 999px;
    padding: 5px 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.type-badge {
    left: 10px;
    background: var(--pink-600);
}

.year-badge {
    right: 10px;
    background: rgba(31, 41, 55, 0.72);
}

.rank-badge {
    left: 10px;
    top: auto;
    bottom: 10px;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

.poster-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
    opacity: 0;
    transition: opacity 0.24s ease;
}

.movie-card-link:hover .poster-mask {
    opacity: 1;
}

.play-dot,
.big-play {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: #fff;
    background: var(--pink-600);
    box-shadow: 0 14px 34px rgba(219, 39, 119, 0.38);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-meta,
.movie-desc,
.movie-tags {
    margin: 0;
    color: var(--text-500);
    font-size: 13px;
    line-height: 1.55;
}

.movie-desc {
    display: -webkit-box;
    margin-top: 8px;
    min-height: 40px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-tags {
    margin-top: 10px;
    color: var(--pink-600);
    font-weight: 800;
}

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

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    padding: 64px;
    border-radius: 32px;
    background: radial-gradient(circle at top right, rgba(244, 63, 94, 0.2), transparent 32%), linear-gradient(135deg, #fff1f6, #ffffff);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    max-width: 780px;
}

.page-hero p {
    max-width: 820px;
    font-size: 18px;
}

.category-overview-list {
    display: grid;
    gap: 28px;
}

.category-overview-card {
    padding: 28px;
}

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

.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--pink-600);
    font-weight: 800;
}

.detail-main {
    padding-bottom: 40px;
}

.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #111827;
    object-fit: contain;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.72));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

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

.big-play {
    width: 82px;
    height: 82px;
    font-size: 34px;
}

.player-info-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    padding: 20px;
    align-content: start;
}

.player-info-card img {
    width: 120px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
}

.player-info-card h1 {
    margin: 14px 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.player-info-card p {
    color: var(--text-500);
    line-height: 1.75;
}

.detail-badges,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-badges span,
.tag-list span {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--pink-600);
    background: var(--pink-50);
    border: 1px solid var(--line);
    font-weight: 800;
    font-size: 13px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.story-card {
    padding: 28px;
}

.story-card h2 {
    font-size: 28px;
}

.story-card p {
    color: var(--text-700);
    line-height: 2;
    margin: 0;
}

.tag-card {
    grid-column: 1 / -1;
}

.site-footer {
    margin-top: 42px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p {
    max-width: 520px;
    color: var(--text-500);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 14px;
    color: var(--pink-600);
    font-weight: 800;
}

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

    .player-section {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        grid-template-columns: 1fr 250px;
        padding: 42px;
    }
}

@media (max-width: 840px) {
    .nav-shell {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 20px;
        padding: 10px;
    }

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

    .nav-search {
        order: 4;
        width: 100%;
    }

    .hero-section {
        min-height: 760px;
        border-radius: 26px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: start;
        gap: 24px;
        padding: 34px 24px 72px;
    }

    .hero-poster {
        max-width: 220px;
        justify-self: center;
    }

    .hero-dots {
        left: 24px;
        bottom: 24px;
    }

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

    .toolbar,
    .category-overview-head,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .page-filter {
        max-width: none;
    }

    .page-hero {
        padding: 34px 24px;
    }

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

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

    .hero-section,
    .section-block,
    .page-hero,
    .player-section,
    .breadcrumb,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .player-info-card {
        grid-template-columns: 1fr;
    }

    .player-info-card img {
        width: 160px;
    }
}
