/* ==========================================================================
   TvTRhub - Canlı TV & Akıllı DVR Platformu Tasarımı
   RadyoTR Hub Tasarım Uyumu, Koyu Cam Efektleri, Mobil & Smart TV Modu
   ========================================================================== */

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0c1018;
  --bg-card: rgba(16, 22, 34, 0.82);
  --bg-card-hover: rgba(24, 32, 50, 0.95);
  --bg-glass: rgba(12, 16, 26, 0.92);
  --bg-glass-card: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(255, 255, 255, 0.06);

  /* Cyber & Neon Color Accents */
  --neon-red: #ff2a5f;
  --neon-pink: #ff007f;
  --neon-magenta: #e0218a;
  --neon-cyan: #00f0ff;
  --neon-blue: #3b82f6;
  --neon-purple: #9d4edd;
  --neon-violet: #8a2be2;
  --neon-emerald: #00ff88;
  --neon-lime: #a6ff00;
  --neon-amber: #ffb703;
  --neon-gold: #ffd166;

  /* Backward Compatible Aliases with Neon Upgrade */
  --accent-red: #ff2a5f;
  --accent-crimson: #ff007f;
  --accent-green: #00ff88;
  --accent-orange: #ffb703;
  --accent-blue: #00f0ff;
  --accent-purple: #9d4edd;

  /* Radiant Neon Gradients */
  --accent-gradient: linear-gradient(135deg, #ff007f 0%, #ff2a5f 50%, #9d4edd 100%);
  --neon-cyan-gradient: linear-gradient(135deg, #00f0ff 0%, #3b82f6 100%);
  --neon-emerald-gradient: linear-gradient(135deg, #00ff88 0%, #00b4d8 100%);
  --neon-purple-gradient: linear-gradient(135deg, #9d4edd 0%, #ff007f 100%);
  --neon-gold-gradient: linear-gradient(135deg, #ffb703 0%, #ff6b35 100%);

  /* Neon Glow Shadows */
  --neon-glow-red: 0 0 16px rgba(255, 42, 95, 0.55), 0 0 32px rgba(255, 0, 127, 0.25);
  --neon-glow-cyan: 0 0 16px rgba(0, 240, 255, 0.55), 0 0 32px rgba(0, 240, 255, 0.25);
  --neon-glow-emerald: 0 0 16px rgba(0, 255, 136, 0.55);
  --neon-glow-purple: 0 0 16px rgba(157, 78, 221, 0.55);
  --neon-glow-gold: 0 0 16px rgba(255, 183, 3, 0.55);
  --shadow-glow: var(--neon-glow-red);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --border-glass: rgba(255, 255, 255, 0.09);
  --border-glass-hover: rgba(0, 240, 255, 0.45);
  --border-active: #00f0ff;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 12px 35px rgba(0, 0, 0, 0.7);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  width: 100%;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Arka Plan Ortam Işıkları (Ambient Lighting) */
.ambient-glow-1 {
  position: fixed;
  top: -160px;
  right: -60px;
  width: min(560px, 80vw);
  height: min(560px, 80vw);
  background: radial-gradient(circle, rgba(255, 0, 127, 0.16) 0%, rgba(157, 78, 221, 0.08) 45%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(65px);
}

.ambient-glow-2 {
  position: fixed;
  bottom: 60px;
  left: -60px;
  width: min(560px, 80vw);
  height: min(560px, 80vw);
  background: radial-gradient(circle, rgba(0, 240, 255, 0.14) 0%, rgba(59, 130, 246, 0.06) 45%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(75px);
}

.ambient-glow-3 {
  position: fixed;
  top: 35%;
  left: 45%;
  transform: translate(-50%, -50%);
  width: min(480px, 60vw);
  height: min(480px, 60vw);
  background: radial-gradient(circle, rgba(157, 78, 221, 0.09) 0%, rgba(0, 255, 136, 0.04) 50%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(85px);
}

/* Ana Konteyner */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 90px 20px;
}

/* Üst Başlık (Header) */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  margin: 0 -20px 24px -20px;
  padding: 0 24px;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.header-top-row {
  display: contents;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  user-select: none;
  transition: transform 0.2s ease;
}

.header-brand:hover {
  transform: scale(1.04);
}

@media (min-width: 993px) {
  .header-brand {
    display: none;
  }
}

@media (max-width: 992px) {
  .header-brand {
    display: inline-flex;
  }
  .header-brand .brand-logo-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 8px;
  }
  .header-brand .brand-name {
    font-size: 16px;
    font-weight: 800;
  }
}

.brand-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.45), 0 0 35px rgba(157, 78, 221, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-name .highlight {
  color: var(--neon-red);
  text-shadow: 0 0 14px rgba(255, 42, 95, 0.65);
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Orta Grup: Arama Çubuğu + Yayın Dili Seçici */
.header-center-group {
  flex: 1;
  min-width: 0;
  max-width: 980px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 12px;
}

/* Arama Çubuğu (Genişliği Korunan Esnek Arama) */
.search-wrapper {
  flex: 1;
  min-width: 220px;
  position: relative;
  margin: 0;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 17px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0 42px 0 46px;
  color: var(--text-main);
  font-size: 14.5px;
  font-weight: 500;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-input:focus {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.04);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.35);
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  font-size: 14px;
}

/* Arama Çubuğu Yanı Yayın Dili Seçici Barı (Header Language Bar) */
.header-language-bar,
.language-filter-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(18, 22, 34, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 3px 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.header-language-bar::-webkit-scrollbar,
.language-filter-bar::-webkit-scrollbar {
  display: none;
}

.header-language-bar:hover,
.language-filter-bar:hover {
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(22, 28, 44, 0.85);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
}

.lang-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-subtle);
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  outline: none;
  user-select: none;
  flex-shrink: 0;
}

.lang-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.lang-pill-btn .lang-flag {
  font-size: 13px;
  line-height: 1;
}

.lang-pill-btn .lang-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.lang-pill-btn .lang-count {
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.lang-pill-btn.active {
  background: var(--accent-gradient);
  border-color: var(--neon-pink);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 0, 127, 0.55);
}

.lang-pill-btn.active .lang-count {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* ==============================================================
   AKILLI CANLI ARAMA AÇILIR MENÜSÜ (INSTANT SUGGESTIONS DROPDOWN)
   ============================================================== */
.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 340px;
  max-height: 480px;
  overflow-y: auto;
  background: rgba(15, 21, 33, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 20px rgba(220, 38, 38, 0.15);
  z-index: 1200;
  padding: 8px 0;
  animation: dropdownSlideIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 6px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-subtle);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
  user-select: none;
}

.search-dropdown-item:hover,
.search-dropdown-item.is-selected {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--accent-red);
}

.search-item-thumb-wrap {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-item-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-item-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.search-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-match-highlight {
  color: var(--accent-red);
  font-weight: 800;
}

.search-type-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.search-type-tag.tag-live {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.search-type-tag.tag-vod {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.search-type-tag.tag-series {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.search-item-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-action-icon {
  color: var(--text-subtle);
  font-size: 16px;
  transition: all 0.15s ease;
}

.search-dropdown-item:hover .search-item-action-icon,
.search-dropdown-item.is-selected .search-item-action-icon {
  color: var(--accent-red);
  transform: translateX(2px);
}

.search-dropdown-footer {
  padding: 8px 14px 4px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-dropdown-see-all {
  width: 100%;
  padding: 8px 14px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-dropdown-see-all:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* Başlık Eylem Butonları */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-header {
  height: 36px;
  padding: 0 11px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-header:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass-hover);
  transform: translateY(-1px);
}

.btn-header.btn-add-stream {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.btn-header.btn-add-stream:hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.btn-header.btn-primary {
  background: var(--accent-gradient);
  border: none;
  box-shadow: var(--shadow-glow);
}

.btn-header.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-header.active {
  background: var(--accent-red);
  border-color: var(--accent-crimson);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   VİDEO OYNATICI VE DVR SAHNESİ (Player Stage)
   ========================================================================== */
.player-stage-placeholder {
  width: 100%;
  margin-bottom: 24px;
}

.player-stage {
  position: relative;
  width: 100%;
  z-index: 80;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  margin-bottom: 24px;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}

/* ==========================================================================
   KÖŞE MİNİ-PLAYER (Floating PiP Modu - YouTube / Twitch Tarzı)
   ========================================================================== */
.player-stage.is-mini-pip {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 380px !important;
  max-width: calc(100vw - 48px) !important;
  z-index: 9999 !important;
  margin-bottom: 0 !important;
  border-radius: 16px !important;
  border: 1.5px solid rgba(230, 57, 70, 0.5) !important;
  background: rgba(12, 16, 26, 0.96) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(230, 57, 70, 0.35) !important;
  animation: pipSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pipSlideUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.player-stage.is-mini-pip .video-container {
  aspect-ratio: 16 / 9;
  max-height: 214px;
  background: #000;
}

.mini-pip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(10, 14, 24, 0.9);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
}

.mini-pip-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
}

.mini-pip-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-red);
  flex-shrink: 0;
  animation: liveDotPulse 1.8s infinite;
}

.mini-pip-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-pip-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-mini-pip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mini-pip:hover {
  background: var(--accent-red);
  border-color: var(--accent-crimson);
  color: #fff;
  transform: scale(1.1);
}

.btn-mini-pip.btn-mini-pip-close:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: #ef4444;
}

/* In mini PiP mode, compact the controls bar */
.player-stage.is-mini-pip .player-controls-bar {
  padding: 8px 12px !important;
  gap: 6px !important;
  background: rgba(10, 14, 24, 0.9) !important;
}

.player-stage.is-mini-pip .player-main-info {
  display: none !important;
}

.player-stage.is-mini-pip .dvr-controls-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.player-stage.is-mini-pip .player-aux-controls .volume-control-wrap,
.player-stage.is-mini-pip .player-aux-controls .audio-track-select,
.player-stage.is-mini-pip .player-aux-controls #btnResyncAudio,
.player-stage.is-mini-pip .player-aux-controls #qualitySelector,
.player-stage.is-mini-pip .player-aux-controls #btnToggleMiniPip,
.player-stage.is-mini-pip .player-aux-controls #btnPip {
  display: none !important;
}

/* Mini Player Toggle Butonu Stili */
.btn-mini-pip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mini-pip-toggle:hover {
  background: rgba(230, 57, 70, 0.2);
  border-color: var(--accent-red);
  color: #fff;
  transform: scale(1.05);
}

.btn-mini-pip-toggle.active {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.15);
}

.btn-mini-pip-toggle.disabled {
  color: var(--text-subtle);
  border-color: var(--border-glass);
  background: transparent;
  opacity: 0.6;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 600px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.tv-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.youtube-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 5;
  background: #000;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Ekran Tıklama Simgesi (Play/Pause Feedback) */
.screen-feedback-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 72px;
  height: 72px;
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: var(--neon-cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.5);
  pointer-events: none;
  opacity: 0;
  z-index: 25;
  backdrop-filter: blur(8px);
}

.screen-feedback-icon.animate-feedback {
  animation: feedbackPop 0.55s ease forwards;
}

@keyframes feedbackPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

/* Yükleniyor Göstergesi */
.player-loader {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--neon-pink);
  border-right-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Oynatmayı Başlat Büyük Buton */
.big-play-btn-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 12;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.big-play-btn-overlay:hover {
  background: rgba(0, 0, 0, 0.45);
}

.big-play-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: #fff;
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.65), 0 0 50px rgba(157, 78, 221, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.big-play-btn-overlay:hover .big-play-circle {
  transform: scale(1.12);
  box-shadow: 0 0 35px rgba(255, 0, 127, 0.85), 0 0 60px rgba(0, 240, 255, 0.4);
}

.big-play-label {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(255, 0, 127, 0.7);
}

/* Oynatma Hatası */
.player-error {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  z-index: 15;
}

.player-error i {
  font-size: 42px;
  color: var(--accent-red);
}

.error-text {
  max-width: 500px;
  font-size: 15px;
  color: var(--text-muted);
}

/* Canlı / DVR Durum Rozetleri */
.player-live-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.badge-live-pulse {
  background: rgba(10, 14, 24, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 42, 95, 0.45);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 16px rgba(255, 42, 95, 0.35);
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--neon-red);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--neon-red), 0 0 20px rgba(255, 42, 95, 0.6);
  animation: pulse-red 1.5s infinite ease-in-out;
}

.live-dot.delayed {
  background-color: var(--neon-amber);
  box-shadow: 0 0 12px var(--neon-amber);
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

.badge-record-live {
  background: rgba(255, 42, 95, 0.95);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: none;
  box-shadow: 0 0 15px rgba(255, 42, 95, 0.6);
  animation: pulse-red 1.2s infinite ease-in-out;
}

.badge-timeshift {
  background: rgba(255, 183, 3, 0.9);
  color: #000;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  display: none;
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.4);
}

/* Oynatıcı Kontrol Çubuğu (Controls & DVR Bar) */
.player-controls-bar {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-glass);
  border-top: 1px solid var(--border-glass);
}

.player-main-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.channel-meta-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-channel-logo {
  height: 38px;
  max-width: 90px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.channel-title-meta {
  display: flex;
  flex-direction: column;
}

.channel-name-heading {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel-num-badge {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.35);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  color: var(--neon-cyan);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.channel-res-badge {
  background: rgba(0, 255, 136, 0.12);
  color: var(--neon-emerald);
  border: 1px solid rgba(0, 255, 136, 0.35);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.45);
}

.channel-desc-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* DVR Kontrol Butonları Sırası */
.dvr-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.dvr-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-dvr {
  height: 38px;
  padding: 0 12px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-dvr:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-glass-hover);
  transform: translateY(-1px);
}

.btn-dvr-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
  font-size: 20px;
}

.btn-play-pause {
  background: var(--accent-gradient);
  border: none;
  box-shadow: var(--shadow-glow);
}

.btn-play-pause:hover {
  filter: brightness(1.15);
}

/* Canlıya Dön Butonu */
.btn-live-sync.live {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-green);
}

