/*
 * Oynatıcı stili. Chromium 38'de CSS değişkenleri yok; renkler packages/ui/src/tokens.css değerlerinin
 * kopyasıdır (hero #0c142d, turkuaz #0a8576, nane #93e0c5). Birimler vw/vh: 720p'den 4K'ya aynı oranda.
 */
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  cursor: none;
}

#viswoo {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  font-family: 'Onest', 'Segoe UI', Roboto, Arial, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.vz-stage {
  position: absolute;
  top: 0;
  left: 0;
  background: #000;
}

.vz-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  -webkit-transition: opacity 0.4s ease;
  transition: opacity 0.4s ease;
}

/* Paket eklentinin görünümü (ADR 0008): sandbox'lı çerçeve katmanı doldurur. */
.vz-plugin {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

/* Gizli katman (opaklık 0) DOM sırasıyla görünürün üstünde kalabilir; dokunuş yalnız görünür katmana gider
   (eklenti görünümü dokunmatik olabilir). pointer-events Chromium 38'de var. */
.vz-layer {
  pointer-events: none;
}

.vz-layer.vz-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Video katmanı geçişsiz açılır (playback.ts: reveal). */
.vz-layer.vz-cut {
  -webkit-transition: none;
  transition: none;
}

.vz-media {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.vz-fit-contain {
  object-fit: contain;
}

.vz-fit-cover {
  object-fit: cover;
}

.vz-fit-fill {
  object-fit: fill;
}

/* Eşleştirme, bağlanma ve bekleme ekranları: oynatmanın üstünde tam ekran. */
.vz-screen {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: #0c142d;
  background-image: radial-gradient(circle at 85% 15%, rgba(10, 133, 118, 0.35), rgba(12, 20, 45, 0) 55%);
}

.vz-panel {
  max-width: 70vw;
  text-align: center;
}

.vz-logo {
  margin-bottom: 4vh;
  font-family: 'Bricolage Grotesque', 'Onest', 'Segoe UI', Arial, sans-serif;
  font-size: 4.2vh;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #93e0c5;
}

.vz-title {
  margin: 0 0 3vh;
  font-family: 'Bricolage Grotesque', 'Onest', 'Segoe UI', Arial, sans-serif;
  font-size: 6.4vh;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.vz-muted {
  margin: 1vh 0 0;
  font-size: 2.6vh;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

.vz-small {
  font-size: 2vh;
}

.vz-note {
  margin: 2vh 0 0;
  padding: 1.2vh 1.6vh;
  border-left: 0.5vh solid #f5c96a;
  font-size: 2vh;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

/* Kumandayla seçilebilir düğme: odak halkası belirgin. */
.vz-button {
  margin: 3vh 0 0;
  padding: 1.4vh 2.4vh;
  border: 0.25vh solid rgba(255, 255, 255, 0.4);
  border-radius: 1vh;
  background: transparent;
  font: inherit;
  font-size: 2.2vh;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
}

.vz-button:focus {
  outline: none;
  border-color: #93e0c5;
  background: rgba(147, 224, 197, 0.16);
}

.vz-label {
  margin: 4vh 0 1vh;
  font-size: 1.9vh;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #93e0c5;
}

.vz-pair {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  width: 84vw;
}

.vz-pair-text {
  -webkit-flex: 1;
  flex: 1;
  padding-right: 6vw;
}

.vz-steps {
  margin: 0;
  padding-left: 1.2em;
  font-size: 2.8vh;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.vz-code {
  font-family: 'Bricolage Grotesque', 'Onest', 'Segoe UI', Arial, sans-serif;
  font-size: 13vh;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.vz-qr {
  width: 38vh;
  height: 38vh;
  padding: 2.4vh;
  border-radius: 2.4vh;
  background: #fff;
}

.vz-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* "Bu ekran" kartı (identify komutu). */
.vz-identify {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: none;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  border: 1.6vh solid #0a8576;
  background: rgba(12, 20, 45, 0.92);
  text-align: center;
}

.vz-identify-name {
  font-family: 'Bricolage Grotesque', 'Onest', 'Segoe UI', Arial, sans-serif;
  font-size: 12vh;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.vz-status {
  position: absolute;
  bottom: 2vh;
  left: 2vh;
  z-index: 30;
  display: none;
  max-width: 60vw;
  padding: 0.8vh 1.6vh;
  border-radius: 1vh;
  background: rgba(0, 0, 0, 0.6);
  font-size: 1.7vh;
  color: rgba(255, 255, 255, 0.8);
}

/* ---- Sahne bölgeleri (ADR 0003). Yazı boyutu sahnenin kısa kenarına göre JS ile verilir; içerik em ile ölçülür.
   Oranlar layout.ts'teki ZONES ile aynıdır (panel ölçü rehberi ve kırpma uyarısı onu kullanır). ---- */

.vz-main,
.vz-side,
.vz-bottom {
  position: absolute;
  overflow: hidden;
}

.vz-main {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.vz-side,
.vz-bottom {
  display: none;
  background: #0c142d;
  color: #fff;
}

.vz-side {
  top: 0;
  right: 0;
  bottom: 0;
  width: 25%;
  -webkit-flex-direction: column;
  flex-direction: column;
  padding: 1.2em;
  box-sizing: border-box;
}

.vz-bottom {
  left: 0;
  right: 0;
  bottom: 0;
  height: 9%;
  -webkit-align-items: center;
  align-items: center;
  background: #1e2356;
}

.vz-l-side .vz-main,
.vz-l-sideBottom .vz-main {
  right: 25%;
}

.vz-l-bottom .vz-main,
.vz-l-sideBottom .vz-main,
.vz-l-sideBottom .vz-side {
  bottom: 9%;
}

.vz-l-side .vz-side,
.vz-l-sideBottom .vz-side,
.vz-l-bottom .vz-bottom,
.vz-l-sideBottom .vz-bottom {
  display: -webkit-flex;
  display: flex;
}

/* Dikey ekran: yan panel alt bandın üstünde yatay bir şerit olur. */
.vz-portrait .vz-side {
  top: auto;
  left: 0;
  width: auto;
  height: 16%;
  -webkit-flex-direction: row;
  flex-direction: row;
}

.vz-portrait .vz-bottom {
  height: 6%;
}

.vz-portrait.vz-l-side .vz-main {
  right: 0;
  bottom: 16%;
}

.vz-portrait.vz-l-bottom .vz-main {
  bottom: 6%;
}

.vz-portrait.vz-l-sideBottom .vz-main {
  right: 0;
  bottom: 22%;
}

.vz-portrait.vz-l-sideBottom .vz-side {
  bottom: 6%;
}

/* Dikey ekranda yan sütun (layout.sideColumn): yan panel şerit yerine sağda sütun olur. */
.vz-portrait.vz-column .vz-side {
  top: 0;
  left: auto;
  width: 30%;
  height: auto;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.vz-portrait.vz-column.vz-l-side .vz-main {
  right: 30%;
  bottom: 0;
}

.vz-portrait.vz-column.vz-l-sideBottom .vz-main {
  right: 30%;
  bottom: 6%;
}

.vz-closed .vz-side,
.vz-closed .vz-bottom,
.vz-closed .vz-logo-overlay {
  display: none;
}

.vz-side-cell {
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.vz-side-cell:last-child {
  border-bottom: 0;
}

.vz-portrait .vz-side-cell {
  border-bottom: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.vz-portrait .vz-side-cell:last-child {
  border-right: 0;
}

.vz-portrait.vz-column .vz-side-cell {
  border-right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.vz-portrait.vz-column .vz-side-cell:last-child {
  border-bottom: 0;
}

/* ---- Widget'lar ---- */

.vz-w {
  text-align: center;
  line-height: 1.15;
}

.vz-w-time {
  font-family: 'Bricolage Grotesque', 'Onest', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  font-size: 4.2em;
  letter-spacing: -0.03em;
}

.vz-w-label {
  font-weight: 600;
  font-size: 1.4em;
  color: #93e0c5;
  margin-bottom: 0.3em;
}

.vz-w-sub {
  font-size: 1.2em;
  color: rgba(255, 255, 255, 0.72);
}

.vz-w-source {
  margin-top: 0.6em;
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.45);
}

.vz-w-row {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.vz-w-icon {
  width: 4.5em;
  height: 4.5em;
}

.vz-w-icon-small {
  width: 3em;
  height: 3em;
  margin: 0.3em auto;
}

.vz-w-temp {
  font-family: 'Bricolage Grotesque', 'Onest', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  font-size: 3.6em;
  margin-left: 0.2em;
}

.vz-w-table {
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 1.15em;
}

.vz-w-table th {
  font-weight: 500;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 0.5em 0.3em;
}

.vz-w-table td {
  padding: 0.2em 0.5em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vz-w-table .vz-w-code {
  text-align: left;
  font-weight: 700;
  color: #93e0c5;
}

/* Tam ekran widget slaytı: aynı içerik, büyük. */
.vz-layer .vz-w-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  font-size: 2.4em;
  background: #1e2356;
  background-image: radial-gradient(circle at 85% 15%, rgba(10, 133, 118, 0.45), rgba(30, 35, 86, 0) 60%);
}

.vz-w-days {
  display: -webkit-flex;
  display: flex;
  margin-top: 0.8em;
}

.vz-w-day {
  margin: 0 1.2em;
}

/* Alt bantta saat: tek satır. */
.vz-band-clock {
  padding: 0 1.2em;
  height: 100%;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  background: #0a8576;
}

.vz-w-band .vz-w-time {
  font-size: 2.2em;
}

/* ---- Kayan yazı ---- */

.vz-ticker {
  position: relative;
  -webkit-flex: 1;
  flex: 1;
  height: 100%;
  overflow: hidden;
  font-size: 1.9em;
}

.vz-portrait .vz-ticker {
  font-size: 1.5em;
}

.vz-ticker-track {
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -0.6em;
  line-height: 1.2em;
  white-space: nowrap;
}

.vz-ticker-item {
  display: inline-block;
  padding-right: 1.5em;
}

.vz-ticker-item:before {
  content: '•';
  padding-right: 1.5em;
  color: #93e0c5;
}

/* ---- Logo ve acil duyuru ---- */

.vz-logo-overlay {
  position: absolute;
  z-index: 3;
  max-width: 14%;
  max-height: 12%;
}

.vz-logo-overlay img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.vz-pos-topLeft {
  top: 2.5%;
  left: 2%;
}

.vz-pos-topRight {
  top: 2.5%;
  right: 2%;
}

.vz-pos-bottomLeft {
  bottom: 2.5%;
  left: 2%;
}

.vz-pos-bottomRight {
  bottom: 2.5%;
  right: 2%;
}

.vz-l-side .vz-pos-topRight,
.vz-l-sideBottom .vz-pos-topRight,
.vz-l-side .vz-pos-bottomRight,
.vz-l-sideBottom .vz-pos-bottomRight {
  right: 27%;
}

.vz-l-bottom .vz-pos-bottomLeft,
.vz-l-bottom .vz-pos-bottomRight,
.vz-l-sideBottom .vz-pos-bottomLeft,
.vz-l-sideBottom .vz-pos-bottomRight {
  bottom: 11.5%;
}

/* Dikey ekran: logo ana bölgenin köşesinde kalır (şerit altta, sütun sağda). */
.vz-portrait.vz-l-side .vz-pos-topRight,
.vz-portrait.vz-l-sideBottom .vz-pos-topRight,
.vz-portrait.vz-l-side .vz-pos-bottomRight,
.vz-portrait.vz-l-sideBottom .vz-pos-bottomRight {
  right: 2%;
}

.vz-portrait.vz-l-bottom .vz-pos-bottomLeft,
.vz-portrait.vz-l-bottom .vz-pos-bottomRight {
  bottom: 8%;
}

.vz-portrait.vz-l-side .vz-pos-bottomLeft,
.vz-portrait.vz-l-side .vz-pos-bottomRight {
  bottom: 18%;
}

.vz-portrait.vz-l-sideBottom .vz-pos-bottomLeft,
.vz-portrait.vz-l-sideBottom .vz-pos-bottomRight {
  bottom: 24%;
}

.vz-portrait.vz-column.vz-l-side .vz-pos-topRight,
.vz-portrait.vz-column.vz-l-sideBottom .vz-pos-topRight,
.vz-portrait.vz-column.vz-l-side .vz-pos-bottomRight,
.vz-portrait.vz-column.vz-l-sideBottom .vz-pos-bottomRight {
  right: 32%;
}

.vz-portrait.vz-column.vz-l-side .vz-pos-bottomLeft,
.vz-portrait.vz-column.vz-l-side .vz-pos-bottomRight {
  bottom: 2.5%;
}

.vz-portrait.vz-column.vz-l-sideBottom .vz-pos-bottomLeft,
.vz-portrait.vz-column.vz-l-sideBottom .vz-pos-bottomRight {
  bottom: 8%;
}

/* Duyuru varken sahne bekleme ve eşleştirme ekranlarının da üstüne çıkar. */
.vz-stage.vz-alerting {
  z-index: 20;
}

.vz-alert {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  text-align: center;
}

.vz-alert.vz-visible {
  display: -webkit-flex;
  display: flex;
}

.vz-tone-danger {
  background: #c8341f;
}

.vz-tone-info {
  background: #1e2356;
}

.vz-alert-box {
  max-width: 80%;
}

.vz-alert-title {
  font-family: 'Bricolage Grotesque', 'Onest', 'Segoe UI', Arial, sans-serif;
  font-weight: 800;
  font-size: 5.5em;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.vz-alert-message {
  margin-top: 0.8em;
  font-size: 2.6em;
  line-height: 1.35;
  white-space: pre-line;
  color: rgba(255, 255, 255, 0.9);
}
