:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #121722;
  --bg-card: rgba(23, 29, 43, 0.75);
  --bg-card-hover: rgba(33, 42, 62, 0.9);
  --bg-card-active: rgba(0, 210, 255, 0.12);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #00d2ff;
  
  --accent-cyan: #00d2ff;
  --accent-blue: #3a7bd5;
  --accent-gold: #ffb703;
  --accent-red: #ff3366;
  --accent-green: #00f076;
  
  --text-main: #f0f4f8;
  --text-muted: #8b9bb4;
  --text-dim: #5c6b84;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(0, 210, 255, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  user-select: none;
}

body.dark-theme {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 210, 255, 0.5);
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  z-index: 100;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
}

.brand-info h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}

.brand-info h1 span {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(0, 210, 255, 0.6);
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Search Bar */
.search-wrapper {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-wrapper input {
  width: 100%;
  padding: 10px 38px 10px 42px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s ease;
}

.search-wrapper input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-focus);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.btn-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  display: none;
}

.btn-clear:hover {
  color: #fff;
}

/* Header Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-action.btn-primary {
  background: linear-gradient(135deg, #00d2ff, #3a7bd5);
  border: none;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-action.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.5);
}

/* Main Layout */
.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 85px);
}

/* Player Section (Left Side - Expanded) */
.player-section {
  flex: 1 1 65%;
  min-width: 420px;
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  background: radial-gradient(circle at top left, #141b2a, var(--bg-primary));
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  gap: 10px;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#videoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Live Badge */
.live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 51, 102, 0.85);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fff;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(255, 51, 102, 0.4);
  z-index: 10;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Overlay and Spinners */
.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 15;
  transition: opacity 0.3s;
}

.buffering-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.buffering-spinner p {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
}

.error-notice {
  text-align: center;
  max-width: 80%;
  padding: 24px;
  background: rgba(20, 25, 38, 0.95);
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.error-icon {
  font-size: 38px;
  display: block;
  margin-bottom: 8px;
}

.error-notice h3 {
  color: var(--accent-red);
  margin-bottom: 6px;
}

.error-notice p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.error-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-pill {
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-pill:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-pill.btn-accent {
  background: linear-gradient(135deg, #00d2ff, #3a7bd5);
  border: none;
}

/* Floating Controls */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .player-controls {
  opacity: 1;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ctrl {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.2s;
}

.btn-ctrl:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.1);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

#volumeSlider {
  width: 75px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.now-playing-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

#npChannelName {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.mini-city-tag {
  font-size: 0.72rem;
  background: rgba(0, 210, 255, 0.2);
  color: var(--accent-cyan);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

.stream-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.proxy-badge {
  background: rgba(0, 240, 118, 0.2);
  color: var(--accent-green);
  border: 1px solid rgba(0, 240, 118, 0.3);
  cursor: pointer;
}

/* ===================================================
   Channel Detail Panel (Ultra-Kompakt, Video Ekranını Büyüten Tasarım)
=================================================== */
.channel-detail-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.channel-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.channel-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-logo-wrap {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.info-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.channel-title-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.title-with-fav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-with-fav h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
}

.btn-star-large {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  filter: grayscale(1);
  transition: all 0.2s;
  padding: 1px;
}

.btn-star-large.active {
  filter: grayscale(0) drop-shadow(0 0 8px var(--accent-gold));
  transform: scale(1.1);
}

.info-meta-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.badge-cat {
  background: rgba(58, 123, 213, 0.2);
  color: #70a1ff;
  border: 1px solid rgba(58, 123, 213, 0.3);
}

.badge-city {
  background: rgba(255, 183, 3, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.3);
}

.badge-region {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.badge-status {
  background: rgba(0, 240, 118, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 240, 118, 0.3);
}

.header-right-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-clock-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: 16px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* ===================================================
   Kanal Adının Altında Yan Yana Bölüm (Side-by-Side)
=================================================== */
.channel-side-by-side {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10px;
}

.side-column {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.col-icon {
  font-size: 13px;
  margin-right: 5px;
}

.side-col-header h4 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: inline-block;
}

.side-info-card .info-description {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.channel-quick-props {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 5px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.prop-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
}

.prop-label {
  color: var(--text-dim);
}

.prop-val {
  font-weight: 700;
  color: var(--text-main);
}

/* Channels Section (Right Side) */
.channels-section {
  flex: 0 0 35%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  overflow: hidden;
}

/* Categories Bar */
.categories-bar {
  display: flex;
  gap: 8px;
  padding: 14px 18px 8px 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.categories-bar::-webkit-scrollbar {
  height: 4px;
}

.cat-pill {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cat-pill.active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.25), rgba(58, 123, 213, 0.3));
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
}

.cat-pill.cat-featured {
  border-color: rgba(255, 183, 3, 0.4);
}

.cat-pill.cat-featured.active {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.25), rgba(255, 120, 0, 0.3));
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.3);
}

.count-tag {
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 10px;
  color: var(--text-dim);
}

.cat-pill.active .count-tag {
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
}

/* City Filter Container */
.city-filter-container {
  display: none;
  background: rgba(10, 14, 22, 0.6);
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.city-filter-container.active {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.city-filter-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.city-chips-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.city-chips-scroll::-webkit-scrollbar {
  height: 3px;
}

.btn-city {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-city:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-city.active {
  background: var(--accent-gold);
  color: #000;
  font-weight: 700;
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.4);
}

/* Status Row */
.channels-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-toggle.active {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
}

/* Channels Grid */
.channels-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Horizontal Row Card - ZERO OVERLAP */
.channel-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 64px;
  overflow: hidden;
}

.channel-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 210, 255, 0.4);
  transform: translateX(3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.channel-card.active {
  background: var(--bg-card-active);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.3);
}

/* Left part: Number & Logo */
.card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.card-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 7px;
  border-radius: 4px;
  min-width: 32px;
  text-align: center;
}

