/* =====================================================================
   ŞABO TV — Stüdyo (yarışma oyunlarının ortak sahnesi)
   ===================================================================== */

.studio-page { background: radial-gradient(1200px 500px at 50% -10%, rgba(155, 36, 80, .18), transparent 60%), var(--ink); }
.studio-page .site-footer { margin-top: 0; }

/* ------------------------------------------------------------------ lobi */
.lobby-hero { position: relative; padding: 48px 0 36px; overflow: hidden; border-bottom: 1px solid var(--line); }
.lobby-hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.lobby-hero h1 { font-size: clamp(40px, 6vw, 84px); line-height: .92; font-style: italic; }
.lobby-hero h1 em { font-style: italic; color: var(--mavi); }
.lobby-hero p { font-size: 17px; max-width: 560px; margin-top: 16px; }
.lobby-hero .art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: end; width: 100%; }
@media (max-width: 860px) { .lobby-hero .wrap { grid-template-columns: 1fr; } .lobby-hero .art { display: none; } }
.lobby-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.code-join { display: flex; gap: 0; }
.code-join .input { width: 150px; border-radius: var(--radius) 0 0 var(--radius); text-transform: uppercase; letter-spacing: .2em; font-family: var(--mono); height: 52px; }
.code-join .btn { border-radius: 0 var(--radius) var(--radius) 0; height: 52px; }

.room-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.room-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .15s, transform .15s; cursor: pointer; text-align: left; color: inherit; }
.room-card:hover { border-color: var(--bordo-2); transform: translateY(-2px); }
.room-card h4 { font-size: 20px; text-transform: uppercase; }
.room-card .meta { display: flex; gap: 14px; color: var(--muted); font-size: 13px; }
.room-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.room-card.featured { background: linear-gradient(135deg, var(--bordo-ink), var(--panel) 60%); border-color: var(--bordo); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.how-grid > div { padding: 22px; border-right: 1px solid var(--line); background: var(--panel); }
.how-grid > div:last-child { border-right: 0; }
.how-grid b { display: block; font: 800 44px/1 var(--display); color: var(--bordo-3); font-style: italic; }
.how-grid h4 { margin: 8px 0 6px; text-transform: uppercase; }
.how-grid p { margin: 0; font-size: 14px; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } .how-grid > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ------------------------------------------------------------------ stüdyo yerleşimi */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto 1fr; min-height: calc(100vh - var(--header-h)); }
.studio-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 10px 20px; background: var(--ink-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.studio-top .title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.studio-top .title b { font: 800 21px/1 var(--display); text-transform: uppercase; font-style: italic; letter-spacing: .02em; }
.studio-top .title span { font-size: 12.5px; color: var(--muted); }
.studio-top .code { font: 600 13px/1 var(--mono); letter-spacing: .14em; padding: 7px 10px; border: 1px dashed var(--line-2); border-radius: 4px; color: var(--text-2); background: none; }
.studio-top .code:hover { border-color: var(--mavi); color: #fff; }
.studio-top .spacer { flex: 1; }
.host-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 4px; border-radius: 30px; background: var(--panel-2); border: 1px solid var(--line-2); font: 600 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.host-pill.live { background: rgba(232, 182, 76, .12); border-color: rgba(232, 182, 76, .45); color: var(--gold-2); }
.host-pill .avatar { width: 22px; height: 22px; font-size: 10px; }
.host-pill .mini-bot { width: 22px; height: 22px; }

.stage-wrap { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.stage { position: relative; flex: 1; min-height: 520px; padding: 22px; overflow: hidden; }
.stage::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(800px 400px at 50% 0%, rgba(95, 182, 232, .06), transparent 70%),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 80px); pointer-events: none; }
.stage > * { position: relative; }

.side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: var(--ink-2); max-height: calc(100vh - var(--header-h) - 52px); position: sticky; top: var(--header-h); }
.side .tabs { padding: 0 8px; }
.side-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.member-list { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.member { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; }
.member:hover { background: var(--panel); }
.member .name { flex: 1; min-width: 0; font-size: 14px; }
.member .tools { display: none; gap: 4px; }
.member:hover .tools { display: flex; }
.member .speaking { color: var(--ok); }

@media (max-width: 1100px) {
  .studio { grid-template-columns: 1fr; }
  .side { position: static; max-height: 460px; border-left: 0; border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ sunucu bandı */
.host-band { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 22px; background: linear-gradient(90deg, var(--bordo-ink), var(--panel) 45%); border-top: 1px solid var(--line); min-height: 86px; }
.host-band::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--bordo-3); }
.host-band .who { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; width: 76px; }
.host-band .who small { font: 700 10.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.host-band .line { flex: 1; min-width: 0; font: 600 clamp(16px, 1.6vw, 21px)/1.35 var(--font); color: #fff; }
.host-band .line .who-name { display: block; font: 700 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--mavi); margin-bottom: 5px; }
.host-band .line.fresh { animation: lineIn .35s ease-out; }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } }
.host-band .avatar.lg { box-shadow: 0 0 0 3px rgba(232, 182, 76, .6); }
.host-band .avatar.speaking, .seat .avatar.speaking { box-shadow: 0 0 0 3px var(--ok), 0 0 18px rgba(52, 196, 124, .6); }

