/* Loginmatik canlı yayın sağlayıcı bileşeni
 * Sağlayıcı yalnızca #yayin-oynatici, #yayin-listesi ve yy-* sınıflarını üretir.
 * Bütün görünüm bu dosyada Loginmatik temasına uyarlanır.
 */

.watch-provider-workspace {
  align-items: start;
}

.watch-provider-card,
.watch-provider-list-card {
  min-width: 0;
  border-color: rgba(222, 245, 230, 0.11);
  background: linear-gradient(180deg, rgba(15, 30, 21, 0.96), rgba(9, 21, 14, 0.98));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

.watch-provider-card__head {
  position: relative;
  z-index: 3;
  justify-content: space-between !important;
}

.watch-provider-card__head small {
  display: block;
  max-width: min(62%, 520px);
  overflow: hidden;
  color: #8fa098;
  font-size: 0.62rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#yayin-oynatici {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(168, 255, 79, 0.09), transparent 38%),
    linear-gradient(145deg, #07100c, #020604 76%);
}

#yayin-oynatici::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.025);
  content: "";
  pointer-events: none;
}

.watch-player-register {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: clamp(22px, 5vw, 48px);
  color: #f3f9f5;
  background:
    radial-gradient(circle at 50% 24%, rgba(168, 255, 79, 0.15), transparent 35%),
    linear-gradient(145deg, rgba(10, 25, 16, 0.98), rgba(2, 7, 4, 0.99));
  text-align: center;
}

.watch-player-register[hidden] {
  display: none !important;
}

.watch-player-register__icon {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #a8ff4f;
}

.watch-player-register__icon svg {
  width: clamp(42px, 6vw, 58px);
  height: clamp(42px, 6vw, 58px);
  filter: drop-shadow(0 0 18px rgba(168, 255, 79, 0.24));
}

.watch-player-register__icon small {
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.025em;
}

.watch-player-register h2 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.watch-player-register button {
  min-width: 132px;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid #a8ff4f;
  border-radius: 12px;
  color: #07100c;
  background: #a8ff4f;
  box-shadow: 0 12px 34px rgba(168, 255, 79, 0.18);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.watch-player-register button:hover {
  box-shadow: 0 16px 42px rgba(168, 255, 79, 0.27);
  transform: translateY(-1px);
}

.watch-player-register button:focus-visible {
  outline: 3px solid rgba(168, 255, 79, 0.28);
  outline-offset: 3px;
}

#yayin-oynatici-saglayici[hidden] {
  display: none !important;
}

#yayin-oynatici .yy-cerceve {
  position: relative;
  z-index: 2;
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: #000;
}

.watch-provider-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: #dfe9e2;
  text-align: center;
}

.watch-provider-loading i {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(168, 255, 79, 0.14);
  border-top-color: #a8ff4f;
  border-radius: 50%;
  animation: watch-provider-spin 0.72s linear infinite;
}

.watch-provider-loading strong {
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

#yayin-listesi,
#yayin-listesi *,
#yayin-listesi *::before,
#yayin-listesi *::after {
  box-sizing: border-box;
}

#yayin-listesi {
  min-width: 0;
  padding: 10px;
  color: #eef7f1;
  font-family: inherit;
}

#yayin-listesi button {
  font: inherit;
}

#yayin-listesi .yy-sekmeler {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 0 0 10px;
  padding: 5px;
  border: 1px solid rgba(222, 245, 230, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

#yayin-listesi .yy-sekmeler.is-single {
  grid-template-columns: minmax(0, 1fr);
}

#yayin-listesi .yy-sekme {
  min-width: 0;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #879a8f;
  background: transparent;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

#yayin-listesi .yy-sekme:active {
  transform: scale(0.985);
}

#yayin-listesi .yy-sekme.yy-on {
  border-color: #a8ff4f;
  color: #07100c;
  background: #a8ff4f;
  box-shadow: 0 7px 22px rgba(168, 255, 79, 0.13);
}

#yayin-listesi .yy-liste {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-height: clamp(380px, 58dvh, 584px);
  gap: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 3px 2px 0;
  overscroll-behavior: contain;
  scrollbar-color: rgba(168, 255, 79, 0.42) rgba(255, 255, 255, 0.025);
  scrollbar-width: thin;
}

#yayin-listesi .yy-liste::-webkit-scrollbar {
  width: 5px;
}

#yayin-listesi .yy-liste::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

#yayin-listesi .yy-liste::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(168, 255, 79, 0.42);
}

#yayin-listesi .yy-sat {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 61px;
  margin: 0;
  padding: 9px 10px;
  overflow: hidden;
  border: 1px solid rgba(222, 245, 230, 0.075);
  border-radius: 11px;
  color: #edf6f0;
  background: rgba(255, 255, 255, 0.022);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

#yayin-listesi .yy-sat:focus-visible {
  border-color: rgba(168, 255, 79, 0.33);
  outline: none;
  background: rgba(168, 255, 79, 0.055);
}

#yayin-listesi .yy-sat.yy-secili {
  border-color: rgba(168, 255, 79, 0.66);
  background: linear-gradient(90deg, rgba(168, 255, 79, 0.1), rgba(168, 255, 79, 0.035));
  box-shadow: inset 3px 0 #a8ff4f, 0 8px 24px rgba(0, 0, 0, 0.14);
}

#yayin-listesi .yy-sat.yy-kapali {
  opacity: 0.48;
}

