/**
 * Sesli koltuk yerleşimi — tüm hizalama .voice-tile-media içinde (tek kaynak).
 */
.voice-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  box-sizing: border-box;
}

.voice-tile-media {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Halka = kesik/dolu daire çerçevesi */
.voice-tile .voice-tile-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  top: auto;
  left: auto;
  transform: none;
  border-radius: 50%;
  box-sizing: border-box;
  border: 3px solid var(--ring-color, #2979ff);
  transition: box-shadow 0.08s ease-out, border-width 0.08s ease-out;
  pointer-events: none;
}

.voice-tile-empty .voice-tile-ring {
  border: 2px dashed rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.voice-tile-empty .voice-tile-plus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 2;
  pointer-events: none;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.5);
}

/* Avatar ve kamera — halkanın içinde, tam ortada, daire */
.voice-tile .voice-tile-avatar,
.voice-tile .voice-tile-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  box-sizing: border-box;
  z-index: 1;
}

.voice-tile .voice-tile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.voice-tile .voice-tile-avatar .voice-tile-avatar-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  margin: 0;
  padding: 0;
}

.voice-tile .voice-tile-avatar .voice-tile-avatar-inner img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.voice-tile.has-cam .voice-tile-avatar,
.voice-tile.has-screen .voice-tile-avatar {
  display: none;
}

.voice-tile.has-cam .voice-tile-video,
.voice-tile.has-screen .voice-tile-video {
  z-index: 2;
  display: block;
}

/* Konuşma — yeşil halka */
.voice-tile.voice-speaking .voice-tile-ring {
  border-color: #43a047;
  box-shadow:
    0 0 0 calc(2px + var(--voice-level, 0) * 5px) rgba(67, 160, 71, 0.55),
    0 0 calc(10px + var(--voice-level, 0) * 16px) rgba(67, 160, 71, 0.45);
  animation: none;
}

/* İsim — medyanın altında (absolute değil) */
.voice-tile .voice-tile-name {
  position: static;
  margin-top: 6px;
  max-width: 76px;
  font-size: 10px;
  text-align: center;
  line-height: 1.2;
  opacity: 0.9;
}

.voice-tile .voice-tile-menu {
  position: absolute;
  top: 0;
  right: 2px;
  z-index: 5;
}

.voice-tile-cam-icon,
.voice-tile-mute-icon,
.voice-tile-source-icon,
.voice-tile-screen-icon {
  position: absolute;
  z-index: 4;
  top: 4px;
  left: calc(50% + 20px);
  right: auto;
  bottom: auto;
  font-size: 10px;
}

.voice-tile-source-icon {
  top: 18px;
  left: calc(50% + 22px);
}

.voice-rank-badge {
  position: absolute;
  top: 4px;
  left: calc(50% - 34px);
  z-index: 4;
}

/* Canlı oda (üst bant) — biraz daha büyük, yine ortalı */
.chat-live-shell.has-live-voice .voice-tile {
  flex: 0 0 84px;
  width: 84px;
  min-height: 100px;
  height: auto;
}

.chat-live-shell.has-live-voice .voice-tile-media {
  width: 72px;
  height: 72px;
}

.chat-live-shell.has-live-voice .voice-tile .voice-tile-name {
  max-width: 80px;
}

.chat-live-shell.has-live-voice .voice-tile-empty .voice-tile-plus {
  font-size: 26px;
}

/* Ekran paylaşımı — geniş koltuk */
.voice-tile.has-screen {
  flex: 0 0 180px;
  width: 180px;
  min-height: 128px;
  height: auto;
}

.voice-tile.has-screen .voice-tile-media {
  width: calc(100% - 8px);
  height: 112px;
  margin-top: 4px;
}

.voice-tile.has-screen .voice-tile-ring {
  border-radius: 10px;
}

.voice-tile.has-screen .voice-tile-video {
  border-radius: 8px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.85);
}

.chat-live-shell.has-live-voice .voice-tile.has-screen {
  flex: 0 0 220px;
  width: 220px;
}

.chat-live-shell.has-live-voice .voice-tile.has-screen .voice-tile-media {
  height: 132px;
}

/* Spotlight */
.voice-spotlight {
  position: fixed;
  inset: 0;
  z-index: 15500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-spotlight.hidden {
  display: none !important;
}

.voice-spotlight-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.voice-spotlight-card {
  position: relative;
  z-index: 1;
  background: #111;
  border-radius: 12px;
  padding: 12px;
  max-width: min(92vw, 420px);
  width: 100%;
}

.voice-spotlight-card h3 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 15px;
  text-align: center;
}

.voice-spotlight-card video {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
  display: block;
}

.voice-spotlight-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
