.elementor-1750 .elementor-element.elementor-element-dd57106{--display:flex;--gap:5px 5px;--row-gap:5px;--column-gap:5px;}:root{--page-title-display:none;}/* Start custom CSS for html, class: .elementor-element-d8dc925 */#multi-stream-app {
  max-width: 1200px;
  margin: auto;
  position: relative;
}

/* Toolbar */
.multiview-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.layout-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.layout-buttons button,
.layout-menu-trigger,
.fullscreen-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: #f3f4f6;
  color: #111;
  font-weight: 600;
  line-height: 1;
  transition: background 0.18s ease, transform 0.18s ease;
}

.layout-buttons button {
  margin: 0;
}

.layout-buttons button:hover,
.layout-menu-trigger:hover,
.fullscreen-btn:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.layout-buttons button:active,
.layout-menu-trigger:active,
.fullscreen-btn:active {
  transform: translateY(0);
}

/* Layout Manager */
.layout-manager {
  position: relative;
}

.layout-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  justify-content: space-between;
}

.layout-menu-caret {
  font-size: 12px;
  opacity: 0.7;
}

.layout-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.14);
  padding: 8px;
  z-index: 200;
}

.layout-menu-item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: #111827;
}

.layout-menu-item:hover {
  background: #f3f4f6;
}

.layout-menu-row {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
}

.layout-menu-item-main {
  flex: 1;
}

.layout-menu-icon-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: #f3f4f6;
  cursor: pointer;
  font-weight: 700;
}

.layout-menu-icon-btn:hover {
  background: #e5e7eb;
}

/* Share copied label */
.share-row {
  position: relative;
}

.share-copy-badge {
  position: absolute;
  right: -4px;
  top: -36px;
  background: rgba(17,24,39,0.96);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.share-copy-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.share-copy-badge.is-hiding {
  opacity: 0;
  transform: translateY(4px);
}

/* Fullscreen button */
.fullscreen-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fullscreen-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(20,20,20,0.96);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.fullscreen-btn:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Grid */
.grid {
  display: grid;
  width: 100%;
  gap: 12px;
  margin-top: 20px;
}

.grid > .cell {
  width: 100%;
}

/* Frame */
.cell {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
}

/* iframe / player */
.player-wrap {
  width: 100%;
  height: 100%;
}

.player-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.cell iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Center Add UI */
.add-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
  transition: 0.2s;
}

.cell:hover .add-overlay {
  opacity: 1;
}

.add-icon {
  font-size: 42px;
  line-height: 1;
}

.add-text {
  font-size: 14px;
  opacity: 0.8;
}

/* Stream Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup:not(.hidden) {
  display: flex;
}

.hidden {
  display: none !important;
}

.popup-content {
  background: #fff;
  padding: 24px;
  width: 420px;
  max-width: 90%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  font-family: sans-serif;
  position: relative;
  z-index: 10000;
}

.popup-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.popup-content input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}

.popup-content button.add-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #000;
  color: #fff;
  cursor: pointer;
}

.or-divider {
  text-align: center;
  margin: 15px 0;
  position: relative;
  font-size: 12px;
  color: #888;
}

.or-divider::before,
.or-divider::after {
  content: "";
  height: 1px;
  width: 40%;
  background: #ddd;
  position: absolute;
  top: 50%;
}

.or-divider::before { left: 0; }
.or-divider::after { right: 0; }

.close-btn {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  background: #eee;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Search Results */
#searchResults {
  margin-top: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.result-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  border-radius: 8px;
}

.result-item:hover {
  background: #f5f5f5;
}

.live-badge {
  color: #ff0000;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ff0000;
  border-radius: 50%;
}

/* Shared Controls */
.move-btn,
.audio-btn,
.remove-btn {
  position: absolute;
  top: 10px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.cell:hover .move-btn,
.cell:hover .audio-btn,
.cell:hover .remove-btn {
  opacity: 1;
}

.move-btn:hover,
.audio-btn:hover,
.remove-btn:hover {
  background: rgba(0,0,0,0.88);
}

.move-btn:active,
.audio-btn:active,
.remove-btn:active {
  transform: scale(0.96);
}

.remove-btn {
  right: 10px;
  cursor: pointer;
}

.audio-btn {
  right: 46px;
  cursor: pointer;
}

.move-btn {
  right: 82px;
  cursor: grab;
}

.move-btn:active {
  cursor: grabbing;
}

.move-btn svg {
  display: block;
  opacity: 0.95;
}

/* Custom Tooltip */
.move-btn::after,
.audio-btn::after,
.remove-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(20,20,20,0.96);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.move-btn:hover::after,
.audio-btn:hover::after,
.remove-btn:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Drag */
.cell.drag-over {
  outline: 2px dashed rgba(0,0,0,0.35);
  outline-offset: -6px;
}

.cell.dragging {
  opacity: 0.7;
}

body.drag-mode .player-wrap,
body.drag-mode .player-wrap iframe {
  pointer-events: none !important;
}

body.drag-mode .audio-btn,
body.drag-mode .remove-btn {
  pointer-events: none !important;
}

/* UI Modal */
.ui-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ui-modal-card {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  overflow: hidden;
}

.ui-modal-card-sm {
  width: min(420px, 100%);
}

.ui-modal-card-lg {
  width: min(640px, 100%);
}

.ui-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f1f1f1;
}

