/* ========================================================
   FREE MATCH LIVE - STYLESHEET
   Ultra-Modern Sports Streaming OTT Interface
   ======================================================== */

:root {
  --bg-primary: #050811;
  --bg-secondary: #0b1122;
  --bg-tertiary: #111a33;
  --surface-card: rgba(16, 25, 48, 0.72);
  --surface-hover: rgba(26, 39, 74, 0.85);
  --surface-active: rgba(30, 58, 138, 0.5);
  
  --accent-blue: #0f62fe;
  --accent-cyan: #00d2ff;
  --accent-neon-green: #00f076;
  --accent-live-red: #ff2a44;
  --accent-gold: #ffb703;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 210, 255, 0.35);
  --border-active: #00d2ff;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --glass-blur: blur(16px);
  --shadow-main: 0 16px 36px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(15, 98, 254, 0.45);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse at 50% -10%, #15254d 0%, #050811 60%, #030408 100%),
    radial-gradient(circle at 100% 70%, rgba(15, 98, 254, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 0% 30%, rgba(0, 210, 255, 0.06) 0%, transparent 40%);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ========================================================
   LIVE MATCH SCORE TICKER
   ======================================================== */
.score-ticker-bar {
  background: rgba(8, 13, 26, 0.95);
  border-bottom: 1px solid var(--border-light);
  font-size: 11.5px;
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1010;
}
.ticker-label {
  background: linear-gradient(135deg, #e50914, #b90610);
  color: #fff;
  font-weight: 800;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}
.ticker-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulseLight 1s infinite;
}
.ticker-content-track {
  display: flex;
  white-space: nowrap;
  animation: tickerSlide 45s linear infinite;
  gap: 24px;
  padding-left: 20px;
}
.score-ticker-bar:hover .ticker-content-track {
  animation-play-state: paused;
}
.ticker-match-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}
.ticker-match-item .match-teams {
  color: #fff;
  font-weight: 700;
}
.ticker-match-item .match-score {
  color: var(--accent-cyan);
  font-weight: 800;
}
.ticker-match-item .match-status {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9.5px;
  color: var(--accent-gold);
}
.ticker-sep {
  color: var(--border-light);
  margin-left: 10px;
}
@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================================
   NAVIGATION HEADER
   ======================================================== */
header.app-header {
  height: 60px;
  background: rgba(6, 10, 22, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
  gap: 15px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}
.brand-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
  color: #fff;
}
.brand-text-block {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: 'Space Grotesk', 'Bebas Neue', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-title span {
  color: var(--accent-cyan);
}
.brand-tagline {
  font-size: 9.5px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-center-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-stream-badge {
  background: linear-gradient(135deg, var(--accent-live-red), #b90610);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 12px rgba(255, 42, 68, 0.6);
}
.viewers-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}
.header-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.header-btn.telegram-btn {
  background: linear-gradient(135deg, #0088cc, #0072b2);
  border-color: #0088cc;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35);
  color: #fff;
}
.header-btn.telegram-btn:hover {
  filter: brightness(1.1);
}

/* ========================================================
   MAIN LAYOUT CONTAINER
   ======================================================== */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 20px 40px;
}

/* ========================================================
   STREAM STAGE & VIDEO PLAYER
   ======================================================== */
.stream-stage-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
}

/* Ambient Backlight Glow */
.ambient-glow {
  position: absolute;
  top: 10%;
  left: 5%;
  right: 5%;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(15, 98, 254, 0.35) 0%, rgba(0, 210, 255, 0.15) 50%, transparent 80%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.5s ease;
}

.player-stage {
  position: relative;
  z-index: 2;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-main);
  transition: all 0.3s ease;
}

.video-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: #020307;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#main-player {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
}

/* Loading Overlay for Player */
.player-loader {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 17, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 4;
  transition: opacity 0.3s ease;
}
.player-loader.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.spinner-ring {
  width: 48px;
  height: 48px;
  border: 3.5px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loader-channel-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.loader-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Theater Mode Styles */
body.theater-mode .stream-stage-wrapper {
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 0 10px;
}
body.theater-mode .player-stage {
  border-radius: 8px;
  max-height: 82vh;
}
body.theater-mode .video-container {
  max-height: 82vh;
}

/* ========================================================
   CHANNEL META BAR & QUICK CONTROLS
   ======================================================== */
.stream-meta-box {
  background: var(--surface-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.channel-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-neon-green);
  box-shadow: 0 0 10px var(--accent-neon-green);
  animation: pulseDot 1.2s infinite;
}
.channel-text-details {
  display: flex;
  flex-direction: column;
}
.current-channel-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}
.verified-icon {
  color: var(--accent-cyan);
  font-size: 18px;
  vertical-align: middle;
}
.channel-sub-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.badge-tag {
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--accent-cyan);
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.player-controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.control-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.control-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.control-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(15, 98, 254, 0.5);
}
.control-btn.favorite-btn.is-fav {
  color: #ffb703;
  border-color: #ffb703;
  background: rgba(255, 183, 3, 0.12);
}

