.yws-launch-wrap{margin:24px 0;text-align:center;clear:both}
.yws-launch-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:min(1100px,100%);max-width:100%;box-sizing:border-box;margin:0 auto;aspect-ratio:16/9;min-height:210px;position:relative;overflow:hidden;padding:24px 20px;border-radius:16px;background:linear-gradient(135deg,#0f172a,#111827 55%,#064e3b);border:1px solid rgba(74,222,128,.28);box-shadow:0 12px 36px rgba(2,6,23,.24),inset 0 1px 0 rgba(255,255,255,.05)}
.yws-launch-card.is-open{display:block;aspect-ratio:auto;min-height:0;padding:0;text-align:left}
.yws-launch-card.is-open>.yws-launch-kicker,.yws-launch-card.is-open>.yws-launch,.yws-launch-card.is-open>.yws-launch-note{display:none}
.yws-launch-card:before{content:"";position:absolute;inset:-60% auto auto -40%;width:55%;height:220%;background:linear-gradient(90deg,transparent,rgba(74,222,128,.12),transparent);transform:rotate(22deg);pointer-events:none}
.yws-launch-kicker{color:#a7f3d0;font-size:clamp(12px,2.6vw,16px);font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.yws-launch{position:relative;background:linear-gradient(180deg,#22c55e,#16a34a);color:#fff;border:1px solid rgba(134,239,172,.45);border-radius:999px;padding:clamp(12px,2.4vw,18px) clamp(32px,7vw,64px);font-size:clamp(17px,3.2vw,24px);font-weight:800;cursor:pointer;box-shadow:0 8px 22px rgba(22,163,74,.32);transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}
.yws-launch:hover{filter:brightness(1.07);transform:translateY(-1px);box-shadow:0 12px 28px rgba(22,163,74,.4)}
.yws-launch:active{transform:translateY(0)}
.yws-launch-icon{margin-right:7px}
.yws-launch-note{color:#cbd5e1;font-size:clamp(12px,2.2vw,14px)}

.yws-inline-host{display:none;grid-template-rows:0fr;width:min(1100px,100%);max-width:100%;margin:0 auto;opacity:0;transform:translateY(-12px) scaleY(.96);transform-origin:top center;transition:grid-template-rows .45s cubic-bezier(.2,.8,.2,1),opacity .3s ease,transform .45s cubic-bezier(.2,.8,.2,1),margin .45s ease}
.yws-launch-card.is-open .yws-inline-host,.yws-inline-host.is-open{display:grid;grid-template-rows:1fr;opacity:1;transform:none;margin:0 auto}
.yws-inline-host[hidden]{display:none}
.yws-inline-shell{min-height:0;overflow:hidden;background:#0f172a;border-radius:16px}
.yws-inline-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;background:#111827;color:#e5e7eb;border-bottom:1px solid #1f2937}
.yws-inline-title{font-size:13px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yws-inline-close{flex:0 0 auto;width:30px;height:30px;border:1px solid #374151;border-radius:8px;background:#1f2937;color:#fff;font-size:20px;line-height:1;cursor:pointer}
.yws-inline-close:hover{background:#334155}

.yws-player-host-root{position:relative;background:#020617;color:#e5e7eb;font:14px/1.4 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
.yws-stage{position:relative;aspect-ratio:16/9;background:#000;overflow:hidden}
.yws-stage video{width:100%;height:100%;display:block;background:#000;object-fit:contain}
.yws-poster{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.28;pointer-events:none}
.yws-spinner{position:absolute;top:50%;left:50%;width:34px;height:34px;margin:-17px 0 0 -17px;border:3px solid rgba(255,255,255,.22);border-top-color:#22c55e;border-radius:50%;animation:yws-spin .8s linear infinite;pointer-events:none;z-index:4}
@keyframes yws-spin{to{transform:rotate(360deg)}}
.yws-bigplay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:56px;height:56px;border:1px solid rgba(134,239,172,.5);border-radius:50%;background:rgba(34,197,94,.9);color:#052e16;font-size:22px;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.5);z-index:5;transition:width .16s ease,height .16s ease,opacity .16s ease,background .16s ease,transform .16s ease}
.yws-bigplay:hover{background:#4ade80;transform:translate(-50%,-50%) scale(1.06)}
.yws-bigplay.yws-playing{width:42px;height:42px;font-size:15px;opacity:.3;background:rgba(15,23,42,.7);color:#d1fae5}
.yws-bigplay.yws-playing:hover{opacity:.8}
.yws-player-host-root.yws-playing .yws-bigplay:not(:hover){opacity:.22}
.yws-bigplay[hidden],.yws-msg[hidden],.yws-poster[hidden],.yws-spinner[hidden],.yws-logs[hidden]{display:none}
.yws-msg{position:absolute;left:12px;bottom:58px;background:rgba(15,23,42,.86);color:#fff;padding:8px 11px;border-radius:8px;max-width:min(80%,520px);white-space:pre-line;box-shadow:0 4px 14px rgba(0,0,0,.45);z-index:6;backdrop-filter:blur(6px);font-size:12px}
.yws-controls-toggle{display:none;position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:50%;border:1px solid rgba(148,163,184,.35);background:rgba(2,6,23,.35);color:#e5e7eb;font-size:20px;line-height:1;cursor:pointer;z-index:30;opacity:.62;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);transition:opacity .15s ease,background .15s ease}
.yws-controls-toggle:hover,.yws-controls-toggle[aria-pressed="true"]{opacity:1;background:rgba(15,23,42,.72)}

.yws-controls{padding:6px 8px 8px;background:#0f172a;border-top:1px solid #1f2937;transition:transform .22s ease,opacity .22s ease}
.yws-seek{display:flex;align-items:center}
.yws-seek input,.yws-vol{width:100%;accent-color:#22c55e;cursor:pointer}
.yws-vol{width:72px;flex:0 0 72px}
.yws-row{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:5px}
.yws-row button{background:#1f2937;color:#fff;border:1px solid #374151;border-radius:7px;padding:5px 7px;cursor:pointer;font-size:12px;line-height:1.2;transition:background .12s ease,border-color .12s ease}
.yws-row button:hover{background:#334155;border-color:#4b5563}
.yws-row button:focus-visible,.yws-row select:focus-visible,.yws-seek input:focus-visible,.yws-vol:focus-visible,.yws-ext-menu summary:focus-visible,.yws-controls-toggle:focus-visible{outline:2px solid #22c55e;outline-offset:2px}
.yws-select-label{font-size:0;color:#9ca3af;display:flex;gap:3px;align-items:center;white-space:nowrap}
.yws-row select{background:#1f2937;color:#e5e7eb;border:1px solid #374151;border-radius:6px;padding:4px 5px;max-width:120px;cursor:pointer;font-size:12px}
.yws-time{font-variant-numeric:tabular-nums;color:#cbd5e1;font-size:11px;white-space:nowrap}
.yws-spacer{flex:1 1 auto}
.yws-ext-menu{position:relative}
.yws-ext-menu summary{list-style:none;background:#0f766e;border:1px solid #115e59;color:#fff;border-radius:7px;padding:5px 8px;cursor:pointer;font-size:12px;white-space:nowrap}
.yws-ext-menu summary::-webkit-details-marker{display:none}
.yws-ext-menu summary:hover{background:#115e59}
.yws-ext-panel{position:absolute;right:0;bottom:calc(100% + 8px);z-index:20;display:grid;grid-template-columns:repeat(2,minmax(112px,1fr));gap:5px;padding:7px;background:rgba(15,23,42,.98);border:1px solid rgba(45,212,191,.35);border-radius:9px;box-shadow:0 12px 36px rgba(0,0,0,.55)}
.yws-ext-panel button{background:#0f766e;border-color:#115e59;white-space:nowrap}

.yws-logs{margin:0;padding:0 10px 10px;background:#0b1220;border-top:1px solid #1f2937}
.yws-logs summary{cursor:pointer;color:#a7f3d0;font-size:12px;font-weight:700;padding:7px 0;list-style:none}
.yws-logs summary::-webkit-details-marker{display:none}
.yws-logs summary:before{content:"▸ ";color:#22c55e}
.yws-logs[open] summary:before{content:"▾ "}
.yws-logs pre{margin:0;max-height:150px;overflow:auto;background:#020617;border:1px solid #1f2937;border-radius:8px;padding:9px;color:#cbd5e1;font:11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;word-break:break-word}

.yws-player-host-root.yws-is-fullscreen,
.yws-player-host-root:fullscreen{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  max-height:none;
  overflow:hidden;
  background:#000;
  display:flex;
  flex-direction:column;
}
.yws-player-host-root.yws-is-fullscreen .yws-stage,
.yws-player-host-root:fullscreen .yws-stage{
  flex:1 1 auto;
  width:100%;
  height:100%;
  aspect-ratio:auto;
}
.yws-player-host-root.yws-is-fullscreen .yws-stage video,
.yws-player-host-root:fullscreen .yws-stage video{
  width:100%;
  height:100%;
  object-fit:contain;
}
.yws-player-host-root.yws-is-fullscreen .yws-controls-toggle,
.yws-player-host-root:fullscreen .yws-controls-toggle{display:block}
.yws-player-host-root.yws-is-fullscreen .yws-controls,
.yws-player-host-root:fullscreen .yws-controls{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:10;
  padding:7px 10px calc(9px + env(safe-area-inset-bottom));
  background:linear-gradient(to top,rgba(2,6,23,.94),rgba(15,23,42,.68));
  border-top:1px solid rgba(148,163,184,.22);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 -8px 30px rgba(0,0,0,.45);
  opacity:0;
  transform:translateY(110%);
  pointer-events:none;
}
.yws-player-host-root.yws-is-fullscreen.yws-controls-visible .yws-controls,
.yws-player-host-root:fullscreen.yws-controls-visible .yws-controls,
.yws-player-host-root.yws-is-fullscreen.yws-controls-pinned .yws-controls,
.yws-player-host-root:fullscreen.yws-controls-pinned .yws-controls{
  opacity:1;
  transform:none;
  pointer-events:auto;
}
.yws-player-host-root.yws-is-fullscreen .yws-msg,
.yws-player-host-root:fullscreen .yws-msg{
  bottom:calc(14px + env(safe-area-inset-bottom));
  background:rgba(15,23,42,.82);
  border:1px solid rgba(248,113,113,.6);
}
.yws-player-host-root.yws-is-fullscreen .yws-bigplay,
.yws-player-host-root:fullscreen .yws-bigplay{width:54px;height:54px;font-size:21px}
.yws-player-host-root.yws-is-fullscreen .yws-bigplay.yws-playing,
.yws-player-host-root:fullscreen .yws-bigplay.yws-playing{width:38px;height:38px;font-size:14px}
.yws-player-host-root.yws-is-fullscreen .yws-row button,
.yws-player-host-root.yws-is-fullscreen .yws-row select,
.yws-player-host-root:fullscreen .yws-row button,
.yws-player-host-root:fullscreen .yws-row select{background:rgba(31,41,55,.82);border-color:rgba(148,163,184,.35)}
.yws-player-host-root.yws-is-fullscreen .yws-ext-panel button,
.yws-player-host-root:fullscreen .yws-ext-panel button{background:rgba(15,118,110,.94)}
.yws-player-host-root.yws-is-fullscreen .yws-logs,
.yws-player-host-root:fullscreen .yws-logs{display:none !important}

@media(max-width:700px){
  .yws-launch-card{padding:18px 14px;min-height:200px}
  .yws-launch-card.is-open{padding:0}
  .yws-row{gap:4px}
  .yws-row select{max-width:110px;padding:4px;font-size:11px}
  .yws-vol{width:54px;flex-basis:54px}
  .yws-bigplay{width:50px;height:50px;font-size:20px}
  .yws-bigplay.yws-playing{width:38px;height:38px;font-size:13px}
  .yws-msg{left:9px;bottom:54px;font-size:11px;max-width:90%}
  .yws-controls{padding:6px 7px 8px}
  .yws-ext-panel{right:auto;left:0;grid-template-columns:repeat(2,minmax(100px,1fr))}
}

@media(max-width:700px) and (orientation:landscape){
  .yws-player-host-root.yws-is-fullscreen .yws-controls,
  .yws-player-host-root:fullscreen .yws-controls{padding:5px 8px calc(7px + env(safe-area-inset-bottom))}
  .yws-player-host-root.yws-is-fullscreen .yws-row,
  .yws-player-host-root:fullscreen .yws-row{margin-top:4px;gap:4px}
  .yws-player-host-root.yws-is-fullscreen .yws-row button,
  .yws-player-host-root:fullscreen .yws-row button{padding:4px 6px;font-size:11px}
  .yws-player-host-root.yws-is-fullscreen .yws-row select,
  .yws-player-host-root:fullscreen .yws-row select{max-width:104px;padding:3px 4px;font-size:11px}
  .yws-player-host-root.yws-is-fullscreen .yws-bigplay,
  .yws-player-host-root:fullscreen .yws-bigplay{width:46px;height:46px;font-size:18px}
  .yws-player-host-root.yws-is-fullscreen .yws-bigplay.yws-playing,
  .yws-player-host-root:fullscreen .yws-bigplay.yws-playing{width:34px;height:34px;font-size:12px}
  .yws-player-host-root.yws-is-fullscreen .yws-controls-toggle,
  .yws-player-host-root:fullscreen .yws-controls-toggle{top:7px;right:7px;width:30px;height:30px;font-size:17px}
}

@media(min-width:1100px){
  .yws-row select{max-width:140px}
  .yws-msg{bottom:66px}
}

@media(prefers-reduced-motion:reduce){
  .yws-inline-host{transition-duration:.01ms}
  .yws-spinner{animation-duration:1.4s}
}

.yws-fetching .yws-stage,
.yws-fetching .yws-controls,
.yws-fetching .yws-bigplay,
.yws-fetching .yws-controls-toggle,
.yws-fetching .yws-logs{display:none !important}
/* Overlay is now in normal flow with its own 16:9 height, so it can never be truncated */
.yws-fetch-overlay{display:none;position:relative;width:100%;aspect-ratio:16/9;min-height:300px;background:radial-gradient(ellipse at center,#0b1b2e 0%,#020617 70%);align-items:center;justify-content:center;flex-direction:column;gap:14px;color:#e5e7eb;text-align:center;padding:24px 16px;box-sizing:border-box}
.yws-fetching .yws-fetch-overlay{display:flex !important}
.yws-fetch-overlay[hidden]{display:none !important}
.yws-fetch-circle{position:relative;width:clamp(200px,42vmin,300px);height:clamp(200px,42vmin,300px);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.yws-fetch-circle:before{content:"";position:absolute;inset:0;border-radius:50%;border:8px solid rgba(255,255,255,.08);box-shadow:0 0 50px rgba(34,197,94,.22),inset 0 0 40px rgba(34,197,94,.08)}
.yws-fetch-spinner{position:absolute;inset:0;border-radius:50%;border:8px solid transparent;border-top-color:#22c55e;border-right-color:rgba(34,197,94,.45);animation:yws-spin-fast 1s linear infinite;filter:drop-shadow(0 0 10px rgba(34,197,94,.7))}
.yws-fetch-spinner[hidden]{display:none}
@keyframes yws-spin-fast{to{transform:rotate(360deg)}}
.yws-fetch-center{position:relative;width:76%;display:flex;flex-direction:column;align-items:center;gap:6px}
.yws-fetch-text{font-size:clamp(15px,3.6vmin,21px);font-weight:900;line-height:1.3}
.yws-fetch-sub{font-size:clamp(11px,2.4vmin,13px);color:#9ca3af;line-height:1.35;min-height:1.35em}
.yws-fetch-retry{padding:10px 22px;background:#22c55e;color:#052e16;border:none;border-radius:10px;font-weight:900;cursor:pointer;font-size:15px}
.yws-fetch-retry:hover{background:#4ade80}
.yws-fetch-retry[hidden]{display:none}
@media(max-width:700px){.yws-fetch-overlay{aspect-ratio:auto;min-height:340px}}
.yws-fs-btn{background:#1f7a3d;border-color:#22c55e;color:#fff;font-size:17px;padding:5px 9px}
.yws-fs-btn:hover{background:#22c55e}