.ui-modal-header h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.ui-modal-body {
  padding: 18px 20px;
}

.ui-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.ui-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
}

.ui-text {
  margin: 0;
  color: #374151;
  line-height: 1.5;
}

.ui-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 20px 20px;
  flex-wrap: wrap;
}

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: none;
  text-decoration: none !important;
  font-weight: 600;
  cursor: pointer;
}

.ui-btn-primary {
  background: #111827;
  color: #fff !important;
}

.ui-btn-secondary {
  background: #f3f4f6;
  color: #111827 !important;
}

.ui-btn-danger {
  background: #b91c1c;
  color: #fff !important;
}

.no-underline {
  text-decoration: none !important;
}

/* Open layouts list */
.open-layouts-list {
  margin-top: 14px;
  max-height: 360px;
  overflow-y: auto;
}

.open-layout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.open-layout-row:last-child {
  border-bottom: none;
}

.open-layout-row.is-active .open-layout-main {
  background: #f3f4f6;
}

.open-layout-main {
  flex: 1;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
}

.open-layout-main:hover {
  background: #f8fafc;
}

.open-layout-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.open-layout-icon-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: #f3f4f6;
  cursor: pointer;
}

.open-layout-icon-btn:hover {
  background: #e5e7eb;
}

.open-layout-delete-btn {
  color: #b91c1c;
}

.saved-layout-empty {
  color: #666;
  padding: 10px 8px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .ui-modal-actions {
    flex-direction: column;
  }

  .ui-btn {
    width: 100%;
  }

  .layout-menu-trigger {
    min-width: 180px;
  }
}

/* =========================
   FINAL VISIBILITY FIX
   ========================= */

/* Fullscreen tooltip üstte ve en önde */
.multiview-toolbar,
.layout-manager,
.fullscreen-btn {
  overflow: visible !important;
}

.fullscreen-btn {
  position: relative !important;
  z-index: 9998 !important;
}

.fullscreen-btn::after {
  top: auto !important;
  bottom: calc(100% + 10px) !important;
  right: 0 !important;
  z-index: 99999 !important;
  transform: translateY(4px) !important;
}

.fullscreen-btn:hover::after {
  transform: translateY(0) !important;
}

/* Layout dropdown her durumda görünür */
.layout-menu,
.layout-menu * {
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Dropdown yazıları */
.layout-menu-item,
.layout-menu-item:link,
.layout-menu-item:visited,
.layout-menu-item:hover,
.layout-menu-item:focus,
.layout-menu-item:active {
  color: #111827 !important;
  text-decoration: none !important;
}

.layout-menu-item:hover,
.layout-menu-item:focus {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

/* Create New Layout tek satır */
.layout-menu-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

.layout-menu-item-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* NEW butonu görünür */
.layout-menu-icon-btn,
.layout-menu-icon-btn:link,
.layout-menu-icon-btn:visited,
.layout-menu-icon-btn:hover,
.layout-menu-icon-btn:focus,
.layout-menu-icon-btn:active {
  color: #111827 !important;
  background: #f3f4f6 !important;
  opacity: 1 !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 74px !important;
  height: 38px !important;
  padding: 0 12px !important;
}

.layout-menu-icon-btn:hover,
.layout-menu-icon-btn:focus {
  background: #e5e7eb !important;
  color: #111827 !important;
}

/* Open layout satır yazıları görünür */
.open-layout-main,
.open-layout-main:link,
.open-layout-main:visited,
.open-layout-main:hover,
.open-layout-main:focus,
.open-layout-main:active {
  color: #111827 !important;
  background: transparent !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

.open-layout-main:hover,
.open-layout-main:focus {
  background: #f8fafc !important;
  color: #111827 !important;
}

.open-layout-row.is-active .open-layout-main {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

/* Open layout sağ taraf NEW / DELETE butonları görünür */
.open-layout-row-actions {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.open-layout-icon-btn,
.open-layout-icon-btn:link,
.open-layout-icon-btn:visited,
.open-layout-icon-btn:hover,
.open-layout-icon-btn:focus,
.open-layout-icon-btn:active {
  color: #111827 !important;
  background: #f3f4f6 !important;
  opacity: 1 !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 76px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border: none !important;
  border-radius: 10px !important;
}

.open-layout-icon-btn:hover,
.open-layout-icon-btn:focus {
  background: #e5e7eb !important;
  color: #111827 !important;
}

.open-layout-delete-btn,
.open-layout-delete-btn:link,
.open-layout-delete-btn:visited,
.open-layout-delete-btn:hover,
.open-layout-delete-btn:focus,
.open-layout-delete-btn:active {
  color: #b91c1c !important;
  opacity: 1 !important;
}

.open-layout-delete-btn:hover,
.open-layout-delete-btn:focus {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

/* Tema override kırıcı */
.open-layout-icon-btn *,
.layout-menu-icon-btn *,
.layout-menu-item *,
.open-layout-main * {
  color: inherit !important;
  opacity: 1 !important;
}

/* Dropdown üst katmanda */
.layout-manager {
  position: relative !important;
  z-index: 500 !important;
}

.layout-menu {
  z-index: 9999 !important;
}/* End custom CSS */