/* ============================================================
   SETFLIX ORIGINAL — component layer
   hero · rows · tiles · modals · auth · footer · category page
   ============================================================ */

/* ---------------- VIDEO BANNER (Bootstrap carousel-fade) ---------------- */
/* Markup follows Bootstrap 4 carousel verbatim (class/data-* preserved for
   ASP handoff); fade/cycle/pause-on-hover driven in JS. */
#visual.carousel { position: relative; width: 100%; background: var(--bg); }
#visual .carousel-inner { position: relative; width: 100%; overflow: hidden; }
#visual.carousel-fade .carousel-item {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .9s var(--ease); backface-visibility: hidden;
}
#visual.carousel-fade .carousel-item.active { position: relative; opacity: 1; pointer-events: auto; }
#visual .banner-click { display: block; position: relative; width: 100%; }
/* visible height in prototype (real <video> fills via object-fit cover) */
#visual .banner-stage { position: relative; width: 100%; aspect-ratio: 64 / 21; min-height: 300px; overflow: hidden; }
@media (max-width: 720px) { #visual .banner-stage { aspect-ratio: 4 / 3; min-height: 0; } }
#visual .banner-stage video { position: absolute; inset: 0; }
/* prototype-only placeholder behind the (unloaded) video */
#visual .banner-ph { position: absolute; inset: 0; z-index: 0; }
#visual .banner-ph .hero-scrim { background: linear-gradient(90deg, var(--bg) 2%, color-mix(in oklab,var(--bg) 28%,transparent) 44%, transparent 74%); }
@media (max-width: 720px) { #visual .banner-ph .hero-scrim { background: linear-gradient(0deg, var(--bg) 4%, transparent 72%); } }
#visual .banner-cap { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(22px,5vh,56px) clamp(16px,4vw,60px); max-width: var(--maxw); margin-inline: auto; left: 0; right: 0; }
#visual .banner-cap .eyebrow { color: var(--ink-soft); }
#visual .banner-cap h2 { font-size: clamp(28px,4.4vw,58px); line-height: 1.06; max-width: 18ch; margin: 12px 0 0; }
#visual .banner-cap .blurb { color: var(--ink-soft); margin-top: 12px; max-width: 40ch; }
#visual .banner-cap .go { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
#visual .banner-cap .go .ar { width: 30px; height: 30px; border-radius: 99px; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background .2s, border-color .2s, transform .2s var(--spring); }
#visual .banner-click:hover .go .ar { background: var(--accent); border-color: var(--accent); transform: translateX(3px); }
#visual .banner-sbadge { position: absolute; top: clamp(16px,3vh,28px); left: clamp(16px,4vw,60px); z-index: 2; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
#visual .banner-adtag { position: absolute; top: clamp(16px,3vh,28px); right: clamp(16px,4vw,60px); z-index: 3; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em; color: var(--ink-soft); border: 1px solid var(--line-2); border-radius: var(--r-xs); padding: 3px 8px; background: color-mix(in oklab,var(--bg) 50%,transparent); backdrop-filter: blur(4px); }

/* indicators — premium ticks, Bootstrap classes kept */
#visual .carousel-indicators { position: absolute; right: clamp(16px,4vw,60px); bottom: 22px; left: auto; z-index: 15; display: flex; gap: 7px; margin: 0; padding: 0; list-style: none; }
#visual .carousel-indicators li { box-sizing: border-box; width: 30px; height: 3px; margin: 0; cursor: pointer; background: color-mix(in oklab, var(--ink) 26%, transparent); border: 0; border-radius: 99px; overflow: hidden; text-indent: -999px; transition: background .3s; position: relative; }
#visual .carousel-indicators li.active { background: color-mix(in oklab, var(--ink) 26%, transparent); }
#visual .carousel-indicators li.active::after { content:""; position: absolute; inset: 0; width: 0; background: var(--accent); border-radius: 99px; animation: bnTick 6s linear forwards; }
#visual.is-paused .carousel-indicators li.active::after { animation-play-state: paused; }
@keyframes bnTick { to { width: 100%; } }
@media (max-width: 560px) { #visual .carousel-indicators { left: 0; right: 0; justify-content: center; } }


/* ---------------- CATEGORY (공통) PAGE ---------------- */
/* masthead — editorial, asymmetric, hairline */
.cat-mast { padding-block: clamp(28px, 5vw, 56px) 0; }
.cat-mast-top { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cat-mast .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent-hi); letter-spacing: .18em; }
.cat-mast h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1.02; margin: 12px 0 0; }
.cat-mast .desc { color: var(--ink-soft); font-size: clamp(14px, 1.4vw, 17px); max-width: 50ch; line-height: 1.75; margin-top: 16px; }
.cat-mast-meta { margin-left: auto; display: flex; gap: clamp(20px, 3vw, 40px); padding-bottom: 6px; }
@media (max-width: 640px) { .cat-mast-meta { margin-left: 0; } }
.cat-stat .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cat-stat .v { font-family: var(--font-head); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; margin-top: 4px; }
.cat-stat .v small { font-size: 13px; font-weight: 400; color: var(--muted); font-family: var(--font-body); }

.sortbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: clamp(22px, 3vw, 34px); padding-top: 18px; border-top: 1px solid var(--line); }
.sortbar .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.sort-seg { display: inline-flex; gap: 2px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; }
.sort-seg button { border: 0; background: transparent; color: var(--ink-soft); font-size: 13px; padding: 7px 15px; border-radius: var(--r-xs); transition: background .2s var(--ease), color .2s; }
.sort-seg button.on { background: var(--accent); color: var(--accent-ink); }
.sort-seg button:not(.on):hover { color: var(--ink); }
.view-toggle { margin-left: auto; display: inline-flex; gap: 2px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; }
.view-toggle button { width: 36px; height: 32px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: var(--r-xs); }
.view-toggle button.on { background: var(--bg-4); color: var(--ink); }

