:root{font-family:Arial,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;color:#fff;background:#101514;color-scheme:dark;--coral:#ff6254;--ink:#111510;--bubble:#fffdf4;--stroke:3px solid #111510;--shadow:4px 4px 0 #111510}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #c5ff91;outline-offset:4px}button:disabled{cursor:wait;opacity:.6}button:active:not(:disabled){transform:translate(1px,1px)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#stage{position:relative;min-height:100svh;height:100svh;overflow:hidden;isolation:isolate}.ambient{position:absolute;inset:0;background:radial-gradient(ellipse at 22% 38%,#254339 0,transparent 52%),radial-gradient(ellipse at 80% 80%,#333c28 0,transparent 50%),#101a17;z-index:-4}.ambient:after{content:"";position:absolute;inset:0;opacity:.15;background:repeating-linear-gradient(0deg,transparent 0,transparent 3px,#000 4px)}.video-layer{position:absolute;inset:0;z-index:-3}.video-layer video{position:absolute;width:100%;height:100%;object-fit:cover;opacity:0;background:#0b0f0d}.video-layer video.active{opacity:1}.shade{position:absolute;inset:0;z-index:-2;pointer-events:none;background:linear-gradient(180deg,#0007,transparent 22%,transparent 65%,#000b),linear-gradient(90deg,#0002,transparent 40%,#0002)}.topbar{position:absolute;inset:0 0 auto;padding:23px 26px;display:flex;align-items:center;justify-content:space-between;gap:18px;z-index:5}.wordmark{font-family:Georgia,serif;font-style:italic;font-weight:900;font-size:25px;letter-spacing:-1px;color:#fff;text-decoration:none;text-shadow:2px 2px #111}.wordmark span{color:#d6ffad}.wordmark i{font-style:normal;margin-left:8px;color:var(--coral)}.live-badge{position:absolute;left:50%;transform:translateX(-50%);top:24px;background:#252c27d9;border:1px solid #ffffff40;border-radius:999px;display:flex;align-items:center;gap:7px;padding:8px 13px;font-weight:800;font-size:11px;letter-spacing:.7px;white-space:nowrap;box-shadow:0 2px 12px #0003}.live-badge.on-air{background:#e34b42;border-color:#fa8e82}.live-badge.replay{background:#202820e6}.dot{width:6px;height:6px;border-radius:50%;background:#c5ff91}.on-air .dot{background:#fff;animation:pulse 1.5s infinite}.lineup{position:absolute;left:24px;top:114px;width:236px;bottom:180px;overflow:auto;scrollbar-width:thin;scrollbar-color:#ffffff40 transparent}.section-label{font-size:10px;letter-spacing:1.8px;font-weight:800;color:#fff;display:flex;gap:12px;align-items:center;margin:0 0 14px;text-shadow:0 1px 4px #000}.section-label>span{letter-spacing:0;font-size:10px;font-weight:500;color:#d8e6d8}.next-list{display:flex;flex-direction:column;gap:12px;padding-right:8px}.empty-lineup{font-size:13px;color:#b9c5bb;line-height:1.7;max-width:180px}.next-card{border:var(--stroke);border-radius:15px;padding:10px 12px;background:#e8f4ce;color:var(--ink);box-shadow:var(--shadow);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.next-card.generating{background:#ffe2bb}.next-card strong{font-size:10px;display:block;margin-bottom:5px;color:#516338}.next-card.generating strong{color:#8d4b20}.next-card p{margin:0}.next-card small{display:block;font-size:10px;margin-top:7px;color:#59604e}.welcome{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);text-align:center;width:min(560px,90vw);padding:28px 0;z-index:1}.eyebrow{font-size:9px;letter-spacing:3px;font-weight:700;color:#d6e5d1;margin:0 0 14px}.welcome h1{font:italic 900 clamp(52px,6.4vw,92px)/1.1 Georgia,"Times New Roman",serif;letter-spacing:-5px;margin:0 0 24px;text-shadow:3px 3px 0 #111,6px 6px 0 #111,9px 9px 0 #111;-webkit-text-stroke:2px #111;paint-order:stroke fill;white-space:nowrap}.welcome h1>span{display:inline-block;color:#d6ffad;font-family:Arial;font-style:normal;font-size:.5em;margin-left:8px;vertical-align:top;letter-spacing:0}.play-button{width:65px;height:65px;border:var(--stroke);border-radius:50%;box-shadow:var(--shadow);background:var(--coral);color:#fff;display:grid;place-items:center;margin:0 auto 23px;font-size:25px;padding-left:8px}.play-button:hover{background:#ff877c}.welcome-copy{font-size:16px;font-weight:700;line-height:1.7;margin:0;text-shadow:0 2px 8px #000}.welcome-copy span{color:#dce5dc;font-size:12px;font-weight:400}.welcome-note{font-size:10px;letter-spacing:.3px;color:#adbfae;margin-top:16px}.waiting{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);max-width:420px;text-align:center;display:flex;flex-direction:column;gap:12px;color:#fff;padding:20px;text-shadow:0 2px 12px #000}.waiting-symbol{font-size:50px;color:#d6ffad;margin-bottom:5px}.waiting.loading .waiting-symbol{animation:turn 5s linear infinite}.waiting strong{font-size:18px}.waiting>span:last-child{font-size:12px;line-height:1.7;color:#d3ded2;overflow-wrap:anywhere}.chat-panel{position:absolute;right:22px;top:95px;bottom:68px;width:330px;display:flex;flex-direction:column;z-index:3;min-height:0}.chat-heading{display:flex;align-items:center;gap:7px;padding:0 3px 13px;text-shadow:0 1px 5px #000}.tiny-star{color:#d6ffad;font-size:20px}.chat-heading strong{font-size:11px}.live-count{margin-left:auto;color:#c9d4ca;font-size:10px}.chat-view{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}.message-list{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:5px 7px 12px 1px;scrollbar-width:thin;scrollbar-color:#ffffff60 transparent}.message-list:before{content:"";flex:1}.message{border:var(--stroke);box-shadow:var(--shadow);background:var(--bubble);color:var(--ink);padding:10px 12px;border-radius:16px;line-height:1.5;flex-shrink:0;overflow-wrap:anywhere}.message:nth-of-type(3n+1){background:#dceac7}.message:nth-of-type(3n+2){background:#e5ddef}.message-header{display:flex;align-items:center;gap:6px;margin-bottom:3px}.message-header strong{font-size:11px}.message-header time{font-size:9px;opacity:.5;margin-left:auto;white-space:nowrap}.message-prompt{font-size:12px;white-space:pre-wrap;margin:0}.message-meta{font-size:9px;color:#626c5d;margin-top:7px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.message-state{font-weight:800}.message[data-status=generating] .message-state{color:#b44c20}.message[data-status=ready] .message-state{color:#496b2c}.message[data-status=failed]{background:#ffe2dd}.message[data-status=failed] .message-state{color:#9e332e}.message-error{font-size:10px;color:#9e332e;margin:6px 0 0}.chat-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#e6ede1;pointer-events:none}.chat-empty>span{font-size:33px;color:#d6ffad;margin-bottom:10px}.chat-empty strong{font-size:13px}.chat-empty p{font-size:11px;color:#bfcebf;line-height:1.8}.composer{padding-top:10px;flex-shrink:0}.ideas{display:flex;gap:5px;margin-bottom:12px;overflow:auto;scrollbar-width:none}.ideas button{border:1px solid #ffffff3d;border-radius:999px;background:#152015cc;color:#ecf2e7;padding:5px 8px;font-size:9px;white-space:nowrap}.ideas button:hover{border-color:#b4db92;background:#31412d}.name-label{display:flex;align-items:center;gap:6px;font-size:9px;color:#c5d2c2;margin:0 0 7px 3px}.name-label input{width:100px;border:0;border-bottom:1px solid #ffffff35;border-radius:0;background:transparent;color:#fff;font-size:10px;padding:2px 3px}.input-row{display:flex;gap:6px;align-items:stretch}.input-row textarea{resize:none;min-width:0;flex:1;background:var(--bubble);border:var(--stroke);box-shadow:3px 3px 0 #111510;border-radius:13px;color:#182214;font-size:11px;line-height:1.5;padding:11px 12px;min-height:59px}.input-row textarea::placeholder{color:#8c9383}.send-button{flex-shrink:0;border:var(--stroke);box-shadow:3px 3px 0 #111510;border-radius:12px;background:var(--coral);color:#171d12;font-size:11px;font-weight:800;padding:10px}.send-button span{display:block;font-size:19px;line-height:1.1;margin-top:2px}.composer-note{font-size:8px;color:#aebcab;line-height:1.5;margin:8px 2px 0;text-shadow:0 1px 4px #000}.submit-error{font-size:10px;line-height:1.6;padding:9px;margin-top:10px;background:#421d1de6;border:1px solid #ffb3aa;border-radius:8px;color:#ffddd8}.submit-error button{display:block;margin-top:7px;border:1px solid #eeb8ad;background:#ffddd8;color:#501d19;border-radius:5px;padding:5px 7px;font-size:10px}.now-playing{position:absolute;left:25px;bottom:75px;max-width:min(580px,calc(100vw - 435px));text-shadow:0 1px 8px #000}.now-playing .section-label{color:#d6ffad;margin-bottom:8px}.now-prompt{font-size:15px;font-weight:600;line-height:1.55;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.now-stats{display:flex;gap:6px;flex-wrap:wrap;margin-top:11px}.stat-pill{font-size:9px;background:#0c140fcc;border:1px solid #ffffff2b;border-radius:999px;padding:5px 8px;backdrop-filter:blur(8px);white-space:nowrap}.footer{position:absolute;bottom:0;left:0;right:0;min-height:50px;padding:14px 25px;display:flex;align-items:center;gap:18px;font-size:9px;color:#c1cebd;z-index:4}.footer-brand{font-size:15px;font-weight:800;letter-spacing:-.6px;color:#fff}.footer-brand b{color:#d6ffad;margin-left:3px}.worker-status{display:flex;gap:6px;align-items:center}.worker-dot{width:5px;height:5px;border-radius:50%;background:#e8ba68}.worker-dot.ready{background:#b4e08e}.worker-dot.error{background:#ff8674}.footer-note{color:#98aa94;margin-left:auto}.connection-error{position:absolute;top:71px;left:50%;transform:translateX(-50%);max-width:min(560px,92vw);background:#3f241fe8;border:1px solid #e9a58f;border-radius:9px;color:#ffe0d6;padding:10px 14px;font-size:11px;z-index:12;text-align:center}.notice{position:absolute;left:50%;bottom:70px;transform:translateX(-50%);border:1px solid #e3efd8;background:#1a281be8;border-radius:999px;padding:10px 16px;font-size:11px;z-index:20;max-width:90vw;text-align:center}body.has-video .ambient{visibility:hidden}@keyframes pulse{50%{opacity:.4}}@keyframes turn{to{transform:rotate(360deg)}}@media(min-width:1250px){.welcome,.waiting{left:calc(50% - 35px)}.chat-panel{width:350px;right:25px}.lineup{width:250px}.welcome h1{font-size:92px}}@media(max-width:1050px) and (min-width:701px){.lineup{width:180px;left:18px}.chat-panel{width:295px;right:16px}.welcome,.waiting{left:calc(50% - 40px);width:380px}.welcome h1{font-size:65px}.now-playing{max-width:calc(100vw - 360px)}}@media(max-width:700px){#stage{height:100svh;min-height:580px}.topbar{padding:17px 15px;gap:10px}.wordmark{font-size:21px}.wordmark i{margin-left:4px}.live-badge{top:65px;left:15px;transform:none;padding:6px 10px;font-size:9px}.lineup{top:66px;left:auto;right:15px;width:180px;height:69px;bottom:auto;overflow:hidden}.lineup .section-label{font-size:8px;margin:0 0 5px}.lineup .section-label span{display:none}.next-card{font-size:9px;border-width:2px;box-shadow:2px 2px #111;border-radius:9px;padding:5px 7px;line-height:1.25}.next-card strong{font-size:8px;margin-bottom:2px}.next-card p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.next-card small{display:none}.empty-lineup{font-size:9px;line-height:1.4;margin-top:0}.empty-lineup br{display:none}.welcome{left:50%;top:28%;width:95vw;padding:0}.eyebrow{font-size:7px;letter-spacing:2px;margin-bottom:9px}.welcome h1{font-size:57px;letter-spacing:-3px;margin-bottom:15px;text-shadow:2px 2px #111,4px 4px #111,6px 6px #111;-webkit-text-stroke:1px #111}.play-button{width:48px;height:48px;font-size:18px;margin-bottom:13px}.welcome-copy{font-size:12px;line-height:1.6}.welcome-copy span{font-size:10px}.welcome-note{font-size:8px;margin-top:10px}.chat-panel{right:12px;left:12px;width:auto;top:46%;bottom:47px;border-radius:16px 16px 0 0;background:linear-gradient(180deg,#14201933,#0b140dd9 35%,#0b140df0);padding:10px 2px 0}.chat-heading strong{font-size:10px}.tiny-star{font-size:15px}.message-list{gap:8px;padding-top:4px;padding-right:5px}.message{padding:7px 10px;border-width:2px;border-radius:13px;box-shadow:3px 3px #111}.message-prompt{font-size:11px;line-height:1.4}.message-header strong{font-size:10px}.message-meta{margin-top:4px;font-size:8px}.chat-empty>span{font-size:22px;margin-bottom:6px}.chat-empty strong{font-size:11px}.chat-empty p{font-size:9px;margin-top:6px;line-height:1.6}.composer{padding-top:7px}.ideas{margin-bottom:5px;gap:5px}.ideas button{padding:4px 7px;font-size:8px}.name-label{font-size:8px;margin-bottom:4px}.name-label input{font-size:9px;padding:0 2px}.input-row textarea{min-height:47px;max-height:65px;font-size:10px;padding:7px 10px;border-width:2px}.send-button{font-size:10px;padding:6px 10px;border-width:2px}.send-button span{font-size:15px}.composer-note{font-size:7px;margin-top:5px}.footer{padding:12px 15px;min-height:43px;gap:10px;font-size:8px}.footer-brand{font-size:13px}.footer-note{font-size:7px}.worker-status{max-width:65%;overflow:hidden;white-space:nowrap}.waiting{left:50%;top:29%;width:85vw;padding:10px;gap:7px}.waiting-symbol{font-size:35px;margin-bottom:2px}.waiting strong{font-size:14px}.waiting>span:last-child{font-size:10px}.now-playing{left:15px;bottom:auto;top:calc(46% - 85px);max-width:calc(100vw - 30px);height:76px;overflow:hidden}.now-playing .section-label{font-size:8px;margin-bottom:4px}.now-prompt{font-size:11px;line-height:1.3;-webkit-line-clamp:2}.now-stats{gap:4px;margin-top:5px}.stat-pill{font-size:7px;padding:3px 5px}.connection-error{top:105px;font-size:10px;padding:8px 11px}.notice{bottom:48px;font-size:10px}.shade{background:linear-gradient(180deg,#0005,transparent 25%,transparent 36%,#0008 76%,#000b)}}@media(max-height:700px) and (min-width:701px){.chat-panel{top:75px;bottom:50px}.chat-heading{padding-bottom:8px}.welcome{top:45%}.welcome h1{font-size:64px;margin-bottom:16px}.welcome-copy{font-size:13px}.lineup{top:100px;bottom:155px}.now-playing{bottom:65px}.now-prompt{font-size:12px;-webkit-line-clamp:2}.composer-note{font-size:7px}.ideas{margin-bottom:8px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}
@media (max-width: 700px) {
  .video-layer {
    bottom: auto;
    height: 46%;
  }
}

/* Only the broadcast lineup grows; the chat/composer keeps its existing size. */
.lineup {
  width: 300px;
  bottom: 245px;
}
.next-card {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
}
.next-card .next-status {
  margin-bottom: 8px;
  font-size: 10px;
}
.next-author {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}
.next-card small {
  margin-top: 9px;
  font-size: 11px;
}
.playback-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.playback-progress progress {
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 6px;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background: #ffffff40;
  accent-color: #d6ffad;
}
.playback-progress progress::-webkit-progress-bar {
  border-radius: 99px;
  background: #ffffff40;
}
.playback-progress progress::-webkit-progress-value {
  border-radius: 99px;
  background: #d6ffad;
}
.playback-progress progress::-moz-progress-bar {
  border-radius: 99px;
  background: #d6ffad;
}
.playback-time {
  flex: none;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #f0f7e8;
}
@media (max-width: 1050px) and (min-width: 701px) {
  .lineup {
    width: 240px;
  }
}
@media (max-height: 700px) and (min-width: 701px) {
  .lineup {
    bottom: 225px;
  }
}
@media (max-width: 700px) {
  .lineup {
    width: min(222px, calc(100vw - 165px));
    height: 146px;
    bottom: auto;
  }
  .next-card {
    padding: 9px 11px;
    font-size: 12px;
    line-height: 1.4;
  }
  .next-card .next-status {
    margin-bottom: 5px;
    font-size: 8px;
  }
  .next-author {
    margin-bottom: 5px;
    font-size: 13px;
  }
  .next-card p {
    -webkit-line-clamp: 3;
  }
  .now-playing {
    top: calc(46% - 115px);
    height: 107px;
  }
  .playback-progress {
    gap: 8px;
    margin-top: 9px;
  }
  .playback-progress progress {
    height: 5px;
  }
  .playback-time {
    font-size: 9px;
  }
}

/* Keep the promotion in the chat column, leaving the video unobstructed. */
.topbar{top:0}
.official-brand{display:inline-flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-style:normal;letter-spacing:normal;transform:none}
.official-brand svg{display:block;flex:none}
.live-wordmark-label{font:600 14px Arial,sans-serif;color:#d6ffad}
.lineup{top:114px}
.chat-panel{top:95px}
.composer{padding-top:12px}
#message-form,.input-row{width:100%}
.input-row textarea{height:64px;min-height:64px;max-height:64px;font-size:14px;line-height:1.5;padding:10px 13px 4px}
.send-button{align-self:stretch;display:flex;align-items:center;gap:4px}
.send-button span{margin:0}
.playback-controls{position:absolute;left:25px;bottom:74px;width:min(580px,calc(100vw - 435px));z-index:4}
.playback-controls .playback-progress{margin-top:0}
button:disabled,input:disabled,textarea:disabled{cursor:default;opacity:.6}
@media(max-width:1100px) and (min-width:701px){.playback-controls{width:calc(100vw - 385px)}}
@media(max-width:700px){
 .topbar{top:0}
 .wordmark svg{width:106px;height:24px}
 .live-wordmark-label{font-size:11px}
 .chat-panel{top:46%;bottom:60px}
 .composer{padding-top:7px}
 .input-row textarea{height:48px;min-height:48px;max-height:48px;font-size:13px;line-height:1.4;padding:7px 10px 2px}
 .playback-controls{left:15px;top:calc(46% - 29px);bottom:auto;width:calc(100vw - 30px)}
 .footer .official-brand svg{width:106px;height:24px}
}
@media(max-height:700px) and (min-width:701px){.chat-panel{top:75px}.lineup{top:100px}.playback-controls{bottom:65px}}
@media(max-width:700px){
 .lineup{top:100px;height:auto;max-height:clamp(0px,calc(46svh - 141px),180px);overflow-y:auto}
 .lineup .next-card:not(:first-child){display:none}
}
@media(max-width:700px) and (max-height:700px){
 #stage{min-height:0}
 .video-layer{height:33%}
 .chat-panel{top:33%}
 .playback-controls{top:calc(33% - 29px)}
 .lineup{max-height:clamp(0px,calc(33svh - 141px),180px)}
 .input-row textarea{height:44px;min-height:44px;max-height:44px}
}

/* Three portrait stories from the Live banner design. */
.promo-story {
  position: relative;
  display: block;
  flex: none;
  /* Same left/right edges as the chat cards: the message list pads 1px left and 7px right. */
  width: auto;
  aspect-ratio: 4/6;
  align-self: stretch;
  container-type: inline-size;
  margin: 0 7px 16px 1px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition:
    background-color 0.25s,
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out;
}
.promo-story .media {
  position: absolute;
  inset: 3px;
  overflow: hidden;
  border-radius: 15px;
  background: var(--ink);
  transition: background-color 0.25s;
}
.promo-story video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: scale 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.promo-story video.is-active {
  opacity: 1;
}
.promo-story video {
  object-fit: cover;
}
.promo-story .story-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.promo-story:has(.story-link:focus-visible) {
  outline: 3px solid #c5ff91;
  outline-offset: 3px;
}
.promo-story video.lift {
  transform-origin: 50% 100%;
  transform: scale(1.08);
}
.promo-story .dim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  background:
    linear-gradient(
      to bottom,
      rgba(17, 21, 16, 0.45) 0%,
      rgba(17, 21, 16, 0) 16%
    ),
    linear-gradient(
      to top,
      rgba(17, 21, 16, 0.86) 0%,
      rgba(17, 21, 16, 0.6) 24%,
      rgba(17, 21, 16, 0) 56%
    );
}
.promo-story .progress {
  position: absolute;
  top: 1px;
  left: 3.43%;
  right: 3.43%;
  display: flex;
  gap: 4px;
  z-index: 3;
  cursor: pointer;
}
.promo-story .progress button {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
}
.promo-story .progress button::before {
  content: "";
  position: absolute;
  top: calc(50% - 1.5px);
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transition: background-color 0.25s;
}
.promo-story .progress b {
  position: absolute;
  top: calc(50% - 1.5px);
  left: 0;
  right: 0;
  border-radius: 2px;
  display: block;
  height: 3px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: background-color 0.25s;
}
.promo-story .nav {
  border: 0;
  padding: 0;
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(17, 21, 16, 0.24);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.28);
  transition:
    background-color 0.2s,
    transform 0.15s;
}
.promo-story .nav.prev {
  left: 12px;
}
.promo-story .nav.next {
  right: 12px;
}
.promo-story .nav svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.promo-story .nav:hover {
  background: rgba(17, 21, 16, 0.38);
  transform: scale(1.08);
}
.promo-story .nav:active {
  transform: scale(0.92);
}
.promo-story.is-light .nav {
  background: rgba(17, 21, 16, 0.17);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.14);
}
.promo-story.is-light .nav:hover {
  background: rgba(17, 21, 16, 0.28);
}
.promo-story .copy {
  position: absolute;
  left: 6.85%;
  right: 6.85%;
  bottom: 3.05%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5.71cqw;
  transition: color 0.25s;
}
.promo-story .copy .title {
  display: block;
  font-size: min(24px, 6.85cqw);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.promo-story .copy .cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  align-self: stretch;
  margin: 0 -2.28cqw;
  height: max(26px, 13.14cqw);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    #ff4d38 0%,
    #ff2a17 50%,
    #ee1608 51%,
    #fa2010 100%
  );
  color: #fff;
  font-size: max(11px, 4.85cqw);
  font-weight: 800;
  letter-spacing: -0.3px;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(80, 0, 0, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -3px 8px rgba(150, 0, 0, 0.35),
    0 6px 18px rgba(90, 10, 0, 0.32);
}
.promo-story .copy .cta::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 2px;
  height: 48%;
  border-radius: 10px 10px 5px 5px;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.06)
  );
}
.promo-story .copy .cta::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -45%;
  width: 32%;
  z-index: -1;
  transform: skewX(-22deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0)
  );
  animation: cta-shine 3.6s ease-in-out infinite;
}
@keyframes cta-shine {
  0%,
  58% {
    left: -45%;
  }
  100% {
    left: 125%;
  }
}
.promo-story.is-light .media {
  background: #fff;
}
.promo-story.is-light .dim {
  opacity: 0;
}
.promo-story.is-light .copy {
  color: var(--ink);
}
.promo-story.is-light .progress button::before {
  background: rgba(17, 21, 16, 0.14);
}
.promo-story.is-light .progress b {
  background: var(--ink);
}
.promo-story::before,
.promo-story::after {
  content: "";
  position: absolute;
  z-index: 4;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.promo-story::before {
  inset: 0;
  padding: 3px;
  border-radius: 18px;
  background: var(--ink);
}
.promo-story::after {
  inset: 1px;
  padding: 1px;
  border-radius: 17px;
  background: linear-gradient(
      105deg,
      rgba(255, 236, 220, 0) 46%,
      rgba(255, 236, 220, 0.5) 50%,
      rgba(255, 236, 220, 0) 54%
    )
    100% 0/300% 100% no-repeat;
  animation: frame-shine 3.6s ease-in-out infinite;
}
@keyframes frame-shine {
  0%,
  58% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0% 0;
  }
}
.promo-story:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.promo-story:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
  transition-duration: 0.06s;
}
.promo-story:hover .copy .cta {
  filter: brightness(1.06);
}
.promo-story:hover video {
  scale: 1.03;
}
.promo-story:not(.is-light):hover .dim {
  opacity: 0.78;
  transition-duration: 0.45s;
}
@media (prefers-reduced-motion: reduce) {
  .promo-story:hover,
  .promo-story:active {
    transform: none;
  }
  .promo-story:hover video {
    scale: none;
  }
}