.btn-live-sync.timeshifted {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  animation: pulse-orange 1.8s infinite;
}

@keyframes pulse-orange {
  0%, 100% { box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
  50% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
}

/* Kayıt Butonu */
.btn-record.recording {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-crimson);
  box-shadow: 0 0 15px var(--accent-red-glow);
  animation: pulse-red 1s infinite;
}

/* Ses & Yardımcı Kontroller */
.player-aux-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.volume-control-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 10px 2px 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}

.volume-slider {
  width: 90px;
  height: 6px;
  accent-color: var(--accent-red);
  cursor: pointer;
  border-radius: 3px;
  outline: none;
}

.volume-value-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.volume-value-badge.boosted {
  color: #f59e0b;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.btn-boost {
  height: 28px;
  padding: 0 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-boost:hover {
  background: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.btn-boost.active {
  background: #f59e0b;
  color: #000;
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

.quality-select {
  height: 36px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0 8px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.quality-select option {
  background: var(--bg-secondary);
  color: var(--text-main);
}

/* ==========================================================================
   TAM EKRAN (FULLSCREEN) SİNEMATİK DÜZENİ
   ========================================================================== */
:fullscreen,
:-webkit-full-screen,
:-moz-full-screen,
:-ms-fullscreen {
  background: #000 !important;
}

/* ==========================================================================
   TAM EKRAN (FULLSCREEN) SİNEMATİK DÜZENİ
   ========================================================================== */
body.body-fullscreen-active,
html.body-fullscreen-active {
  overflow: hidden !important;
}

/* 1. Player Stage Fullscreen */
#playerStage:fullscreen,
.player-stage.is-fullscreen,
#playerStage.is-fullscreen,
body.body-fullscreen-active #playerStage,
body.body-fullscreen-active .player-stage {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  background: #000 !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  overflow: hidden !important;
  display: block !important;
}

/* 2. Video Container Fullscreen */
#playerStage:fullscreen #videoContainer,
.is-fullscreen #videoContainer,
.is-fullscreen .video-container,
#playerStage.is-fullscreen #videoContainer,
body.body-fullscreen-active #videoContainer,
body.body-fullscreen-active .video-container {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  aspect-ratio: auto !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: #000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 3. Video Element Fullscreen */
#playerStage:fullscreen .tv-video,
.is-fullscreen .tv-video,
#playerStage.is-fullscreen .tv-video,
body.body-fullscreen-active .tv-video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  background: #000 !important;
}

/* 4. YouTube Frame Fullscreen */
#playerStage:fullscreen .youtube-frame,
.is-fullscreen .youtube-frame,
#playerStage.is-fullscreen .youtube-frame,
body.body-fullscreen-active .youtube-frame {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background: #000 !important;
}

/* 5. Alt Kontrol Çubuğu (Controls Bar) */
#playerStage:fullscreen .player-controls-bar,
.is-fullscreen .player-controls-bar,
#playerStage.is-fullscreen .player-controls-bar,
body.body-fullscreen-active .player-controls-bar {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 50 !important;
  width: 100% !important;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.75) 60%, transparent 100%) !important;
  padding: 30px 32px 24px 32px !important;
  border: none !important;
  border-radius: 0 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s !important;
}

/* 6. VOD Çizelgesi */
#playerStage:fullscreen .vod-progress-wrapper,
.is-fullscreen .vod-progress-wrapper,
#playerStage.is-fullscreen .vod-progress-wrapper,
body.body-fullscreen-active .vod-progress-wrapper {
  position: absolute !important;
  bottom: 110px !important;
  left: 32px !important;
  right: 32px !important;
  z-index: 51 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s !important;
}

/* 7. Üst Rozetler */
#playerStage:fullscreen .player-live-badges,
.is-fullscreen .player-live-badges,
#playerStage.is-fullscreen .player-live-badges,
body.body-fullscreen-active .player-live-badges {
  position: absolute !important;
  top: 28px !important;
  left: 32px !important;
  z-index: 50 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s !important;
}

/* ==========================================================================
   TAM EKRANDA KONTROLLERİ VE İMLECİ OTOMATİK GİZLEME (Auto-Hide on Idle)
   ========================================================================== */
.fullscreen-idle,
#playerStage.fullscreen-idle,
body.fullscreen-idle,
body.body-fullscreen-active.fullscreen-idle {
  cursor: none !important;
}

.fullscreen-idle .player-controls-bar,
.fullscreen-idle .vod-progress-wrapper,
.fullscreen-idle .player-live-badges,
#playerStage.fullscreen-idle .player-controls-bar,
#playerStage.fullscreen-idle .vod-progress-wrapper,
#playerStage.fullscreen-idle .player-live-badges,
body.body-fullscreen-active.fullscreen-idle .player-controls-bar,
body.body-fullscreen-active.fullscreen-idle .vod-progress-wrapper,
body.body-fullscreen-active.fullscreen-idle .player-live-badges {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(24px) !important;
}

.fullscreen-idle .player-live-badges,
#playerStage.fullscreen-idle .player-live-badges,
body.body-fullscreen-active.fullscreen-idle .player-live-badges {
  transform: translateY(-24px) !important;
}

/* ==========================================================================
   KATEGORİLER ÇUBUĞU (Category Pills)
   ========================================================================== */
.categories-bar-wrapper {
  margin-bottom: 20px;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 0 12px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.category-pill {
  height: 38px;
  padding: 0 16px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.category-pill.active {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.pill-badge {
  background: rgba(0, 0, 0, 0.35);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* Kategori Başlığı ve Kanal Sayacı */
.section-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
}

.channel-count-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* Kanal Kartı Dil Rozeti */
.channel-lang-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ==========================================================================
   KANAL IZGARASI VE KARTLARI (Channel Cards Grid)
   ========================================================================== */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.channel-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(57, 255, 20, 0.45) !important;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  outline: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 10px rgba(57, 255, 20, 0.12) !important;
}

.channel-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(57, 255, 20, 0.95) !important;
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8), 0 0 24px rgba(57, 255, 20, 0.45) !important;
}

.channel-card.active-channel {
  border-color: #39ff14 !important;
  background: rgba(57, 255, 20, 0.08) !important;
  box-shadow: 0 0 28px rgba(57, 255, 20, 0.65), inset 0 0 16px rgba(57, 255, 20, 0.18) !important;
}

.channel-card.active-channel .channel-num {
  color: #39ff14 !important;
  border-color: rgba(57, 255, 20, 0.45) !important;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.6) !important;
}

.channel-card.active-channel .card-title {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5) !important;
}

