:root {
    color-scheme: dark;
    --app-height: 100vh;
    --ink: #fbf9f2;
    --muted: #cbc4dc;
    --hot: #ed1c55;
    --hot2: #ef4dc4;
    --green: #28f28a;
    --line: rgba(255,255,255,.12);
    --ease: cubic-bezier(.2,.8,.2,1)
}

* {
    box-sizing: border-box
}

html {
    height: 100%;
    background: #030305;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overscroll-behavior: none
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: var(--app-height,100vh);
    background: radial-gradient(circle at 8% 2%,rgba(237,28,85,.28),transparent 19rem),radial-gradient(circle at 92% 14%,rgba(170,64,255,.20),transparent 22rem),#030305;
    color: var(--ink);
    font-family: system-ui,-apple-system,BlinkMacSystemFont,"Noto Sans JP","Noto Sans CJK JP","Roboto","Segoe UI",sans-serif;
    overflow: hidden
}

a {
    color: inherit;
    text-decoration: none
}

button,a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation
}

img {
    display: block;
    max-width: 100%
}

.page-shell {
    width: min(100%,436px);
    height: 100vh;
    height: var(--app-height,100vh);
    margin-inline:auto;position: relative;
    background: #050508;
    box-shadow: 0 0 0 1px var(--line),0 24px 70px rgba(0,0,0,.55);
    overflow: hidden
}

.topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 12px 10px;
    background: linear-gradient(180deg,rgba(7,7,13,.92),rgba(7,7,13,.52) 68%,transparent)
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-right: auto;
    white-space: nowrap
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.18),0 8px 20px rgba(124,246,220,.20)
}

.brand-name {
    color: #7cf6dc;
    font-size: clamp(1rem,4.4vw,1.25rem);
    font-weight: 950;
    font-style: italic;
    letter-spacing: -.04em;
    text-shadow: 0 4px 18px rgba(124,246,220,.24)
}

.online {
    position: absolute;
    right: 112px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 35px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(20,18,31,.80);
    border: 1px solid rgba(255,255,255,.13);
    font-size: 12px;
    font-weight: 900;
    color: var(--green);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    white-space: nowrap
}

.lang-select {
    position: absolute;
    right: 12px;
    top: 14px;
    height: 35px;
    width: 92px;
    min-width: 72px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.20);
    background: rgba(18,17,25,.90);
    color: #fff;
    font: 900 12px/1 system-ui,Roboto,sans-serif;
    padding: 0 7px
}

.reel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    isolation: isolate
}

.reel:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: radial-gradient(circle at 16% 4%,rgba(237,28,85,.13),transparent 16rem),linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.08) 44%,rgba(0,0,0,.70) 80%,rgba(0,0,0,.96) 100%)
}

.reel-columns {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    padding: 70px 12px 224px;
    transform: translateZ(0)
}

.reel-column {
    overflow: hidden;
    position: relative;
    min-width: 0
}

.reel-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
    will-change: transform
}

.reel-track--left {
    animation: reel-up 28s linear infinite
}

.reel-track--right {
    animation: reel-up 31s linear infinite;
    transform: translateY(-92px)
}

.drama-card {
    position: relative;
    min-height: 254px;
    border-radius: 20px;
    overflow: hidden;
    background: #15131d;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.10),0 10px 24px rgba(0,0,0,.30);
    isolation: isolate
}

.drama-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.03)
}

.drama-card:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,rgba(0,0,0,.03),rgba(0,0,0,.18) 42%,rgba(0,0,0,.82) 100%)
}

.card-body {
    position: absolute;
    z-index: 2;
    left: 12px;
    right: 12px;
    bottom: 14px
}

.card-body h2 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.14;
    font-weight: 950;
    letter-spacing: -.04em;
    text-shadow: 0 2px 10px #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.card-body p {
    margin: 6px 0 0;
    color: #d8d1e6;
    font-size: 11px;
    font-weight: 800
}

.reel-fade {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 10;
    pointer-events: none
}