/* ========================================================
   VIP COMMUNITY ANNOUNCEMENT STRIP
   ======================================================== */
.vip-telegram-banner {
  background: linear-gradient(90deg, rgba(15, 98, 254, 0.15) 0%, rgba(0, 210, 255, 0.15) 50%, rgba(15, 98, 254, 0.1) 100%);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}
.vip-telegram-banner:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
  transform: translateY(-1px);
}
.vip-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vip-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0088cc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 136, 204, 0.6);
  flex-shrink: 0;
}
.vip-banner-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.vip-banner-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.vip-banner-sub {
  font-size: 11px;
  color: var(--text-secondary);
}
.vip-banner-badge {
  background: linear-gradient(135deg, #0088cc, #00d2ff);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(0, 136, 204, 0.4);
  white-space: nowrap;
}

/* ========================================================
   CHANNEL BROWSER & NAVIGATION CONTROLS
   ======================================================== */
.channels-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}
.channel-counter-chip {
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
}

/* Search and Filters */
.search-filter-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
  max-width: 480px;
}
.search-box-wrapper {
  position: relative;
  width: 100%;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: rgba(14, 22, 42, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 38px;
  color: #fff;
  font-size: 12.5px;
  font-family: inherit;
  transition: var(--transition-fast);
}
.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.25);
  background: rgba(18, 30, 58, 0.95);
}
.search-input::placeholder {
  color: var(--text-muted);
}
.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  font-size: 14px;
}