/* Kart Üstü (Numara, Kalite ve Favori) */
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.channel-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-subtle);
  background: var(--bg-glass-card);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.channel-quality-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--neon-emerald);
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.35);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.45);
}

.btn-favorite {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease, filter 0.15s ease;
}

.btn-favorite:hover {
  transform: scale(1.2);
  color: var(--neon-pink);
  filter: drop-shadow(0 0 6px rgba(255, 0, 127, 0.6));
}

.btn-favorite.favorited {
  color: var(--neon-pink);
  filter: drop-shadow(0 0 8px rgba(255, 0, 127, 0.75));
}

/* Kart Logo Alanı */
.card-logo-container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.channel-logo {
  max-height: 56px;
  max-width: 120px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.65);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--neon-cyan);
  opacity: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.8));
  backdrop-filter: blur(2px);
}

.channel-card:hover .card-play-overlay {
  opacity: 1;
}

.channel-card:hover .channel-logo {
  transform: scale(1.05);
}

/* Kart Bilgi */
.card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-category {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Boş Durum */
.empty-channels {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-lg);
}

.empty-icon {
  font-size: 48px;
  color: var(--text-subtle);
  margin-bottom: 12px;
}

/* ==========================================================================
   SMART TV (10-FOOT UI) MODU & SANAL KUMANDA
   ========================================================================== */
body.tv-mode {
  --header-height: 85px;
}

body.tv-mode .brand-name {
  font-size: 24px;
}

body.tv-mode .channel-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 20px !important;
}

body.tv-mode .channel-card {
  padding: 16px !important;
  border-width: 2px !important;
  border-color: rgba(57, 255, 20, 0.6) !important;
}

body.tv-mode .channel-num {
  font-size: 14px !important;
  padding: 3px 8px !important;
  font-weight: 800 !important;
}

body.tv-mode .card-title {
  font-size: 17px !important;
  font-weight: 800 !important;
}

/* Kumanda Odağı (Neon Parlak Yeşil & Kırmızı Vurgu) */
.channel-card.tv-focused,
.vod-card.tv-focused {
  transform: scale(1.08) !important;
  border-color: #39ff14 !important;
  box-shadow: 0 0 35px rgba(57, 255, 20, 0.9), inset 0 0 16px rgba(57, 255, 20, 0.25) !important;
  background: rgba(26, 38, 58, 0.98) !important;
  z-index: 20;
}

/* SANAL AKILLI TV KUMANDASI PANELİ */
.tv-virtual-remote {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 99998;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(57, 255, 20, 0.6);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(57, 255, 20, 0.35);
  animation: pipSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  user-select: none;
  touch-action: manipulation;
}

.tv-remote-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.tv-remote-badge {
  font-size: 11px;
  font-weight: 800;
  color: #39ff14;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.btn-tv-remote-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  transition: all 0.2s ease;
}

.btn-tv-remote-close:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-crimson);
}

/* D-PAD Çapraz / Yuvarlak Kumanda Düzeni */
.tv-remote-dpad {
  position: relative;
  width: 130px;
  height: 130px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tv-dpad-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.tv-dpad-btn:hover,
.tv-dpad-btn:focus {
  background: rgba(57, 255, 20, 0.3);
  border-color: #39ff14;
  color: #39ff14;
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
}

.tv-dpad-btn:active {
  transform: scale(0.92);
}

.tv-dpad-btn.dpad-up {
  grid-column: 2;
  grid-row: 1;
  border-radius: 12px 12px 4px 4px;
}

.tv-dpad-btn.dpad-left {
  grid-column: 1;
  grid-row: 2;
  border-radius: 12px 4px 4px 12px;
}

.tv-dpad-btn.dpad-ok {
  grid-column: 2;
  grid-row: 2;
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  box-shadow: 0 0 14px rgba(255, 0, 127, 0.6);
}

.tv-dpad-btn.dpad-right {
  grid-column: 3;
  grid-row: 2;
  border-radius: 4px 12px 12px 4px;
}

.tv-dpad-btn.dpad-down {
  grid-column: 2;
  grid-row: 3;
  border-radius: 4px 4px 12px 12px;
}

/* TV Kumanda Yan Aksiyon Butonları */
.tv-remote-actions {
  width: 100%;
  display: flex;
  gap: 8px;
}

.tv-remote-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tv-remote-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tv-remote-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

.tv-remote-btn:active {
  transform: scale(0.94);
}

@media (max-width: 768px) {
  .tv-virtual-remote {
    bottom: 68px;
    right: 10px;
    transform: scale(0.9);
    transform-origin: bottom right;
  }
}

/* TV Numarası Giriş Rozeti (Sağ Üstte Büyük Çıkar) */
.tv-number-overlay {
  position: fixed;
  top: 30px;
  right: 30px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  z-index: 9999;
  display: none;
  animation: fadeIn 0.2s ease;
}

/* ==========================================================================
   MOBİL İÇİN ALT GEZİNME ÇUBUĞU (Bottom Navigation)
   ========================================================================== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(10, 14, 24, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  z-index: 100;
  padding: 0 10px;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-nav-item i {
  font-size: 18px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.bottom-nav-item.active i {
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.8));
  transform: translateY(-1px);
}

/* ==========================================================================
   MODAL PENCERELERİ (Glass Modals)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active,
.modal-backdrop.show {
  display: flex !important;
  z-index: 10000 !important;
}

.modal-box,
.modal-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  animation: slideUp 0.25s ease;
  position: relative;
}

.modal-window.modal-lg {
  max-width: 850px;
  width: 90vw;
}

.modal-window.modal-xl {
  max-width: 1400px;
  width: 95vw;
}

.btn-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 20px;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  height: 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.form-control:focus {
  border-color: var(--border-active);
}

.timer-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.btn-timer-preset {
  height: 42px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-timer-preset:hover {
  background: var(--accent-gradient);
  border-color: transparent;
}

.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.shortcuts-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-glass);
}

.kbd-tag {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--accent-red);
  font-weight: 700;
}

/* ==========================================================================
   TOAST BİLDİRİMLERİ (Toast Notifications)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-elevated);
  animation: fadeIn 0.3s ease;
  pointer-events: auto;
}

.toast-success i { color: var(--accent-green); }
.toast-info i { color: var(--accent-blue); }
.toast-error i { color: var(--accent-red); }

.toast-item.fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ANA MOD DEĞİŞTİRİCİ (Canlı TV / Sinema VOD Sekmeleri)
   ========================================================================== */
.main-mode-tabs {
  display: flex;
  align-items: center;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.mode-tab-btn {
  height: 36px;
  padding: 0 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mode-tab-btn:hover {
  color: var(--text-main);
}

.mode-tab-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   VOD ZAMAN ÇİZELGESİ (Seekbar & Progress Bar)
   ========================================================================== */
.vod-progress-wrapper {
  padding: 8px 20px 0 20px;
  background: var(--bg-glass);
  cursor: pointer;
}

.vod-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: height 0.15s ease;
}

.vod-progress-wrapper:hover .vod-progress-track {
  height: 8px;
}

.vod-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--accent-red);
  transition: width 0.1s linear;
}