/* The taller story pushes messages down: the panel scrolls and the composer stays reachable. */
.chat-panel {
  overflow-y: auto;
}
.chat-view {
  flex: 1 0 252px; /* 200px + the removed tab row */
}
.composer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: transparent; /* no backdrop box around input + send button; each keeps its own style */
}

/* The story yields height to recent messages above the composer. */
@media (min-width: 1101px) and (min-height: 701px) {
  .chat-panel {
    bottom: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(200px, 1fr) auto;
    column-gap: 8px;
  }
  .promo-story {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: auto;
  }
  .chat-heading {
    grid-column: 1;
    padding-bottom: 10px;
  }
  .chat-view,
  .composer {
    grid-column: 1 / -1;
  }
  .footer {
    right: 390px;
  }
}

/* On phones the story sits above the messages at the same width, and the panel scrolls. */
@media (max-width: 700px) {
  .promo-story {
    margin-right: 5px; /* the phone message list pads 5px right */
  }
  .promo-story .nav {
    width: 24px;
    height: 24px;
    margin-top: -12px;
  }
  .promo-story .nav.prev {
    left: 4%;
  }
  .promo-story .nav.next {
    right: 4%;
  }
  .promo-story .copy {
    gap: 3cqw;
  }
}
/* Compact cards leave room for wrapped prompts on smaller screens. */
@media (max-width: 700px), (max-height: 640px) {
  .chat-view .message {
    padding: 4px 8px;
    line-height: 1.2;
  }
  .chat-view .message-list {
    gap: 6px;
    padding-bottom: 6px;
  }
  .chat-view .message-meta {
    margin-top: 3px;
  }
}