#yayin-listesi .yy-sat.yy-bekliyor,
#yayin-listesi .yy-sat.yy-bekliyor:disabled {
  opacity: 1;
  color: #edf6f0;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  #yayin-listesi .yy-sekme:hover {
    border-color: rgba(168, 255, 79, 0.22);
    color: #dff3e5;
    background: rgba(168, 255, 79, 0.055);
  }

  #yayin-listesi .yy-sat:hover,
  #yayin-listesi .yy-sat.yy-bekliyor:hover {
    border-color: rgba(168, 255, 79, 0.33);
    background: rgba(168, 255, 79, 0.055);
  }
}

#yayin-listesi .yy-mac {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(68px, 0.72fr) minmax(0, 1fr) 34px;
  align-items: center;
  gap: 7px;
}

#yayin-listesi .yy-kanal {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 46px;
  align-items: center;
  gap: 9px;
}

#yayin-listesi .yy-ad {
  min-width: 0;
  overflow: hidden;
  color: #ecf5ef;
  font-size: 0.63rem;
  font-weight: 790;
  line-height: 1.28;
  text-overflow: ellipsis;
}

#yayin-listesi .yy-dep {
  text-align: right;
}

#yayin-listesi .yy-orta {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

#yayin-listesi .yy-saat {
  color: #e9f3ec;
  font-size: 0.62rem;
  font-weight: 850;
}

#yayin-listesi .yy-alt {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #74877c;
  font-size: 0.5rem;
  font-weight: 680;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#yayin-listesi .yy-rozet {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid rgba(168, 255, 79, 0.38);
  border-radius: 999px;
  color: #07100c;
  background: #a8ff4f;
  box-shadow: 0 0 0 3px rgba(168, 255, 79, 0.06);
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.025em;
}

#yayin-listesi .yy-rozet.yy-yok {
  border-color: rgba(255, 255, 255, 0.08);
  color: #84958b;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

#yayin-listesi .yy-rozet.yy-bekliyor {
  border-color: rgba(168, 255, 79, 0.26);
  color: #b9e993;
  background: rgba(168, 255, 79, 0.075);
  box-shadow: none;
}

#yayin-listesi .yy-logo {
  display: block;
  width: 34px;
  height: 34px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  object-fit: contain;
}

#yayin-listesi span.yy-logo {
  background: rgba(255, 255, 255, 0.045);
}

#yayin-listesi .yy-klogo {
  display: block;
  width: 46px;
  height: 32px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  object-fit: contain;
}

#yayin-listesi .yy-oynat {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(168, 255, 79, 0.28);
  border-radius: 50%;
  background: rgba(168, 255, 79, 0.075);
}

#yayin-listesi .yy-oynat::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid #a8ff4f;
  content: "";
}

#yayin-listesi .yy-bos {
  display: grid;
  min-height: 190px;
  place-content: center;
  padding: 24px;
  border: 1px dashed rgba(168, 255, 79, 0.14);
  border-radius: 11px;
  color: #788b80;
  background: rgba(255, 255, 255, 0.014);
  font-size: 0.64rem;
  font-weight: 720;
  text-align: center;
}

@keyframes watch-provider-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .watch-provider-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .watch-provider-list-card {
    position: static;
  }

  #yayin-listesi .yy-liste {
    max-height: clamp(360px, 54dvh, 460px);
  }
}

@media (max-width: 620px) {
  .watch-provider-card__head {
    min-height: 42px !important;
    padding-inline: 11px !important;
  }

  .watch-provider-card__head small {
    max-width: 57%;
    font-size: 0.55rem;
  }

  #yayin-oynatici {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .watch-player-register {
    gap: 11px;
    padding: 18px;
  }

  .watch-player-register h2 {
    max-width: 310px;
    font-size: 1.05rem;
  }

  .watch-player-register button {
    min-width: 116px;
    min-height: 39px;
    border-radius: 10px;
    font-size: 0.7rem;
  }

  #yayin-listesi {
    padding: 8px;
  }

  #yayin-listesi .yy-sekmeler {
    margin-bottom: 8px;
    padding: 4px;
    border-radius: 9px;
  }

  #yayin-listesi .yy-sekme {
    min-height: 32px;
    font-size: 0.58rem;
  }

  #yayin-listesi .yy-liste {
    grid-template-columns: minmax(0, 1fr);
    max-height: clamp(320px, 50dvh, 430px);
    gap: 6px;
    padding-right: 3px;
  }

  #yayin-listesi .yy-sat {
    min-height: 57px;
    padding: 8px;
    border-radius: 10px;
  }

  #yayin-listesi .yy-mac {
    grid-template-columns: 30px minmax(0, 1fr) minmax(57px, 0.7fr) minmax(0, 1fr) 30px;
    gap: 5px;
  }

  #yayin-listesi .yy-kanal {
    grid-template-columns: 26px minmax(0, 1fr) auto 40px;
    gap: 7px;
  }

  #yayin-listesi .yy-ad {
    font-size: 0.58rem;
  }

  #yayin-listesi .yy-alt {
    font-size: 0.46rem;
  }

  #yayin-listesi .yy-logo {
    width: 30px;
    height: 30px;
    padding: 3px;
    border-radius: 8px;
  }

  #yayin-listesi .yy-klogo {
    width: 40px;
    height: 29px;
  }

  #yayin-listesi .yy-rozet {
    min-height: 18px;
    padding-inline: 6px;
    font-size: 0.44rem;
  }
}

@media (max-width: 380px) {
  #yayin-listesi .yy-mac {
    grid-template-columns: 27px minmax(0, 1fr) minmax(49px, 0.62fr) minmax(0, 1fr) 27px;
    gap: 4px;
  }

  #yayin-listesi .yy-ad {
    font-size: 0.54rem;
  }

  #yayin-listesi .yy-logo {
    width: 27px;
    height: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .watch-provider-loading i,
  #yayin-listesi .yy-sekme,
  #yayin-listesi .yy-sat {
    animation: none;
    transition: none;
  }
}