/* category spotlight (compact cinematic, single featured) */
.cat-spot { position: relative; margin-top: clamp(20px, 3vw, 30px); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.cat-spot-stage { position: relative; aspect-ratio: 21/9; min-height: 280px; }
@media (max-width: 720px) { .cat-spot-stage { aspect-ratio: 4/5; min-height: 0; } }
.cat-spot .hero-scrim { background: linear-gradient(90deg, var(--bg) 4%, color-mix(in oklab,var(--bg) 35%,transparent) 46%, transparent 76%); }
@media (max-width: 720px) { .cat-spot .hero-scrim { background: linear-gradient(0deg, var(--bg) 6%, transparent 76%); } }
.cat-spot-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(22px, 4vw, 52px); max-width: 620px; }
.cat-spot-body h2 { font-size: clamp(24px, 3.4vw, 44px); line-height: 1.08; margin: 12px 0; }
.cat-spot-body p { color: var(--ink-soft); max-width: 42ch; margin-bottom: 20px; }
.cat-spot-tag { position: absolute; top: 16px; left: 16px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: var(--r-xs); background: color-mix(in oklab,var(--bg) 60%,transparent); backdrop-filter: blur(4px); color: var(--ink-soft); }

/* ---------------- GRID (관 작품 그리드) ---------------- */
.grid-sec { padding: clamp(24px, 4vw, 40px) 0 0; }
.grid {
  display: grid; gap: clamp(12px, 1.4vw, 22px) clamp(10px, 1vw, 16px);
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 1280px) { .grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; } }
.grid .tile { width: 100%; }
.grid[data-view="list"] { grid-template-columns: repeat(3, 1fr); gap: clamp(16px,1.8vw,26px); }
@media (max-width: 1024px) { .grid[data-view="list"] { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid[data-view="list"] { grid-template-columns: 1fr; } }
.grid[data-view="list"] .tile-title { font-size: 15px; }
/* one intentional asymmetric feature tile (anti-bento-uniformity) */
.grid .tile.feature { grid-column: span 2; grid-row: span 2; }
.grid .tile.feature .tile-frame { aspect-ratio: 1/1; }
@media (max-width: 520px) { .grid .tile.feature { grid-column: span 2; grid-row: span 1; } .grid .tile.feature .tile-frame { aspect-ratio: 16/9; } }

.loadmore { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: clamp(34px,5vw,56px) 0 8px; }
.loadmore .count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.loadmore .bar { width: 180px; height: 3px; background: var(--line); border-radius: 99px; overflow: hidden; }
.loadmore .bar i { display: block; height: 100%; background: var(--accent); transition: width .5s var(--ease); }

/* ---------------- AD BANNER (광고 배너) ---------------- */
.adband { margin-block: clamp(34px, 5vw, 60px) clamp(8px,2vw,16px); }
.ad {
  position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); min-height: 168px;
}
@media (max-width: 720px) { .ad { grid-template-columns: 1fr; } }
.ad-tag { position: absolute; top: 12px; right: 12px; z-index: 3; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em; color: var(--muted); border: 1px solid var(--line-2); border-radius: var(--r-xs); padding: 3px 8px; background: color-mix(in oklab,var(--bg) 55%,transparent); }
.ad-copy { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.ad-copy .eyebrow { color: var(--accent-hi); }
.ad-copy h3 { font-size: clamp(22px, 2.8vw, 34px); line-height: 1.12; }
.ad-copy h3 em { font-style: normal; color: var(--accent-hi); }
.ad-copy p { color: var(--ink-soft); font-size: 14px; max-width: 40ch; }
.ad-copy .cta { margin-top: 6px; }
.ad-media { position: relative; border-left: 1px solid var(--line); min-height: 168px; }
@media (max-width: 720px) { .ad-media { border-left: 0; border-top: 1px solid var(--line); min-height: 150px; } }
.ad-media .badge-s { position: absolute; right: 16px; bottom: 14px; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
/* slim secondary ad (in-grid strip) */
.ad-slim { display: flex; align-items: center; gap: 18px; border: 1px dashed var(--line-2); border-radius: var(--r-md); padding: 16px 20px; background: var(--bg-2); }
.ad-slim .lab { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--faint); }
.ad-slim .txt { font-size: 14px; color: var(--ink-soft); }
.ad-slim .txt b { color: var(--ink); font-weight: 600; }
.ad-slim .cta { margin-left: auto; }
@media (max-width: 560px) { .ad-slim { flex-direction: column; align-items: flex-start; gap: 10px; } .ad-slim .cta { margin-left: 0; } }


/* ---------------- HERO (cinematic widescreen) ---------------- */
.hero { position: relative; width: 100%; background: var(--bg); }
.hero-stage {
  position: relative; width: 100%;
  aspect-ratio: 2.39 / 1;            /* anamorphic cinema */
  max-height: 78vh; min-height: 420px;
  overflow: hidden;
}
@media (max-width: 720px) { .hero-stage { aspect-ratio: 4 / 5; max-height: none; min-height: 0; } }

.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.hero-slide.on { opacity: 1; }
.hero-media { position: absolute; inset: 0; }
/* letterbox vignette so any still reads as "screening" */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in oklab,var(--bg) 30%,transparent) 42%, transparent 70%),
    linear-gradient(0deg, var(--bg) 2%, color-mix(in oklab,var(--bg) 10%,transparent) 38%, transparent 62%);
}
@media (max-width: 720px) {
  .hero-scrim { background: linear-gradient(0deg, var(--bg) 6%, color-mix(in oklab,var(--bg) 20%,transparent) 46%, transparent 78%); }
}
.hero-content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 6vh, 64px) clamp(16px, 4vw, 60px);
  max-width: var(--maxw); margin-inline: auto; left: 0; right: 0;
}
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 99px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 76px); line-height: 1.04; max-width: 16ch; margin-bottom: 14px;
}
.hero-sub { color: var(--ink-soft); font-size: clamp(14px, 1.4vw, 18px); max-width: 46ch; line-height: 1.7; }
.hero-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 0 22px; font-size: 13px; color: var(--muted); }
.hero-meta .pill { border: 1px solid var(--line-2); border-radius: var(--r-xs); padding: 2px 9px; }
.hero-meta .sep { width: 3px; height: 3px; border-radius: 99px; background: var(--faint); }
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* hero progress ticks */
.hero-ticks { position: absolute; bottom: 22px; right: clamp(16px,4vw,60px); display: flex; gap: 7px; z-index: 4; }
.hero-tick { width: 30px; height: 3px; background: color-mix(in oklab, var(--ink) 28%, transparent); border-radius: 99px; cursor: pointer; overflow: hidden; }
.hero-tick i { display: block; height: 100%; width: 0; background: var(--accent); }
.hero-tick.on i { width: 100%; transition: width 7s linear; }
@media (max-width: 720px) { .hero-ticks { display: none; } }