.reel-fade--top {
    top: 0;
    height: 88px;
    background: linear-gradient(180deg,#030305,transparent)
}

.reel-fade--bottom {
    bottom: 0;
    height: 280px;
    background: linear-gradient(180deg,transparent,#020203 76%)
}

.bottom-panel {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 40;
    width: min(100%,436px);
    transform: translateX(-50%);
    padding: 20px 24px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg,rgba(5,5,10,0),rgba(3,3,7,.90) 18%,#020203 100%);
    text-align: center
}

.bottom-panel:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 16px;
    height: 1px;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,.20),transparent)
}

.bottom-panel h2 {
    margin: 0;
    color: white;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 950;
    text-shadow: 0 2px 12px #000
}

.bottom-panel p {
    margin: 8px auto 14px;
    max-width: 32ch;
    color: #eee7f7;
    font-size: 13px;
    line-height: 1.65;
    font-weight: 800
}

.cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 61px;
    border-radius: 15px;
    background: linear-gradient(90deg,#ed1c55,#ef4dc4);
    color: #fff;
    font-size: 20px;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(237,28,85,.35);
    transition: transform .24s var(--ease),filter .24s var(--ease);
    border: 0;
    cursor: pointer;
    font-family: inherit
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: #bfb8d0;
    font-size: 10.5px;
    font-weight: 800
}

.legal-links a {
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: .92
}

.legal-note {
    margin: 6px auto 0!important;
    color: #928ba0!important;
    font-size: 10px!important;
    line-height: 1.25!important;
    font-weight: 750!important
}

.download-modal[hidden] {
    display: none!important
}

.download-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 16px
}

.download-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.62);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px)
}

.download-modal__dialog {
    position: relative;
    width: min(100%,390px);
    border-radius: 18px;
    background: #fff;
    color: #15151a;
    padding: 26px 20px 22px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0,0,0,.42);
    outline: none;
    animation: modal-in .22s var(--ease) both
}

.download-modal__dialog h2 {
    margin: 0 0 20px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -.02em
}

.download-modal__dialog p {
    margin: 0 auto 24px;
    max-width: 30ch;
    color: #555962;
    font-size: 15px;
    line-height: 1.85;
    font-weight: 600
}

.download-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 2px
}

.download-modal__primary,.download-modal__secondary {
    min-height: 76px;
    border: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font: 900 16px/1.35 system-ui,Roboto,sans-serif;
    letter-spacing: -.02em
}

.download-modal__primary {
    background: #ed1c55;
    color: #fff;
    box-shadow: 0 10px 22px rgba(237,28,85,.18)
}

.download-modal__secondary {
    background: #e8ebf0;
    color: #15151a;
    cursor: pointer
}

.footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 214px;
    z-index: 8;
    text-align: center;
    color: rgba(255,255,255,.12);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em
}

body.modal-open .reel-track {
    animation-play-state: paused
}

@keyframes reel-up {
    from {
        transform: translateY(0)
    }

    to {
        transform: translateY(-50%)
    }
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

html[dir="rtl"] .bottom-panel,html[dir="rtl"] .download-modal__dialog {
    direction: rtl
}

html[dir="rtl"] .card-body {
    text-align: right;
    direction: rtl
}

html[dir="rtl"] .card-body h2 {
    direction: ltr;
    text-align: right
}

@media (min-width: 700px) {
    body {
        padding:32px
    }

    .page-shell {
        border-radius: 28px;
        height: calc(var(--app-height,100vh) - 64px)
    }

    .bottom-panel {
        border-radius: 24px 24px 0 0
    }
}

@media (max-width: 390px) {
    .online {
        display:none
    }

    .brand-name {
        font-size: 1.22rem
    }

    .drama-card {
        min-height: 232px
    }

    .bottom-panel {
        padding-left: 14px;
        padding-right: 14px
    }

    .cta {
        min-height: 56px;
        font-size: 18px
    }

    .lang-select {
        min-width: 68px
    }
}

@media (prefers-reduced-motion:reduce) {
    *,*:before,*:after {
        animation-duration: .001ms!important;
        animation-iteration-count: 1!important;
        transition-duration: .001ms!important
    }

    .reel-track--right {
        transform: translateY(-92px)
    }
}