.vod-time-display {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding-top: 4px;
  font-family: monospace;
}

.dvr-btn-subgroup {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   VOD SİNEMA POSTER IZGARASI (Vod Movie Cards 2:3)
   ========================================================================== */
.vod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.vod-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.vod-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 240, 255, 0.25);
}

.vod-card.active-channel {
  border-color: var(--neon-pink);
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.5), inset 0 0 14px rgba(255, 0, 127, 0.15);
}

.vod-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #0d1117;
  overflow: hidden;
}

.vod-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vod-card:hover .vod-poster-img {
  transform: scale(1.06);
}

.vod-rating-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 209, 102, 0.35);
  color: var(--neon-gold);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  text-shadow: 0 0 8px rgba(255, 209, 102, 0.5);
}

.vod-resume-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.5);
}

.vod-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.btn-vod-info-bubble {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.btn-vod-info-bubble:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 14px rgba(255, 0, 127, 0.6);
}

.vod-meta-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vod-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.vod-submeta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vod-cat-tag {
  color: var(--neon-cyan);
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

/* ==========================================================================
   VOD DETAY PENCERESİ (Modal)
   ========================================================================== */
.vod-modal-box {
  max-width: 700px;
}

.vod-modal-content-layout {
  display: flex;
  gap: 24px;
}

.vod-modal-poster-img {
  width: 200px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-elevated);
  flex-shrink: 0;
}

.vod-modal-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.vod-modal-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vod-modal-rating-badge {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  font-weight: 800;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.badge-simple {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.badge-cat {
  color: var(--accent-red);
  border-color: rgba(230, 57, 70, 0.3);
}

.vod-modal-synopsis {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.vod-modal-credits {
  font-size: 12px;
  color: var(--text-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vod-modal-credits strong {
  color: var(--text-muted);
}

.btn-play-large {
  height: 44px;
  padding: 0 24px;
  font-size: 14px;
  justify-content: center;
  margin-top: 8px;
}

/* ==========================================================================
   IPTV & XTREAM MODAL VE HESAP PANELİ DÜZENİ
   ========================================================================== */
.iptv-modal-box {
  max-width: 580px;
}

.iptv-modal-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-glass);
  padding: 6px 16px 0 16px;
  gap: 8px;
}

.iptv-tab-btn {
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-subtle);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.iptv-tab-btn:hover {
  color: var(--text-main);
}

.iptv-tab-btn.active {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

.iptv-tab-content {
  display: none;
  padding-top: 12px;
}

.iptv-tab-content.active {
  display: block;
}

.iptv-tab-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.iptv-status-alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.iptv-status-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.iptv-status-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

/* Hesap Kartı Görünümü */
.account-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
}

.account-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 14px;
}

.account-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-avatar-icon {
  font-size: 34px;
  color: var(--accent-red);
}

.account-username {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 2px 0;
}

.account-server {
  font-size: 11px;
  color: var(--text-subtle);
}

.badge-account-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-account-status.active {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.account-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.account-metric-box {
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.metric-label {
  display: block;
  font-size: 11px;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

.metric-value {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.metric-value.text-accent {
  color: #10b981;
}


/* ==========================================================================
   ANA MOD SEKMELERİ (Canlı TV / Sinema / Diziler)
   ========================================================================== */
.main-mode-tabs {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  gap: 4px;
}

.mode-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mode-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.mode-tab-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   DİZİLER (SERIES) & SEZON BÖLÜM MODALI
   ========================================================================== */
.series-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.series-season-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--neon-emerald-gradient);
  backdrop-filter: blur(8px);
  color: #052e16;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.45);
  z-index: 2;
}

.series-modal-box {
  max-width: 920px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.series-modal-body {
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.series-hero-card {
  display: flex;
  gap: 20px;
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.series-hero-poster {
  width: 130px;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-elevated);
  flex-shrink: 0;
  background: #10141e;
}

.series-hero-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.series-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.series-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.badge-seasons {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-emerald);
  border: 1px solid rgba(0, 255, 136, 0.4);
  text-shadow: 0 0 6px rgba(0, 255, 136, 0.4);
}

.series-hero-plot {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-height: 80px;
  overflow-y: auto;
}

.series-hero-credits {
  font-size: 12px;
  color: var(--text-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.series-seasons-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seasons-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
}

.seasons-header-bar h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.season-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.season-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.season-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-glass-hover);
}

.season-tab-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.season-count-badge {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.series-episodes-container {
  display: flex;
  flex-direction: column;
}

.episodes-grid-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.episode-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.episode-card-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass-hover);
  transform: translateX(4px);
}

.ep-num-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-red);
  flex-shrink: 0;
}

.ep-details-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.ep-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ep-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-duration-badge {
  font-size: 11px;
  color: var(--text-subtle);
  white-space: nowrap;
}

.ep-plot-text {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-play-btn {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  flex-shrink: 0;
}


/* ==========================================================================
   APP SPLIT LAYOUT & SOL KATEGORİ MENÜSÜ (SIDEBAR)
   ========================================================================== */
.app-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 1720px;
  margin: 0 auto;
  padding: 16px 20px 80px 20px;
  min-height: 100vh;
}

/* SOL KATEGORİ SIDEBAR (SABİT & YAPIŞKAN MENÜ) */
.app-sidebar {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  height: calc(100vh - 32px);
  position: -webkit-sticky;
  position: sticky;
  top: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  z-index: 90;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.sidebar-header {
  padding: 16px 18px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.btn-close-sidebar {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.btn-close-sidebar:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Sol Menü Mod Sekmeleri (Canlı TV / Sinema / Diziler) */
.sidebar-mode-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  margin: 12px 16px 8px 16px;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.side-mode-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.side-mode-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.side-mode-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 0, 127, 0.45);
}

/* Sol Menü Hızlı Ekle & IPTV Butonları */
.sidebar-quick-actions {
  display: flex;
  gap: 6px;
  margin: 0 16px 8px 16px;
}

.btn-sidebar-quick {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sidebar-quick:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.btn-sidebar-quick.btn-sidebar-vip {
  background: rgba(255, 183, 3, 0.12);
  border-color: rgba(255, 183, 3, 0.35);
  color: #ffd166;
}

.btn-sidebar-quick.btn-sidebar-vip:hover {
  background: rgba(255, 183, 3, 0.22);
  border-color: #ffb703;
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.35);
}

/* Kategori Arama Kutusu */
.sidebar-search-wrapper {
  padding: 6px 16px 10px 16px;
}

.sidebar-search-box {
  position: relative;
  width: 100%;
}

.sidebar-search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 13px;
}

.category-search-input {
  width: 100%;
  height: 36px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0 32px 0 34px;
  color: var(--text-main);
  font-size: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.category-search-input:focus {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.04);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}

/* Dinamik Kategori Listesi */
.sidebar-categories-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 8px 12px 8px;
}

.sidebar-section-title {
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-subtle);
}

.sidebar-category-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 4px;
}

.sidebar-category-list::-webkit-scrollbar {
  width: 4px;
}

.sidebar-category-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.sidebar-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sidebar-cat-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: var(--border-glass);
  transform: translateX(2px);
}

.sidebar-cat-btn.active {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.45);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.22);
}

.sidebar-cat-btn.active .cat-icon {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.cat-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
}

.cat-icon {
  font-size: 15px;
  color: var(--accent-red);
  flex-shrink: 0;
}

.sidebar-cat-btn.active .cat-icon {
  color: #fff;
}

.cat-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-count-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-subtle);
  flex-shrink: 0;
}

.sidebar-cat-btn.active .cat-count-badge {
  background: var(--accent-red);
  color: #fff;
}

.cat-count-badge.fav-badge {
  background: rgba(230, 57, 70, 0.2);
  color: var(--accent-red);
}

/* SAĞ ANA İÇERİK ALANI */
.app-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-toggle-sidebar {
  display: none;
}

/* ==========================================================================
   MOBİL YATAY KATEGORİ ŞERİDİ (Mobile Category Pills)
   ========================================================================== */
.mobile-category-pills {
  display: none;
}

/* ==========================================================================
   DUYARLI TASARIM (Mobile Responsiveness < 768px - Dikey 4'lü Kompakt Mod)
   ========================================================================== */
