/* =====================================================================
   AniHoshi — Watch Together (room list, create, room)
   Uses only --hs-* tokens so light + dark both work. 4px corners.
   ===================================================================== */

.w2-page { padding-top: 22px; padding-bottom: 48px; }
.w2-body #body { position: relative; overflow-x: clip; }

/* ---------- shared atoms ---------- */
.w2-btn.hs-btn { height: 36px; padding: 0 14px; gap: 7px; font: 700 13px var(--hs-f-body); border-radius: 4px; }
.w2-btn.hs-btn-p { color: #fff !important; }
.w2-btn-lg.hs-btn { height: 42px; padding: 0 22px; font-size: 14px; }
.w2-kick { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 4px; background: var(--hs-ac-soft); color: var(--hs-ac-tx); font: 800 10.5px var(--hs-f-body); letter-spacing: 0.12em; text-transform: uppercase; }
.w2-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-bottom: 14px; font: 600 12.5px var(--hs-f-body); color: var(--hs-tx-4); }
.w2-crumb a { color: var(--hs-tx-4); }
.w2-crumb a:hover { color: var(--hs-ac); }
.w2-crumb i { font-style: normal; margin: 0 7px; opacity: 0.5; }
.w2-crumb span { color: var(--hs-tx-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.w2-live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--hs-hot, #FF6B5E); box-shadow: 0 0 0 0 rgba(255, 107, 94, 0.55); animation: w2-pulse 1.8s ease-out infinite; flex-shrink: 0; }
@keyframes w2-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 94, 0.55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(255, 107, 94, 0); } }
.w2-ep { font: 800 11.5px var(--hs-f-body); color: var(--hs-tx); letter-spacing: 0.02em; }
.w2-dim { font: 600 12px var(--hs-f-body); color: var(--hs-tx-4); }
.w2-lang { display: inline-flex; align-items: center; gap: 5px; height: 19px; padding: 0 6px; border-radius: 3px; font: 800 10.5px var(--hs-f-body); letter-spacing: 0.05em; background: var(--hs-raise); color: var(--hs-tx-3); }
.w2-lang.sub { background: var(--hs-ac-soft); color: var(--hs-ac-tx); }
.w2-lang.dub { background: color-mix(in srgb, var(--hs-dub) 16%, transparent); color: var(--hs-dub-tx); }
.w2-lang i.sub { color: var(--hs-ac); }
.w2-lang i.dub { color: var(--hs-dub); }
.w2-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border: 1px solid var(--hs-line-2); border-radius: 3px; font: 700 11px var(--hs-f-body); color: var(--hs-tx-3); }
.w2-input, .w2-page .form-control { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--hs-line-2); border-radius: 4px; background: var(--hs-field); color: var(--hs-tx); font: 600 13.5px var(--hs-f-body); outline: 0; transition: border-color 0.15s, box-shadow 0.15s; }
.w2-input::placeholder, .w2-page .form-control::placeholder { color: var(--hs-tx-4); font-weight: 500; }
.w2-input:focus, .w2-page .form-control:focus { border-color: var(--hs-ac); box-shadow: 0 0 0 3px var(--hs-ac-soft); }

/* ---------- list hero ---------- */
.w2-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 30px 32px; border: 1px solid var(--hs-line); border-radius: 4px; background: linear-gradient(115deg, var(--hs-ac-soft) 0%, transparent 58%), var(--hs-bg-2); overflow: hidden; }
.w2-hero::before { content: ''; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; background: radial-gradient(closest-side, var(--hs-ac-soft), transparent); pointer-events: none; }
.w2-hero-tx { position: relative; }
.w2-hero h1 { margin: 12px 0 0; font: 800 34px/1.1 var(--hs-f-head); letter-spacing: -0.015em; color: var(--hs-tx); }
.w2-hero h1 em { font-style: normal; color: var(--hs-ac); }
.w2-hero p { max-width: 540px; margin: 10px 0 18px; font: 500 14.5px/1.6 var(--hs-f-body); color: var(--hs-tx-3); }
.w2-hero-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.w2-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: none; }
.w2-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg); }
.w2-steps .n { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 4px; background: var(--hs-ac-fill); color: #fff; font: 800 12.5px var(--hs-f-body); }
.w2-steps b { display: block; font: 700 14px var(--hs-f-body); color: var(--hs-tx); }
.w2-steps small { display: block; margin-top: 2px; font: 500 12.5px/1.45 var(--hs-f-body); color: var(--hs-tx-4); }

/* ---------- filter bar ---------- */
.w2-bar-row { margin: 22px 0 14px; }
.w2-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.w2-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.w2-tabs a { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); color: var(--hs-tx-3); font: 700 13px var(--hs-f-body); transition: border-color 0.15s, color 0.15s; }
.w2-tabs a:hover { border-color: var(--hs-line-2); color: var(--hs-tx); }
.w2-tabs a.active { background: var(--hs-ac-fill); border-color: var(--hs-ac-fill); color: #fff; }
.w2-tabs a.active .w2-live-dot { background: #fff; }
.w2-count { font: 600 13px var(--hs-f-body); color: var(--hs-tx-4); }
.w2-count b { color: var(--hs-tx); font-weight: 800; }

/* ---------- room cards ---------- */
.w2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.w2-card-in { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); overflow: hidden; transition: border-color 0.18s, transform 0.18s; }
.w2-card-in:hover { border-color: var(--hs-ac); transform: translateY(-2px); }
.w2-card-art { position: relative; display: block; aspect-ratio: 16 / 8.6; background: var(--hs-bg-3); }
.w2-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 0.2s; }
.w2-card-in:hover .w2-card-bg { filter: brightness(1.08); }
.w2-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.5) 100%); }
.w2-state { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; background: rgba(4, 10, 18, 0.62); backdrop-filter: blur(6px); color: #fff; font: 800 10.5px var(--hs-f-body); letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; }
.w2-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--hs-ac); }
.w2-state time { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.is-live .w2-state { background: var(--hs-hot, #FF6B5E); }
.is-live .w2-state i { background: #fff; animation: w2-blink 1.2s ease-in-out infinite; }
.is-scheduled .w2-state i { background: var(--hs-star); }
.is-ended .w2-state i { background: rgba(255, 255, 255, 0.5); }
.w2-state.is-preview i { background: var(--hs-ok, #3EE08F); }
@keyframes w2-blink { 50% { opacity: 0.35; } }
.w2-lock { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 4px; background: rgba(4, 10, 18, 0.62); color: #fff; font: 700 10.5px var(--hs-f-body); }
.w2-card-poster { position: absolute; left: 12px; bottom: -30px; width: 56px; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; border: 2px solid var(--hs-bg-2); background: var(--hs-bg-3); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.w2-card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w2-card-body { display: flex; flex-direction: column; gap: 3px; min-height: 64px; padding: 10px 12px 12px 80px; }
.w2-card-t { font: 700 14.5px/1.3 var(--hs-f-head); color: var(--hs-tx); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w2-card-a { font: 600 12px var(--hs-f-body); color: var(--hs-tx-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w2-card-m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 3px; }
.w2-card-host { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 9px 12px; border-top: 1px solid var(--hs-line); }
.w2-card-host img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--hs-raise); }
.w2-host-n { flex: 1; min-width: 0; font: 700 12.5px var(--hs-f-body); color: var(--hs-tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w2-card-host time { font: 600 11.5px var(--hs-f-body); color: var(--hs-tx-4); white-space: nowrap; }
.is-ended .w2-card-bg { filter: grayscale(0.85) brightness(0.8); }
.is-ended .w2-card-poster img { filter: grayscale(0.6); }

/* ---------- empty ---------- */
.w2-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 46px 20px; border: 1px dashed var(--hs-line-2); border-radius: 4px; background: var(--hs-bg-2); }
.w2-empty-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 4px; background: var(--hs-ac-soft); color: var(--hs-ac); margin-bottom: 4px; }
.w2-empty strong { font: 800 17px var(--hs-f-head); color: var(--hs-tx); }
.w2-empty p { margin: 0; max-width: 420px; font: 500 13.5px/1.55 var(--hs-f-body); color: var(--hs-tx-4); }
.w2-empty-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

/* ---------- create ---------- */
.w2-create-head h1 { margin: 0; font: 800 28px/1.15 var(--hs-f-head); color: var(--hs-tx); letter-spacing: -0.01em; }
.w2-create-head p { margin: 6px 0 0; font: 500 14px var(--hs-f-body); color: var(--hs-tx-4); }
.w2-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; padding: 11px 14px; border: 1px solid var(--hs-line-ac, var(--hs-line-2)); border-radius: 4px; background: var(--hs-ac-soft); color: var(--hs-tx-2); font: 600 13.5px var(--hs-f-body); }
.w2-notice svg { color: var(--hs-ac); flex-shrink: 0; }
.w2-notice a { margin-left: auto; color: var(--hs-ac); font-weight: 800; }
.w2-create-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 20px; }
.w2-create-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.w2-preview { border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); overflow: hidden; }
.w2-preview-art { position: relative; aspect-ratio: 16 / 9; background: var(--hs-bg-3); }
.w2-preview-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w2-preview-poster { position: absolute; left: 14px; bottom: -34px; width: 68px; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; border: 2px solid var(--hs-bg-2); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); background: var(--hs-bg-3); }
.w2-preview-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w2-preview-body { padding: 12px 14px 14px 96px; min-height: 76px; }
.w2-preview-t { font: 700 15px/1.3 var(--hs-f-head); color: var(--hs-tx); }
.w2-preview-host { display: flex; align-items: center; gap: 8px; margin: 14px 0 0 -82px; padding-top: 12px; border-top: 1px solid var(--hs-line); font: 600 12.5px var(--hs-f-body); color: var(--hs-tx-4); }
.w2-preview-host b { color: var(--hs-tx-2); }
.w2-preview-av { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--hs-raise); color: var(--hs-tx-3); }
.w2-perks { list-style: none; margin: 0; padding: 14px 16px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); display: grid; gap: 9px; }
.w2-perks li { display: flex; align-items: flex-start; gap: 9px; font: 600 13px/1.4 var(--hs-f-body); color: var(--hs-tx-3); }
.w2-perks svg { color: var(--hs-ok, #3EE08F); flex-shrink: 0; margin-top: 2px; }

.w2-form { border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); }
.w2-form > .alert { margin: 16px 20px 0; border-radius: 4px; }
.w2-form > .loading { min-height: 60px; }
.w2-step { padding: 18px 20px; }
.w2-step + .w2-step { border-top: 1px solid var(--hs-line); }
.w2-step-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.w2-step-h .n { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; background: var(--hs-ac-soft); color: var(--hs-ac); font: 800 11.5px var(--hs-f-body); }
.w2-step-h label { margin: 0; font: 700 14.5px var(--hs-f-body); color: var(--hs-tx); }
.w2-step-h small { margin-left: auto; font: 600 12px var(--hs-f-body); color: var(--hs-tx-4); }
.w2-step .form-group { margin: 0; }
.w2-help { margin: 8px 0 0; font: 500 12.5px/1.5 var(--hs-f-body); color: var(--hs-tx-4); }
.w2-help-box { margin: 0; padding: 10px 12px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg); }
.help-block:empty { display: none; }
.w2-search { position: relative; margin-bottom: 10px; max-width: 320px; }
.w2-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--hs-tx-4); pointer-events: none; }
.w2-search .w2-input { padding-left: 32px; }

