/* ==========================================================================
   RizeDijital TV — v0.32.3
   Modern canlı yayın arayüzü, zengin masaüstü sidebar ve mobil player taşma düzeltmesi.
   Bu dosya yalnızca TV modülüne ait tv-* sınıflarını tanımlar.
   ========================================================================== */

:root {
  --tv-g1: var(--g1, #0d4a28);
  --tv-g2: var(--g2, #12633a);
  --tv-g3: var(--g3, #17a558);
  --tv-red: #e53935;
  --tv-red-soft: rgba(229, 57, 53, 0.12);
  --tv-amber: var(--amber, #e0a96d);
  --tv-panel: var(--card, #fff);
  --tv-line: var(--border, #e3ebe6);
  --tv-text: var(--text, #17261d);
  --tv-muted: var(--text3, #6e7f75);
  --tv-soft: var(--glight, #f4faf6);
  --tv-radius-xl: 26px;
  --tv-radius-lg: 20px;
  --tv-radius-md: 15px;
  --tv-shadow: 0 22px 60px rgba(8, 55, 30, 0.12);
}

.tv-page,
.tv-page *,
.tv-page *::before,
.tv-page *::after {
  box-sizing: border-box;
}

.tv-page {
  min-width: 0;
  min-height: 70vh;
  overflow-x: hidden;
  color: var(--tv-text);
  background:
    radial-gradient(circle at 8% 30%, rgba(23, 165, 88, 0.05), transparent 30%),
    linear-gradient(180deg, var(--tv-soft) 0, transparent 380px);
}

/* Hero */
.tv-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 86% 8%, rgba(91, 226, 151, 0.22), transparent 28%),
    radial-gradient(circle at 5% 100%, rgba(255, 255, 255, 0.09), transparent 32%),
    linear-gradient(135deg, #071f14 0%, #0b4729 48%, #147c48 100%);
}

.tv-hero::after {
  content: \"\";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.tv-hero-inner,
.tv-wrap {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: 20px;
}

.tv-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 38px;
  padding-bottom: 38px;
}

.tv-hero-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: end;
  gap: 34px;
}

.tv-hero-copy {
  min-width: 0;
  max-width: 760px;
}

.tv-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #bff1d1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tv-live-pill,
.tv-player-canli {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(229, 57, 53, 0.92);
  box-shadow: 0 8px 22px rgba(229, 57, 53, 0.24);
}

.tv-live-pill {
  padding: 6px 10px;
  font-size: 9px;
}

.tv-live-dot,
.tv-mini-canli {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  animation: tv-live-pulse 1.5s infinite;
}

.tv-hero h1 {
  margin: 13px 0 10px;
  font-family: \"Poppins\", sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.tv-hero h1 span {
  color: #61e69a;
}

.tv-hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.tv-hero-chips {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tv-hero-chips span {
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 800;
}

.tv-hero-chips i {
  color: #65e79c;
}

.tv-hero-stats {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}

.tv-hero-stat {
  min-width: 0;
  padding: 17px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.tv-hero-stat:last-child {
  border-right: 0;
}

.tv-hero-stat-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #6be7a0;
  background: rgba(255, 255, 255, 0.1);
}

.tv-hero-stat strong,
.tv-hero-stat span {
  display: block;
}

.tv-hero-stat strong {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.tv-hero-stat span {
  margin-top: 2px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.66);
  font-size: 8.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Main layout */
.tv-wrap {
  padding-top: 24px;
  padding-bottom: 84px;
}

.tv-ana-alan {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(310px, 0.72fr);
  align-items: start;
  gap: 20px;
}

.tv-sol-kolon,
.tv-sag-kolon,
.tv-player-karti,
.tv-epg-panel {
  min-width: 0;
}

.tv-sol-kolon,
.tv-sag-kolon {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tv-sag-kolon {
  position: sticky;
  top: 88px;
}

/* Player card */
.tv-player-karti {
  overflow: hidden;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius-xl);
  background: var(--tv-panel);
  box-shadow: var(--tv-shadow);
}

.tv-player-ust {
  min-width: 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--tv-line);
}

.tv-player-kimlik {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.tv-player-canli {
  padding: 6px 9px;
  flex: 0 0 auto;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tv-player-kimlik strong,
.tv-player-kimlik small {
  display: block;
}

.tv-player-kimlik strong {
  overflow: hidden;
  color: var(--tv-text);
  font: 800 13px \"Poppins\", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-player-kimlik small {
  margin-top: 2px;
  color: var(--tv-muted);
  font-size: 9px;
  font-weight: 700;
}

.tv-player-zaman {
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--tv-g2);
  background: var(--tv-soft);
  font-size: 9.5px;
  font-weight: 900;
}

.tv-player-cerceve {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  position: relative;
  isolation: isolate;
  contain: layout paint;
  overflow: hidden;
  background: #020604;
}

.tv-video-katmani {
  min-width: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.tv-video-katmani iframe,
.tv-video-katmani video,
.tv-reklam-video {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  display: block;
  border: 0;
  object-fit: cover;
}

.tv-player-logo {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  user-select: none;
}

.tv-logo-metin {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.tv-canli-badge {
  margin-top: -1px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ff6764;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}

.tv-mini-nokta {
  width: 6px;
  height: 6px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  animation: tv-live-pulse 1.3s infinite;
}

.tv-player-kontroller-sol {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tv-ctrl-btn {
  min-height: 34px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 27, 16, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
  font: 800 10px \"Nunito\", sans-serif;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.tv-ctrl-btn:hover,
.tv-ctrl-btn.tv-aktif {
  background: var(--tv-g2);
  transform: translateY(-1px);
}

.tv-reklam-etiket {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 14;
  padding: 5px 9px;
  border: 1px solid rgba(255, 215, 125, 0.42);
  border-radius: 999px;
  color: #ffe2a5;
  background: rgba(0, 0, 0, 0.68);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* Intro */
.tv-intro-katmani {
  padding: 34px 22px 64px;
  position: absolute;
  inset: 0;
  z-index: 15;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 42%, rgba(44, 203, 112, 0.33), transparent 42%),
    radial-gradient(circle at 20% 100%, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(135deg, #031009, #082f1b 58%, #0b4e2c);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.tv-intro-katmani::before {
  content: \"\";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.tv-intro-katmani > * {
  position: relative;
  z-index: 1;
}

.tv-intro-katmani.tv-gizli {
  opacity: 0;
  pointer-events: none;
}

.tv-intro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b9f4d0;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.tv-intro-logo {
  font-family: \"Poppins\", sans-serif;
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tv-intro-logo span,
.tv-intro-program-adi b {
  color: #5de598;
}

.tv-intro-frekans {
  height: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.tv-frekans-cubuk {
  width: 4px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--tv-g2), #63e79b);
  box-shadow: 0 0 9px rgba(94, 229, 152, 0.5);
  animation: tv-wave 1.15s ease-in-out infinite alternate;
}

.tv-frekans-cubuk:nth-child(2n) { animation-duration: 0.8s; }
.tv-frekans-cubuk:nth-child(3n) { animation-duration: 1.35s; }
.tv-frekans-cubuk:nth-child(4n) { animation-delay: 0.18s; }

.tv-intro-program-adi {
  max-width: 660px;
  padding-inline: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(14px, 2.1vw, 19px);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.tv-oynat-buton {
  min-height: 42px;
  padding: 10px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #08351e;
  background: #65e79c;
  box-shadow: 0 12px 32px rgba(31, 194, 101, 0.25);
  font: 900 10px \"Nunito\", sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  animation: tv-button-pulse 1.8s infinite;
}

.tv-intro-metin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9.5px;
  font-weight: 700;
}

.tv-player-cerceve:fullscreen,
.tv-player-cerceve:-webkit-full-screen,
.tv-player-cerceve:-ms-fullscreen {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto;
}

/* News ticker */
.tv-haber-bandi {
  height: 38px;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 18;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 12, 7, 0.92);
  backdrop-filter: blur(8px);
}

.tv-haber-sabit-sol {
  height: 100%;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  color: #fff;
  background: var(--tv-red);
  box-shadow: 5px 0 18px rgba(0, 0, 0, 0.3);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tv-haber-kayan-alan {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex: 1;
}

.tv-haber-kayan-icerik {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: tv-ticker 52s linear infinite;
}

.tv-haber-kayan-icerik:hover {
  animation-play-state: paused;
}

.tv-haber-ogesi {
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.tv-tur-badge {
  padding: 3px 6px;
  border-radius: 5px;
  color: #fff;
  font-size: 7.5px;
  font-weight: 900;
  text-transform: uppercase;
}

.tv-tur-badge.tv-son-dakika { background: var(--tv-red); }
.tv-tur-badge.tv-duyuru { color: #2c1a00; background: var(--tv-amber); }
.tv-tur-badge.tv-haber { background: var(--tv-g2); }
.tv-tur-badge.tv-hava-durumu { background: #178fc7; }
.tv-tur-badge.tv-varsayilan { background: #5f6a64; }

.tv-haber-kaynak {
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.07);
  font-size: 8px;
}

/* Program cards */
.tv-bilgi-kartlari {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: 14px;
}

.tv-kart {
  min-width: 0;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius-lg);
  background: var(--tv-panel);
  box-shadow: 0 12px 32px rgba(8, 55, 30, 0.07);
}

.tv-kart-simdi {
  position: relative;
  overflow: hidden;
}

.tv-kart-simdi::before {
  content: \"\";
  width: 4px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(var(--tv-g2), var(--tv-g3));
}

.tv-kart-ikon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: var(--tv-g2);
  background: var(--tv-soft);
  font-size: 16px;
}

.tv-kart-sonraki .tv-kart-ikon {
  color: #a06915;
  background: rgba(224, 169, 109, 0.16);
}

.tv-kart-icerik {
  min-width: 0;
  flex: 1;
}

.tv-kart-ustsatir,
.tv-kart-alt {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tv-kart-etiket {
  color: var(--tv-g2);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tv-kart-saat {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--tv-muted);
  background: var(--tv-soft);
  font-size: 8.5px;
  font-weight: 800;
  white-space: nowrap;
}

.tv-kart-baslik {
  margin-top: 7px;
  overflow: hidden;
  color: var(--tv-text);
  font: 800 17px/1.35 \"Poppins\", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-ilerleme-cubugu {
  height: 6px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--tv-line);
}

.tv-ilerleme-dolu {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tv-g2), var(--tv-g3));
  box-shadow: 0 0 12px rgba(23, 165, 88, 0.28);
  transition: width 1s linear;
}

.tv-kart-alt {
  margin-top: 12px;
}

.tv-kart-alt > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tv-muted);
  font-size: 9px;
  font-weight: 700;
}

.tv-mini-canli {
  color: var(--tv-red);
}

.tv-geri-sayim {
  margin-top: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tv-muted);
  font-size: 9.5px;
  font-weight: 700;
}

.tv-sosyal-paylasim {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tv-sosyal-etiket {
  color: var(--tv-muted);
  font-size: 8px;
  font-weight: 800;
}

.tv-paylas-btn {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #fff;
  font-size: 11px;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.tv-paylas-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.tv-paylas-btn.tv-wp { background: #25d366; }
.tv-paylas-btn.tv-tg { background: #168bd3; }
.tv-paylas-btn.tv-x { background: #161b18; }

.tv-guven-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tv-guven-karti {
  min-width: 0;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius-md);
  background: color-mix(in srgb, var(--tv-panel) 88%, var(--tv-soft));
}

.tv-guven-karti > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: var(--tv-g2);
  background: var(--tv-soft);
}

.tv-guven-karti strong,
.tv-guven-karti span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-guven-karti strong {
  color: var(--tv-text);
  font-size: 10px;
  font-weight: 900;
}

.tv-guven-karti span {
  margin-top: 2px;
  color: var(--tv-muted);
  font-size: 8px;
  font-weight: 700;
}

/* EPG */
.tv-epg-panel {
  overflow: hidden;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius-xl);
  background: var(--tv-panel);
  box-shadow: 0 18px 48px rgba(8, 55, 30, 0.1);
}

.tv-epg-ust {
  padding: 18px 18px 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--tv-line);
  background: linear-gradient(180deg, var(--tv-soft), transparent);
}

.tv-epg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tv-g2);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.tv-epg-ust h2 {
  margin: 6px 0 3px;
  color: var(--tv-text);
  font: 800 18px/1.25 \"Poppins\", sans-serif;
  letter-spacing: -0.02em;
}

.tv-epg-ust p {
  margin: 0;
  color: var(--tv-muted);
  font-size: 8.5px;
  font-weight: 700;
}

.tv-epg-adet {
  padding: 6px 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--tv-g2);
  background: var(--tv-soft);
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.tv-epg-liste {
  max-height: min(620px, calc(100vh - 330px));
  min-height: 330px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 122, 74, 0.32) transparent;
}

.tv-epg-liste::-webkit-scrollbar {
  width: 4px;
}

.tv-epg-liste::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(26, 122, 74, 0.32);
}

.tv-epg-satir {
  min-width: 0;
  padding: 11px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--tv-soft);
  transition: transform 0.17s ease, border-color 0.17s ease, background 0.17s ease;
}

.tv-epg-satir:hover {
  border-color: var(--tv-line);
  transform: translateY(-1px);
}

.tv-epg-satir.tv-aktif {
  border-color: rgba(23, 165, 88, 0.38);
  background: linear-gradient(135deg, rgba(23, 165, 88, 0.14), rgba(23, 165, 88, 0.05));
  box-shadow: inset 3px 0 0 var(--tv-g3);
}

.tv-epg-zaman {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--tv-muted);
  font-size: 8.5px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tv-epg-zaman i {
  color: var(--tv-g3);
  font-size: 7px;
}

.tv-epg-icerik {
  min-width: 0;
}

.tv-epg-program-adi {
  overflow: hidden;
  color: var(--tv-text);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-epg-kaynak {
  margin-top: 3px;
  color: var(--tv-muted);
  font-size: 7.5px;
  font-weight: 700;
}

.tv-epg-kaynak i {
  margin-right: 3px;
  color: var(--tv-g2);
}

.tv-epg-mini-ilerleme {
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--tv-line);
}

.tv-epg-mini-dolu {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tv-g2), var(--tv-g3));
}

.tv-epg-rozet {
  padding: 5px 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  color: var(--tv-red);
  background: var(--tv-red-soft);
  font-size: 7px;
  font-weight: 900;
  white-space: nowrap;
}

.tv-epg-alt {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--tv-line);
  color: var(--tv-muted);
  background: var(--tv-soft);
  font-size: 8px;
  font-weight: 700;
}

.tv-epg-alt i {
  color: var(--tv-g2);
}

.tv-bilgi-paneli {
  padding: 15px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid rgba(23, 165, 88, 0.22);
  border-radius: var(--tv-radius-lg);
  background: linear-gradient(135deg, rgba(23, 165, 88, 0.12), rgba(23, 165, 88, 0.03));
}

.tv-bilgi-panel-ikon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--tv-g2), var(--tv-g3));
  box-shadow: 0 9px 24px rgba(23, 165, 88, 0.2);
}

.tv-bilgi-paneli strong {
  color: var(--tv-text);
  font-size: 11px;
  font-weight: 900;
}

.tv-bilgi-paneli p {
  margin: 4px 0 0;
  color: var(--tv-muted);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.5;
}

/* Dark mode */
[data-theme=\"dark\"] .tv-page {
  background: #0b1510;
}

[data-theme=\"dark\"] .tv-player-karti,
[data-theme=\"dark\"] .tv-kart,
[data-theme=\"dark\"] .tv-epg-panel {
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

[data-theme=\"dark\"] .tv-paylas-btn.tv-x {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Responsive */
@media (max-width: 1080px) {
  .tv-hero-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .tv-ana-alan {
    grid-template-columns: minmax(0, 1fr);
  }

  .tv-sag-kolon {
    position: static;
  }

  .tv-epg-liste {
    max-height: 520px;
  }
}

@media (max-width: 820px) {
  .tv-hero-inner,
  .tv-wrap {
    padding-inline: 14px;
  }

  .tv-hero-inner {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .tv-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .tv-hero-stats {
    max-width: none;
  }

  .tv-wrap {
    padding-top: 16px;
    padding-bottom: 104px;
  }

  .tv-bilgi-kartlari {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .tv-page {
    overflow-x: clip;
  }

  .tv-hero-inner,
  .tv-wrap {
    width: 100%;
    max-width: 100%;
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .tv-hero-inner {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .tv-hero h1 {
    margin-top: 10px;
    font-size: 34px;
  }

  .tv-hero-copy > p {
    font-size: 12px;
    line-height: 1.6;
  }

  .tv-hero-chips {
    margin-top: 15px;
    gap: 6px;
  }

  .tv-hero-chips span {
    padding: 7px 9px;
    font-size: 8.5px;
  }

  .tv-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 16px;
  }

  .tv-hero-stat {
    padding: 12px 7px;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
  }

  .tv-hero-stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 12px;
  }

  .tv-hero-stat strong {
    font-size: 12px;
  }

  .tv-hero-stat span {
    max-width: 90px;
    font-size: 7px;
  }

  .tv-ana-alan,
  .tv-sol-kolon,
  .tv-sag-kolon,
  .tv-player-karti,
  .tv-player-ust,
  .tv-player-cerceve,
  .tv-video-katmani {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .tv-player-karti {
    border-radius: 18px;
  }

  .tv-player-ust {
    padding: 11px 12px;
  }

  .tv-player-kimlik small {
    display: none;
  }

  .tv-player-zaman {
    padding: 6px 8px;
    font-size: 8px;
  }

  .tv-player-cerceve {
    margin: 0;
    aspect-ratio: 16 / 9;
    transform: none;
    translate: none;
  }

  .tv-video-katmani iframe,
  .tv-video-katmani video,
  .tv-reklam-video {
    position: absolute;
    inset: 0;
    transform: none !important;
  }

  .tv-player-kontroller-sol {
    top: 8px;
    left: 8px;
    gap: 5px;
  }

  .tv-ctrl-btn {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 8px;
  }

  .tv-player-logo {
    top: 9px;
    right: 9px;
  }

  .tv-logo-metin {
    font-size: 12px;
  }

  .tv-canli-badge {
    font-size: 7px;
  }

  .tv-intro-katmani {
    padding: 18px 12px 51px;
    gap: 7px;
  }

  .tv-intro-kicker {
    font-size: 6.5px;
  }

  .tv-intro-logo {
    font-size: 24px;
  }

  .tv-intro-frekans {
    height: 19px;
  }

  .tv-intro-program-adi {
    max-height: 38px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.35;
  }

  .tv-oynat-buton {
    min-height: 35px;
    padding: 8px 13px;
    font-size: 8px;
  }

  .tv-intro-metin {
    display: none;
  }

  .tv-haber-bandi {
    height: 32px;
  }

  .tv-haber-sabit-sol {
    padding: 0 9px;
    font-size: 7px;
  }

  .tv-haber-ogesi {
    padding: 0 15px;
    font-size: 9px;
  }

  .tv-kart {
    padding: 14px;
    gap: 10px;
    border-radius: 16px;
  }

  .tv-kart-ikon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 13px;
  }

  .tv-kart-baslik {
    font-size: 14px;
  }

  .tv-kart-alt {
    align-items: flex-end;
  }

  .tv-kart-alt > span {
    display: none;
  }

  .tv-guven-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .tv-guven-karti {
    padding: 11px 12px;
  }

  .tv-epg-panel {
    border-radius: 18px;
  }

  .tv-epg-ust {
    padding: 15px 14px 13px;
  }

  .tv-epg-ust h2 {
    font-size: 16px;
  }

  .tv-epg-liste {
    min-height: 0;
    max-height: 430px;
    padding: 9px;
  }

  .tv-epg-satir {
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 9px;
    border-radius: 12px;
  }

  .tv-epg-zaman {
    font-size: 7.5px;
  }

  .tv-epg-program-adi {
    font-size: 10px;
  }

  .tv-epg-kaynak {
    font-size: 6.8px;
  }

  .tv-bilgi-paneli {
    display: none;
  }
}

@media (max-width: 380px) {
  .tv-hero-stat span {
    display: none;
  }

  .tv-player-kimlik strong {
    font-size: 11px;
  }

  .tv-player-canli {
    padding: 5px 7px;
    font-size: 7px;
  }

  .tv-player-zaman i {
    display: none;
  }

  .tv-sosyal-etiket {
    display: none;
  }

  .tv-epg-adet {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tv-live-dot,
  .tv-mini-canli,
  .tv-mini-nokta,
  .tv-frekans-cubuk,
  .tv-oynat-buton,
  .tv-haber-kayan-icerik {
    animation: none !important;
  }
}

@keyframes tv-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes tv-wave {
  from { height: 4px; opacity: 0.45; }
  to { height: 26px; opacity: 1; }
}

@keyframes tv-button-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

@keyframes tv-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* ========================================================================== 
   v0.32.3 — Zengin Masaüstü Yayın Sidebar'ı ve Medya Merkezi
   ========================================================================== */

@media (min-width: 1081px) {
  .tv-sag-kolon {
    max-height: calc(100vh - 104px);
    padding-right: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(26, 122, 74, 0.28) transparent;
  }

  .tv-sag-kolon::-webkit-scrollbar {
    width: 4px;
  }

  .tv-sag-kolon::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(26, 122, 74, 0.28);
  }

  .tv-sag-kolon .tv-epg-liste {
    max-height: 460px;
    min-height: 310px;
  }
}

.tv-sidebar-merkez,
.tv-medya-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius-xl);
  background: var(--tv-panel);
  box-shadow: 0 16px 44px rgba(8, 55, 30, 0.09);
}

.tv-sidebar-merkez {
  padding: 17px;
  position: relative;
  isolation: isolate;
}

.tv-sidebar-merkez::before {
  content: "";
  width: 180px;
  height: 180px;
  position: absolute;
  top: -95px;
  right: -80px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 165, 88, 0.18), transparent 70%);
  pointer-events: none;
}

.tv-sidebar-merkez-ust,
.tv-medya-panel-ust {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tv-sidebar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tv-g2);
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tv-sidebar-kicker .tv-live-dot {
  width: 6px;
  height: 6px;
  color: var(--tv-red);
  background: var(--tv-red);
}

.tv-sidebar-merkez-ust h2,
.tv-medya-panel-ust h3 {
  margin: 5px 0 2px;
  color: var(--tv-text);
  font: 800 16px/1.25 "Poppins", sans-serif;
  letter-spacing: -0.02em;
}

.tv-sidebar-merkez-ust p {
  margin: 0;
  color: var(--tv-muted);
  font-size: 8px;
  font-weight: 700;
  text-transform: capitalize;
}

.tv-sidebar-saat {
  min-width: 90px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 1px solid rgba(23, 165, 88, 0.18);
  border-radius: 13px;
  color: var(--tv-g2);
  background: var(--tv-soft);
  font-variant-numeric: tabular-nums;
}

.tv-sidebar-saat i {
  font-size: 10px;
}

.tv-sidebar-saat strong {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.tv-sidebar-program {
  margin-top: 14px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(23, 165, 88, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(23, 165, 88, 0.13), rgba(23, 165, 88, 0.035));
}

.tv-sidebar-program-etiket {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--tv-g2);
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tv-sidebar-program > strong,
.tv-sidebar-program > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-sidebar-program > strong {
  margin-top: 7px;
  color: var(--tv-text);
  font: 800 13px/1.35 "Poppins", sans-serif;
}

.tv-sidebar-program > span {
  margin-top: 4px;
  color: var(--tv-muted);
  font-size: 8px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tv-sidebar-meta-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.tv-sidebar-meta {
  min-width: 0;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  border: 1px solid var(--tv-line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--tv-panel) 88%, var(--tv-soft));
}

.tv-sidebar-meta > i {
  margin-bottom: 2px;
  color: var(--tv-g2);
  font-size: 10px;
}

.tv-sidebar-meta > span,
.tv-sidebar-meta > strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-sidebar-meta > span {
  color: var(--tv-muted);
  font-size: 6.8px;
  font-weight: 800;
  text-transform: uppercase;
}

.tv-sidebar-meta > strong {
  color: var(--tv-text);
  font-size: 8px;
  font-weight: 900;
}

.tv-sidebar-ilerleme {
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--tv-line);
}

.tv-sidebar-ilerleme > div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tv-g2), #45d985);
  box-shadow: 0 0 12px rgba(23, 165, 88, 0.25);
  transition: width 0.45s ease;
}

.tv-sidebar-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.tv-sidebar-actions button {
  min-width: 0;
  min-height: 38px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  overflow: hidden;
  border: 1px solid var(--tv-line);
  border-radius: 12px;
  color: var(--tv-text);
  background: var(--tv-panel);
  font: 800 8px "Nunito", sans-serif;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.tv-sidebar-actions button:hover {
  border-color: rgba(23, 165, 88, 0.35);
  color: var(--tv-g2);
  background: var(--tv-soft);
  transform: translateY(-1px);
}

.tv-sidebar-actions button i {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  color: var(--tv-g2);
  background: var(--tv-soft);
  font-size: 8px;
}

.tv-sidebar-actions button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-medya-panel {
  padding: 16px;
}

.tv-medya-rozet {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--tv-g2);
  background: var(--tv-soft);
  font-size: 7px;
  font-weight: 900;
}

.tv-medya-linkler {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tv-medya-link {
  min-width: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--tv-line);
  border-radius: 14px;
  color: var(--tv-text);
  background: var(--tv-panel);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.tv-medya-link:hover,
.tv-medya-link.active {
  border-color: rgba(23, 165, 88, 0.3);
  background: var(--tv-soft);
  transform: translateY(-1px);
}

.tv-medya-ikon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--tv-g2), var(--tv-g3));
  box-shadow: 0 8px 20px rgba(23, 165, 88, 0.18);
}

.tv-medya-ikon.tv-medya-video {
  background: linear-gradient(135deg, #d83a34, #ff716c);
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.17);
}

.tv-medya-link > span:nth-child(2) {
  min-width: 0;
}

.tv-medya-link strong,
.tv-medya-link small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-medya-link strong {
  font-size: 9.5px;
  font-weight: 900;
}

.tv-medya-link small {
  margin-top: 2px;
  color: var(--tv-muted);
  font-size: 7.5px;
  font-weight: 700;
}

.tv-medya-link > i {
  color: var(--tv-muted);
  font-size: 8px;
}

.tv-epg-liste:focus {
  outline: 2px solid rgba(23, 165, 88, 0.25);
  outline-offset: -2px;
}

[data-theme="dark"] .tv-sidebar-merkez,
[data-theme="dark"] .tv-medya-panel {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

@media (max-width: 1080px) {
  .tv-sag-kolon {
    max-height: none;
    padding-right: 0;
    overflow: visible;
  }

  .tv-sidebar-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tv-sidebar-merkez,
  .tv-medya-panel {
    border-radius: 18px;
  }

  .tv-sidebar-merkez,
  .tv-medya-panel {
    padding: 14px;
  }

  .tv-sidebar-saat {
    min-width: 84px;
    padding: 7px 8px;
  }

  .tv-sidebar-program {
    padding: 12px;
  }

  .tv-sidebar-meta-grid {
    gap: 6px;
  }

  .tv-sidebar-meta {
    padding: 9px 7px;
  }

  .tv-sidebar-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tv-medya-link {
    padding: 9px;
  }
}

@media (max-width: 380px) {
  .tv-sidebar-saat i {
    display: none;
  }

  .tv-sidebar-meta-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tv-sidebar-meta {
    display: grid;
    grid-template-columns: 22px 66px minmax(0, 1fr);
    align-items: center;
  }

  .tv-sidebar-meta > i {
    margin: 0;
  }

  .tv-sidebar-meta > strong {
    text-align: right;
  }
}


/* ==========================================================================
   v0.32.4 — TV Sidebar Kart Kesilmesi / İç Scroll Hotfix
   ========================================================================== */

/*
 * v0.32.3'te masaüstü sağ kolonun tamamına max-height + overflow-y:auto
 * uygulanması, yüksekliği ekrandan fazla olan kartların kolon viewport'u
 * içinde yarım görünmesine neden oluyordu.
 *
 * Sağ kolon artık normal sayfa akışında tam yüksekliğiyle gösterilir.
 * Kontrollü kaydırma yalnızca EPG program listesindedir.
 */
@media (min-width: 1081px) {
  .tv-sag-kolon {
    position: static;
    top: auto;
    align-self: start;
    height: auto;
    max-height: none;
    padding-right: 0;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-width: auto;
  }

  .tv-sag-kolon::-webkit-scrollbar {
    display: none;
  }

  .tv-sag-kolon .tv-sidebar-merkez,
  .tv-sag-kolon .tv-epg-panel,
  .tv-sag-kolon .tv-medya-panel,
  .tv-sag-kolon .tv-bilgi-paneli {
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
  }

  .tv-sag-kolon .tv-epg-liste {
    min-height: 0;
    max-height: min(520px, calc(100vh - 300px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(26, 122, 74, 0.24) transparent;
  }

  .tv-sag-kolon .tv-epg-liste::-webkit-scrollbar {
    width: 4px;
  }

  .tv-sag-kolon .tv-epg-liste::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(26, 122, 74, 0.24);
  }
}

/* Orta yükseklikte masaüstlerinde EPG daha kompakt tutulur. */
@media (min-width: 1081px) and (max-height: 760px) {
  .tv-sag-kolon .tv-epg-liste {
    max-height: 360px;
  }
}