@media (max-width: 768px) {
  .app-container {
    padding: 0 8px 80px 8px;
  }

  .main-header {
    margin: 0 -8px 10px -8px;
    padding: 10px 8px 8px 8px;
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }

  /* 1. Satır: Sol En Üstte Marka Logosu, Sağ Üstte Kompakt Aksiyon Butonları */
  .header-top-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
    order: 1;
  }

  .header-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .header-brand .brand-logo-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }

  .header-brand .brand-name {
    font-size: 16px !important;
    font-weight: 800 !important;
  }

  .btn-toggle-sidebar {
    display: none !important; /* Kategoriler menüsü alttaki Bottom Nav barında yer alır */
  }

  .main-mode-tabs {
    display: none;
  }

  .brand-tagline {
    display: none;
  }

  /* Başlık Aksiyonları Sağ Üst Köşede Tek Satırda Düzgünce Hizalanır */
  .header-actions {
    display: flex !important;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .header-actions::-webkit-scrollbar {
    display: none;
  }

  .header-actions .btn-header {
    display: inline-flex !important;
    height: 30px !important;
    padding: 0 7px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    gap: 3px !important;
    border-radius: var(--radius-sm) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .header-actions .btn-vip-account {
    height: 30px !important;
    padding: 0 7px !important;
    font-size: 10.5px !important;
    background: rgba(255, 183, 3, 0.15) !important;
    border-color: rgba(255, 183, 3, 0.4) !important;
    color: #ffd166 !important;
  }

  .header-actions .btn-add-stream {
    height: 30px !important;
    padding: 0 7px !important;
    font-size: 10.5px !important;
  }

  .header-actions .badge-vip-days {
    display: none !important;
  }

  .header-actions #btnOpenSleepTimer,
  .header-actions #btnPwaInstall,
  .header-actions #btnOpenShortcuts {
    display: none !important;
  }

  /* 2. Satır: Geniş Arama Çubuğu */
  .header-center-group {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    order: 2;
  }

  .search-wrapper {
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .search-input {
    height: 36px;
    font-size: 12.5px;
    padding-left: 34px;
  }

  /* 3. Satır: Dil Seçici Barı (Tek Satırda Yatay Kaydırılabilir) */
  .header-language-bar,
  .language-filter-bar {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 3px 5px;
    border-radius: var(--radius-full);
    background: rgba(18, 22, 34, 0.85);
  }

  .header-language-bar::-webkit-scrollbar,
  .language-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .lang-pill-btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    flex-shrink: 0;
  }

  .lang-pill-btn .lang-name {
    font-size: 10.5px !important;
  }

  .lang-pill-btn .lang-count {
    font-size: 9px !important;
    padding: 1px 3px !important;
  }

  .player-stage {
    border-radius: var(--radius-md);
    margin-bottom: 10px;
  }

  /* MOBİL KÖŞE MİNİ PLAYER (Dikey Modda Rahat ve Net İzlenebilir Geniş Ekran: 260px) */
  .player-stage.is-mini-pip {
    width: 260px !important;
    max-width: calc(100vw - 20px) !important;
    right: 10px !important;
    bottom: 68px !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(57, 255, 20, 0.75) !important;
    background: rgba(10, 14, 24, 0.98) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), 0 0 25px rgba(57, 255, 20, 0.35) !important;
    overflow: hidden !important;
    z-index: 99999 !important;
  }

  .player-stage.is-mini-pip .video-container {
    aspect-ratio: 16 / 9 !important;
    max-height: 146px !important;
  }

  .player-stage.is-mini-pip .mini-pip-header {
    padding: 6px 10px !important;
    background: rgba(8, 11, 20, 0.95) !important;
    border-bottom: 1px solid rgba(57, 255, 20, 0.25) !important;
  }

  .player-stage.is-mini-pip .mini-pip-title {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
  }

  .player-stage.is-mini-pip .btn-mini-pip {
    width: 26px !important;
    height: 26px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .player-stage.is-mini-pip .player-controls-bar {
    display: none !important;
  }

  /* Mobil Yatay Kategori Şeridi */
  .mobile-category-pills {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    padding: 2px 0 8px 0;
    margin: 0 -8px 6px -8px;
    padding-left: 8px;
    padding-right: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-category-pills::-webkit-scrollbar {
    display: none;
  }

  .mobile-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .mobile-pill-btn.active {
    background: var(--accent-gradient);
    border-color: var(--neon-pink);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 0, 127, 0.55);
  }

  .mobile-pill-btn.btn-more-cats {
    background: rgba(0, 240, 255, 0.12);
    border-color: rgba(0, 240, 255, 0.4);
    color: var(--neon-cyan);
    font-weight: 700;
  }

  /* MOBİL DİKEY MOD: YANLAMASINA 4 KANAL BALONCUĞU */
  .channel-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
  }

  .channel-card {
    padding: 6px 3px !important;
    border-radius: 8px !important;
    gap: 3px !important;
    min-width: 0 !important;
    text-align: center !important;
    align-items: center !important;
    background: rgba(18, 24, 36, 0.85) !important;
  }

  .card-top {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2px !important;
    padding: 0 1px !important;
  }

  .channel-num {
    font-size: 8px !important;
    padding: 1px 3px !important;
    border-radius: 3px !important;
    line-height: 1 !important;
  }

  .channel-quality-badge {
    font-size: 7.5px !important;
    padding: 1px 3px !important;
    border-radius: 3px !important;
    line-height: 1 !important;
  }

  .btn-favorite {
    font-size: 11px !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  .card-logo-container {
    height: 42px !important;
    width: 100% !important;
    padding: 2px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 4px !important;
  }

  .channel-logo {
    max-height: 34px !important;
    max-width: 90% !important;
    object-fit: contain !important;
  }

  .card-info {
    width: 100% !important;
    overflow: hidden !important;
    text-align: center !important;
  }

  .card-title,
  .channel-name {
    font-size: 9.5px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    color: var(--text-main) !important;
    margin-top: 1px !important;
  }

  .card-category,
  .channel-genre {
    display: none !important;
  }

  /* VOD Sinema 4'lü Izgara */
  .vod-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
  }

  .vod-card {
    padding: 3px !important;
    border-radius: 8px !important;
  }

  .vod-poster-wrap {
    height: 105px !important;
    border-radius: 6px !important;
  }

  .vod-title {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .vod-rating-badge {
    font-size: 8px !important;
    padding: 1px 3px !important;
    top: 2px !important;
    left: 2px !important;
  }

  .btn-vod-info-bubble {
    width: 18px !important;
    height: 18px !important;
    font-size: 9px !important;
    top: 2px !important;
    right: 2px !important;
  }

  .vod-fav-btn {
    bottom: 2px !important;
    right: 2px !important;
    font-size: 10px !important;
  }

  .vod-modal-content-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .vod-modal-poster-img {
    width: 130px;
  }

  .vod-modal-badges {
    justify-content: center;
  }

  .bottom-nav {
    display: flex;
    height: 54px;
    padding: 0 4px;
  }

  .bottom-nav-item {
    padding: 3px 2px;
    font-size: 9.5px;
    gap: 1px;
  }

  .bottom-nav-item i {
    font-size: 16px;
  }

  .dvr-controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dvr-btn-group {
    justify-content: space-between;
  }

  .player-aux-controls {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 2px 0;
  }

  .player-aux-controls::-webkit-scrollbar {
    display: none;
  }

  .player-aux-controls #btnAirPlay {
    order: 1 !important;
    display: inline-flex !important;
  }

  .player-aux-controls #btnFullscreen {
    order: 2 !important;
    display: inline-flex !important;
  }

  .player-aux-controls #btnPip {
    order: 3 !important;
    display: inline-flex !important;
  }

  .player-aux-controls #btnToggleMiniPip {
    order: 4 !important;
  }

  .player-aux-controls #qualitySelector {
    order: 5 !important;
  }

  .player-aux-controls #btnToggleStatsHud {
    order: 6 !important;
  }

  .player-aux-controls #btnResyncAudio {
    order: 7 !important;
  }

  .player-aux-controls .volume-control-wrap {
    order: 8 !important;
  }

  .player-aux-controls .volume-control-wrap,
  .player-aux-controls .btn-dvr,
  .player-aux-controls .btn-airplay,
  .player-aux-controls .quality-select,
  .player-aux-controls .audio-preset-select,
  .player-aux-controls .btn-glass-mode {
    flex-shrink: 0;
  }

  .series-hero-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .series-hero-poster {
    width: 100px;
    height: 145px;
  }

  .series-hero-badges {
    justify-content: center;
  }

  .ep-plot-text {
    display: none;
  }

  .app-layout {
    padding: 4px 4px 75px 4px;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    width: 290px;
    min-width: 290px;
    border-radius: 0 20px 20px 0;
    z-index: 1000;
    transform: translateX(-105%);
    box-shadow: 0 0 50px rgba(0,0,0,0.85);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .btn-close-sidebar {
    display: block;
  }

  body.sidebar-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 999;
  }
}

/* ==========================================================================
   MOBİL YATAY MOD (Landscape < 920px - Tam Sinematik Mod)
   ========================================================================== */
@media (max-width: 920px) and (orientation: landscape) {
  .app-container {
    padding: 0 8px 16px 8px !important;
  }

  .main-header {
    height: auto !important;
    margin: 0 -8px 8px -8px !important;
    padding: 4px 8px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .header-left-group {
    width: auto !important;
    flex: 2 !important;
  }

  .search-wrapper {
    flex: 1 !important;
    width: auto !important;
    margin-top: 0 !important;
  }

  .bottom-nav {
    display: none !important;
  }

  .channel-grid {
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)) !important;
    gap: 4px !important;
  }

  .vod-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important;
    gap: 4px !important;
  }

  .player-stage.is-mini-pip {
    width: 280px !important;
    max-width: 45vw !important;
    right: 12px !important;
    bottom: 12px !important;
    border-radius: 12px !important;
  }

  .player-stage.is-mini-pip .video-container {
    max-height: 157px !important;
  }

  .app-sidebar {
    width: 260px !important;
    min-width: 260px !important;
  }
}