/* episode lists (create + host panel) */
.w2g-ep-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; max-height: 262px; overflow-y: auto; padding: 2px 4px 2px 0; scrollbar-width: thin; scrollbar-color: var(--hs-line-2) transparent; }
.w2g-ep-item { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 4px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-raise); color: var(--hs-tx-2); transition: border-color 0.15s, background 0.15s; }
.w2g-ep-item:hover { border-color: var(--hs-line-2); color: var(--hs-tx); }
.w2g-ep-order { min-width: 30px; height: 30px; padding: 0 4px; display: grid; place-items: center; border-radius: 3px; background: var(--hs-bg-2); font: 800 12.5px var(--hs-f-body); color: var(--hs-tx); font-variant-numeric: tabular-nums; }
.w2g-ep-detail { flex: 1; min-width: 0; }
.w2g-ep-name { font: 600 12.5px var(--hs-f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w2g-ep-btn { font-size: 9px; color: var(--hs-tx-4); opacity: 0; transition: opacity 0.15s; }
.w2g-ep-item:hover .w2g-ep-btn, .w2g-ep-item.active .w2g-ep-btn { opacity: 1; }
.w2g-ep-item.active { border-color: var(--hs-ac); background: var(--hs-ac-soft); color: var(--hs-tx); }
.w2g-ep-item.active .w2g-ep-order { background: var(--hs-ac-fill); color: #fff; }
.w2g-ep-item.active .w2g-ep-btn { color: var(--hs-ac); }
.w2g-ep-item.highlight { border-color: var(--hs-star); }
.w2g-ep-item.is-busy { opacity: 0.5; pointer-events: none; }
.w2g-ep-loading, .w2g-ep-empty { grid-column: 1 / -1; padding: 14px; text-align: center; font: 600 13px var(--hs-f-body); color: var(--hs-tx-4); }

/* segmented radios / tabs */
.w2-seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.w2-seg .custom-control { position: relative; }
.w2-seg .custom-control-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.w2-seg .custom-control-label, .w2-seg .nav-link { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; margin: 0; border: 1px solid var(--hs-line-2); border-radius: 4px; background: var(--hs-raise); color: var(--hs-tx-3); font: 700 13px var(--hs-f-body); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.w2-seg .custom-control-label:hover, .w2-seg .nav-link:hover { color: var(--hs-tx); border-color: var(--hs-ac); }
.w2-seg .custom-control-input:checked + .custom-control-label, .w2-seg .nav-link.active { background: var(--hs-ac-fill); border-color: var(--hs-ac-fill); color: #fff; }
.w2-seg .custom-control-input:focus-visible + .custom-control-label { box-shadow: 0 0 0 3px var(--hs-ac-soft); }
.w2-tabpanes { margin-top: 12px; }
.w2-tabpanes .tab-pane { display: none; }
.w2-tabpanes .tab-pane.active { display: block; }
.w2-tabpanes input[type="datetime-local"] { max-width: 300px; }

/* square switch */
.w2-switch { position: relative; }
.w2-switch .custom-control-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.w2-switch .custom-control-label { position: relative; display: inline-flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; font: 700 13.5px var(--hs-f-body); color: var(--hs-tx-2); }
.w2-switch .custom-control-label::before { content: ''; width: 40px; height: 22px; border-radius: 4px; background: var(--hs-raise); border: 1px solid var(--hs-line-2); transition: background 0.15s, border-color 0.15s; flex-shrink: 0; }
.w2-switch .custom-control-label::after { content: ''; position: absolute; left: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 3px; background: var(--hs-tx-4); transition: transform 0.18s, background 0.15s; }
.w2-switch .custom-control-input:checked + .custom-control-label::before { background: var(--hs-ac); border-color: var(--hs-ac); }
.w2-switch .custom-control-input:checked + .custom-control-label::after { transform: translateX(18px); background: #fff; }
.w2-switch .custom-control-input:focus-visible + .custom-control-label::before { box-shadow: 0 0 0 3px var(--hs-ac-soft); }
.w2-switch .custom-control-input:checked + .custom-control-label .off, .w2-switch .custom-control-input:not(:checked) + .custom-control-label .on { display: none; }
.w2-submit { padding: 18px 20px; border-top: 1px solid var(--hs-line); background: var(--hs-bg-3); border-radius: 0 0 4px 4px; }
.w2-submit .w2-btn { min-width: 200px; }

/* =========================== room =========================== */
.w2-room-stage-bg { position: absolute; left: 0; right: 0; top: 0; height: 560px; background-size: cover; background-position: center 30%; filter: blur(48px) saturate(1.3); opacity: 0.2; transform: scale(1.15); pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
.w2-room { position: relative; z-index: 1; padding-top: 18px; padding-bottom: 48px; }
.w2-room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.w2-stage { min-width: 0; }

/* player */
.w2-player { position: relative; display: grid; width: 100%; border-radius: 4px; overflow: hidden; background: #000; border: 1px solid var(--hs-line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.w2-player > .player { grid-area: 1 / 1; width: 100%; }
.w2-player-idle { position: relative; z-index: 1; display: grid; place-items: center; aspect-ratio: 16 / 9; isolation: isolate; overflow: hidden; pointer-events: none; }
.w2-player-bg { position: absolute; inset: -24px; z-index: -1; background-size: cover; background-position: center; filter: blur(16px) brightness(0.42) saturate(1.2); }
.w2-notice-card { position: relative; max-width: 480px; width: 100%; padding: 26px 22px; text-align: center; color: #fff; pointer-events: auto; }
.w2-notice-av { position: relative; width: 68px; height: 68px; margin: 0 auto 14px; }
.w2-notice-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--hs-ac); background: rgba(255, 255, 255, 0.1); }
.w2-notice-av i { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--hs-ac); animation: w2-ring 2.2s ease-out infinite; }
@keyframes w2-ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.45); opacity: 0; } }
.w2-notice-l { font: 700 11.5px var(--hs-f-body); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.w2-countdown { display: block; margin: 8px 0 4px; font: 800 34px/1 var(--hs-f-head); letter-spacing: 0.02em; color: #fff; font-variant-numeric: tabular-nums; text-transform: none; }
.w2-countdown:empty { display: none; }
.w2-notice-host { margin-top: 6px; font: 800 22px/1.2 var(--hs-f-head); color: #fff; }
.w2-share { margin-top: 18px; }
.w2-share-l { display: block; margin-bottom: 6px; font: 600 12px var(--hs-f-body); color: rgba(255, 255, 255, 0.6); }
.w2-share-row { display: flex; align-items: center; gap: 8px; max-width: 420px; margin: 0 auto; padding: 4px 4px 4px 12px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 4px; background: rgba(0, 0, 0, 0.42); backdrop-filter: blur(6px); }
.w2-share-row .live-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font: 600 12.5px var(--hs-f-body); color: rgba(255, 255, 255, 0.86) !important; }
.w2-copy { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 4px; background: var(--hs-ac-fill); color: #fff !important; font: 800 12px var(--hs-f-body); flex-shrink: 0; }
.w2-copy:hover { background: var(--hs-ac-fill-h); }
.w2-player-live { position: relative; z-index: 2; aspect-ratio: 16 / 9; background: #000; }
.w2-player-live iframe { display: block; width: 100%; height: 100%; border: 0; }
.w2-player-live .loader { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #000; }
.w2-player-live .loader .loading { width: 100%; min-height: 90px; }
.w2-player-live .loader.is-error .loading { display: none; }
.w2-player-live .loader-message { max-width: 360px; padding: 0 16px; text-align: center; font: 700 14px/1.5 var(--hs-f-body); color: rgba(255, 255, 255, 0.85); }

/* info bar */
.w2-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 18px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); }
.w2-info-host { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 320px; }
.w2-info-av { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--hs-raise); box-shadow: 0 0 0 2px var(--hs-bg-2), 0 0 0 3px var(--hs-line-2); }
.w2-info-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w2-info-tx { min-width: 0; }
.w2-info-t { margin: 0; font: 800 19px/1.25 var(--hs-f-head); color: var(--hs-tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w2-info-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font: 600 12.5px var(--hs-f-body); color: var(--hs-tx-4); }
.w2-info-sub b { color: var(--hs-tx-2); font-weight: 700; }
.w2-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--hs-tx-4); opacity: 0.6; }
.w2-status-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; background: var(--hs-ac-soft); color: var(--hs-ac-tx); font: 800 10.5px var(--hs-f-body); letter-spacing: 0.08em; text-transform: uppercase; }
.w2-info-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.w2-stat { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-raise); font: 700 12.5px var(--hs-f-body); color: var(--hs-tx-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.w2-stat i { margin-right: 7px; color: var(--hs-ac); font-size: 12px; }
.w2-controls { display: inline-flex; gap: 8px; }
.w2-live-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 4px; background: var(--hs-ac-fill); color: #fff !important; font: 800 13px var(--hs-f-body); cursor: pointer; transition: background 0.15s; }
.w2-live-btn:hover { background: var(--hs-ac-fill-h); }
.w2-live-btn.is-end { background: var(--hs-hot, #FF6B5E); }
.w2-live-btn.is-end:hover { filter: brightness(1.08); }
.w2-live-btn[disabled] { opacity: 0.6; pointer-events: none; }
.w2-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.w2-facts > div { padding: 10px 14px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); }
.w2-facts dt { font: 700 10.5px var(--hs-f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hs-tx-4); }
.w2-facts dd { margin: 3px 0 0; font: 800 15px var(--hs-f-body); color: var(--hs-tx); text-transform: capitalize; font-variant-numeric: tabular-nums; }
.w2-facts dd small { font-size: 12px; font-weight: 600; color: var(--hs-tx-4); }

/* host panel (default-theme partial, restyled) */
.w2g-host-panel { margin-top: 14px; padding: 14px 16px 16px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); }
.w2g-host-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 12px; }
.w2g-host-title { display: flex; align-items: center; gap: 8px; font: 800 12.5px var(--hs-f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hs-tx); }
.w2g-host-title::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--hs-ac); }
.w2g-type-switch { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-raise); }
.w2g-type-btn { height: 28px; padding: 0 12px; border: 0; border-radius: 3px; background: transparent; color: var(--hs-tx-3); font: 700 12.5px var(--hs-f-body); cursor: pointer; transition: background 0.15s, color 0.15s; }
.w2g-type-btn:hover:not([disabled]) { color: var(--hs-tx); }
.w2g-type-btn.active { background: var(--hs-ac-fill); color: #fff; }
.w2g-type-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.w2g-auto-next { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0 auto; font: 700 12.5px var(--hs-f-body); color: var(--hs-tx-3); cursor: pointer; user-select: none; }
.w2g-auto-next input { width: 15px; height: 15px; accent-color: var(--hs-ac); margin: 0; }
.w2g-host-servers { margin-bottom: 10px; }
.w2g-host-search { margin-bottom: 10px; max-width: 320px; }
.w2g-host-panel .form-control { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--hs-line-2); border-radius: 4px; background: var(--hs-field); color: var(--hs-tx); font: 600 13px var(--hs-f-body); outline: 0; }
.w2g-host-panel .form-control:focus { border-color: var(--hs-ac); box-shadow: 0 0 0 3px var(--hs-ac-soft); }

