:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #0b0b0f; color: #fff; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #0b0b0f; }
a { color: inherit; text-decoration: none; }
header { height: 64px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #24242b; position: sticky; top: 0; z-index: 2; background: rgba(11, 11, 15, .94); backdrop-filter: blur(10px); }
.logo { font-size: 1.25rem; font-weight: 850; letter-spacing: -.04em; }
.logo::first-letter { color: #ff2d55; }
.account { display: flex; align-items: center; gap: 12px; color: #c9c9d0; }
.account form { margin: 0; }
.link-button { border: 0; padding: 0; background: none; color: #ff6683; cursor: pointer; font: inherit; }
main { width: min(1180px, 100%); margin: auto; padding: 24px 16px 48px; }
h1 { margin: 8px 0 22px; font-size: clamp(1.65rem, 5vw, 2.5rem); letter-spacing: -.04em; }
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
.card { min-width: 0; transition: transform .18s ease; }
.card:hover { transform: translateY(-4px); }
.card img, .series-poster { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #1b1b22; }
.card h2 { margin: 10px 2px 7px; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { color: #ff8ba1; background: #2d151d; border-radius: 999px; padding: 4px 8px; font-size: .72rem; }
.series-detail { display: grid; gap: 24px; max-width: 820px; margin: auto; }
.series-poster { max-width: 320px; margin: auto; }
.back { display: inline-block; margin-bottom: 14px; color: #a5a5ae; }
.logline { color: #c9c9d0; line-height: 1.55; max-width: 580px; }
.episodes { margin-top: 26px; display: grid; gap: 10px; }
.episode-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; padding: 12px; background: #15151b; border-radius: 12px; }
.episode-button { background: #ff2d55; border-radius: 9px; padding: 10px 13px; font-weight: 800; grid-row: 1 / 3; }
.episode-row small, .note { color: #92929c; }
.player-page { max-width: 520px; margin: auto; }
video { display: block; width: 100%; max-height: 85vh; aspect-ratio: 9 / 16; object-fit: contain; margin: auto; background: #000; border-radius: 12px; }
.player-page h1 { margin: 18px 0 4px; font-size: 1.25rem; }
.episode-strip { display: flex; justify-content: space-between; margin-top: 20px; }
.episode-strip a { padding: 10px 15px; border: 1px solid #34343d; border-radius: 999px; }
.login-card { width: min(430px, 100%); margin: 7vh auto; padding: 30px 22px; text-align: center; background: #15151b; border: 1px solid #292930; border-radius: 20px; }
.login-card .mark { width: 50px; height: 50px; display: grid; place-items: center; margin: auto; border-radius: 14px; background: #ff2d55; font-size: 1.6rem; font-weight: 900; }
.login-card h1 { margin: 18px 0 8px; }
.login-card p { color: #a5a5ae; margin: 0 0 24px; }
.oauth { display: block; margin-top: 12px; padding: 15px; border-radius: 999px; font-weight: 750; }
.google { background: #fff; color: #111; }
.apple { background: #050505; border: 1px solid #444; }
.disabled { background: #24242b; color: #777780; cursor: not-allowed; }
@media (min-width: 700px) {
  main { padding: 36px 24px 60px; }
  .catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 18px; }
  .series-detail { grid-template-columns: 280px 1fr; align-items: start; }
}
@media (min-width: 1050px) { .catalog { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 540px) { .player-page { margin: -24px -16px 0; } .player-page > :not(video) { margin-left: 16px; margin-right: 16px; } video { border-radius: 0; max-height: none; } }