/* ---------------- CATEGORY ROW ---------------- */
.section { padding: clamp(20px, 3vw, 34px) 0 0; }
.row-head {
  display: flex; align-items: baseline; gap: 14px; padding: 0 clamp(16px, 4vw, 60px);
  max-width: var(--maxw); margin: 0 auto 14px;
}
.row-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-hi); letter-spacing: .1em; }
.row-title { font-size: clamp(18px, 1.8vw, 24px); }
.row-sub { font-size: 12.5px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.row-sub a { color: var(--ink-soft); }
.row-sub a:hover { color: var(--accent-hi); }

.rail-wrap { position: relative; max-width: var(--maxw); margin-inline: auto; }
.rail {
  display: flex; gap: clamp(8px, 0.7vw, 14px); overflow-x: auto; scroll-behavior: smooth;
  padding: 6px clamp(16px, 4vw, 60px); scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-btn {
  position: absolute; top: 0; bottom: 0; width: clamp(40px, 4vw, 60px); z-index: 30;
  display: grid; place-items: center; border: 0; color: var(--ink);
  background: linear-gradient(90deg, var(--bg) 30%, transparent);
  opacity: 0; transition: opacity .25s var(--ease);
}
.rail-btn.next { right: 0; background: linear-gradient(270deg, var(--bg) 30%, transparent); }
.rail-btn.prev { left: 0; }
.rail-wrap:hover .rail-btn { opacity: 1; }
.rail-btn svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.rail-btn:hover svg { color: var(--accent-hi); }
@media (hover: none) { .rail-btn { display: none; } }

/* ---------------- TILE ---------------- */
.tile {
  position: relative; flex: 0 0 auto; scroll-snap-align: start;
  width: clamp(150px, 15vw, 248px);
  cursor: pointer;
}
.tile.poster { width: clamp(118px, 11vw, 184px); }
.tile-frame {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--r-md);
  overflow: hidden; background: var(--bg-3); border: 1px solid var(--line);
  transition: transform .32s var(--spring), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.tile.poster .tile-frame { aspect-ratio: 2/3; }
.tile:hover .tile-frame {
  transform: translateY(-4px) scale(1.035);
  border-color: var(--line-2);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.9);
  z-index: 5;
}

/* film-still placeholder (tasteful, abstract) */
.still { position: absolute; inset: 0; }
.still-stripes { position: absolute; inset: 0; opacity: .5; }
.still-grad { position: absolute; inset: 0; }
.still-label {
  position: absolute; left: 10px; bottom: 9px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; color: color-mix(in oklab, var(--ink) 60%, transparent);
}
.still-sprocket { position: absolute; top: 0; bottom: 0; width: 9px; display: flex; flex-direction: column; gap: 6px; padding: 6px 2px; }
.still-sprocket.l { left: 0; } .still-sprocket.r { right: 0; }
.still-sprocket i { display: block; height: 7px; border-radius: 1.5px; background: rgba(0,0,0,.35); }

.tile-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.82) 4%, transparent 52%); opacity: 0; transition: opacity .3s var(--ease); }
.tile:hover .tile-scrim { opacity: 1; }