/* chat */
.w2-side { position: sticky; top: 84px; min-width: 0; }
.w2-chat { display: flex; flex-direction: column; height: calc(100vh - 110px); min-height: 460px; max-height: 780px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); overflow: hidden; }
.w2-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--hs-line); background: var(--hs-bg-3); flex-shrink: 0; }
.w2-chat-t { display: inline-flex; align-items: center; gap: 9px; font: 800 12.5px var(--hs-f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hs-tx); }
.w2-chat-t .w2-live-dot { background: var(--hs-ok, #3EE08F); animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--hs-ok, #3EE08F) 22%, transparent); }
.w2-chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.w2-chat .messages { position: relative; flex: 1; min-height: 0; }
.w2-chat .scroll { position: absolute; inset: 0; overflow-y: auto; padding: 12px 14px 8px; scrollbar-width: thin; scrollbar-color: var(--hs-line-2) transparent; }
.w2-chat .event { margin: 10px 0; text-align: center; font: 600 11.5px/1.45 var(--hs-f-body); color: var(--hs-tx-4); }
.w2-chat-start { display: flex; align-items: center; gap: 10px; }
.w2-chat-start::before, .w2-chat-start::after { content: ''; flex: 1; height: 1px; background: var(--hs-line); }
.w2-chat .event.started { display: table; margin-left: auto; margin-right: auto; padding: 5px 10px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-raise); color: var(--hs-tx-3); }
.w2-chat .load-more-msg { cursor: pointer; color: var(--hs-ac); border-color: var(--hs-line-2); }
.w2-chat .load-more-msg:hover { border-color: var(--hs-ac); }
.w2-chat .load-more-msg.is-loading { opacity: 0.6; pointer-events: none; }
.w2-chat .message { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; }
.w2-chat .message .avatar { position: relative; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--hs-raise); }
.w2-chat .message .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w2-chat .message .avatar.has-cosmetics { overflow: visible; }
.w2-chat .message .avatar .avatar-clip { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.w2-chat .message .avatar .avatar-decoration { position: absolute; inset: -18%; width: 136%; height: 136%; max-width: none; pointer-events: none; }
.w2-chat .msg-body { flex: 1; min-width: 0; }
.w2-chat .msg-body .user { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font: 700 12.5px var(--hs-f-body); color: var(--hs-tx-2); }
.w2-chat .msg-body .user .name { color: inherit; }
.w2-chat .msg-time { order: 3; margin-left: auto; font: 600 10.5px var(--hs-f-body); color: var(--hs-tx-4); font-variant-numeric: tabular-nums; }
.w2-chat .rank-label, .w2-chat .ak-title-eq { order: 2; display: inline-flex; align-items: center; gap: 4px; height: 17px; padding: 0 5px; border-radius: 3px; background: var(--hs-raise); color: var(--hs-tx-3); font: 700 10px var(--hs-f-body); }
.w2-chat .message.owner .user::before { content: 'Host'; order: 1; display: inline-flex; align-items: center; height: 17px; padding: 0 5px; border-radius: 3px; background: color-mix(in srgb, var(--hs-star) 18%, transparent); color: var(--hs-star); font: 800 9.5px var(--hs-f-body); letter-spacing: 0.08em; text-transform: uppercase; }
.w2-chat .message.owner .avatar { box-shadow: 0 0 0 2px var(--hs-star); }
.w2-chat .message.staff .user .name { color: var(--hs-ac); }
.w2-chat .msg-body .text { display: inline-block; max-width: 100%; margin-top: 3px; padding: 7px 10px; border-radius: 0 4px 4px 4px; background: var(--hs-raise); font: 500 13.5px/1.45 var(--hs-f-body); color: var(--hs-tx); word-wrap: break-word; overflow-wrap: anywhere; }
.w2-chat .message.self .text { background: var(--hs-ac-soft); }
.w2-compose { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--hs-line); background: var(--hs-bg-3); flex-shrink: 0; }
.w2-compose .w2-input { flex: 1; min-width: 0; }
.w2-compose .w2-input[readonly] { cursor: pointer; }
.w2-compose .w2-input:disabled { opacity: 0.6; }
.w2-send { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 4px; background: var(--hs-ac-fill); color: #fff; font: 800 13px var(--hs-f-body); cursor: pointer; flex-shrink: 0; }
.w2-send:hover { background: var(--hs-ac-fill-h); }
.w2-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* now watching */
.w2-anime { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; margin-top: 22px; padding: 18px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); }
.w2-anime-poster { display: block; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; background: var(--hs-bg-3); }
.w2-anime-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w2-anime h2 { margin: 10px 0 0; font: 800 22px/1.2 var(--hs-f-head); color: var(--hs-tx); }
.w2-anime-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.w2-anime-syn { margin: 10px 0 0; max-width: 820px; font: 500 13.5px/1.6 var(--hs-f-body); color: var(--hs-tx-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.w2-anime-cta { margin-top: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
    .w2-room-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1023px) {
    .w2-hero { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
    .w2-create-grid { grid-template-columns: 1fr; }
    .w2-create-side { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
    .w2-room-grid { grid-template-columns: 1fr; }
    .w2-side { position: static; }
    .w2-chat { height: 520px; max-height: none; }
}
@media (max-width: 640px) {
    .w2-page { padding-top: 14px; }
    .w2-hero { padding: 20px 16px; }
    .w2-hero h1 { font-size: 26px; }
    .w2-hero p { font-size: 13.5px; }
    .w2-steps li { padding: 10px 12px; }
    .w2-grid { grid-template-columns: 1fr; gap: 12px; }
    .w2-create-head h1 { font-size: 23px; }
    .w2-create-side { grid-template-columns: 1fr; }
    .w2-step { padding: 16px 14px; }
    .w2-submit { padding: 16px 14px; }
    .w2-submit .w2-btn { width: 100%; }
    .w2g-ep-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .w2-room { padding-top: 12px; }
    .w2-notice-card { padding: 18px 14px; }
    .w2-notice-av { width: 48px; height: 48px; margin-bottom: 10px; }
    .w2-countdown { font-size: 26px; }
    .w2-notice-host { font-size: 18px; }
    .w2-share { margin-top: 12px; }
    .w2-share-l { display: none; }
    .w2-info { padding: 12px; }
    .w2-info-t { font-size: 16.5px; white-space: normal; }
    .w2-info-stats { width: 100%; }
    .w2-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .w2-auto-next, .w2g-auto-next { margin-left: 0; }
    .w2-chat { height: 460px; min-height: 0; }
    .w2-anime { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 14px; }
    .w2-anime h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .w2-live-dot, .is-live .w2-state i, .w2-notice-av i { animation: none; }
    .w2-card-in:hover { transform: none; }
}

/* desktop: chat column matches the stage height */
@media (min-width: 1024px) {
    .w2-room-grid { align-items: stretch; }
    .w2-side { position: relative; top: auto; min-height: 520px; }
    .w2-chat { position: absolute; inset: 0; height: auto; min-height: 0; max-height: none; }
}

/* "you already host a room" notice on the create page */
.w2-active-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; padding: 14px 16px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--hs-dub) 45%, transparent); background: color-mix(in srgb, var(--hs-dub) 10%, var(--hs-bg-2)); }
.w2-active-note .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.w2-active-note b { font: 700 15px var(--hs-f-head); color: var(--hs-tx); }
.w2-active-note span { font-size: 13px; color: var(--hs-tx-3); }
.w2-active-note .ac { display: flex; gap: 8px; flex-shrink: 0; }

/* =====================================================================
   WG1 "Theater + chat drawer" (rooms list + room page), with WG3 reactions
   and WG2-style grouped people. Appended block — overrides the rules above.
   ===================================================================== */
.w3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--hs-ac-fill); border-radius: 4px; background: var(--hs-ac-fill); color: #fff !important; font: 700 12.5px var(--hs-f-body); white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.w3-btn:hover { background: var(--hs-ac-fill-h); border-color: var(--hs-ac-fill-h); }
.w3-btn.is-ghost { background: transparent; border-color: var(--hs-line-2); color: var(--hs-tx-2) !important; }
.w3-btn.is-ghost:hover { border-color: var(--hs-ac); color: var(--hs-tx) !important; }
.w3-btn.is-sm { height: 26px; padding: 0 9px; font-size: 12px; }
.w3-btn.is-done { border-color: var(--hs-ok, #3EE08F); }
.w3-kick { display: inline-flex; align-items: center; gap: 6px; font: 800 10.5px var(--hs-f-body); letter-spacing: .11em; text-transform: uppercase; color: var(--hs-ac-tx); }
.w3-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 4px; background: rgba(4, 8, 14, .66); backdrop-filter: blur(6px); color: #fff; font: 700 11px var(--hs-f-body); white-space: nowrap; }
.w3-pill svg { flex: none; }
.w3-st { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 4px; background: rgba(4, 8, 14, .7); color: #fff; font: 800 10.5px var(--hs-f-body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.w3-st i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); flex: none; }
.w3-st.is-live { background: var(--hs-hot, #FF4D5E); }
.w3-st.is-live i { background: #fff; animation: w2-blink 1.2s ease-in-out infinite; }
.w3-st.is-scheduled i { background: var(--hs-star); }
.w3-st.is-waiting i { background: var(--hs-dub); }

/* ---------- rooms list ---------- */
.w3-page { padding-top: 18px; }
.w3-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.w3-head h1 { margin: 4px 0 2px; font: 800 26px/1.1 var(--hs-f-head); letter-spacing: -.02em; color: var(--hs-tx); }
.w3-head p { margin: 0; font: 500 13px var(--hs-f-body); color: var(--hs-tx-3); }
.w3-head p b { color: var(--hs-tx); font-weight: 700; }
.w3-head p i { font-style: normal; margin: 0 4px; color: var(--hs-tx-4); }
.w3-head-cta { display: flex; gap: 6px; }
.w3-spot { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); margin-bottom: 16px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); overflow: hidden; }
.w3-spot-art, .w3-art { position: relative; display: block; overflow: hidden; background: var(--hs-bg-3); }
.w3-spot-art { min-height: 260px; }
.w3-spot-art > img, .w3-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w3-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .38), transparent 34%, transparent 52%, rgba(0, 0, 0, .8)); pointer-events: none; }
.w3-tl { position: absolute; top: 8px; left: 8px; right: 60px; display: flex; flex-wrap: wrap; gap: 5px; }
.w3-tr { position: absolute; top: 8px; right: 8px; }
.w3-bl { position: absolute; left: 9px; right: 9px; bottom: 9px; display: flex; align-items: flex-end; gap: 6px; color: #fff; }
.w3-time { margin-left: auto; font: 700 12px var(--hs-f-body); font-variant-numeric: tabular-nums; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.w3-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .22); }
.w3-prog i { display: block; height: 100%; background: var(--hs-ac); }
.w3-spot-tx { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 16px 18px 14px; }
.w3-spot h2 { margin: 0; font: 800 22px/1.15 var(--hs-f-head); letter-spacing: -.015em; }
.w3-spot h2 a { color: var(--hs-tx); }
.w3-spot h2 a:hover { color: var(--hs-ac); }
.w3-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 600 12.5px var(--hs-f-body); color: var(--hs-tx-3); }
.w3-meta b { color: var(--hs-tx-2); font-weight: 700; }
.w3-hostline { display: flex; align-items: center; gap: 8px; font: 500 12.5px var(--hs-f-body); color: var(--hs-tx-3); }
.w3-hostline img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--hs-raise); }
.w3-hostline b { color: var(--hs-tx); font-weight: 700; }
.w3-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: auto 0 2px; border-top: 1px solid var(--hs-line); border-bottom: 1px solid var(--hs-line); }
.w3-kv > div { padding: 8px 0; }
.w3-kv > div + div { padding-left: 12px; border-left: 1px solid var(--hs-line); }
.w3-kv dt { font: 700 10px var(--hs-f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--hs-tx-4); }
.w3-kv dd { margin: 2px 0 0; font: 800 15px var(--hs-f-body); color: var(--hs-tx); font-variant-numeric: tabular-nums; }
.w3-kv dd small { margin-left: 5px; font-size: 11.5px; font-weight: 600; color: var(--hs-tx-4); }
.w3-spot-cta { display: flex; flex-wrap: wrap; gap: 6px; }