/* Smart Category Badges & Enhancements */
.cat-count-badge.new-badge {
  background: linear-gradient(135deg, #ef4444, #f97316) !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4) !important;
}

.cat-count-badge.fav-badge {
  background: linear-gradient(135deg, #ec4899, #f43f5e) !important;
  color: #fff !important;
  font-weight: 800 !important;
}


/* ==========================================================================
   SES & OTOMATİK OYNATMA ENGELİ KALDIRICI (Unmute Overlay & Audio Controls)
   ========================================================================== */
.unmute-overlay {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  align-items: center;
  pointer-events: auto;
  animation: bouncePulse 2s infinite ease-in-out;
}

.unmute-pill-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
}

.unmute-pill-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.65);
}

.btn-unmute-action {
  background: #ffffff;
  color: #065f46;
  border: none;
  border-radius: 9999px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.btn-unmute-action:hover {
  background: #ecfdf5;
  color: #047857;
  transform: scale(1.05);
}

@keyframes bouncePulse {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

.audio-track-select {
  max-width: 140px;
  font-size: 12px;
  background: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}


/* ==========================================================================
   400% MAKSİMUM SES & TURBO SES GÜÇLENDİRİCİ STİLLERİ (v3.9.5)
   ========================================================================== */
.volume-control-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 12px 3px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.volume-control-wrap.turbo-active {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.volume-control-wrap.max-active {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
  animation: maxPulseGlow 2s infinite ease-in-out;
}

@keyframes maxPulseGlow {
  0%, 100% { box-shadow: 0 0 14px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 24px rgba(239, 68, 68, 0.8), 0 0 8px #f59e0b; }
}

.volume-slider {
  width: 100px;
  height: 6px;
  accent-color: var(--accent-red);
  cursor: pointer;
  border-radius: 3px;
  outline: none;
  transition: all 0.2s ease;
}

.volume-slider.slider-turbo {
  accent-color: #f59e0b;
}

.volume-slider.slider-max {
  accent-color: #ef4444;
}

.volume-value-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 48px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  user-select: none;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.volume-value-badge.boost-level-1 {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.volume-value-badge.boost-level-2 {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}

.volume-value-badge.boost-level-3 {
  color: #f97316;
  background: rgba(249, 115, 22, 0.22);
  border: 1px solid rgba(249, 115, 22, 0.6);
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
}

.volume-value-badge.boost-level-4 {
  color: #fff;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.btn-boost {
  height: 28px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-boost:hover {
  background: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
  color: #fff;
  transform: scale(1.04);
}

.btn-boost.mode-2x {
  background: #f59e0b;
  color: #000;
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.btn-boost.mode-3x {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border-color: #f97316;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.7);
}

.btn-boost.mode-4x {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.85);
  animation: maxPulseGlow 1.5s infinite ease-in-out;
}


/* Sidebar Category Section Dividers & Badges */
.sidebar-group-header {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-subtle);
  padding: 14px 10px 4px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.sidebar-group-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.cat-count-badge.turkish-badge {
  background: rgba(230, 57, 70, 0.25) !important;
  color: #ff6b6b !important;
  border: 1px solid rgba(230, 57, 70, 0.4) !important;
  font-weight: 800 !important;
}

.cat-count-badge.onair-badge {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  font-weight: 800 !important;
}


/* ==========================================================================
   GENEL KAPSAMLI ARAMA (Global Unified Search Across Live, VOD & Series)
   ========================================================================== */
.search-results-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.search-filter-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-chip {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.search-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: var(--border-glass-hover);
  transform: translateY(-1px);
}

.search-chip.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.search-chip .chip-count {
  background: rgba(0, 0, 0, 0.35);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 800;
}

.search-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.search-section-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  border-left: 3px solid var(--accent-red);
  padding-left: 12px;
}

.search-sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.search-sec-title .sec-icon-live {
  color: #10b981;
}

.search-sec-title .sec-icon-vod {
  color: #3b82f6;
}

.search-sec-title .sec-icon-series {
  color: #f59e0b;
}

.search-sec-count {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}


.btn-show-more-search {
  align-self: center;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.btn-show-more-search:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ==========================================================================
   GELİŞMİŞ EPG (YAYIN AKIŞI) & OYNATICI MİNİ BAR STİLLERİ
   ========================================================================== */
.player-epg-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(13, 16, 23, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-glass);
  padding: 8px 18px;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  font-size: 13px;
  color: var(--text-main);
  animation: fadeIn 0.3s ease;
}

.epg-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.epg-live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 42, 95, 0.15);
  border: 1px solid rgba(255, 42, 95, 0.45);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.25);
}

.epg-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-red);
  box-shadow: 0 0 8px var(--neon-red), 0 0 14px rgba(255, 42, 95, 0.6);
  animation: pulseDot 1.5s infinite;
}

.epg-live-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--neon-red);
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(255, 42, 95, 0.4);
}

.epg-info-text {
  display: flex;
  flex-direction: column;
}

.epg-curr-title {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.epg-curr-time {
  font-size: 11px;
  color: var(--text-muted);
}

.epg-bar-center {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 380px;
}

.epg-progress-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.epg-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f0ff 0%, #9d4edd 50%, #ff007f 100%);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
  transition: width 0.4s ease;
}

.epg-remaining-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-subtle);
  white-space: nowrap;
}

.epg-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.epg-next-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.epg-next-badge {
  font-size: 9px;
  font-weight: 800;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  padding: 2px 5px;
  border-radius: 3px;
}

.epg-next-name {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-epg-reminder {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-epg-reminder:hover, .btn-epg-reminder.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.btn-epg-more {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-epg-more:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: transparent;
}

/* ==========================================================================
   GELİŞMİŞ EPG MODALI VE ZAMAN ÇİZELGESİ (TIMELINE GRID)
   ========================================================================== */
.epg-modal-window {
  max-width: 1200px;
  width: 95vw;
  height: 85vh;
  display: flex;
  flex-direction: column;
}

.epg-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-glass);
}

.epg-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.epg-hint-note {
  font-size: 12px;
  color: var(--text-subtle);
}

.epg-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.epg-channels-timeline-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.epg-channel-row {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.epg-channel-row:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.epg-channel-row.is-playing {
  border-color: var(--accent-red);
  box-shadow: inset 0 0 15px rgba(229, 9, 20, 0.15);
}

.epg-channel-info {
  width: 220px;
  min-width: 220px;
  background: rgba(10, 14, 22, 0.7);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--border-glass);
  cursor: pointer;
  position: relative;
}

.epg-channel-info:hover {
  background: rgba(229, 9, 20, 0.1);
}