/* Dock chat beside the broadcast when vertical space is scarce. */
@media (orientation: landscape) and (max-height: 640px) {
  .chat-panel {
    display: flex;
    overflow-y: auto;
    top: 65px;
    bottom: 12px;
    left: auto;
    right: 12px;
    width: min(55vw, 460px);
    padding: 0;
    gap: 4px;
  }
  .chat-view { grid-area: 2 / 1; min-width: 0; }
  .composer { grid-area: 3 / 1 / 4 / 3; padding: 0; }
  .playback-controls { left: 12px; top: auto; bottom: 55px; width: calc(42vw - 24px); }
  .video-layer { width: 43%; height: 100%; }
  .lineup { left: 12px; right: auto; max-width: calc(42vw - 24px); }
  .footer { right: 58%; }
}

/* Clip length choice and sound control. */
/* The text box owns its option row: textarea above, two segmented toggles below. */
.input-box{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--bubble);border:var(--stroke);box-shadow:3px 3px 0 #111510;border-radius:13px;color:#182214}
.input-box:focus-within{outline:3px solid #c5ff91;outline-offset:2px}
.input-box.invalid{border-color:var(--coral);animation:nudge .25s}
.input-box textarea{flex:1;border:0;border-radius:13px 13px 0 0;background:transparent;box-shadow:none;outline:0}
.prompt-hint{margin:0;padding:0 13px 2px;font-size:11px;font-weight:800;color:#c0392b}
.option-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;padding:4px 6px 7px}
.seg-toggle{display:inline-flex;max-width:100%;border:2px solid #111510;border-radius:10px;overflow:hidden;background:var(--bubble)}
.seg-toggle button{min-height:30px;padding:0 8px;border:0;background:transparent;color:#4a5342;font-size:11px;font-weight:900;white-space:nowrap}
.seg-toggle button+button{border-left:2px solid #111510}
.seg-toggle button[aria-checked=true]{background:#c5ff91;color:var(--ink)}
.seg-toggle button:focus-visible{outline-offset:-4px}
.attach-reject{padding-top:2px;line-height:1.45;overflow-wrap:anywhere}
.attach-preview{display:flex;align-items:center;gap:8px;padding:2px 8px 4px}
.attach-thumb{width:64px;height:36px;object-fit:cover;border:2px solid #111510;border-radius:7px;background:#dceac7}
.attach-role{min-width:0;flex:1;font-size:10px;font-weight:800;color:#4a5342;overflow-wrap:anywhere}
.attach-remove{flex:none;width:26px;height:26px;border:2px solid #111510;border-radius:50%;background:var(--bubble);color:var(--ink);font-size:15px;font-weight:900;line-height:1;padding:0}
.attach-remove:hover{background:var(--coral)}
.attach-button{flex:none;display:inline-grid;place-items:center;width:34px;min-height:30px;padding:0;border:2px solid #111510;border-radius:10px;background:var(--bubble);color:#4a5342}
.attach-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.attach-button[data-attached=true]{background:#c5ff91;color:var(--ink)}
.attach-button:hover:not(:disabled){background:#c5ff91}
.message-thumb{display:block;width:96px;height:54px;object-fit:cover;margin-top:6px;border:2px solid #111510;border-radius:7px;background:#dceac7}
.message-meta .attach-tag{padding:1px 6px;border-radius:99px;background:#c5ff91;border:1px solid #1115;color:#182210;font-weight:800}
.option-row{gap:4px;padding:4px 5px 7px}
.seg-toggle button{padding:0 6px;font-size:10.5px}
.attach-button{width:30px}
@keyframes nudge{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
.message-meta .mode-tag{padding:1px 6px;border-radius:99px;background:#fff9;border:1px solid #1115;color:#182210;font-weight:800}
.message-meta .mode-tag.continue{background:#e5ddef}
.message-meta .duration-tag{padding:1px 6px;border-radius:99px;background:#c5ff91;color:#182210;font-weight:800}
.sound-toggle{flex:none;display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:0 10px;border:1px solid #ffffff80;border-radius:99px;background:#11151099;color:#f0f7e8;font-size:11px;font-weight:700;white-space:nowrap}
.sound-toggle svg{width:15px;height:15px;fill:currentColor;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.sound-toggle svg path:not(:first-child){fill:none}
.sound-toggle[data-sound=on]{background:#c5ff91;border-color:#c5ff91;color:var(--ink)}
.sound-toggle[data-sound=on] #sound-slash,.sound-toggle:not([data-sound=on]) #sound-waves{display:none}
@media(max-width:700px){
 .option-row{gap:4px 6px;padding:2px 6px 6px}
 .seg-toggle button{min-height:26px;padding:0 8px;font-size:11px}
 .prompt-hint{padding:0 10px 1px;font-size:10px}
 .sound-toggle{padding:0 8px;font-size:10px}
 .attach-preview{padding:0 6px 2px}
 .attach-thumb{width:48px;height:27px;border-width:2px}
 .attach-button{width:30px;min-height:26px}
 .message-thumb{width:72px;height:40px;margin-top:4px}
}

/* "직전 영상" replay button and the catch-up return button live in the player control row. */
.replay-prev{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 10px 0 3px;border:1px solid #ffffff80;border-radius:99px;background:#11151099;color:#f0f7e8;font-size:11px;font-weight:700;white-space:nowrap}
.replay-prev:hover{background:#111510cc}
.replay-thumb{display:block;width:36px;height:22px;border-radius:99px;overflow:hidden;background:#0b0f0d}
.replay-thumb img,.replay-thumb video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.live-return{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:30px;padding:0 11px;border:2px solid #111510;border-radius:99px;background:var(--coral);color:#fff;box-shadow:2px 2px 0 #111510;font-size:11px;font-weight:900;white-space:nowrap}
.live-return-dot{width:7px;height:7px;border-radius:50%;background:#fff}
.live-badge.rewatch{background:#c5ff91;border-color:#e3ffc7;color:var(--ink)}
.live-badge.rewatch .dot{background:var(--ink)}
@media(max-width:700px){
 .replay-prev{min-height:28px;padding:0 8px 0 2px;gap:4px;font-size:10px}
 .replay-thumb{width:28px;height:18px}
 .live-return{min-height:28px;padding:0 9px;font-size:10px}
}

/* Header brand lockup: mascot icon + wordmark + "Live Relay" label scale together from --brand-h (28px was the original;
   84px = 3x on desktop). The height shrinks with the viewport so the lockup never reaches the centred status pill
   (50vw - ~90px leaves room for the status pill) and never overflows a 390px phone. */
#stage{--brand-h:clamp(40px,calc((50vw - 90px) / 7.4),84px)}
.topbar .official-brand{gap:calc(var(--brand-h) * .36);flex:none}
.topbar .official-brand svg{width:calc(var(--brand-h) * 4.4196);height:var(--brand-h)}
.topbar .live-wordmark-label{font-size:calc(var(--brand-h) * .5);line-height:1;white-space:nowrap}
.lineup{top:calc(23px + var(--brand-h) + 30px)}
.connection-error{top:calc(23px + var(--brand-h) + 10px)}
.welcome h1{font-size:clamp(40px,4.6vw,64px)}
@media(min-width:1250px){.welcome h1{font-size:64px}}
@media(max-width:1050px) and (min-width:701px){.welcome h1{font-size:46px}}
@media(max-height:700px) and (min-width:701px){.lineup{top:calc(23px + var(--brand-h) + 20px)}}
@media(max-width:900px) and (min-width:701px){
 #stage{--brand-h:56px}
 .live-badge{left:26px;transform:none;top:calc(23px + var(--brand-h) + 10px)}
 .lineup{top:calc(23px + var(--brand-h) + 56px)}
}
@media(max-width:700px){
 #stage{--brand-h:min(48px,12.5vw)}
 .live-badge{top:calc(17px + var(--brand-h) + 8px)}
 .lineup{top:calc(17px + var(--brand-h) + 40px)}
 .connection-error{top:calc(17px + var(--brand-h) + 44px)}
 .welcome h1{font-size:34px;letter-spacing:-2px}
}

/* The right panel (banner + tabs + chat + input) starts at the header's top margin (23px) so the chat list gets the freed
   height. Where the header logo could reach the panel (701-770px wide) it keeps starting below the logo. The short
   landscape dock keeps its own offset. Phone: the column is stacked below the video, so only its 10px top padding goes. */
@media(min-width:701px) and (min-height:641px){.chat-panel{top:24px}}
@media(min-width:701px) and (max-width:770px) and (min-height:641px){.chat-panel{top:calc(23px + var(--brand-h) + 16px)}}
@media(max-width:700px){.chat-panel{padding-top:0}}
/* Desktop grid: the 71px freed above (95px -> 24px) and the removed tab row (~52px) go to the chat list (min 200px -> 323px), not to a taller banner. */
@media(min-width:1101px) and (min-height:701px){.chat-panel{grid-template-rows:auto minmax(323px,1fr) auto}}

/* Keep the image button + 이어서/새로 + 5초/10초 on one row at every width: below 1250px the panel is 295-330px wide,
   so the option row tightens (paddings, gaps) and the 보내기 button narrows to give the text box more room. */
@media(max-width:1249px){
 .option-row{flex-wrap:nowrap;gap:3px;padding:4px 4px 7px}
 .seg-toggle button{padding:0 4px;font-size:9.5px}
 .attach-button{width:26px}
 .send-button{padding:10px 6px}
}

/* Composer frame + hidden panel label.
   Root cause of the clipped input frame: .chat-panel is overflow-y:auto (which also clips x), and the sticky composer sat flush
   against its left/bottom/right edges, so the input box's 4px offset shadow and the 3px+offset focus outline were cut flat.
   The composer now owns a gutter at least as large as the shadow + focus ring (stroke 3 + outline offset 2 + outline 3 = 8px
   left/bottom; right also takes the 4px shadow), and the box/button use the same stroke, radius and shadow as .message cards. */
.chat-heading{display:none}
.composer{padding:10px 10px 10px 8px;margin:0}
.input-box{border:var(--stroke);border-radius:16px;box-shadow:var(--shadow)}
.input-box:focus-within{outline:3px solid #c5ff91;outline-offset:2px;border-radius:16px}
.input-box textarea{border-radius:13px 13px 0 0}
.send-button{border:var(--stroke);border-radius:16px;box-shadow:var(--shadow);margin:0 4px 4px 0;align-self:stretch}
.input-row{gap:10px}
@media(max-width:700px){
 .composer{padding:7px 8px 8px 8px}
 .input-box{border-width:2px;border-radius:13px;box-shadow:3px 3px #111}
 .send-button{border-width:2px;border-radius:13px;box-shadow:3px 3px #111;margin:0 3px 3px 0}
}
@media(orientation:landscape) and (max-height:640px){.composer{padding:6px 8px 8px 8px}}
/* The composer gutter + shadow room take ~20px from the text box, so the one-line option row also applies above 1249px. */
.option-row{flex-wrap:nowrap;gap:3px;padding:4px 4px 7px}
.seg-toggle button{padding:0 4px;font-size:9.5px}
.attach-button{width:26px}
@media(min-width:1250px){.seg-toggle button{padding:0 6px;font-size:10.5px}.attach-button{width:30px}}
.input-row{gap:8px}