/* tabs */
.w3-tabs { margin: 0 0 14px; border-bottom: 1px solid var(--hs-line); }
.w3-tabs .w3-tabs-in { display: flex; flex-wrap: nowrap; gap: 18px; width: 100%; overflow-x: auto; scrollbar-width: none; }
.w3-tabs .w3-tabs-in a { position: relative; flex: none; height: auto; padding: 8px 0 10px; border: 0; border-radius: 0; background: none; color: var(--hs-tx-4); font: 700 13px var(--hs-f-body); gap: 6px; }
.w3-tabs .w3-tabs-in a:hover { color: var(--hs-tx-2); }
.w3-tabs .w3-tabs-in a.active { background: none; color: var(--hs-tx); }
.w3-tabs .w3-tabs-in a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--hs-ac); }
.w3-tabs .w3-tabs-in a.active .w2-live-dot { background: var(--hs-hot, #FF6B5E); }
.w3-tabs .w3-tabs-in em { font-style: normal; height: 17px; padding: 0 5px; border-radius: 4px; background: var(--hs-bg-3); color: var(--hs-tx-3); font: 700 10.5px/17px var(--hs-f-body); }
.w3-tabs .w3-tabs-in a.is-switch { margin-left: auto; color: var(--hs-ac-tx); }

/* cards */
.w3-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.w3-card-in { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); overflow: hidden; transition: border-color .15s; }
.w3-card-in:hover { border-color: color-mix(in srgb, var(--hs-ac) 50%, var(--hs-line)); }
.w3-card .w3-art { aspect-ratio: 16 / 9; }
.w3-card-in:hover .w3-art > img { filter: brightness(1.06); }
.w3-cdw { display: grid; line-height: 1.1; }
.w3-cdw small { font: 800 9.5px var(--hs-f-body); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.w3-cdw b { font: 800 18px var(--hs-f-head); font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.w3-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; padding: 9px 10px 10px; }
.w3-t { font: 700 14px/1.3 var(--hs-f-head); color: var(--hs-tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w3-a { font: 500 12px var(--hs-f-body); color: var(--hs-tx-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w3-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.w3-ft { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--hs-line); }
.w3-m + .w3-ft { margin-top: 8px; }
.w3-ft img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; background: var(--hs-raise); }
.w3-host-n { flex: 1; min-width: 0; font: 700 12px var(--hs-f-body); color: var(--hs-tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w3-ft time { font: 600 11px var(--hs-f-body); color: var(--hs-tx-4); white-space: nowrap; }
.w3-card.is-ended .w3-art > img { filter: grayscale(.8) brightness(.8); }
.w3-card .w2-lock { position: static; }
.w3-empty { padding: 34px 16px; }
.w3-empty .w2-empty-ic { width: 42px; height: 42px; }
.w3-empty strong { font-size: 15.5px; }

/* ---------- room page ---------- */
.w3-room { padding-top: 14px; }
.w3-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: stretch; }
.w3-stage { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.w3-drawer { position: relative; min-width: 0; min-height: 420px; }
.w3-grid.w3-theater { grid-template-columns: minmax(0, 1fr); }
.w3-grid.w3-theater .w3-drawer { display: none; }
.w3-th-on { display: none; }
.w3-grid.w3-theater .w3-th-on { display: inline; }
.w3-grid.w3-theater .w3-th-off { display: none; }
.w3-stagebar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.w3-stagebar .w3-st { height: 24px; background: var(--hs-raise); color: var(--hs-tx-2); }
.w3-stagebar .w3-st.is-live { background: var(--hs-hot, #FF4D5E); color: #fff; }
.w3-stagebar .w3-st.is-ended i { background: var(--hs-tx-4); }
.w3-sp { flex: 1; }
.w3-sync { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); font: 600 12px var(--hs-f-body); color: var(--hs-tx-3); }
.w3-sync[hidden] { display: none; }
.w3-sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--hs-tx-4); }
.w3-sync.is-ok i { background: var(--hs-ok, #3EE08F); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hs-ok, #3EE08F) 22%, transparent); }
.w3-sync.is-wait i { background: var(--hs-ac); }
.w3-sync.is-warn i { background: var(--hs-dub); animation: w2-blink 1s infinite; }
.w3-ib { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border: 1px solid var(--hs-line-2); border-radius: 4px; background: var(--hs-bg-2); color: var(--hs-tx-2); font: 700 12px var(--hs-f-body); cursor: pointer; }
.w3-ib:hover { border-color: var(--hs-ac); color: var(--hs-tx); }
.w3-ib[aria-pressed="true"] { border-color: var(--hs-ac); color: var(--hs-ac-tx); }
.is-spin svg { animation: w3-spin .8s linear; }
@keyframes w3-spin { to { transform: rotate(360deg); } }
.w3-player-box { position: relative; }
.w3-player-box .w2-player { box-shadow: 0 18px 44px rgba(0, 0, 0, .3); }
.w3-fly { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.w3-fly-e { position: absolute; bottom: 8%; font-size: 30px; line-height: 1; opacity: 0; animation: w3-fly 2.6s ease-out forwards; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); }
@keyframes w3-fly { 0% { opacity: 0; transform: translate(0, 20px) scale(.6); } 12% { opacity: 1; transform: translate(0, 0) scale(1.15); } 100% { opacity: 0; transform: translate(var(--dx, 0), -260px) scale(1); } }

/* host bar */
.w3-host.w2g-host-panel { margin-top: 0; padding: 0; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); }
.w3-host-bar.w2g-host-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; padding: 7px 10px; }
.w3-host-t.w2g-host-title { gap: 5px; font: 800 10.5px var(--hs-f-body); letter-spacing: .1em; color: var(--hs-star); }
.w3-host-t.w2g-host-title::before { display: none; }
.w3-stepper { display: inline-flex; align-items: center; gap: 4px; }
.w3-sq { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--hs-line-2); border-radius: 4px; background: transparent; color: var(--hs-tx-2); cursor: pointer; }
.w3-sq:hover:not(:disabled) { border-color: var(--hs-ac); color: var(--hs-tx); }
.w3-sq:disabled { opacity: .35; cursor: default; }
.w3-ep-now { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border: 1px solid var(--hs-line-2); border-radius: 4px; background: var(--hs-bg-3); color: var(--hs-tx-3); font: 700 12px var(--hs-f-body); cursor: pointer; }
.w3-ep-now b { color: var(--hs-tx); font-variant-numeric: tabular-nums; }
.w3-ep-now[aria-expanded="true"] { border-color: var(--hs-ac); }
.w3-ep-now[aria-expanded="true"] svg { transform: rotate(180deg); }
.w3-vr { width: 1px; height: 18px; background: var(--hs-line-2); }
.w3-host .w2g-type-switch { gap: 2px; padding: 2px; }
.w3-host .w2g-type-btn { height: 22px; padding: 0 9px; border-radius: 4px; font-size: 12px; }
.w3-host .w2g-host-servers { margin: 0; }
.w3-switch.w2g-auto-next { position: relative; margin: 0; gap: 7px; font-size: 12px; color: var(--hs-tx-2); }
.w3-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.w3-switch i { position: relative; width: 26px; height: 14px; border-radius: 4px; background: var(--hs-line-2); transition: background .15s; }
.w3-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 3px; background: #fff; transition: left .15s; }
.w3-switch input:checked + i { background: var(--hs-ac-fill); }
.w3-switch input:checked + i::after { left: 14px; }
.w3-switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--hs-ac-soft); }
.w3-controls.w2-controls { gap: 6px; }
.w3-controls .w2-live-btn { height: 26px; padding: 0 10px; gap: 6px; font-size: 12px; font-weight: 700; }
.w3-controls .w2-live-btn i { font-size: 10px; }
.w3-controls .w2-live-btn.is-end { background: transparent; border: 1px solid color-mix(in srgb, var(--hs-hot, #FF4D5E) 55%, transparent); color: var(--hs-hot, #FF4D5E) !important; }
.w3-controls .w2-live-btn.is-end:hover { background: color-mix(in srgb, var(--hs-hot, #FF4D5E) 12%, transparent); filter: none; }
.w3-eps { padding: 10px; border-top: 1px solid var(--hs-line); }
.w3-eps[hidden] { display: none; }
.w3-eps .w2g-host-search { max-width: 260px; margin-bottom: 8px; }
.w3-eps .form-control { height: 30px; font-size: 12.5px; }
.w3-eps .w2g-ep-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 5px; max-height: 196px; }
.w3-eps .w2g-ep-item { height: 32px; gap: 8px; padding: 0 8px 0 3px; }
.w3-eps .w2g-ep-order { min-width: 26px; height: 24px; font-size: 11.5px; border-radius: 4px; }
.w3-eps .w2g-ep-name { font-size: 12px; }

/* info card */
.w3-info.w2-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0; padding: 10px 12px; }
.w3-info-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 320px; }
.w3-info-av.w2-info-av { width: 40px; height: 40px; }
.w3-info-tx { display: grid; gap: 3px; min-width: 0; }
.w3-info-t.w2-info-t { font-size: 16px; }
.w3-info-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 600 12px var(--hs-f-body); color: var(--hs-tx-3); }
.w3-info-meta a { color: var(--hs-tx-2); font-weight: 700; }
.w3-info-meta a:hover { color: var(--hs-ac); }
.w3-info-meta .w2-ep small { margin-left: 1px; color: var(--hs-tx-4); font-weight: 600; }
.w3-meta-status { color: var(--hs-tx-4); }
.w3-meta-status b { color: var(--hs-tx-2); font-weight: 700; text-transform: capitalize; }
.w3-info-host { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 500 12px var(--hs-f-body); color: var(--hs-tx-4); }
.w3-info-host b { color: var(--hs-tx-2); font-weight: 700; }
.w3-info-side { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; }
.w3-stats { display: flex; gap: 6px; }
.w3-stat.w2-stat { height: 28px; padding: 0 9px; font-size: 12px; background: var(--hs-bg-3); }
.w3-stat.w2-stat i { margin-right: 6px; font-size: 11px; }
.w3-invite { display: grid; gap: 3px; width: 330px; max-width: 100%; }
.w3-invite-l { font: 700 10px var(--hs-f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--hs-tx-4); }
.w3-lnk { display: flex; align-items: center; height: 28px; min-width: 0; border: 1px solid var(--hs-line-2); border-radius: 4px; background: var(--hs-field); overflow: hidden; }
.w3-lnk-u { flex: 1; min-width: 0; padding: 0 8px; font: 600 12px var(--hs-f-body); color: var(--hs-tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w3-lnk-b { display: inline-flex; align-items: center; gap: 5px; height: 100%; padding: 0 10px; border-left: 1px solid var(--hs-line-2); background: var(--hs-ac-fill); color: #fff !important; font: 700 12px var(--hs-f-body); }
.w3-lnk-b:hover { background: var(--hs-ac-fill-h); }
.w3-lnk-b i { font-size: 11px; }

/* drawer + chat */
.w3-chat.w2-chat { height: 100%; max-height: none; min-height: 0; }
.w3-chat-head.w2-chat-head { height: 42px; padding: 0 8px 0 12px; background: var(--hs-bg-2); }
.w3-tabbar { display: flex; gap: 16px; height: 100%; }
.w3-tabbar button { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0; border: 0; background: none; color: var(--hs-tx-4); font: 700 13px var(--hs-f-body); cursor: pointer; }
.w3-tabbar button:hover { color: var(--hs-tx-2); }
.w3-tabbar button.on { color: var(--hs-tx); }
.w3-tabbar button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--hs-ac); }
.w3-tabbar em { font-style: normal; height: 17px; padding: 0 5px; border-radius: 4px; background: var(--hs-bg-3); color: var(--hs-tx-3); font: 700 10.5px/17px var(--hs-f-body); }
.w3-hide-chat { width: 28px; padding: 0; justify-content: center; }
.w3-chat [data-w3-pane][hidden] { display: none !important; }
.w3-chat .scroll { padding: 8px 12px; }
.w3-chat .message { gap: 8px; padding: 4px 0; }
.w3-chat .message .avatar { width: 28px; height: 28px; }
.w3-chat .msg-body .text { margin-top: 1px; padding: 0; border-radius: 0; background: none; font-size: 13px; color: var(--hs-tx-2); }
.w3-chat .message.self .text { background: none; color: var(--hs-tx); }
.w3-chat .message.owner .user .name, .w3-chat .message.owner .user { color: var(--hs-ac-tx); }
.w3-chat .message.w3-emote .text { font-size: 22px; line-height: 1.2; }
.w3-chat .event.started { padding: 3px 8px; font-size: 11px; }
.w3-react { position: relative; display: flex; align-items: center; gap: 2px; flex-shrink: 0; padding: 5px 8px 0; border-top: 1px solid var(--hs-line); overflow: hidden; }
.w3-react button { flex: none; width: 30px; height: 28px; border: 0; border-radius: 4px; background: none; font-size: 16px; line-height: 1; cursor: pointer; transition: background .15s, transform .1s; }
.w3-react button:hover { background: var(--hs-bg-3); }
.w3-react button:active { transform: scale(.9); }
.w3-react-cd { position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--hs-ac); }
.w3-react.is-cd button { opacity: .45; cursor: wait; }
.w3-react.is-cd .w3-react-cd { animation: w3-cd 6s linear forwards; }
@keyframes w3-cd { from { width: 100%; } to { width: 0; } }
.w3-react.is-wait button { opacity: .5; }
.w3-note { flex-shrink: 0; margin: 0 10px 4px; padding: 5px 8px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--hs-dub) 45%, transparent); background: color-mix(in srgb, var(--hs-dub) 12%, var(--hs-bg-2)); font: 600 11.5px var(--hs-f-body); color: var(--hs-tx-2); }
.w3-note[hidden] { display: none; }
.w3-react.is-off { display: none; }
.w3-chat .w2-compose { padding: 6px 10px 10px; border-top: 0; background: var(--hs-bg-2); }
.w3-chat .w2-compose .w2-input { height: 32px; font-size: 13px; }
.w3-chat .w2-send { height: 32px; padding: 0 12px; font-size: 12.5px; }

/* people */
.w3-people { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px 12px; scrollbar-width: thin; }
.w3-people-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; padding: 7px 9px; border-radius: 4px; background: var(--hs-bg-3); font: 600 12px var(--hs-f-body); color: var(--hs-tx-3); }
.w3-live-n { display: inline-flex; align-items: center; gap: 6px; }
.w3-live-n b { color: var(--hs-tx); }
.w3-people-note { font-size: 11px; color: var(--hs-tx-4); }
.w3-mgh { padding: 12px 4px 4px; font: 700 10px var(--hs-f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--hs-tx-4); }
.w3-mb { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px; border-radius: 4px; }
.w3-mb:hover { background: var(--hs-bg-3); }
.w3-mb-av { position: relative; flex: none; width: 28px; height: 28px; }
.w3-mb-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--hs-raise); }
.w3-mb-av i { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--hs-bg-2); background: var(--hs-tx-5, #55657A); }
.w3-mb.is-here .w3-mb-av i { background: var(--hs-ok, #3EE08F); }
.w3-mb.is-away { opacity: .6; }
.w3-mb-n { min-width: 0; font: 600 12.5px var(--hs-f-body); color: var(--hs-tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w3-mb.is-host .w3-mb-n { color: var(--hs-ac-tx); }
.w3-mb-s { flex: none; margin-left: auto; font: 500 11px var(--hs-f-body); color: var(--hs-tx-4); }
.w3-hb, .w3-yb { display: inline-flex; align-items: center; gap: 3px; flex: none; height: 16px; padding: 0 5px; border-radius: 4px; font: 800 9.5px var(--hs-f-body); letter-spacing: .05em; text-transform: uppercase; }
.w3-hb { background: color-mix(in srgb, var(--hs-star) 18%, transparent); color: var(--hs-star); }
.w3-yb { background: var(--hs-ac-soft); color: var(--hs-ac-tx); }
.w3-mb-empty { padding: 6px 4px; font: 500 12px var(--hs-f-body); color: var(--hs-tx-4); }
.w3-bub { position: absolute; top: -14px; right: -12px; padding: 2px 3px; border: 1px solid var(--hs-line-2); border-radius: 4px; background: var(--hs-bg-3); font-size: 14px; line-height: 1; animation: w3-bub 3.2s ease-out forwards; }
@keyframes w3-bub { 0% { opacity: 0; transform: translateY(4px) scale(.7); } 10% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }

.w3-anime.w2-anime { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; margin-top: 14px; padding: 14px; }
.w3-anime h2 { margin-top: 8px; font-size: 19px; }

html[data-theme="light"] .w3-hb, html[data-theme="light"] .w3-host-t.w2g-host-title { color: #8A6000; }
html[data-theme="light"] .w3-hb { background: color-mix(in srgb, var(--hs-star) 22%, transparent); }

@media (min-width: 1024px) {
    .w3-drawer .w3-chat.w2-chat { position: absolute; inset: 0; height: auto; }
}
@media (max-width: 1023px) {
    .w3-grid, .w3-grid.w3-theater { grid-template-columns: minmax(0, 1fr); }
    .w3-grid.w3-theater .w3-drawer { display: block; }
    .w3-theater-btn, .w3-hide-chat { display: none; }
    .w3-drawer { min-height: 0; }
    .w3-chat.w2-chat { height: 480px; }
    .w3-spot { grid-template-columns: 1fr; }
    .w3-spot-art { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
    .w3-head h1 { font-size: 22px; }
    .w3-head-cta { width: 100%; }
    .w3-head-cta .w3-btn { flex: 1; }
    .w3-spot-tx { gap: 8px; padding: 12px; }
    .w3-spot h2 { font-size: 18px; }
    .w3-tabs .w3-tabs-in { gap: 14px; }
    .w3-grid-cards { grid-template-columns: 1fr; gap: 8px; }
    .w3-card-in { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
    .w3-card .w3-art { aspect-ratio: auto; min-height: 100%; }
    .w3-card .w3-tr, .w3-card .w3-time, .w3-card .w3-bl .w3-pill { display: none; }
    .w3-card .w3-tl { right: 8px; }
    .w3-card .w3-cdw b { font-size: 15px; }
    .w3-body { padding: 8px 10px; }
    .w3-ft, .w3-m + .w3-ft { margin-top: 6px; padding-top: 6px; }
    .w3-room { padding-top: 10px; }
    .w3-stage { gap: 8px; }
    .w3-stagebar .w3-ib span { display: none; }
    .w3-host-bar.w2g-host-head { gap: 6px 8px; padding: 7px 8px; }
    .w3-host-bar .w3-vr, .w3-host-bar .w3-sp { display: none; }
    .w3-info-side, .w3-invite { width: 100%; }
    .w3-chat.w2-chat { height: 440px; }
    .w3-anime.w2-anime { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .w3-fly-e, .w3-bub, .w3-st.is-live i { animation-duration: .01ms; }
}

/* Ended room: hide live-only bits (stale viewer count, 00:00 timer, resync/theater). watch2gather.js keeps
   .w2g-room-shell[data-status] current. Share box never wider than its container on phones. */
.w2g-room-shell[data-status="ended"] #viewers-count,
.w2g-room-shell[data-status="ended"] .w3-stat:has(#passedTime),
.w2g-room-shell[data-status="ended"] .w3-ib,
.w2g-room-shell[data-status="ended"] .w3-sync { display: none !important; }
.w2-share { width: 100%; max-width: min(420px, calc(100vw - 56px)); margin-left: auto; margin-right: auto; box-sizing: border-box; }
.w2-share-row { width: 100%; max-width: none; box-sizing: border-box; }


/* =====================================================================
   WG3 "Stage + audience strip" — rooms list (stages, line-up timeline, rows)
   and room page (stage, Director bar, audience seats, reaction bar, side card + chat).
   Appended block — builds on the shared w3-* atoms above.
   ===================================================================== */
.w4-page { padding-top: 18px; }
.w4-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.w4-head h1 { margin: 0 0 3px; font: 800 24px/1.15 var(--hs-f-head); letter-spacing: -.02em; color: var(--hs-tx); }
.w4-head p { margin: 0; font: 500 13px var(--hs-f-body); color: var(--hs-tx-3); }
.w4-head p b { color: var(--hs-tx); font-weight: 700; }
.w4-head-cta { display: flex; gap: 6px; }
.w4-tabs { display: flex; margin: 0 0 18px; }
.w4-tabs .w4-tabs-in { display: inline-flex; flex-wrap: nowrap; gap: 2px; max-width: 100%; padding: 2px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-3); overflow-x: auto; scrollbar-width: none; }
.w4-tabs .w4-tabs-in a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 4px; background: none; color: var(--hs-tx-3); font: 600 12.5px var(--hs-f-body); white-space: nowrap; }
.w4-tabs .w4-tabs-in a:hover { color: var(--hs-tx); }
.w4-tabs .w4-tabs-in a.active { background: var(--hs-ac-fill); color: #fff; }
.w4-tabs .w4-tabs-in a.active .w2-live-dot { background: #fff; }
.w4-tabs .w4-tabs-in em { font-style: normal; font: 700 10.5px var(--hs-f-body); opacity: .75; }
.w4-tabs .w4-tabs-in a.is-switch { color: var(--hs-ac-tx); border-left: 1px solid var(--hs-line-2); border-radius: 0 4px 4px 0; margin-left: 2px; }
.w4-sections { display: grid; gap: 22px; }
.w4-sec { display: grid; gap: 10px; min-width: 0; }
.w4-sh { display: flex; align-items: center; gap: 8px; min-width: 0; }
.w4-sh h2 { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 15px var(--hs-f-head); color: var(--hs-tx); white-space: nowrap; }
.w4-sq { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; background: var(--hs-ac-soft); color: var(--hs-ac-tx); flex: none; }
.w4-sq.is-live { background: color-mix(in srgb, var(--hs-hot, #FF4D5E) 16%, transparent); color: var(--hs-hot, #FF4D5E); }
.w4-sq.is-amber { background: color-mix(in srgb, var(--hs-dub) 16%, transparent); color: var(--hs-dub-tx, var(--hs-dub)); }
.w4-sq.is-mute { background: var(--hs-raise); color: var(--hs-tx-3); }
.w4-ln { flex: 1; height: 1px; background: var(--hs-line); min-width: 12px; }
.w4-cl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* stages */
.w4-stages { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.w4-stage { display: flex; flex-direction: column; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); overflow: hidden; transition: border-color .15s; }
.w4-stage:hover { border-color: color-mix(in srgb, var(--hs-ac) 50%, var(--hs-line)); }
.w4-stage-art { height: 172px; }
.w4-stage .w3-shade { background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .88)); }
.w4-bt { position: absolute; left: 10px; right: 10px; bottom: 11px; display: grid; gap: 3px; color: #fff; }
.w4-bt b { font: 800 16px/1.2 var(--hs-f-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w4-bt > span { display: flex; align-items: center; gap: 6px; min-width: 0; font: 600 12px var(--hs-f-body); color: rgba(255, 255, 255, .82); }
.w4-bt > span > span { flex: none; }
.w4-bt > span > .w4-cl { flex: 0 1 auto; }
.w4-stage-aud { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; font: 500 12px var(--hs-f-body); color: var(--hs-tx-3); }
.w4-stage-aud b { color: var(--hs-tx); font-weight: 700; }
.w4-avs { display: inline-flex; align-items: center; flex: none; }
.w4-avs img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--hs-raise); box-shadow: 0 0 0 2px var(--hs-bg-2); margin-left: -6px; }
.w4-avs img:first-child { margin-left: 0; }
.w4-avs img.is-host { box-shadow: 0 0 0 2px var(--hs-bg-2), 0 0 0 3px var(--hs-star); }
.w4-avs em { margin-left: 5px; font-style: normal; font: 700 10.5px var(--hs-f-body); color: var(--hs-tx-3); }
.w4-rt { display: flex; gap: 8px; margin-left: auto; font: 700 12px var(--hs-f-body); color: var(--hs-tx-2); white-space: nowrap; }

/* line-up timeline */
.w4-tl { padding: 10px 12px 12px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); }
.w4-rows { display: flex; align-items: stretch; gap: 12px; }
.w4-track-wrap { flex: 1; min-width: 0; }
.w4-ruler { position: relative; height: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--hs-line); }
.w4-ruler span { position: absolute; top: 0; transform: translateX(-50%); font: 700 10.5px var(--hs-f-body); color: var(--hs-tx-4); white-space: nowrap; }
.w4-ruler span:first-child { transform: none; }
.w4-ruler span:last-child { transform: translateX(-100%); }
.w4-track { position: relative; height: calc(var(--lanes, 1) * 72px); background: repeating-linear-gradient(90deg, transparent 0 calc(16.6667% - 1px), var(--hs-line) calc(16.6667% - 1px) 16.6667%); }
.w4-now { position: absolute; top: -6px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--hs-hot, #FF4D5E); z-index: 2; pointer-events: none; }
.w4-now b { position: absolute; bottom: 4px; left: 4px; padding: 0 5px; border-radius: 4px; background: var(--hs-hot, #FF4D5E); color: #fff; font: 800 10px/16px var(--hs-f-body); white-space: nowrap; }
.w4-blk { position: absolute; left: var(--x); top: calc(var(--lane, 0) * 72px + 4px); width: 30%; height: 64px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 9px; align-items: center; padding: 6px 8px 6px 6px; border: 1px solid var(--hs-line-2); border-left: 3px solid var(--hs-dub); border-radius: 4px; background: var(--hs-bg-3); }
.w4-blk:hover { border-color: var(--hs-dub); }
.w4-blk > img { width: 40px; height: 52px; object-fit: cover; border-radius: 4px; background: var(--hs-raise); }
.w4-blk-tx { display: grid; gap: 1px; min-width: 0; }
.w4-blk-tm { font: 700 11px var(--hs-f-body); color: var(--hs-dub-tx, var(--hs-dub)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.w4-blk b { font: 700 13px var(--hs-f-body); color: var(--hs-tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w4-blk small { display: flex; align-items: center; gap: 5px; min-width: 0; font: 500 11.5px var(--hs-f-body); color: var(--hs-tx-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w4-blk small img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex: none; }
.w4-later { display: grid; align-content: start; gap: 6px; width: 230px; flex: none; padding-left: 12px; border-left: 1px dashed var(--hs-line-2); }
.w4-later-l { font: 700 10.5px var(--hs-f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--hs-tx-4); }
.w4-later-only { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 8px; }

/* compact rows (waiting / ended / later) */
.w4-rowgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 10px; }
.w4-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); transition: border-color .15s; }
.w4-row:hover { border-color: color-mix(in srgb, var(--hs-ac) 50%, var(--hs-line)); }
.w4-row-th { width: 88px; height: 50px; flex: none; border-radius: 4px; overflow: hidden; background: var(--hs-bg-3); }
.w4-row-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w4-row-tx { display: grid; gap: 2px; flex: 1; min-width: 0; }
.w4-row-tx b { font: 700 13.5px var(--hs-f-body); color: var(--hs-tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w4-row-tx small { display: flex; align-items: center; gap: 6px; min-width: 0; font: 500 11.5px var(--hs-f-body); color: var(--hs-tx-4); white-space: nowrap; overflow: hidden; }
.w4-row-tx small > span { flex: none; }
.w4-row-tx small > .w4-cl { flex: 0 1 auto; }
.w4-row-when { color: var(--hs-dub-tx, var(--hs-dub)); font-weight: 700; }
.w4-row-host img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex: none; }
.w4-lock { padding: 0 5px; border-radius: 4px; background: var(--hs-raise); color: var(--hs-tx-3); font-weight: 700; }
.w4-row-cta { flex: none; }
.w4-row.is-ended .w4-row-th img { filter: grayscale(.85) brightness(.8); }
.w4-row-cta .w3-st.is-ended { background: var(--hs-raise); color: var(--hs-tx-3); }
.w4-row.is-compact { padding: 5px 6px; gap: 8px; }
.w4-row.is-compact .w4-row-th { width: 34px; height: 46px; }
.w4-row.is-compact .w4-row-tx b { font-size: 12.5px; }

/* ---------- room page ---------- */
.w4-grid.w3-grid { grid-template-columns: minmax(0, 1fr) 320px; }
.w4-side { min-height: 0; }
.w4-side-in { display: flex; flex-direction: column; gap: 10px; }
.w4-stagebar-ep { font: 600 12px var(--hs-f-body); color: var(--hs-tx-3); }
.w4-stagebar-ep b { color: var(--hs-tx); }
.w4-dir.w2g-host-panel { border-color: color-mix(in srgb, var(--hs-star) 32%, var(--hs-line)); background: color-mix(in srgb, var(--hs-star) 5%, var(--hs-bg-2)); }

/* audience */
.w4-aud { display: grid; gap: 10px; padding: 10px 12px 12px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); min-width: 0; }
.w4-aud-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 500 12px var(--hs-f-body); color: var(--hs-tx-3); }
.w4-aud-hd > b { font: 800 13px var(--hs-f-body); color: var(--hs-tx); }
.w4-aud-n span { color: var(--hs-tx); font-weight: 700; }
.w4-aud-sum { margin-left: auto; color: var(--hs-tx-4); }
.w4-seats { display: flex; align-items: flex-start; gap: 6px; min-width: 0; margin-top: -10px; padding-top: 18px; overflow-x: auto; scrollbar-width: thin; }
.w4-seat-group { display: contents; }
.w4-seat { position: relative; display: grid; justify-items: center; gap: 4px; width: 58px; flex: none; }
.w4-seat-av { position: relative; width: 38px; height: 38px; }
.w4-seat-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--hs-raise); box-shadow: 0 0 0 2px var(--hs-bg-2), 0 0 0 3px var(--hs-line-2); }
.w4-seat.is-here .w4-seat-av img { box-shadow: 0 0 0 2px var(--hs-bg-2), 0 0 0 3px color-mix(in srgb, var(--hs-ok, #3EE08F) 70%, transparent); }
.w4-seat.is-host .w4-seat-av img { box-shadow: 0 0 0 2px var(--hs-bg-2), 0 0 0 4px var(--hs-star); }
.w4-seat.is-me .w4-seat-av img { box-shadow: 0 0 0 2px var(--hs-bg-2), 0 0 0 4px var(--hs-ac); }
.w4-seat.is-away .w4-seat-av img { opacity: .45; filter: grayscale(1); box-shadow: 0 0 0 2px var(--hs-bg-2), 0 0 0 3px var(--hs-line-2); }
.w4-seat.is-host .w4-seat-av::before { content: ''; position: absolute; top: -12px; left: 50%; width: 14px; height: 14px; margin-left: -7px; z-index: 1; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFC53D' d='M3 7.5l4.6 3.8L12 4.5l4.4 6.8L21 7.5 19 18.5H5z'/%3E%3C/svg%3E"); }
.w4-seat-n { max-width: 58px; font: 600 10.5px var(--hs-f-body); color: var(--hs-tx-3); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w4-seat.is-host .w4-seat-n { color: var(--hs-star); }
.w4-seat.is-me .w4-seat-n { color: var(--hs-ac-tx); }
.w4-seat .w3-bub { z-index: 2; }
.w4-guests { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; height: 38px; min-width: 50px; padding: 0 8px; border: 1px dashed var(--hs-line-2); border-radius: 4px; font: 800 13px/1.1 var(--hs-f-body); color: var(--hs-tx-2); }
.w4-guests small { font: 600 9.5px var(--hs-f-body); color: var(--hs-tx-4); }
.w4-guests[hidden] { display: none; }
.w4-note-wrap .w3-note { margin: 0; }
.w4-note-wrap:has(.w3-note[hidden]) { display: none; }
.w4-rb { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding-bottom: 4px; }
.w4-rb button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--hs-line-2); border-radius: 4px; background: var(--hs-bg-3); font-size: 16px; line-height: 1; cursor: pointer; transition: border-color .15s, transform .1s; }
.w4-rb button b { font: 700 12px var(--hs-f-body); color: var(--hs-tx-3); font-variant-numeric: tabular-nums; }
.w4-rb button:hover { border-color: var(--hs-ac); }
.w4-rb button:active { transform: scale(.94); }
.w4-rb.is-cd button { opacity: .45; cursor: wait; }
.w4-rb.is-cd .w3-react-cd { animation: w3-cd 6s linear forwards; }
.w4-rb.is-wait button { opacity: .5; }
.w4-rb.is-off { display: none; }

/* side: room card + chat */
.w4-card.w2-info { display: grid; justify-content: normal; gap: 9px; margin: 0; padding: 10px; flex: none; }
.w4-card-an { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; }
.w4-card-po img { width: 44px; height: 62px; object-fit: cover; border-radius: 4px; display: block; background: var(--hs-bg-3); }
.w4-card-tx { display: grid; gap: 3px; min-width: 0; }
.w4-card-t.w2-info-t { margin: 0; font: 800 14.5px/1.2 var(--hs-f-head); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w4-card-m { font: 600 12px var(--hs-f-body); color: var(--hs-tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w4-card-m a { color: var(--hs-tx-2); }
.w4-card-m a:hover { color: var(--hs-ac); }
.w4-card-host { display: flex; align-items: center; gap: 6px; font: 500 12px var(--hs-f-body); color: var(--hs-tx-4); }
.w4-card-host img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.w4-card-host b { color: var(--hs-tx-2); font-weight: 700; }
.w4-card-dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--hs-line); border-radius: 4px; }
.w4-card-dl > div { min-width: 0; padding: 5px 8px; }
.w4-card-dl > div + div { border-left: 1px solid var(--hs-line); }
.w4-card-dl dt { font: 700 9.5px var(--hs-f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--hs-tx-4); }
.w4-card-dl dd { margin: 2px 0 0; font: 700 12.5px var(--hs-f-body); color: var(--hs-tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.w4-card-dl dd small { color: var(--hs-tx-4); font-weight: 600; }
.w4-card-stats { flex-wrap: wrap; }
.w4-chat.w2-chat { display: flex; flex-direction: column; min-height: 0; }
.w4-chat .w3-chat-head { gap: 8px; }
.w4-chat-t { display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px var(--hs-f-body); color: var(--hs-tx); }
.w4-chat-s { margin-left: auto; font: 500 11px var(--hs-f-body); color: var(--hs-tx-4); }
.w4-chat .message { display: block; padding: 3px 0; }
.w4-chat .message .avatar { display: none; }
.w4-chat .msg-body .user { display: inline-flex; margin-right: 6px; vertical-align: baseline; font-size: 12.5px; }
.w4-chat .msg-time { display: none; }
.w4-chat .msg-body .text { display: inline; margin: 0; font-size: 13px; }
.w4-chat .message.self .user, .w4-chat .message.self .user .name { color: var(--hs-ac-tx); }
.w4-chat .message.w3-emote .text { font-size: 17px; }

/* curtain countdown (waiting / scheduled) + closed curtain (ended) */
.w4-curtain { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 70% at 50% 0%, rgba(46, 197, 232, .28), transparent 70%), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0 26px, rgba(0, 0, 0, .2) 26px 30px), linear-gradient(180deg, rgba(5, 8, 12, .3), rgba(5, 8, 12, .7)); }
.w2g-room-shell[data-status="ended"] .w4-curtain { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0 26px, rgba(0, 0, 0, .28) 26px 30px), linear-gradient(180deg, rgba(5, 8, 12, .55), rgba(5, 8, 12, .85)); }
.w4-room .w2-notice-card { z-index: 1; }
.w4-kick { display: block; margin-bottom: 10px; font: 800 10.5px var(--hs-f-body); letter-spacing: .14em; text-transform: uppercase; color: #8EE6FA; }
.w4-kick-closed { display: none; }
.w2g-room-shell[data-status="ended"] .w4-kick-open { display: none; }
.w2g-room-shell[data-status="ended"] .w4-kick-closed { display: inline; color: rgba(255, 255, 255, .6); }
.w4-room .w2-notice-av { width: 54px; height: 54px; margin-bottom: 10px; }
.w4-room .w2-countdown { margin: 10px 0 6px; font: 800 44px/1 var(--hs-f-head); text-shadow: 0 0 30px rgba(46, 197, 232, .45); }
.w4-room .w2-notice-card:has(.text-start-time[style*="block"]) .text-start-manual { display: none !important; }
.w4-notice-aud { margin-top: 8px; font: 600 12.5px var(--hs-f-body); color: rgba(255, 255, 255, .75); }
.w4-notice-aud b { color: #fff; }
.w2g-room-shell[data-status="ended"] .w4-notice-aud,
.w2g-room-shell[data-status="ended"] .w4-aud-n,
.w2g-room-shell[data-status="ended"] .w4-stagebar-ep { display: none; }

html[data-theme="light"] .w4-seat.is-host .w4-seat-n { color: #8A6000; }

@media (min-width: 1024px) {
    .w4-side { position: relative; }
    .w4-side-in { position: absolute; inset: 0; }
    .w4-side .w4-chat.w2-chat { position: relative; inset: auto; flex: 1; height: auto; min-height: 0; }
}
@media (max-width: 1023px) {
    .w4-grid.w3-grid { grid-template-columns: minmax(0, 1fr); }
    .w4-side .w4-chat.w2-chat { height: 440px; }
    .w4-rows { flex-direction: column; }
    .w4-later { width: auto; padding: 8px 0 0; border-left: 0; border-top: 1px dashed var(--hs-line-2); }
}
@media (max-width: 640px) {
    .w4-head h1 { font-size: 21px; }
    .w4-head-cta { width: 100%; }
    .w4-head-cta .w3-btn { flex: 1; }
    .w4-tabs { margin-bottom: 14px; }
    .w4-stages { grid-template-columns: 1fr; gap: 8px; }
    .w4-stage-art { height: 150px; }
    .w4-rt span:nth-child(2) { display: none; }
    .w4-ruler, .w4-now { display: none; }
    .w4-track { height: auto; display: grid; gap: 6px; background: none; }
    .w4-blk { position: static; width: auto; height: auto; }
    .w4-tl { padding: 8px; }
    .w4-rowgrid, .w4-later-only { grid-template-columns: 1fr; gap: 6px; }
    .w4-row-cta { display: none; }
    .w4-row-th { width: 72px; height: 44px; }
    .w4-aud { padding: 10px; }
    .w4-aud-sum { margin-left: 0; width: 100%; }
    .w4-seat { width: 50px; }
    .w4-seat-av { width: 34px; height: 34px; }
    .w4-rb { gap: 4px; }
    .w4-rb button { height: 28px; padding: 0 7px; font-size: 14px; gap: 4px; }
    .w4-room .w2-countdown { font-size: 26px; }
    .w4-kick { margin-bottom: 6px; }
}