.tile-badge {
  position: absolute; top: 8px; left: 8px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em;
  padding: 2px 6px; border-radius: var(--r-xs); background: color-mix(in oklab, var(--bg) 70%, transparent);
  border: 1px solid var(--line-2); color: var(--ink-soft); backdrop-filter: blur(4px);
}
.tile-badge.prem { color: var(--gold); border-color: color-mix(in oklab, var(--gold) 40%, transparent); }
.tile-badge.new  { color: var(--accent-hi); border-color: color-mix(in oklab, var(--accent) 45%, transparent); }

.tile-rank {
  position: absolute; left: -2px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-head); font-weight: 700; font-size: clamp(56px, 6vw, 92px); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px var(--line-2); z-index: 2; pointer-events: none;
}
.tile.ranked { padding-left: clamp(34px, 3.6vw, 58px); }

.tile-play {
  position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 99px;
  display: grid; place-items: center; background: color-mix(in oklab, var(--bg) 40%, transparent);
  border: 1.5px solid var(--ink); color: var(--ink); opacity: 0; transform: scale(.85);
  transition: opacity .3s var(--ease), transform .3s var(--spring), background .2s; backdrop-filter: blur(3px);
}
.tile:hover .tile-play { opacity: 1; transform: scale(1); }
.tile-play:hover { background: var(--accent); border-color: var(--accent); }

