:root {
    --strawberry-50: #fff1f3;
    --strawberry-100: #ffe4e9;
    --strawberry-300: #ffa3b5;
    --strawberry-400: #ff6b8e;
    --strawberry-500: #ff3366;
    --strawberry-600: #ed1659;
    --candy-400: #ff6bc4;
    --gummy-400: #facc15;
    --jelly-400: #2dd4bf;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft-shadow: 0 2px 15px -3px rgba(255, 51, 102, 0.30), 0 10px 20px -2px rgba(255, 51, 102, 0.15);
    --float-shadow: 0 20px 60px -15px rgba(255, 51, 102, 0.40);
    --gummy-shadow: 0 8px 30px rgba(255, 51, 102, 0.25), inset 0 2px 10px rgba(255, 255, 255, 0.50);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    background: linear-gradient(135deg, #fff1f3 0%, #fef1f9 48%, #fef2f2 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.60);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 34px rgba(255, 51, 102, 0.10);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff6b8e, #ff33aa, #ffa3dd);
    box-shadow: var(--gummy-shadow);
    transition: transform 0.35s ease;
}

.logo:hover .logo-mark {
    animation: jelly 0.55s ease-in-out;
}

.logo-text {
    background: linear-gradient(135deg, #ff6b8e, #ff33aa, #ffa3dd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--strawberry-500);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    color: #374151;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.70);
    box-shadow: var(--soft-shadow);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 0 18px;
}

.mobile-nav a {
    display: block;
    padding: 12px 4px;
    color: #374151;
    font-weight: 700;
    border-top: 1px solid rgba(255, 107, 142, 0.16);
}

.site-main {
    flex: 1;
}

.main-visual {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #ff3366 0%, #ff6b8e 45%, #ffa3dd 100%);
}

.main-visual::before,
.main-visual::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    filter: blur(1px);
    animation: float 7s ease-in-out infinite;
}

.main-visual::before {
    width: 260px;
    height: 260px;
    top: 84px;
    right: 9%;
}

.main-visual::after {
    width: 160px;
    height: 160px;
    left: 8%;
    bottom: 96px;
    animation-delay: -2s;
}

.visual-stage {
    position: relative;
    min-height: 640px;
}

.main-visual-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 46px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.main-visual-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.visual-copy {
    position: relative;
    z-index: 3;
    padding: 94px 0 130px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.visual-copy h1,
.visual-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.visual-title-sub {
    margin: 0 0 18px;
    font-size: clamp(26px, 3.5vw, 44px);
    line-height: 1.12;
    font-weight: 950;
}

.visual-copy p {
    max-width: 680px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
    line-height: 1.82;
}

.visual-meta,
.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--strawberry-600);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(255, 51, 102, 0.12);
}

.pill.soft {
    background: var(--strawberry-50);
    color: var(--strawberry-600);
}

.visual-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.gummy-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 24px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.gummy-button {
    color: #ffffff;
    background: linear-gradient(135deg, #ff3366, #ff6b8e, #ffa3b5);
    box-shadow: var(--soft-shadow);
}

.gummy-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--float-shadow);
}

.ghost-button {
    color: var(--strawberry-600);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--soft-shadow);
}

.ghost-button:hover {
    transform: translateY(-3px);
    background: #ffffff;
}

.visual-poster {
    position: relative;
    z-index: 3;
    align-self: center;
    min-height: 430px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 26px 80px rgba(82, 0, 32, 0.34);
    background: rgba(255, 255, 255, 0.18);
}

.visual-poster img {
    width: 100%;
    height: 510px;
    object-fit: cover;
    transform: scale(1.02);
}

.visual-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.02) 55%);
}

.visual-poster-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 2;
}

.visual-poster-caption strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
}

.visual-poster-caption span {
    color: rgba(255, 255, 255, 0.86);
}

.visual-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 72px;
    z-index: 8;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.visual-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.visual-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.lifted-panel {
    position: relative;
    z-index: 12;
    margin-top: -72px;
    margin-bottom: 72px;
}

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

.section {
    padding: 42px 0 52px;
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--strawberry-600);
    font-weight: 900;
}