.epg-ch-logo-wrap {
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.epg-ch-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.epg-ch-text {
  flex: 1;
  overflow: hidden;
}

.epg-ch-name {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epg-ch-category {
  font-size: 11px;
  color: var(--text-muted);
}

.epg-live-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9px;
  font-weight: 800;
  background: var(--accent-red);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

.epg-timeline-scroll {
  flex: 1;
  overflow-x: auto;
  padding: 10px;
  display: flex;
  align-items: center;
}

.epg-programs-track {
  display: flex;
  gap: 10px;
}

.epg-program-card {
  width: 220px;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.epg-program-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

.epg-program-card.is-live {
  background: rgba(229, 9, 20, 0.1);
  border-color: var(--accent-red);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
}

.epg-program-card.is-past {
  opacity: 0.5;
}

.epg-prog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.epg-prog-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.badge-now-live {
  background: var(--accent-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
}

.epg-prog-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epg-prog-desc {
  font-size: 11px;
  color: var(--text-subtle);
  line-height: 1.4;
  height: 32px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}

.epg-prog-actions {
  display: flex;
  gap: 6px;
}

.btn-epg-card-play {
  flex: 1;
  background: var(--accent-red);
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-epg-card-reminder {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-epg-card-reminder.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #f59e0b;
}

/* ==========================================================================
   SENKRONİZASYON, İSTATİSTİK & DEVAM ET MODAL STİLLERİ
   ========================================================================== */
.sync-stats-window {
  max-width: 850px;
}

.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-data {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.sync-section-block {
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
}

.sync-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.continue-watching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.continue-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.continue-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-red);
}

.continue-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.continue-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.continue-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.continue-card:hover .continue-play-overlay {
  opacity: 1;
}

.continue-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--accent-red);
}

.continue-info {
  padding: 8px;
}

.continue-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.continue-meta {
  font-size: 10px;
  color: var(--text-muted);
}

.top-channels-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-channel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.top-rank {
  font-weight: 800;
  color: var(--accent-red);
  width: 24px;
}

.top-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.top-name {
  flex: 1;
  font-weight: 700;
  color: #fff;
}

.top-count {
  font-size: 12px;
  color: var(--text-muted);
}

.stats-empty {
  font-size: 12px;
  color: var(--text-subtle);
  padding: 10px 0;
  text-align: center;
}

/* ==========================================================================
   PWA INSTALL BUTTON ANIMATION
   ========================================================================== */
.btn-pwa-install {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #10b981 !important;
  animation: pwaGlow 2.5s infinite;
}

.btn-pwa-install:hover {
  background: #10b981 !important;
  color: #fff !important;
}

/* ==========================================================================
   PRO STATS HUD (Stats for Nerds Overlay)
   ========================================================================== */
.pro-stats-hud {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 45;
  background: rgba(8, 12, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 240, 255, 0.2);
  color: #fff;
  font-family: monospace, var(--font-sans);
  font-size: 12px;
  pointer-events: auto;
  animation: fadeInHud 0.2s ease-out;
}

@keyframes fadeInHud {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.stats-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.stats-hud-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.btn-close-hud {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-close-hud:hover {
  color: #fff;
  background: rgba(0, 240, 255, 0.15);
}

.stats-hud-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stats-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stats-key {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.stats-val {
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.35);
}

.stats-val.text-success { color: var(--neon-emerald) !important; text-shadow: 0 0 8px rgba(0, 255, 136, 0.5) !important; }
.stats-val.text-accent { color: var(--neon-amber) !important; text-shadow: 0 0 8px rgba(255, 183, 3, 0.5) !important; }
.stats-val.text-danger { color: var(--neon-red) !important; text-shadow: 0 0 8px rgba(255, 42, 95, 0.5) !important; }

/* ==========================================================================
   NUMPAD QUICK DIAL OVERLAY (OSD)
   ========================================================================== */
.numpad-dial-overlay {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 50;
  pointer-events: none;
  animation: popInDial 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popInDial {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.numpad-badge {
  background: rgba(8, 12, 22, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.45), 0 8px 30px rgba(0, 0, 0, 0.8);
  padding: 12px 22px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.numpad-badge span:first-child {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.7);
}

.numpad-channel-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ==========================================================================
   TIVIMATE STYLE HORIZONTAL EPG TIMELINE GRID MATRIX
   ========================================================================== */
.epg-modal-window {
  max-width: 95vw !important;
  width: 1400px !important;
  height: 88vh !important;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden !important;
}

.epg-grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-glass);
  gap: 12px;
  flex-wrap: wrap;
}

.epg-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.epg-filter-pills::-webkit-scrollbar { display: none; }

.epg-pill-btn {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.epg-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.epg-pill-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px var(--accent-red-glow);
}

.btn-jump-now {
  height: 36px !important;
  padding: 0 16px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1.2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

/* Timeline Matrix Container */
.epg-timeline-matrix-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #080c14;
}

.epg-matrix-corner {
  width: 200px;
  min-width: 200px;
  height: 40px;
  background: #0d131f;
  border-right: 2px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding-left: 16px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  z-index: 20;
}

.epg-timeline-scroll-main {
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
  position: relative;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Time Ruler Header */
.epg-time-ruler-row {
  display: flex;
  height: 40px;
  background: #0d131f;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 15;
}

.epg-time-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.time-label { color: #fff; }
.time-label-half { color: rgba(255, 255, 255, 0.4); font-size: 11px; }

/* Dikey Kırmızı "Şu An" Çizgisi */
.epg-now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444, 0 0 20px #ef4444;
  z-index: 12;
  pointer-events: none;
}

.epg-now-line-badge {
  position: sticky;
  top: 42px;
  left: -22px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  display: block;
  width: max-content;
}

/* Kanal Satırı */
.epg-grid-channel-row {
  display: flex;
  height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.epg-grid-channel-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.epg-grid-channel-row.is-playing {
  background: rgba(230, 57, 70, 0.06);
}

/* Sol Sabit Kanal Kolonu */
.epg-sticky-ch-col {
  position: sticky;
  left: 0;
  width: 200px;
  min-width: 200px;
  height: 100%;
  background: #090e17;
  border-right: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  z-index: 10;
  cursor: pointer;
  transition: background 0.2s ease;
}

.epg-sticky-ch-col:hover {
  background: #111827;
}

.grid-ch-logo-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.grid-ch-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.grid-ch-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.grid-ch-num {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-red);
}

.grid-ch-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grid-ch-active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  margin-left: auto;
  box-shadow: 0 0 8px var(--accent-red);
}

/* Sağ Programlar Şeridi */
.epg-grid-programs-track {
  position: relative;
  height: 100%;
}

/* Program Kartı */
.epg-grid-program-card {
  position: absolute;
  top: 4px;
  bottom: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}

.epg-grid-program-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  z-index: 5;
}

.epg-grid-program-card.is-live {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(255, 255, 255, 0.05));
  border-color: rgba(230, 57, 70, 0.4);
}

.epg-grid-program-card.is-past {
  opacity: 0.55;
}

.grid-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.grid-prog-time {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.grid-badge-live {
  font-size: 8px;
  font-weight: 900;
  background: var(--accent-red);
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
}

.grid-prog-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.grid-prog-cat {
  font-size: 10px;
  color: var(--text-subtle);
  margin-top: 1px;
}

/* Audio Preset Select */
.audio-preset-select {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #60a5fa !important;
  font-weight: 600 !important;
}

/* MOBİL VE TABLET UYUMU */
@media (max-width: 768px) {
  .player-epg-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .epg-bar-center {
    width: 100%;
    max-width: none;
  }
  .stats-overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .epg-sticky-ch-col {
    width: 140px;
    min-width: 140px;
    padding: 0 8px;
  }
  .epg-matrix-corner {
    width: 140px;
    min-width: 140px;
  }
}

/* ==========================================
   LÜKS RESELLER GİRİŞ & VIP ONBOARDING STİLLERİ
   ========================================== */
.reseller-onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 20px;
  animation: fadeInOverlay 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInOverlay {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.reseller-login-card {
  width: 100%;
  max-width: 460px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(229, 9, 20, 0.12);
  position: relative;
  overflow: hidden;
}

.reseller-login-card::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 100px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.reseller-brand-header {
  text-align: center;
  margin-bottom: 24px;
}

.reseller-logo-badge {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e50914 0%, #990000 100%);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 10px 25px rgba(229, 9, 20, 0.45);
}

.reseller-brand-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reseller-brand-title span {
  color: #e50914;
}

.badge-vip-tag {
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19 !important;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.reseller-brand-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin: 6px 0 0 0;
}

.reseller-login-form .form-group {
  margin-bottom: 16px;
}

.reseller-login-form .form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon > i {
  position: absolute;
  left: 14px;
  color: #64748b;
  font-size: 16px;
  pointer-events: none;
}

.input-with-icon .form-input {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 14.5px;
  outline: none;
  transition: all 0.25s ease;
}

.input-with-icon .form-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #e50914;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.btn-toggle-eye {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
  padding: 6px;
}

.btn-toggle-eye:hover {
  color: #fff;
}

.login-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 16px;
  font-size: 13px;
}

.remember-me-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.remember-me-label input[type="checkbox"] {
  accent-color: #e50914;
  width: 16px;
  height: 16px;
}

.btn-text-link {
  background: transparent;
  border: none;
  color: #60a5fa;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color 0.2s;
}

.btn-text-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.btn-reseller-login {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(229, 9, 20, 0.4);
  transition: all 0.25s ease;
}

.btn-reseller-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(229, 9, 20, 0.55);
}

.btn-reseller-guest {
  width: 100%;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  transition: all 0.2s;
}

.btn-reseller-guest:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.reseller-card-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #64748b;
}

/* Header VIP Rozet Stilleri */
.btn-vip-account {
  height: 36px !important;
  padding: 0 11px !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
  font-weight: 700 !important;
  gap: 6px !important;
  border-radius: var(--radius-full) !important;
  transition: all 0.25s ease !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.btn-vip-account:hover {
  background: rgba(245, 158, 11, 0.22) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3) !important;
}

.icon-vip {
  color: #f59e0b;
  font-size: 14px;
}

.badge-vip-days {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 10px !important;
  padding: 1px 6px !important;
  border-radius: 6px !important;
}

@media (max-width: 1300px) and (min-width: 769px) {
  .header-actions .btn-header:not(.btn-vip-account):not(.btn-add-stream) span:not(.pill-badge) {
    display: none;
  }
}

/* ==========================================================================
   MOBİL TAM EKRAN (FULLSCREEN), DİKEY & YATAY MOD SİNEMATİK GELİŞTİRMELERİ
   ========================================================================== */

/* 1. Mobilde Video Üzeri Hızlı Tam Ekran Butonu */
.btn-mobile-overlay-fs {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 65;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 10px rgba(230, 57, 70, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-mobile-overlay-fs:hover,
.btn-mobile-overlay-fs:focus {
  background: var(--accent-gradient);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(230, 57, 70, 0.5);
}

.btn-mobile-overlay-fs:active {
  transform: scale(0.92);
}

.btn-mobile-overlay-airplay {
  right: 58px !important;
  color: var(--neon-cyan) !important;
}

.btn-mobile-overlay-airplay:hover,
.btn-mobile-overlay-airplay:focus {
  background: rgba(0, 240, 255, 0.25) !important;
  border-color: rgba(0, 240, 255, 0.6) !important;
  box-shadow: 0 6px 22px rgba(0, 240, 255, 0.45) !important;
}

.is-fullscreen .btn-mobile-overlay-fs,
.is-fullscreen .btn-mobile-overlay-airplay,
.player-stage.is-mini-pip .btn-mobile-overlay-fs,
.player-stage.is-mini-pip .btn-mobile-overlay-airplay {
  display: none !important;
}

/* 2. Tam Ekran Sinematik Üst Kontrol Barı (Dikey & Yatay Uyumlu) */
.fullscreen-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 16px max(18px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.65) 60%, transparent 100%);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  pointer-events: auto;
}