.tile-cap { padding: 9px 2px 4px; }
.tile-title { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tile:hover .tile-title { -webkit-line-clamp: 2; }
.tile-info { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 11px; color: var(--muted); font-family: var(--font-mono); }

/* density */
body[data-density="compact"] .tile { width: clamp(128px, 12vw, 198px); }
body[data-density="comfy"]   .tile { width: clamp(178px, 18vw, 300px); }

/* ---------------- MODAL SHELL ---------------- */
.scrim {
  position: fixed; inset: 0; z-index: 1000; background: rgba(8,6,5,.74);
  backdrop-filter: blur(6px); display: grid; place-items: center; padding: clamp(12px, 4vh, 48px) 16px;
  opacity: 0; animation: scrimIn .3s var(--ease) forwards; overflow-y: auto;
}
@keyframes scrimIn { to { opacity: 1; } }
.modal {
  position: relative; width: 100%; background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); box-shadow: 0 40px 120px -40px rgba(0,0,0,.9);
  transform: translateY(14px) scale(.985); opacity: 0; animation: modalIn .42s var(--spring) forwards;
  margin: auto;
}
@keyframes modalIn { to { transform: none; opacity: 1; } }
.modal-x {
  position: absolute; top: 14px; right: 14px; z-index: 6; width: 38px; height: 38px; border-radius: 99px;
  display: grid; place-items: center; background: color-mix(in oklab, var(--bg) 55%, transparent);
  border: 1px solid var(--line-2); color: var(--ink); backdrop-filter: blur(5px);
  transition: transform .18s var(--spring), background .2s, border-color .2s;
}
.modal-x:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }

/* ---- video detail modal ---- */
.vid { max-width: 880px; overflow: hidden; }
.vid-stage { position: relative; aspect-ratio: 16/9; background: var(--bg); }
.vid-stage .still { inset: 0; }
.vid-stage .play-big {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 99px;
  display: grid; place-items: center; background: color-mix(in oklab, var(--bg) 30%, transparent);
  border: 2px solid var(--ink); color: var(--ink); transition: transform .2s var(--spring), background .2s, border-color .2s;
}
.vid-stage .play-big:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.vid-stage .vlabel { position: absolute; inset: 0; display: grid; place-items: center; }
.vid-stage .vlabel span { font-family: var(--font-head); font-size: clamp(20px,3vw,32px); color: color-mix(in oklab,var(--ink) 22%, transparent); -webkit-text-stroke: 1px color-mix(in oklab,var(--ink) 35%, transparent); }
.vid-body { padding: clamp(20px, 3vw, 32px); }
.vid-toprow { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.vid-stats { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.vid-stat .k { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.vid-stat .v { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 600; margin-top: 3px; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .off { color: var(--line-2); }
.vid h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 18px 0 8px; }
.vid-desc { color: var(--ink-soft); line-height: 1.8; max-width: 60ch; }
.vid-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tag { font-size: 12px; color: var(--ink-soft); border: 1px solid var(--line-2); border-radius: 99px; padding: 4px 12px; }

/* ---- choice rows (payment / point) ---- */
.modal-head { display: flex; align-items: center; gap: 12px; padding: clamp(22px,3vw,30px) clamp(22px,3vw,32px) 0; }
.modal-head .eyebrow { margin-bottom: 0; }
.modal-title { display: flex; align-items: baseline; gap: 12px; }
.modal-title h2 { font-size: clamp(22px, 2.6vw, 28px); }
.modal-title .underline { display: block; width: 40px; height: 3px; background: var(--accent); margin-top: 10px; border-radius: 99px; }

.pay { max-width: 620px; }
.pay-body { padding: clamp(20px,3vw,30px); }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-card {
  position: relative; padding: 22px 16px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--bg-2); text-align: left; transition: border-color .2s var(--ease), background .2s, transform .18s var(--spring);
}
.pay-card:hover { border-color: var(--ink-soft); background: var(--bg-4); }
.pay-card:active { transform: scale(.985); }
.pay-card.sel { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, var(--bg-2)); }
.pay-card .picon { width: 30px; height: 30px; color: var(--ink-soft); margin-bottom: 14px; }
.pay-card.sel .picon { color: var(--accent-hi); }
.pay-card .pname { font-size: 15px; font-weight: 600; }
.pay-card .pdesc { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pay-card .pflag { position: absolute; top: 12px; right: 12px; font-family: var(--font-mono); font-size: 10px; color: var(--gold); letter-spacing: .06em; }

/* point purchase plans */
.plans { display: flex; flex-direction: column; }
.plan {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: start;
  padding: 18px 4px; border-top: 1px solid var(--line); text-align: left; background: transparent; width: 100%;
  transition: background .2s var(--ease);
}
.plan:first-child { border-top: 0; }
.plan:hover { background: color-mix(in oklab, var(--ink) 3%, transparent); }
.plan.sel { background: color-mix(in oklab, var(--accent) 8%, transparent); }
.plan-radio { width: 20px; height: 20px; border-radius: 99px; border: 2px solid var(--line-2); margin-top: 3px; display: grid; place-items: center; transition: border-color .2s; }
.plan.sel .plan-radio { border-color: var(--accent); }
.plan.sel .plan-radio::after { content:""; width: 10px; height: 10px; border-radius: 99px; background: var(--accent); }
.plan-name { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 600; flex-wrap: wrap; }
.plan-feats { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.plan-feat { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; }
.plan-feat svg { flex: 0 0 auto; width: 14px; height: 14px; color: var(--accent-hi); margin-top: 3px; }
.plan-price { text-align: right; white-space: nowrap; }
.plan-price .amt { font-family: var(--font-head); font-size: 21px; font-weight: 700; }
.plan-price .won { font-size: 12px; color: var(--muted); }
.plan-price .save { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--gold); margin-top: 2px; }

.chip { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; padding: 2px 8px; border-radius: 99px; }
.chip.prem { color: var(--gold); border: 1px solid color-mix(in oklab,var(--gold) 40%,transparent); }
.chip.point { color: var(--accent-hi); border: 1px solid color-mix(in oklab,var(--accent) 45%,transparent); }
.chip.disc { color: var(--accent-ink); background: var(--accent); }

.fineprint { font-size: 12px; color: var(--muted); line-height: 1.85; }
.fineprint p { margin: 0 0 6px; padding-left: 14px; position: relative; }
.fineprint p::before { content:""; position: absolute; left: 0; top: 11px; width: 5px; height: 1px; background: var(--faint); }

.modal-foot {
  position: sticky; bottom: 0; background: color-mix(in oklab, var(--bg-3) 92%, transparent);
  backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  padding: 16px clamp(22px,3vw,32px); display: flex; align-items: center; gap: 14px; justify-content: space-between;
}
.modal-foot .total { display: flex; align-items: baseline; gap: 8px; }
.modal-foot .total .lbl { font-size: 12px; color: var(--muted); }
.modal-foot .total .num { font-family: var(--font-head); font-size: 24px; font-weight: 700; }

.modal-scroll { max-height: min(72vh, 720px); overflow-y: auto; }

/* ---------------- AUTH ---------------- */
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } }
.auth-aside { position: relative; overflow: hidden; border-right: 1px solid var(--line); background: var(--bg-2); }
@media (max-width: 900px) { .auth-aside { display: none; } }
.auth-aside .still { inset: 0; }
.auth-aside-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 4%, color-mix(in oklab,var(--bg) 20%,transparent) 50%, transparent 90%); }
.auth-aside-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(28px,4vw,56px); }
.auth-aside-copy h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.15; max-width: 14ch; }
.auth-aside-copy p { color: var(--ink-soft); margin-top: 14px; max-width: 34ch; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 6vh, 72px) clamp(20px, 4vw, 56px); }
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 10px; }
.auth-note { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 30px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 7px; font-weight: 500; }
.field .ctrl {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), background .2s;
}
.field .ctrl:focus-within { border-color: var(--accent); background: var(--bg-3); }
.field .ctrl.err { border-color: var(--accent-hi); }
.field .ctrl svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.field input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink);
  font-family: inherit; font-size: 15px; outline: none;
}
.field input::placeholder { color: var(--faint); }
.field .eye { color: var(--muted); display: grid; place-items: center; }
.field .msg { font-size: 11.5px; color: var(--accent-hi); margin-top: 6px; height: 14px; transition: opacity .2s; }
.field .msg.ok { color: var(--gold); }

