/* Yoyo Toplantı */

/* Ana ekran */
.mt-home { padding: 20px; max-width: 860px; }
.mt-start { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.mt-join { display: flex; gap: 8px; flex: 1; min-width: 240px; max-width: 380px; }
.mt-join input { min-width: 0; }
.mt-list { border-top: 1px solid var(--line); }
.mt-list.none { border-top: 0; }
.mt-list > .ys-empty { display: grid; border: 0; padding: 64px 20px; color: var(--mute); background: none; }
.mt-list .mt-row { cursor: pointer; padding: 10px 8px 10px 12px; }
.mt-row .mt-rt { flex: 1; min-width: 0; display: grid; }
.mt-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-row .mt-sub { color: var(--mute); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-link { display: flex; gap: 8px; }
.mt-link input { min-width: 0; }

/* On izleme */
.mt-pre { display: flex; gap: 28px; padding: 24px; align-items: flex-start; max-width: 1080px; }
.mt-prev { position: relative; flex: 1.5; min-width: 0; aspect-ratio: 16 / 9; background: #1c1e24; border-radius: 12px; overflow: hidden; }
.mt-prev video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }
.mt-prev.novid video { visibility: hidden; }
.mt-prev .mt-face { display: none; }
.mt-prev.novid .mt-face { display: grid; }
.mt-prev-ctl { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 10px; }
.mt-meter { position: absolute; left: 14px; bottom: 20px; width: 6px; height: 34px; background: rgba(255, 255, 255, .25); border-radius: 3px; overflow: hidden; display: flex; align-items: flex-end; }
.mt-meter i { display: block; width: 100%; height: 0; background: #4ade80; }
.mt-pre-side { flex: 1; min-width: 260px; display: grid; gap: 12px; align-content: start; }
.mt-pre-side h1 { margin: 0; font-size: 22px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.mt-warn { color: var(--red); font-weight: 600; font-size: 14px; }

/* Gorusme ekrani: duz koyu zemin */
.mt-call { position: fixed; inset: 0; z-index: 60; background: #16181d; color: #fff; display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.mt-mid { flex: 1; min-height: 0; display: flex; gap: 10px; padding: 10px 10px 0; }
.mt-stage { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-content: center; overflow: hidden; }

.mt-tile { position: relative; background: #24272e; border-radius: 10px; overflow: hidden; min-width: 0; min-height: 0; outline: 2px solid transparent; outline-offset: -2px; }
.mt-tile.speaking { outline-color: #3b82f6; }
.mt-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-tile.mirror video { transform: scaleX(-1); }
.mt-tile.contain video, .mt-tile.main video { object-fit: contain; }
.mt-tile.novid video { visibility: hidden; }
.mt-face { position: absolute; inset: 0; display: none; place-items: center; }
.mt-tile.novid .mt-face { display: grid; }
.mt-av { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; font-weight: 700; color: #fff; overflow: hidden; }
.mt-av img { width: 100%; height: 100%; object-fit: cover; }
.mt-av.sm { width: 34px; height: 34px; font-size: 15px; flex: none; }
.mt-tag { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); display: flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .55); border-radius: 6px; padding: 3px 8px; font-size: 13px; font-weight: 500; }
.mt-tag svg { width: 15px; height: 15px; fill: currentColor; flex: none; display: block; }
.mt-tag .mt-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-tag .mt-micoff { color: #f87171; }
.mt-tag .mt-weak { color: #fbbf24; }
.mt-terr { position: absolute; left: 8px; right: 8px; top: 8px; font-size: 13px; color: #fca5a5; font-weight: 500; }
.mt-pin { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; padding: 0; opacity: 0; }
.mt-pin svg { width: 17px; height: 17px; fill: currentColor; }
.mt-tile:hover .mt-pin, .mt-pin:focus-visible, .mt-tile.main .mt-pin { opacity: 1; }
.mt-tile.main .mt-pin.on { background: #2563eb; }
@media (hover: none) { .mt-pin { opacity: 1; } }

/* Biri sabitlenince ya da ekran paylasilinca: buyuk cerceve + yan serit */
.mt-stage.focus { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: flex-end; overflow-y: auto; }
.mt-stage.focus .mt-tile { width: 184px; aspect-ratio: 16 / 9; flex: none; }
.mt-stage.focus .mt-tile.main { position: absolute; left: 0; top: 0; bottom: 0; right: 192px; width: auto; aspect-ratio: auto; background: #101216; }
.mt-stage.focus[data-n="1"] .mt-tile.main { right: 0; }
.mt-stage.focus .mt-tile .mt-av { width: 44px; height: 44px; font-size: 19px; }
.mt-stage.focus .mt-tile.main .mt-av { width: 88px; height: 88px; font-size: 36px; }
@media (max-aspect-ratio: 1/1) {
  .mt-stage.focus { flex-direction: row; justify-content: flex-start; align-items: flex-end; overflow-y: hidden; overflow-x: auto; }
  .mt-stage.focus .mt-tile { width: 112px; height: 84px; aspect-ratio: auto; }
  .mt-stage.focus .mt-tile.main { right: 0; bottom: 92px; height: auto; }
  .mt-stage.focus[data-n="1"] .mt-tile.main { bottom: 0; }
}

.mt-note { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 2; background: rgba(0, 0, 0, .7); border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 500; white-space: nowrap; }

.mt-call ~ .ys-toast { bottom: 84px; }

/* Alt cubuk */
.mt-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.mt-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.mt-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-info svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.mt-btns { display: flex; align-items: center; gap: 8px; }
.mt-end-pad { flex: 1; }
.mt-b { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #2f333c; color: #fff; display: inline-grid; place-items: center; padding: 0; flex: none; }
.mt-b:hover { background: #3b404b; }
.mt-b svg { width: 21px; height: 21px; fill: currentColor; display: block; }
.mt-b.off { background: #dc2626; }
.mt-b.on { background: #2563eb; }
.mt-b.leave { width: 58px; border-radius: 22px; background: #dc2626; }
.mt-b.leave:hover { background: #b91c1c; }
.mt-b .mt-dot { position: absolute; right: 9px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #60a5fa; }
.mt-call :focus-visible { outline-color: #93c5fd; }

/* Yan panel */
.mt-panel { width: 340px; flex: none; background: #fff; color: var(--ink); border-radius: 12px; display: flex; flex-direction: column; min-height: 0; }
.mt-panel :focus-visible { outline-color: var(--blue); }
.mt-ph { display: flex; align-items: center; padding: 10px 8px 6px 16px; font-weight: 700; font-size: 16px; }
.mt-ph span { flex: 1; }
.mt-pb { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 16px 14px; display: grid; gap: 12px; align-content: start; }
.mt-pf { padding: 10px 12px 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.mt-pf input { min-width: 0; }
.mt-msg { display: grid; gap: 1px; }
.mt-msg .mt-mh { font-size: 12px; color: var(--mute); }
.mt-msg .mt-mh b { color: var(--ink); font-weight: 600; margin-inline-end: 6px; }
.mt-msg .mt-mt { overflow-wrap: anywhere; white-space: pre-wrap; }
.mt-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mt-person .mt-pn { flex: 1; min-width: 0; display: grid; }
.mt-person .mt-pn b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-person .mt-pn span { font-size: 12px; color: var(--mute); }
.mt-person .mt-st { display: flex; gap: 4px; color: var(--mute); }
.mt-person .mt-st svg { width: 17px; height: 17px; fill: currentColor; }
.mt-person .mt-st .bad { color: var(--red); }
.mt-check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.mt-check input { width: 17px; height: 17px; margin: 0; }
.mt-sep { border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .mt-home { padding: 14px; }
  .mt-join { max-width: none; flex-basis: 100%; }
  .mt-pre { flex-direction: column; padding: 14px; gap: 16px; }
  .mt-prev { flex: none; width: 100%; }
  .mt-pre-side { width: 100%; min-width: 0; }
  .mt-mid { padding: 6px 6px 0; }
  .mt-info, .mt-end-pad { display: none; }
  .mt-bar { justify-content: center; padding: 8px 6px; }
  .mt-btns { gap: 4px; }
  .mt-b { width: 40px; height: 40px; }
  .mt-b.leave { width: 48px; }
  .mt-panel { position: absolute; inset: 0 0 56px 0; width: auto; border-radius: 0; z-index: 3; }
  .mt-av { width: 64px; height: 64px; font-size: 27px; }
}
