/* ==========================================================================
   CANLI TV İZLE - TV THEME & PREMIUM DARK DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #101622;
  --bg-card: rgba(22, 29, 43, 0.7);
  --bg-card-hover: rgba(30, 41, 62, 0.9);
  --bg-glass: rgba(16, 22, 34, 0.85);
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.35);
  
  --accent: #ef4444;
  --accent-glow: rgba(239, 68, 68, 0.4);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(59, 130, 246, 0.5);
  
  --tv-bezel: #1a1e29;
  --tv-stand: #0f121a;
  --shadow-tv: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(59, 130, 246, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(147, 51, 234, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px var(--accent-glow);
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.logo-text span {
  color: #3b82f6;
  font-weight: 900;
}

/* Search bar */
.search-wrapper {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-sub);
  font-size: 0.95rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  max-height: 380px;
  overflow-y: auto;
  display: none;
  z-index: 150;
}

.search-dropdown.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}

.search-result-item:hover {
  background: rgba(59, 130, 246, 0.12);
}

.search-result-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
}

/* Header buttons & nav */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #ef4444;
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.btn-header {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
}

.btn-header:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   CATEGORY BAR
   ========================================================================== */
.categories-nav {
  background: rgba(16, 22, 34, 0.6);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

.categories-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  gap: 0.5rem;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: var(--transition);
}

.cat-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.cat-tab.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.3) 100%);
  border-color: var(--border-active);
  color: #fff;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

.cat-tab i {
  font-size: 0.9rem;
}

/* ==========================================================================
   MAIN LAYOUT & 3-COLUMN AD CONTAINER (LEFT DİKEY - CONTENT - SAĞ DİKEY)
   ========================================================================== */
.main-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.side-ad-col {
  width: 160px;
  min-width: 160px;
  position: sticky;
  top: 90px;
  height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.side-ad-col.left-ad {
  order: 1;
}

.side-ad-col.right-ad {
  order: 3;
}

.center-content-col {
  flex: 1;
  min-width: 0;
  order: 2;
}

@media (max-width: 1200px) {
  .side-ad-col {
    display: none;
  }
}

/* ==========================================================================
   AD SLOTS & PLACEHOLDERS
   ========================================================================== */
.ad-slot {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.ad-placeholder-box {
  background: rgba(22, 29, 43, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  color: var(--text-sub);
  position: relative;
  transition: var(--transition);
}

.ad-placeholder-box:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(22, 29, 43, 0.6);
}

.ad-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.ad-content-inner {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.banner-728x90 {
  width: 728px;
  max-width: 100%;
  min-height: 90px;
}

.banner-468x60 {
  width: 468px;
  max-width: 100%;
  min-height: 60px;
}

.banner-160x600 {
  width: 160px;
  height: 600px;
}

.banner-player-top, .banner-player-bottom {
  width: 100%;
  min-height: 70px;
}

/* ==========================================================================
   HERO / TV BANNER & SEO H1 SECTION
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, rgba(22, 29, 43, 0.7) 0%, rgba(16, 22, 34, 0.4) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
  color: #fff;
  line-height: 1.3;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 850px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.stat-icon {
  width: 38px;
  height: 38px;
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.stat-text strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
}

.stat-text span {
  font-size: 0.75rem;
  color: var(--text-sub);
}

/* ==========================================================================
   FEATURED CHANNELS CAROUSEL / REMOTE BAR
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
}

.section-title i {
  color: #3b82f6;
}

.section-badge {
  font-size: 0.75rem;
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-weight: 600;
}

.featured-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.featured-card {
  flex: 0 0 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.2);
}

.featured-logo-wrap {
  width: 80px;
  height: 80px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
}

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

.featured-card .channel-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.featured-card .channel-cat {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.featured-play-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  opacity: 0;
  transform: scale(0.7);
  transition: var(--transition);
}

.featured-card:hover .featured-play-badge {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   CHANNEL GRID (ALL CHANNELS)
   ========================================================================== */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.15rem;
  margin-bottom: 2.5rem;
}

.channel-grid-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: var(--transition);
  text-decoration: none;
}

.channel-grid-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(59, 130, 246, 0.2);
}

.channel-logo-container {
  width: 70px;
  height: 70px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

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

.channel-title-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.channel-meta-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-sub);
}

.quality-pill {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

/* ==========================================================================
   TV PLAYER EXPERIENCE (WATCH PAGE)
   ========================================================================== */
.player-page-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tv-bezel-frame {
  background: var(--tv-bezel);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: var(--shadow-tv);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  transition: var(--transition);
}

.tv-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.8rem 0.8rem 0.8rem;
}

.tv-brand {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-sub);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tv-led-indicator {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: ledPulse 2s infinite;
}

@keyframes ledPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.tv-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tv-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.tv-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.tv-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Video Container */
.video-screen-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.video-screen-wrapper video,
.video-screen-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* Player Overlay Overlay Elements */
.player-channel-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.3s;
}

.player-channel-overlay img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
}

.player-channel-overlay .ch-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.player-channel-overlay .ch-live {
  color: #ef4444;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
}

/* Player Error / Loading state */
.player-state-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 13, 20, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 20;
  text-align: center;
  padding: 2rem;
}

.player-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

/* Cinema Mode (Lights Off) */
body.cinema-mode {
  background: #020408 !important;
}

body.cinema-mode .site-header,
body.cinema-mode .side-ad-col,
body.cinema-mode .site-footer,
body.cinema-mode .categories-nav,
body.cinema-mode .channel-details-card,
body.cinema-mode .other-channels-section,
body.cinema-mode .ad-slot {
  opacity: 0.08;
  pointer-events: none;
  filter: blur(2px);
  transition: all 0.4s ease;
}

body.cinema-mode .tv-bezel-frame {
  box-shadow: 0 0 100px rgba(59, 130, 246, 0.4);
  transform: scale(1.02);
  z-index: 999;
}

/* Stand under TV */
.tv-stand-base {
  width: 220px;
  height: 12px;
  background: linear-gradient(180deg, #2a3142 0%, #151922 100%);
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
}

/* Channel Details & Controls */
.channel-details-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.ch-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.ch-left-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.ch-large-logo {
  width: 72px;
  height: 72px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

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

.ch-info-texts h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.ch-tags-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ch-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.ch-tag.badge-category {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Share & Action buttons */
.ch-actions-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-share {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-share.whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.btn-share.twitter:hover {
  background: #1da1f2;
  border-color: #1da1f2;
  color: #fff;
}

/* EPG / Yayın Akışı Box */
.epg-box {
  background: rgba(16, 22, 34, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.epg-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.epg-header i {
  color: #eab308;
}

.epg-content {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SEO CONTENT BOX (HOMEPAGE & CHANNELS)
   ========================================================================== */
.seo-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  line-height: 1.8;
}

.seo-content-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
}

.seo-content-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 1.25rem 0 0.5rem 0;
}

.seo-content-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.seo-content-card ul {
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.seo-content-card li {
  margin-bottom: 0.35rem;
}

/* Keywords Cloud */
.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.kw-badge {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  color: var(--text-sub);
  transition: var(--transition);
}

.kw-badge:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem 2rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.85rem;
  line-height: 1.6;
  max-width: 400px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: #3b82f6;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  color: var(--text-sub);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  .search-wrapper {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 0.5rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }
  .ch-meta-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .tv-bezel-frame {
    padding: 0.5rem;
    border-radius: var(--radius-md);
  }
}