.checks { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 26px; }
.check { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; user-select: none; }
.check .box {
  width: 20px; height: 20px; flex: 0 0 auto; border-radius: var(--r-xs); border: 1.5px solid var(--line-2);
  display: grid; place-items: center; transition: border-color .18s var(--ease), background .18s;
}
.check.on .box { background: var(--accent); border-color: var(--accent); }
.check .box svg { width: 13px; height: 13px; color: var(--accent-ink); opacity: 0; transform: scale(.6); transition: opacity .18s, transform .18s var(--spring); }
.check.on .box svg { opacity: 1; transform: scale(1); }
.check.all { font-weight: 600; color: var(--ink); padding-top: 12px; border-top: 1px solid var(--line); }

.auth-alt { text-align: center; margin-top: 24px; font-size: 13.5px; color: var(--muted); }
.auth-alt a { color: var(--accent-hi); font-weight: 600; }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--faint); font-size: 12px; }
.auth-or::before, .auth-or::after { content:""; flex: 1; height: 1px; background: var(--line); }

/* ---------------- FOOTER ---------------- */
.footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); padding: clamp(36px,5vw,60px) 0 40px; background: var(--bg-2); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--muted); font-size: 13px; margin-top: 16px; line-height: 1.75; }
.footer-col h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--ink-soft); padding: 5px 0; }
.footer-col a:hover { color: var(--accent-hi); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.age-badge { width: 30px; height: 30px; border-radius: 99px; border: 2px solid var(--accent); color: var(--accent-hi); display: grid; place-items: center; font-weight: 700; font-size: 12px; font-family: var(--font-head); }

/* ---------------- toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px); z-index: 2000;
  background: var(--bg-4); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 13px 20px; font-size: 13.5px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  opacity: 0; transition: opacity .3s var(--ease), transform .4s var(--spring); display: flex; align-items: center; gap: 10px;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--gold); }

/* small helpers */
.mono { font-family: var(--font-mono); }
.gold { color: var(--gold); }
.acc { color: var(--accent-hi); }
.center { text-align: center; }
.hide-sm { }
@media (max-width: 760px) { .hide-sm { display: none !important; } }