/* Category Tabs Strip */
.category-tabs-wrapper {
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.category-tabs-wrapper::-webkit-scrollbar {
  display: none;
}
.category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
}
.cat-tab-btn {
  background: rgba(16, 24, 48, 0.6);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.cat-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.cat-tab-btn.active {
  background: linear-gradient(135deg, var(--accent-blue), #0b4bcc);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 4px 15px rgba(15, 98, 254, 0.4);
}
.cat-tab-badge {
  font-size: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

/* Language Filter Chips */
.language-chips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.language-chips-row::-webkit-scrollbar {
  display: none;
}
.lang-chip {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.lang-chip:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}
.lang-chip.active {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 700;
}

/* ========================================================
   CHANNELS GRID
   ======================================================== */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.channel-card {
  background: var(--surface-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  overflow: hidden;
}
.channel-card:hover {
  background: var(--surface-hover);
  border-color: rgba(0, 210, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.channel-card.active-channel {
  background: linear-gradient(135deg, rgba(15, 98, 254, 0.25), rgba(0, 210, 255, 0.15));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.35);
}
.channel-card.active-channel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.card-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-cyan);
  transition: var(--transition-fast);
}
.channel-card:hover .card-icon-wrap {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}
.channel-card.active-channel .card-icon-wrap {
  background: var(--accent-cyan);
  color: #050811;
  border-color: var(--accent-cyan);
}

.card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.card-tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
  color: var(--text-secondary);
}

.card-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.fav-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.fav-toggle-btn:hover {
  color: #ffb703;
}
.fav-toggle-btn.is-fav {
  color: #ffb703;
}

/* Soundwave Equalizer for Active Channel */
.equalizer-anim {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.channel-card.active-channel .equalizer-anim {
  display: flex;
}
.eq-bar {
  width: 2.5px;
  background: var(--accent-cyan);
  border-radius: 1px;
  animation: eqBounce 0.8s ease-in-out infinite alternate;
}
.eq-bar:nth-child(2) { animation-delay: 0.2s; }
.eq-bar:nth-child(3) { animation-delay: 0.4s; }
@keyframes eqBounce {
  0% { height: 4px; }
  100% { height: 14px; }
}

/* Empty search state */
.empty-channels-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: rgba(16, 24, 48, 0.4);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
}
.empty-icon {
  font-size: 40px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ========================================================
   EXTRA FEATURES / SHORTCUTS BAR
   ======================================================== */
.features-grid-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.feature-box {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 14px;
}
.feature-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-content h4 {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.feature-content p {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ========================================================
   FOOTER
   ======================================================== */
footer.app-footer {
  border-top: 1px solid var(--border-light);
  padding: 24px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(5, 8, 17, 0.95);
  margin-top: 40px;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}
.footer-link:hover {
  color: var(--accent-cyan);
}
.footer-disclaimer {
  font-size: 11px;
  max-width: 700px;
  margin: 8px auto 0;
  line-height: 1.5;
}

/* ========================================================
   MODALS & POPUPS
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  padding: 16px;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #0d152b;
  background-image: radial-gradient(circle at 50% 0%, #1e3366 0%, #0d152b 75%);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(15, 98, 254, 0.25);
  transform: scale(0.92);
  transition: var(--transition-smooth);
}
.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.modal-icon-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088cc, #00d2ff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(0, 136, 204, 0.5);
}
.modal-icon-badge svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.modal-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}
.modal-title span {
  color: var(--accent-cyan);
}
.modal-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-primary-btn {
  background: linear-gradient(135deg, #0088cc, #006699);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  padding: 12px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}
.modal-primary-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.modal-secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}
.modal-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Settings Modal Form */
.settings-form {
  text-align: left;
}
.form-group {
  margin-bottom: 14px;
}
.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.form-input {
  width: 100%;
  background: rgba(14, 22, 42, 0.9);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
}
.form-input:focus {
  border-color: var(--accent-cyan);
  outline: none;
}

/* ========================================================
   TOAST NOTIFICATIONS
   ======================================================== */
.app-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(12, 19, 39, 0.95);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 210, 255, 0.25);
  z-index: 99999;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}
.app-toast.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ========================================================
   KEYFRAME ANIMATIONS
   ======================================================== */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.5; }
}
@keyframes pulseLight {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ========================================================
   RESPONSIVE DESIGN (MOBILE & TABLETS)
   ======================================================== */
@media (max-width: 900px) {
  .app-header {
    padding: 0 14px;
  }
  .app-container {
    padding: 12px 14px 30px;
  }
  .header-center-info {
    display: none;
  }
  .channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
  }
  .channel-card {
    padding: 10px 12px;
  }
  .card-name {
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  header.app-header {
    height: 54px;
  }
  .brand-title {
    font-size: 17px;
  }
  .brand-tagline {
    display: none;
  }
  .header-btn span {
    display: none;
  }
  .header-btn {
    padding: 0 8px;
  }
  .stream-meta-box {
    padding: 10px 12px;
  }
  .current-channel-title {
    font-size: 15px;
  }
  .player-controls-row {
    width: 100%;
    justify-content: space-between;
  }
  .control-btn span {
    display: none;
  }
  .control-btn {
    padding: 7px 10px;
  }
  .search-filter-container {
    max-width: 100%;
  }
  .channels-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .app-toast {
    left: 14px;
    right: 14px;
    bottom: 16px;
    justify-content: center;
  }
}
/* ========================================================
   MULTIVIEW SPLIT SCREEN (DUAL MATCH)
   ======================================================== */
.player-stage.multiview-active {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.player-stage.multiview-active .player-box {
  flex: 1 1 50%;
  min-width: 320px;
  position: relative;
}
.player-stage.multiview-active .player-box.secondary-box {
  display: block !important;
  border-left: 1px solid var(--border-light);
}
.multiview-header {
  background: rgba(11, 17, 34, 0.95);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}
.multi-select-dropdown {
  background: rgba(16, 24, 48, 0.85);
  border: 1px solid var(--border-light);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 11px;
  font-family: inherit;
  outline: none;
  max-width: 220px;
}
.close-multiview-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}
.close-multiview-btn:hover {
  color: #fff;
}

/* Native HLS Video Element */
.native-hls-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
}

/* ========================================================
   LIVE MATCH REACTIONS BAR
   ======================================================== */
.live-reactions-bar {
  background: rgba(10, 16, 32, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.live-reactions-bar::-webkit-scrollbar {
  display: none;
}
.reaction-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.emoji-buttons-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reaction-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.reaction-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent-cyan);
  transform: translateY(-2px) scale(1.05);
}
.reaction-pill:active {
  transform: scale(0.95);
}

/* Floating Reactions Particle Animation */
.reactions-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999999;
  overflow: hidden;
}
.floating-reaction {
  position: absolute;
  bottom: 80px;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  animation: floatUp 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 1;
}
@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translateY(-40px) scale(1.2) rotate(-5deg);
  }
  80% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-420px) scale(1) rotate(15deg);
    opacity: 0;
  }
}

/* ========================================================
   API MODAL & DEVELOPER TOOLS
   ======================================================== */
.api-badge-btn {
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.3);
  color: var(--accent-cyan);
}
.api-badge-btn:hover {
  background: rgba(0, 210, 255, 0.22);
}
.api-links-list {
  text-align: left;
}
.api-item {
  margin-bottom: 12px;
}
.api-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.api-copy-box {
  display: flex;
  align-items: center;
  gap: 6px;
}
.api-url-input {
  flex-grow: 1;
  background: rgba(14, 22, 42, 0.9);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  color: var(--accent-cyan);
  font-family: monospace;
  font-size: 11.5px;
}
.api-copy-btn {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}
.api-copy-btn:hover {
  background: #0b4bcc;
}