.section-title {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.section-desc {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.gummy-card {
    overflow: hidden;
    border-radius: 32px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.movie-card-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--strawberry-100), #ffffff);
}

.movie-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .movie-card-thumb img {
    transform: scale(1.10);
}

.movie-card-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.02));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-card-layer {
    opacity: 1;
}

.round-play {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff3366, #ff6b8e, #ffa3b5);
    box-shadow: 0 16px 42px rgba(255, 51, 102, 0.36);
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.movie-card-title {
    margin: 0;
    color: #1f2937;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card:hover .movie-card-title {
    color: var(--strawberry-500);
}

.movie-card-summary {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.meta-text {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.feature-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    min-height: 210px;
    padding: 16px;
}

.feature-card .movie-card-thumb {
    aspect-ratio: 3 / 4;
    border-radius: 22px;
}

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

.category-card {
    position: relative;
    min-height: 188px;
    padding: 24px;
    overflow: hidden;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 138px;
    height: 138px;
    right: -34px;
    bottom: -42px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.16), rgba(255, 163, 221, 0.20));
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 950;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.75;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 86px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
}

.rank-num {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff3366, #ff6b8e, #ffa3b5);
    box-shadow: var(--soft-shadow);
    font-weight: 950;
}

.rank-thumb {
    width: 86px;
    height: 116px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--strawberry-100);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.filter-panel {
    margin-bottom: 26px;
    padding: 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px 180px;
    gap: 14px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 2px solid rgba(255, 107, 142, 0.26);
    border-radius: 22px;
    padding: 0 16px;
    color: #374151;
    background: #ffffff;
    outline: 0;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--strawberry-500);
    box-shadow: 0 0 0 4px rgba(255, 51, 102, 0.14);
}

.empty-state {
    display: none;
    margin: 28px 0;
    padding: 26px;
    text-align: center;
    color: var(--muted);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--strawberry-600);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    gap: 28px;
    align-items: start;
}

.watch-card {
    padding: 20px;
}

.watch-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    aspect-ratio: 16 / 9;
}

.watch-box video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111827;
}

.watch-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.25);
    transition: opacity 0.25s ease;
}

.watch-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.10));
}

.watch-cover img {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.82);
}

.watch-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.watch-play {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff3366, #ff6b8e, #ffa3b5);
    box-shadow: 0 18px 52px rgba(255, 51, 102, 0.48);
    font-size: 32px;
}

.detail-title {
    margin: 24px 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-lead {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
}

.detail-panel {
    padding: 26px;
}

.detail-panel h2,
.detail-panel h3 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 950;
}

.detail-panel p {
    margin: 0 0 16px;
    color: #4b5563;
    line-height: 1.95;
}

.side-poster {
    padding: 18px;
}

.side-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
    background: var(--strawberry-100);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

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

.related-grid .movie-card-title {
    font-size: 17px;
}

.footer {
    margin-top: 56px;
    padding: 48px 0 34px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.82), rgba(255, 241, 243, 0.95));
    border-top: 1px solid rgba(255, 107, 142, 0.16);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer h3 {
    margin: 0 0 14px;
    color: var(--strawberry-600);
    font-size: 18px;
    font-weight: 900;
}

.footer p,
.footer a {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.footer a:hover {
    color: var(--strawberry-500);
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 107, 142, 0.16);
    color: var(--muted);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.back-top {
    border: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes jelly {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(0.9, 1.1);
    }
    50% {
        transform: scale(1.1, 0.9);
    }
    75% {
        transform: scale(0.95, 1.05);
    }
}

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

    .detail-layout,
    .main-visual-slide {
        grid-template-columns: 1fr;
    }

    .visual-poster {
        display: none;
    }

    .visual-copy {
        padding-right: 0;
    }
}

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

    .mobile-menu-button {
        display: grid;
        place-items: center;
    }

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

    .main-visual,
    .visual-stage {
        min-height: 600px;
    }

    .visual-copy {
        padding: 70px 0 124px;
    }

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

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

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .header-inner {
        min-height: 68px;
    }

    .logo {
        font-size: 22px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
        border-radius: 16px;
    }

    .main-visual,
    .visual-stage {
        min-height: 620px;
    }

    .visual-copy h1,
    .visual-copy h2 {
        font-size: 42px;
    }

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

    .feature-card,
    .rank-item {
        grid-template-columns: 1fr;
    }

    .rank-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .footer-bottom,
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