.is-fullscreen .fullscreen-top-bar,
#playerStage.is-fullscreen .fullscreen-top-bar {
  display: flex !important;
}

.fullscreen-idle .fullscreen-top-bar,
#playerStage.fullscreen-idle .fullscreen-top-bar,
body.body-fullscreen-active.fullscreen-idle .fullscreen-top-bar {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-16px) !important;
  pointer-events: none !important;
}

.fs-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fs-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-fs-pill {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  color: #ffffff;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-fs-pill:hover,
.btn-fs-pill:focus {
  background: rgba(230, 57, 70, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.04);
}

.btn-fs-pill:active {
  transform: scale(0.94);
}

.fs-channel-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fs-channel-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230, 57, 70, 0.25);
  border: 1px solid rgba(230, 57, 70, 0.6);
  color: #ff4d5a;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.btn-fs-action {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-fs-action:hover,
.btn-fs-action:focus {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.btn-fs-action:active {
  transform: scale(0.95);
}

.btn-fs-action.active {
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.5);
}

.btn-fs-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  font-size: 15px;
}

/* AirPlay & Ekran Yansıtma Buton Stilleri */
.btn-header-airplay {
  color: var(--neon-cyan) !important;
  border-color: rgba(0, 240, 255, 0.4) !important;
  background: rgba(0, 240, 255, 0.08) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-header-airplay:hover,
.btn-header-airplay.airplay-available,
.btn-header-airplay:focus {
  color: #ffffff !important;
  background: rgba(0, 240, 255, 0.25) !important;
  border-color: rgba(0, 240, 255, 0.8) !important;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.5) !important;
  transform: translateY(-1px);
}

.btn-airplay {
  color: var(--neon-cyan) !important;
  border-color: rgba(0, 240, 255, 0.4) !important;
  background: rgba(0, 240, 255, 0.08) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-airplay:hover,
.btn-airplay.airplay-available,
.btn-airplay:focus {
  color: #ffffff !important;
  background: rgba(0, 240, 255, 0.28) !important;
  border-color: rgba(0, 240, 255, 0.8) !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.5) !important;
}

.btn-fs-airplay {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.35);
  color: var(--neon-cyan);
}

.btn-fs-airplay:hover {
  background: rgba(0, 240, 255, 0.25);
  border-color: rgba(0, 240, 255, 0.7);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.45);
  transform: scale(1.05);
}

/* 3. Dokunma / Jest Animasyon Rozeti (Gesture Feedback) */
.gesture-feedback-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 85;
  pointer-events: none;
  animation: gesturePop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gesture-feedback-pill {
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  color: #ffffff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(230, 57, 70, 0.4);
}

.gesture-feedback-pill i {
  font-size: 20px;
  color: var(--accent-red);
}

@keyframes gesturePop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
  75% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

/* 4. Sanal Yatay Mod (Virtual Landscape / Forced 90deg Rotation for Locked Phones) */
#playerStage.is-virtual-landscape {
  width: 100dvh !important;
  height: 100vw !important;
  max-width: 100dvh !important;
  max-height: 100vw !important;
  transform: rotate(90deg) translate(0, -100%) !important;
  transform-origin: top left !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 999999 !important;
  overflow: hidden !important;
  background: #000000 !important;
}

#playerStage.is-virtual-landscape #videoContainer,
#playerStage.is-virtual-landscape .video-container {
  width: 100dvh !important;
  height: 100vw !important;
  max-width: 100dvh !important;
  max-height: 100vw !important;
}

#playerStage.is-virtual-landscape .tv-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* 5. Dikey ve Yatay Tam Ekran Mobil İyileştirmeleri */
@media (max-width: 768px) {
  /* Dikey Tam Ekran */
  body.body-fullscreen-active #playerStage,
  #playerStage.is-fullscreen {
    width: 100vw !important;
    height: 100dvh !important;
    height: 100vh !important;
  }

  body.body-fullscreen-active .player-controls-bar,
  #playerStage.is-fullscreen .player-controls-bar {
    padding: 16px max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)) !important;
    gap: 8px !important;
  }

  body.body-fullscreen-active .channel-name-heading,
  #playerStage.is-fullscreen .channel-name-heading {
    font-size: 14px !important;
  }

  body.body-fullscreen-active .channel-desc-text,
  #playerStage.is-fullscreen .channel-desc-text {
    font-size: 11px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body.body-fullscreen-active .btn-dvr,
  #playerStage.is-fullscreen .btn-dvr {
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }

  body.body-fullscreen-active .btn-dvr-circle,
  #playerStage.is-fullscreen .btn-dvr-circle {
    width: 38px !important;
    height: 38px !important;
  }

  body.body-fullscreen-active .vod-progress-wrapper,
  #playerStage.is-fullscreen .vod-progress-wrapper {
    bottom: 92px !important;
    left: max(14px, env(safe-area-inset-left)) !important;
    right: max(14px, env(safe-area-inset-right)) !important;
  }
}

/* Yatay Mod Tam Ekran */
@media (orientation: landscape) and (max-height: 550px) {
  body.body-fullscreen-active .player-controls-bar,
  #playerStage.is-fullscreen .player-controls-bar {
    padding: 10px max(24px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)) !important;
    gap: 6px !important;
  }

  body.body-fullscreen-active .vod-progress-wrapper,
  #playerStage.is-fullscreen .vod-progress-wrapper {
    bottom: 74px !important;
    left: max(24px, env(safe-area-inset-left)) !important;
    right: max(24px, env(safe-area-inset-right)) !important;
  }

  body.body-fullscreen-active .fullscreen-top-bar,
  #playerStage.is-fullscreen .fullscreen-top-bar {
    padding: max(8px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 8px max(24px, env(safe-area-inset-left)) !important;
  }

  .fs-channel-title {
    font-size: 13.5px !important;
  }

  .btn-fs-pill,
  .btn-fs-action {
    padding: 4px 10px !important;
    font-size: 11.5px !important;
  }
}

/* =========================================================================
   YASAL BİLGİ & ALT FOOTER (LEGAL FOOTER)
   ========================================================================= */
.app-legal-footer {
  margin-top: 60px;
  padding: 34px 20px 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  background: rgba(8, 12, 22, 0.5);
  border-radius: 16px 16px 0 0;
}

.legal-footer-inner {
  max-width: 840px;
  margin: 0 auto;
}

.legal-brand .legal-logo {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
}

.legal-brand .legal-logo span {
  color: #e50914;
}

.legal-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
  margin-bottom: 14px;
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.legal-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legal-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.legal-links .sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

.legal-disclaimer {
  font-size: 0.73rem;
  color: rgba(148, 163, 184, 0.65);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================
   YASAL, GİZLİLİK & DMCA MODAL & TABS SİSTEMİ
   ========================================== */
.sidebar-legal-section {
  padding: 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: auto;
  background: rgba(10, 15, 25, 0.4);
}

.sidebar-legal-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.sidebar-legal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.sidebar-legal-item:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
}

.sidebar-legal-item i {
  font-size: 1rem;
  color: #38bdf8;
  flex-shrink: 0;
}

/* Header Aksiyonlarında Gizlilik & DMCA Butonu */
.btn-header-legal {
  background: rgba(56, 189, 248, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  color: #38bdf8 !important;
}

.btn-header-legal:hover {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

/* Mobil Kategori Şeridinde Yasal Butonu */
.mobile-pill-legal {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #38bdf8 !important;
  font-weight: 600 !important;
}

/* Legal Modal Kutusu */
.legal-modal-box {
  max-width: 620px;
  width: 92%;
  background: #0d121d;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.15);
  border-radius: 16px;
  overflow: hidden;
  animation: modalFadeIn 0.25s ease-out;
}

.legal-modal-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px 0 12px;
  gap: 6px;
  overflow-x: auto;
}

.legal-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.legal-tab-btn:hover {
  color: #e2e8f0;
}

.legal-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
  background: rgba(56, 189, 248, 0.06);
  border-radius: 8px 8px 0 0;
}

.legal-modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
  color: #cbd5e1;
}

.legal-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-tab-pane h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.legal-tab-pane p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

.legal-pane-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 0.5px;
}

.legal-alert-mini {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid #38bdf8;
  font-size: 0.83rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.legal-alert-mini strong {
  color: #38bdf8;
}

.btn-legal-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 11px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-legal-full:hover {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #0b0f19;
  transform: translateY(-1px);
}

.legal-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px dashed rgba(56, 189, 248, 0.3);
  text-align: center;
  margin-top: 8px;
}

.legal-email-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
  margin-top: 8px;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.legal-email-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}