/* ------------------------------------------------------------------ Şabot maskotu */
.mascot { width: 64px; height: 64px; overflow: visible; }
.mascot .eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
.mascot .mouth { transform-box: fill-box; transform-origin: center; transition: transform .1s; }
.mascot.talking .mouth { animation: talk .16s infinite alternate ease-in-out; }
.mascot.talking .screen-glow { opacity: .9; }
.mascot .antenna-tip { animation: tipGlow 2.4s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes talk { from { transform: scaleY(.25); } to { transform: scaleY(1.25); } }
@keyframes tipGlow { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.mascot.lg { width: 160px; height: 160px; }
.mascot.xl { width: 260px; height: 260px; }

/* ------------------------------------------------------------------ koltuk / yarışmacı kartı */
.seats { display: grid; gap: 12px; }
.seat { --accent: var(--line-2); position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .2s, box-shadow .2s, transform .2s; }
.seat.empty { border-style: dashed; background: transparent; color: var(--muted); justify-content: center; cursor: pointer; min-height: 64px; }
.seat.empty:hover { border-color: var(--mavi); color: #fff; }
.seat.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 30px rgba(232, 182, 76, .18); transform: translateY(-2px); }
.seat.me { background: linear-gradient(90deg, rgba(95, 182, 232, .08), var(--panel)); }
.seat .info { flex: 1; min-width: 0; }
.seat .info b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat .info span { font-size: 12px; color: var(--muted); }
.seat .score { font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.seat .no { position: absolute; top: -8px; left: 12px; font: 700 10.5px/1 var(--display); letter-spacing: .14em; padding: 3px 7px; background: var(--panel-3); border-radius: 3px; color: var(--muted); }
.seat.active .no { background: var(--gold); color: #1d1404; }

/* ------------------------------------------------------------------ zamanlayıcı halkası */
.timer { --p: 1; --c: var(--mavi); position: relative; width: 92px; height: 92px; flex: none; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer .bg { stroke: var(--line); }
.timer .fg { stroke: var(--c); stroke-linecap: round; transition: stroke-dashoffset .25s linear, stroke .3s; }
.timer b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 32px/1 var(--display); font-variant-numeric: tabular-nums; }
.timer.warn { --c: var(--warn); }
.timer.danger { --c: var(--bad); }
.timer.danger b { animation: pulse .5s infinite alternate; }
.timer.sm { width: 58px; height: 58px; }
.timer.sm b { font-size: 20px; }
.timer.lg { width: 130px; height: 130px; }
.timer.lg b { font-size: 46px; }
@keyframes pulse { to { transform: scale(1.08); } }

/* ------------------------------------------------------------------ cevap alanı */
.answer-bar { display: flex; gap: 10px; align-items: stretch; }
.answer-bar .input { height: 60px; font-size: 22px; font-weight: 600; padding: 0 18px; background: #06080c; border-width: 2px; }
.answer-bar .btn { height: 60px; }
.big-btn { height: 72px; font-size: 24px; padding: 0 36px; }

/* ------------------------------------------------------------------ sunucu kontrol paneli */
.control-panel { border-top: 1px solid var(--line); background: #0b0e14; padding: 14px 22px; display: flex; flex-direction: column; gap: 12px; }
.control-panel .cp-head { display: flex; align-items: center; gap: 10px; }
.control-panel .cp-head b { font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.control-panel .cp-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.prompter { background: #000; border: 1px solid #2a2208; border-left: 4px solid var(--gold); border-radius: 6px; padding: 10px 14px; font-size: 15px; color: var(--gold-2); min-height: 44px; }
.prompter small { display: block; color: var(--muted); font: 700 10px/1 var(--display); letter-spacing: .16em; margin-bottom: 4px; }

/* ------------------------------------------------------------------ çeşitli sahne öğeleri */
.phase-banner { display: inline-flex; align-items: center; gap: 10px; font: 800 14px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--mavi); }
.phase-banner::before, .phase-banner::after { content: ''; width: 28px; height: 2px; background: currentColor; opacity: .5; }
.big-count { font: 900 clamp(90px, 14vw, 200px)/1 var(--display); font-style: italic; color: #fff; text-shadow: 0 0 60px rgba(195, 53, 102, .6); animation: countPop .9s ease-out; }
@keyframes countPop { from { transform: scale(1.6); opacity: 0; } 30% { opacity: 1; } }
.flash-ok { animation: flashOk .7s; }
.flash-bad { animation: flashBad .7s; }
@keyframes flashOk { 0% { box-shadow: inset 0 0 0 9999px rgba(52, 196, 124, .25); } 100% { box-shadow: inset 0 0 0 9999px rgba(52, 196, 124, 0); } }
@keyframes flashBad { 0% { box-shadow: inset 0 0 0 9999px rgba(236, 75, 85, .25); } 100% { box-shadow: inset 0 0 0 9999px rgba(236, 75, 85, 0); } }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 12px; }
.podium .p { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.podium .block { width: 120px; display: flex; align-items: flex-start; justify-content: center; padding-top: 10px; font: 900 44px/1 var(--display); font-style: italic; color: rgba(255, 255, 255, .85); border-radius: 6px 6px 0 0; }
.podium .p1 .block { height: 150px; background: linear-gradient(var(--gold), #a77d1e); color: #1d1404; }
.podium .p2 .block { height: 110px; background: linear-gradient(#b8c2d1, #6c7686); color: #10141b; }
.podium .p3 .block { height: 80px; background: linear-gradient(#c98b55, #7a4f2b); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 400; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.voice-btn.on { --bg: var(--ok); --bd: var(--ok); --fg: #03140a; }
.reaction-float { position: absolute; bottom: 10px; font-size: 26px; animation: floatUp 2.4s ease-out forwards; pointer-events: none; color: var(--bordo-3); }
@keyframes floatUp { to { transform: translateY(-260px) scale(1.4); opacity: 0; } }

/* ------------------------------------------------------------------ kamera kareleri (Zoom benzeri) */
[data-media-uid] { position: relative; overflow: hidden; }
[data-media-uid] > video.media-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #05070a; z-index: 2; animation: camIn .35s ease-out; }
[data-media-uid] > video.media-video.self { transform: scaleX(-1); }
[data-media-uid].has-video::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 -40px 40px -20px rgba(0, 0, 0, .55); pointer-events: none; }
[data-media-uid].has-video.speaking::after, [data-media-uid].speaking.has-video::after { box-shadow: inset 0 0 0 3px var(--ok), inset 0 -40px 40px -20px rgba(0, 0, 0, .55); }
@keyframes camIn { from { opacity: 0; transform: scale(1.04); } }
.host-band .host-cam { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; transition: width .3s, height .3s, border-radius .3s; width: 56px; height: 56px; }
.host-band .host-cam.has-video { width: 148px; height: 84px; border-radius: 8px; box-shadow: 0 0 0 2px rgba(232, 182, 76, .7), 0 8px 24px rgba(0, 0, 0, .5); }
.host-band .who:has(.host-cam.has-video) { width: auto; }
.voice-btn.on[data-act="cam"] { --bg: var(--mavi); --bd: var(--mavi); --fg: #06131c; }

/* ------------------------------------------------------------------ canlı sunucu karesi (her stüdyoda, Zoom/Meet benzeri) */
.host-band .host-cam { --c: #7d1d3f; position: relative; display: flex; align-items: center; justify-content: center; width: 112px; height: 63px; border-radius: 9px;
  background: radial-gradient(120% 120% at 25% 15%, color-mix(in srgb, var(--c) 80%, #fff 8%), color-mix(in srgb, var(--c) 45%, #000) 75%);
  box-shadow: 0 0 0 2px rgba(232, 182, 76, .75), 0 10px 28px rgba(0, 0, 0, .55); transition: width .3s, height .3s; }
.host-band.live { min-height: 0; padding-top: 14px; padding-bottom: 14px; }
.host-band.live .who { width: auto; }
.host-band.live .who > small { display: none; }
.host-band.live .host-cam { width: 260px; height: 146px; }
.host-band .host-cam.has-video { width: 260px; height: 146px; border-radius: 9px; }
.host-band .host-ini { font: 800 34px/1 var(--display); letter-spacing: .04em; color: rgba(255, 255, 255, .92); text-shadow: 0 3px 14px rgba(0, 0, 0, .35); }
.host-band .host-eq { position: absolute; left: 12px; top: 12px; display: flex; align-items: flex-end; gap: 3px; height: 18px; opacity: .35; }
.host-band .host-eq i { width: 3px; height: 4px; border-radius: 2px; background: #fff; }
.host-band .host-cam.speaking .host-eq { opacity: 1; }
.host-band .host-cam.speaking .host-eq i { animation: eq .5s ease-in-out infinite alternate; }
.host-band .host-cam.speaking .host-eq i:nth-child(2) { animation-delay: .12s; } .host-band .host-cam.speaking .host-eq i:nth-child(3) { animation-delay: .24s; }
.host-band .host-cam.speaking .host-eq i:nth-child(4) { animation-delay: .08s; } .host-band .host-cam.speaking .host-eq i:nth-child(5) { animation-delay: .2s; }
@keyframes eq { from { height: 4px; } to { height: 18px; } }
.host-band .host-cam.has-video .host-eq { z-index: 4; }
.host-band .host-plate { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 0 0 9px 9px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.host-band .host-plate b { font: 700 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.host-band .host-plate em { flex: none; font: 700 9.5px/1 var(--display); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: #1d1404; background: var(--gold); padding: 3px 5px 2px; border-radius: 3px; }
.host-band.live .line { font-size: clamp(17px, 1.7vw, 22px); }
.mascot .mouth { animation: none !important; }
@media (max-width: 760px) {
  .host-band.live { flex-direction: column; align-items: flex-start; }
  .host-band.live .host-cam, .host-band .host-cam.has-video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* kamera açıkken yer tutucu baş harfler gizlenir (isim plakaları kalır) */
.has-video > .yk-cam-ini, .has-video > .host-ini, .has-video > .avatar, .has-video > .media-ph, .has-video > .ini { visibility: hidden; }

@media (max-width: 760px) { .host-band.live .who { width: 100%; } }

/* ---------------------------------------------------------------- sahne: başvuru, çağrı, kalabalık stüdyo */
.raise-btn.on { --bg: var(--gold); --bd: var(--gold); --fg: #1b1305; }
.raise-btn.invited { --bg: var(--ok); --bd: var(--ok); --fg: #03140a; animation: raisePulse 1.2s ease-in-out infinite; }
@keyframes raisePulse { 50% { box-shadow: 0 0 0 6px rgba(52, 196, 124, .2); } }
.member .raised { color: var(--gold); display: inline-flex; }
.stage-note { display: flex; align-items: center; gap: 12px; padding: 10px 22px; background: linear-gradient(90deg, rgba(95, 182, 232, .12), transparent 70%); border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.stage-note > svg { color: var(--mavi); flex: none; }
.stage-note span { flex: 1; min-width: 0; }
.stage-note b { color: var(--text); }
.stage-box { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.stage-box:empty { display: none; }
.stage-box .sb-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.stage-box .sb-head > svg { color: var(--gold); }
.stage-box .sb-head b { flex: 1; font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.stage-box .sb-list { max-height: 220px; overflow-y: auto; padding: 4px; }
.stage-box .sb-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; }
.stage-box .sb-row:hover { background: var(--panel-2); }
.stage-box .sb-row .name { flex: 1; min-width: 0; font-size: 14px; }
.stage-box .sb-empty { margin: 0; padding: 12px; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  .stage-note { flex-wrap: wrap; padding: 10px 14px; }
  .raise-btn span { display: inline; }
}
