/*
  Canlı yayın arayüzü (rozet, açılır bildirim, oynatıcı, yayıncı paneli).

  Bu dosya bilerek Tailwind'den bağımsız, düz CSS olarak yazıldı: sitenin app.css
  dosyası derlenmiş/ayıklanmış olduğu için oraya sonradan eklenen sınıflar ancak
  "npm run build:css" ile devreye girer. Buradaki sınıflar (cy- önekli) derleme
  gerektirmez, yayınla birlikte doğrudan çalışır.

  Renkler sitenin paletinden: lacivert #0f1a3d / #0a1329, güneş sarısı #f2a90c,
  bayrak kırmızısı #b91c2b.
*/

/* ------------------------------------------------------------------ Rozet */
.cy-rozet {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #fdecee;
  color: #991221;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.cy-rozet:hover { background: #fbd5d9; transform: translateY(-1px); }
.cy-rozet[hidden] { display: none !important; }
.cy-rozet--mobil { border-radius: 0.5rem; padding: 0.5rem 0.75rem; }

.cy-nokta {
  position: relative;
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: #e11d2e;
  animation: cy-yanip-son 1.1s ease-in-out infinite;
}
.cy-nokta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #e11d2e;
  animation: cy-halka 1.1s ease-out infinite;
}
@keyframes cy-yanip-son {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes cy-halka {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ------------------------------------------------- Ana sayfa açılır bildirim */
.cy-popup {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: min(22rem, calc(100vw - 2rem));
  overflow: hidden;
  border-radius: 1rem;
  background: #0f1a3d;
  color: #fff;
  box-shadow: 0 20px 50px rgba(10, 19, 41, 0.45);
  opacity: 0;
  transform: translateY(1rem) scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.cy-popup.cy-acik { opacity: 1; transform: none; pointer-events: auto; }
.cy-popup__govde { display: flex; align-items: flex-start; gap: 0.875rem; padding: 1rem 1rem 0.875rem; }
.cy-popup__ikon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(225, 29, 46, 0.18);
}
.cy-popup__ust { margin: 0; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #fca5ad; }
.cy-popup__baslik { margin: 0.125rem 0 0; font-size: 1rem; font-weight: 800; line-height: 1.3; }
.cy-popup__alt { margin: 0.25rem 0 0; font-size: 0.8125rem; color: #c6cfe2; }
.cy-popup__izle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.625rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #f2a90c;
  color: #0a1329;
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: none;
}
.cy-popup__izle:hover { background: #fbbf24; }
.cy-popup__kapat {
  flex: none;
  margin-left: auto;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.cy-popup__kapat:hover { background: rgba(255, 255, 255, 0.2); }
.cy-popup__sure { height: 3px; background: #e11d2e; transform-origin: left; }
.cy-popup.cy-acik .cy-popup__sure { animation: cy-sure 5s linear forwards; }
@keyframes cy-sure { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------------------------------------------------------------- Oynatıcı */
.cy-oynatici {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
  background: #0a1329;
  box-shadow: 0 20px 40px rgba(10, 19, 41, 0.25);
}
.cy-oynatici video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.cy-oynatici video[hidden] { display: none; }

.cy-perde {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  color: #c6cfe2;
}
.cy-perde[hidden] { display: none; }
.cy-perde__baslik { margin: 0; font-size: 1.125rem; font-weight: 800; color: #fff; }
.cy-perde__metin { margin: 0; max-width: 28rem; font-size: 0.875rem; line-height: 1.5; }
.cy-perde svg { width: 3.5rem; height: 3.5rem; opacity: 0.55; }

.cy-donen {
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #f2a90c;
  border-radius: 9999px;
  animation: cy-don 0.9s linear infinite;
}
@keyframes cy-don { to { transform: rotate(360deg); } }

.cy-canli-etiket {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 0.375rem;
  background: #e11d2e;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.cy-canli-etiket[hidden] { display: none; }
.cy-canli-etiket .cy-nokta { width: 0.45rem; height: 0.45rem; background: #fff; }
.cy-canli-etiket .cy-nokta::after { display: none; }

.cy-ses-ac {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border: 0;
  border-radius: 9999px;
  background: #f2a90c;
  color: #0a1329;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.cy-ses-ac[hidden] { display: none; }

/* ------------------------------------------------------------ Yayıncı paneli */
.cy-panel { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 1024px) {
  .cy-panel { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
}
.cy-kutu { padding: 1.25rem; border: 1px solid #e6eaf3; border-radius: 1rem; background: #fff; }
.cy-kutu + .cy-kutu { margin-top: 1rem; }
.cy-kutu h2 { margin: 0 0 0.75rem; font-size: 0.9375rem; font-weight: 800; color: #0f1a3d; }

.cy-alan { display: block; margin-bottom: 0.875rem; }
.cy-alan:last-child { margin-bottom: 0; }
.cy-alan > span { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.375rem; font-size: 0.8125rem; font-weight: 700; color: #172554; }
.cy-alan select,
.cy-alan input[type="text"] {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #c6cfe2;
  border-radius: 0.5rem;
  background: #fff;
  color: #0f1a3d;
  font-size: 0.875rem;
}
.cy-alan select:focus,
.cy-alan input[type="text"]:focus { outline: 2px solid #f2a90c; outline-offset: 1px; border-color: #f2a90c; }
.cy-ipucu { margin: 0.375rem 0 0; font-size: 0.75rem; line-height: 1.45; color: #4c6089; }

.cy-dugme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}
.cy-dugme:active { transform: scale(0.98); }
.cy-dugme:disabled { opacity: 0.55; cursor: not-allowed; }
.cy-dugme--baslat { background: #e11d2e; color: #fff; }
.cy-dugme--baslat:hover:not(:disabled) { background: #b91c2b; }
.cy-dugme--bitir { background: #0f1a3d; color: #fff; }
.cy-dugme--bitir:hover:not(:disabled) { background: #172554; }
.cy-dugme[hidden] { display: none; }

.cy-durum-satiri { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.875rem; font-size: 0.8125rem; color: #384a70; }
.cy-durum-satiri strong { color: #0f1a3d; }
.cy-durum-rozet { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.625rem; border-radius: 9999px; background: #e6eaf3; color: #384a70; font-weight: 800; font-size: 0.75rem; }
.cy-durum-rozet.cy-yayinda { background: #fdecee; color: #991221; }
.cy-durum-rozet .cy-nokta { display: none; width: 0.5rem; height: 0.5rem; }
.cy-durum-rozet.cy-yayinda .cy-nokta { display: block; }

.cy-uyari { margin-top: 0.875rem; padding: 0.75rem 0.875rem; border-radius: 0.625rem; background: #fef3c7; color: #764c0c; font-size: 0.8125rem; line-height: 1.45; }
.cy-uyari[hidden] { display: none; }
.cy-uyari--hata { background: #fdecee; color: #7a0f1c; }

.cy-link { display: flex; gap: 0.5rem; }
.cy-link input { flex: 1; min-width: 0; padding: 0.5rem 0.75rem; border: 1px solid #c6cfe2; border-radius: 0.5rem; background: #f4f6fa; color: #0f1a3d; font-size: 0.8125rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cy-link button { flex: none; padding: 0.5rem 0.875rem; border: 1px solid #c6cfe2; border-radius: 0.5rem; background: #fff; color: #172554; font-size: 0.8125rem; font-weight: 700; cursor: pointer; }
.cy-link button:hover { border-color: #f2a90c; color: #9c6308; }
.cy-adimlar { margin: 0.625rem 0 0; padding-left: 1.25rem; list-style: decimal; font-size: 0.8125rem; line-height: 1.6; color: #384a70; }

/* ------------------------------------------------------------- OBS kaynağı */
.cy-obs-govde { margin: 0; background: transparent; overflow: hidden; }
.cy-obs-govde video { position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: contain; background: transparent; }
.cy-obs-govde video[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .cy-nokta, .cy-nokta::after, .cy-donen { animation-duration: 2.4s; }
  .cy-popup { transition: none; }
}

/* Mobil üst bar: menü kapalıyken de rozet görünsün (masaüstünde menünün içindeki kullanılır). */
.cy-rozet--ustbar { margin-left: auto; margin-right: 0.5rem; padding: 0.375rem 0.7rem; font-size: 0.75rem; }
@media (min-width: 1024px) { .cy-rozet--ustbar { display: none !important; } }

/* ------------------------------------------------------ Sahneler (yayıncı) */
.cy-sahneler { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.625rem; margin-top: 0.875rem; }
.cy-sahne {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.375rem;
  border: 2px solid #e6eaf3;
  border-radius: 0.75rem;
  background: #fff;
  color: #172554;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.cy-sahne:hover { border-color: #f2a90c; transform: translateY(-1px); }
.cy-sahne img,
.cy-sahne__kamera { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 0.5rem; object-fit: cover; }
.cy-sahne__kamera { display: flex; align-items: center; justify-content: center; background: #0a1329; font-size: 1.5rem; }
.cy-sahne.cy-secili { border-color: #e11d2e; box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.15); color: #991221; }
.cy-sahne.cy-secili .cy-sahne__ad::before { content: "● "; }

/* ----------------------------------------------- Mikrofon seviyesi (yayıncı) */
.cy-ses { display: flex; align-items: center; gap: 0.625rem; }
.cy-ses__kapat {
  flex: none;
  min-width: 5.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #c6cfe2;
  border-radius: 0.5rem;
  background: #fff;
  color: #172554;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}
.cy-ses__kapat:hover { border-color: #f2a90c; }
.cy-ses__kapat.cy-kapali { border-color: #e11d2e; background: #fdecee; color: #991221; }
.cy-ses input[type="range"] { flex: 1; min-width: 0; accent-color: #f2a90c; cursor: pointer; }
.cy-olcer { height: 0.375rem; margin-top: 0.5rem; overflow: hidden; border-radius: 9999px; background: #e6eaf3; }
.cy-olcer > div { width: 0; height: 100%; border-radius: inherit; background: #16a34a; transition: width 0.08s linear; }
.cy-olcer.cy-susturuldu > div { background: #9aa9c8; }

/* --------------------------------- Kesinti görseli ("Canlı Yayın Duraklatıldı") */
.cy-perde--gorsel { padding: 0; background: #0b2a6f; }
.cy-perde--gorsel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cy-obs-govde .cy-perde--gorsel { position: fixed; inset: 0; }
.cy-obs-govde .cy-perde--gorsel img { object-fit: contain; }
