.room-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, .10), transparent 34%),
    linear-gradient(135deg, #ffffff, #fffafa);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 22px 70px rgba(15, 23, 42, .08);
}

.room-head-main h1 {
  margin: 8px 0;
  color: #111827;
  letter-spacing: -.04em;
}

.room-head-main p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.room-live-card {
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  background: #111827;
  color: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
}

.room-live-card strong,
.room-live-card small {
  display: block;
}

.room-live-card small {
  margin-top: 3px;
  color: rgba(255,255,255,.68);
}

.room-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 7px rgba(239, 68, 68, .18);
}

.room-layout-pro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  margin-top: 24px;
  align-items: stretch;
}

.room-chat-panel,
.room-participants-panel {
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 22px 70px rgba(15, 23, 42, .08);
}

.room-messages {
  min-height: 610px;
  max-height: 68vh;
  overflow-y: auto;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 8%, rgba(220, 38, 38, .045), transparent 30%),
    #ffffff;
}

.room-messages:empty::before {
  content: "Henüz mesaj yok. Sohbet başladığında burada görünecek.";
  display: grid;
  place-items: center;
  min-height: 520px;
  color: #94a3b8;
  text-align: center;
}

.room-chat-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, .07);
}

.room-media-controls {
  display: flex;
  gap: 8px;
}

.room-control-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.room-control-btn:hover {
  transform: translateY(-1px);
  background: #fff1f2;
  border-color: rgba(220, 38, 38, .22);
}

.room-chat-form input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  outline: none;
  background: #fff;
  color: #111827;
  font-size: 15px;
}

.room-chat-form input:focus {
  border-color: rgba(220, 38, 38, .42);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .09);
}

.room-send-btn {
  height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ef4444, #991b1b);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(220, 38, 38, .24);
}

.room-participants-panel {
  min-height: 690px;
  background:
    linear-gradient(180deg, #ffffff, #fffafa);
}

.room-participants-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.room-participants-list:empty::before {
  content: "Katılımcılar yükleniyor...";
  display: block;
  padding: 18px;
  border-radius: 20px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

/* room-dom.js katılımcıları bu mantıkta basmalı */
.participant-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .07);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
}

.participant-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  object-fit: cover;
  background: #fee2e2;
}

.participant-info {
  min-width: 0;
}

.participant-info strong {
  display: block;
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.participant-info span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.participant-icons {
  display: flex;
  gap: 6px;
}

.participant-icons button,
.participant-icons span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .07);
  background: #f8fafc;
}

.participant-icons .is-active {
  background: #fff1f2;
  color: #991b1b;
  border-color: rgba(220, 38, 38, .24);
}

.room-camera-popup {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(460px, calc(100vw - 32px));
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .36);
  z-index: 9999;
}

.room-camera-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
}

.room-camera-popup-head button {
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  background: #ef4444;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.room-camera-popup video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  background: #020617;
}

@media (max-width: 960px) {
  .room-layout-pro {
    grid-template-columns: 1fr;
  }

  .room-participants-panel {
    min-height: auto;
  }

  .room-chat-form {
    grid-template-columns: 1fr;
  }

  .room-media-controls {
    justify-content: center;
  }

  .room-send-btn {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .room-page-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .room-live-card {
    width: 100%;
  }

  .room-messages {
    min-height: 460px;
  }
}.control-label {
  display: none;
}

.control-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.control-icon-mic {
  mask-image: url("/static/img/icons/microphone.svg");
}

.control-icon-camera {
  mask-image: url("/static/img/icons/camera.svg");
}

.control-icon-hand {
  mask-image: url("/static/img/icons/hand.svg");
}