.card-logo-wrap {
  width: 46px;
  height: 46px;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.card-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Center part: Name & Badges */
.card-center {
  flex: 1;
  min-width: 0; /* Prevents text overflow */
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.tag-city {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid rgba(255, 183, 3, 0.3);
  padding: 1px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.tag-cat {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Right part: Equalizer & Favorite */
.card-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.playing-equalizer {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  padding-right: 4px;
}

.channel-card.active .playing-equalizer {
  display: flex;
}

.eq-bar {
  width: 3px;
  background: var(--accent-cyan);
  border-radius: 1px;
  animation: equalize 0.8s infinite ease-in-out alternate;
}
.eq-bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 40%; animation-delay: 0.2s; }

.btn-fav {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  filter: grayscale(1);
  opacity: 0.4;
  transition: all 0.2s;
  padding: 4px;
}

.btn-fav:hover, .btn-fav.active {
  filter: grayscale(0) drop-shadow(0 0 6px var(--accent-gold));
  opacity: 1;
  transform: scale(1.2);
}

@keyframes equalize {
  from { height: 20%; }
  to { height: 100%; }
}

/* Footer */
.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.app-footer code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--text-main);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.2s;
}

.modal-dialog {
  width: 90%;
  max-width: 500px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.1rem;
  color: #fff;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
}

.btn-close-modal:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-group input, .form-group select {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--border-focus);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
}

/* Channels Header Title */
.channels-header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 10px 20px;
  background: rgba(18, 23, 34, 0.95);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  font-size: 20px;
}

.channels-header-title h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fff;
}

.channels-badge-total {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

/* Responsive Media Queries for Laptops and Small Screens */
@media (max-width: 1100px) {
  .app-container {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }
  .main-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  .player-section {
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .channels-section {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 550px;
  }
  .channels-grid {
    max-height: 650px;
  }
}

/* ===================================================
   EPG (Yayın Akışı) Card Styles
=================================================== */
.epg-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  margin-top: 4px;
}

.epg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.epg-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.epg-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.5));
}

.epg-title h4 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.epg-subtitle {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.epg-live-clock {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.clock-icon {
  font-size: 13px;
}

/* Now Playing Banner (Kompakt) */
.epg-now-playing {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.08), rgba(58, 123, 213, 0.06));
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  overflow: hidden;
}

.epg-np-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: pulseLive 1.4s infinite;
  box-shadow: 0 0 6px var(--accent-red);
}

.epg-np-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--accent-red);
}

.epg-time-range {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 6px;
  border-radius: 3px;
}

.epg-np-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epg-np-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Live Progress Bar */
.epg-progress-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}

.epg-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00d2ff, #3a7bd5);
  border-radius: 2px;
  transition: width 0.5s ease;
  box-shadow: 0 0 6px rgba(0, 210, 255, 0.6);
}

.epg-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-dim);
}

.epg-remaining {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Sırada Ne Var */
.epg-next-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.74rem;
}

.next-tag {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(255, 183, 3, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
}

.next-time {
  font-weight: 700;
  color: #fff;
  font-size: 0.72rem;
}

.next-title {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-size: 0.74rem;
}

/* Accordion for Full Schedule */
.epg-accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-toggle-schedule {
  width: 100%;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  color: var(--text-main);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.btn-toggle-schedule:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.3);
}

.toggle-arrow {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.btn-toggle-schedule.active .toggle-arrow {
  transform: rotate(180deg);
}

.epg-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 250px;
  overflow-y: auto;
  padding: 6px 0;
}

.epg-schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.epg-schedule-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.epg-schedule-item.item-active {
  background: rgba(0, 210, 255, 0.1);
  border-left-color: var(--accent-cyan);
}

.epg-schedule-item.item-past {
  opacity: 0.55;
}

.epg-item-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  min-width: 48px;
}

.epg-schedule-item.item-past .epg-item-time {
  color: var(--text-dim);
}

.epg-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.epg-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.epg-item-type {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.epg-item-live-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--accent-red);
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: auto;
}


