/* ═══════════════════════════════════════
   SportLive — app.css
   Bootstrap 5 dark theme + custom styles
═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Cairo:wght@400;600&family=Outfit:wght@300;400;500&display=swap');

:root {
  --bg: #0a0c10;
  --bg2: #12151d;
  --bg3: #1a1e2a;
  --bg4: #222736;
  --bg5: #2a2f42;
  --accent: #f59e0b;
  --accentd: #b45309;
  --text: #e2e8f0;
  --muted: #64748b;
  --border: #1e2436;
  --green: #10b981;
  --red: #ef4444;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
}

[dir="rtl"] {
  font-family: 'Cairo', sans-serif;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* ── Bootstrap overrides ── */
.navbar {
  background: var(--bg2) !important;
  border-bottom: 1px solid var(--border);
}

.nav-link {
  color: var(--muted) !important;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .4px;
  transition: color .2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
}

.navbar-toggler {
  border-color: var(--border);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
}

.card-header {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.modal-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
}

.modal-header {
  border-bottom: 1px solid var(--border);
}

.modal-footer {
  border-top: 1px solid var(--border);
}

.form-control,
.form-select {
  background: var(--bg3);
  border-color: var(--border);
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  background: var(--bg3);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .15);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accentd);
  border-color: var(--accentd);
  color: #000;
}

.btn-outline-secondary {
  border-color: var(--border);
  color: var(--muted);
}

.btn-outline-secondary:hover {
  background: var(--bg3);
  color: var(--text);
  border-color: var(--border);
}

.table {
  --bs-table-bg: var(--bg2);
  --bs-table-border-color: var(--border);
  color: var(--text);
}

.table-hover>tbody>tr:hover {
  --bs-table-bg: var(--bg3);
}

.dropdown-menu {
  background: var(--bg2);
  border-color: var(--border);
}

.dropdown-item {
  color: var(--text);
}

.dropdown-item:hover {
  background: var(--bg3);
}

.badge {
  font-weight: 500;
}

.alert {
  border: none;
}

/* ── Logo ── */
.sl-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
}

.sl-logo span.dimmed {
  color: var(--text);
}

.logo-pulse {
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 1.2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, .5)
  }

  50% {
    opacity: .4;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0)
  }
}

/* ── Section tabs (Today/Tomorrow/Yesterday) ── */
.day-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.day-tab {
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}

.day-tab.active,
.day-tab:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
}

/* ── Match card ── */
.match-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}

.match-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
  color: inherit;
}

.match-card-teams {
  flex: 1;
  min-width: 0;
}

.match-teams-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.team-lbl {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-vs {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  color: var(--muted);
}

.match-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.match-time-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  min-width: 50px;
  text-align: center;
}

.match-arrow {
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Status badges ── */
.badge-live {
  background: rgba(239, 68, 68, .15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, .3);
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-live::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.2s infinite;
}

.badge-scheduled {
  background: rgba(245, 158, 11, .1);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, .2);
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
}

.badge-finished {
  background: rgba(100, 116, 139, .1);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10px;
}

/* ── No matches ── */
.no-matches {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.no-matches i {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  opacity: .4;
}

/* ── Notification banner ── */
.notif-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, .12), rgba(245, 158, 11, .05));
  border: 1px solid rgba(245, 158, 11, .2);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.notif-banner i {
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
}

.notif-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--text);
}

.notif-banner .btn {
  flex-shrink: 0;
}

/* ── MATCH PAGE ── */
.match-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px;
}
.match-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 12px;
  align-items: start;
}


@media(max-width: 860px) {
  .match-layout {
    grid-template-columns: 1fr;
  }
}

/* channel lang bar */
.ch-lang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.ch-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.ch-pill {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  transition: all .15s;
  font-family: 'Outfit', sans-serif;
}

.ch-pill.active,
.ch-pill:hover {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  color: var(--red);
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
}

.live-dot {
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.2s infinite;
}

/* match bar */
.match-bar {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  padding: 11px 16px;
}

.match-teams-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team-block {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.team-block.right {
  flex-direction: row-reverse;
}

.team-flag {
  font-size: 24px;
  flex-shrink: 0;
}

.team-name {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 10px;
  flex-shrink: 0;
}

.match-center .vs {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--muted);
}

.match-center .comp {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: .5px;
  white-space: nowrap;
}

@media(max-width: 400px) {
  .team-name {
    font-size: 12px;
  }

  .team-flag {
    font-size: 18px;
  }
}

/* video */
.video-wrap {
  background: #000;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

#hls-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: cover;
}

.vid-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0, 0, 0, .78);
  transition: opacity .3s;
}

.vid-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-ring {
  width: 44px;
  height: 44px;
  border: 3px solid var(--bg4);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: none;
}

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

.big-play {
  width: 70px;
  height: 70px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, .4);
}

.big-play:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 14px rgba(245, 158, 11, .15);
}

.big-play i {
  font-size: 30px;
  color: #000;
  margin-left: 5px;
}

.stream-status {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.9;
}

/* FABs */
.fab-group {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 7px;
  z-index: 20;
}

.fab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border: none;
  transition: transform .18s, box-shadow .2s, background .18s, color .18s;
  letter-spacing: .3px;
  white-space: nowrap;
}

.fab:hover {
  transform: translateY(-2px);
}

.fab:active {
  transform: scale(.95);
}

.fab i {
  font-size: 15px;
  flex-shrink: 0;
}

.fab-pip {
  background: rgba(245, 158, 11, .12);
  color: var(--accent);
  border: 1.5px solid rgba(245, 158, 11, .45);
  backdrop-filter: blur(10px);
}

.fab-pip:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 6px 24px rgba(245, 158, 11, .4);
}

.fab-fs {
  background: rgba(255, 255, 255, .07);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px);
}

.fab-fs:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 6px 20px rgba(255, 255, 255, .15);
}

.fab-share {
  background: rgba(59, 130, 246, .12);
  color: #3b82f6;
  border: 1.5px solid rgba(59, 130, 246, .35);
  backdrop-filter: blur(10px);
}

.fab-share:hover {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 6px 24px rgba(59, 130, 246, .35);
}

@media(max-width: 480px) {
  .fab span {
    display: none;
  }

  .fab {
    padding: 8px 9px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
    gap: 0;
  }

  .fab-group {
    gap: 6px;
    top: 8px;
    right: 8px;
  }
}

/* controls */
.ctrl-bar {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accentd);
  border-radius: 0 0 8px 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cb {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
  transition: color .2s;
  display: flex;
  align-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.cb:hover {
  color: var(--accent);
}

.pbar {
  flex: 1;
  height: 4px;
  background: var(--bg4);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.pbuff {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--bg5);
  border-radius: 2px;
  width: 0%;
}

.pfill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accentd), var(--accent));
  border-radius: 2px;
  width: 0%;
  transition: width .4s linear;
}

.timetxt {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.vol-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

input[type=range].vslider {
  width: 56px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg4);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type=range].vslider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}

@media(max-width: 480px) {
  input[type=range].vslider {
    width: 36px;
  }

  .timetxt {
    display: none;
  }
}

.cur-qual {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  letter-spacing: .5px;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cur-qual:hover {
  border-color: var(--accent);
}

.qual-wrap {
  position: relative;
  flex-shrink: 0;
}

.qual-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: none;
  min-width: 130px;
  z-index: 100;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .55);
}

.qual-popup.open {
  display: block;
  animation: popUp .15s ease;
}

@keyframes popUp {
  from {
    opacity: 0;
    transform: translateY(5px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.qopt {
  padding: 9px 14px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  transition: background .15s;
  font-family: 'Outfit', sans-serif;
}

.qopt:hover {
  background: var(--bg3);
  color: var(--text);
}

.qopt.active {
  color: var(--accent);
}

.qbadge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: .5px;
  min-width: 32px;
  text-align: center;
}

.q4k .qbadge {
  background: rgba(16, 185, 129, .15);
  color: var(--green);
}

.qhd .qbadge {
  background: rgba(59, 130, 246, .15);
  color: #3b82f6;
}

.qsd .qbadge {
  background: rgba(100, 116, 139, .15);
  color: var(--muted);
}

.qauto .qbadge {
  background: rgba(245, 158, 11, .15);
  color: var(--accent);
}

/* ticker */
.ticker-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.ticker-lbl {
  background: var(--accent);
  color: #000;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.ticker-inner {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}

.ticker-inner::-webkit-scrollbar {
  display: none;
}

.ti-item {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}

.ti-score {
  color: var(--accent);
  font-weight: 600;
}

.ti-live {
  color: var(--red);
  font-size: 9px;
}

/* ── CHAT ── */
.chat-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
height: 665px;}


.chat-hdr {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg3);
  flex-shrink: 0;
}

.chat-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  font-size: 13px;
}

.chat-ldot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

.viewers {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scroll-behavior: smooth;
  min-height: 0;
}

.cmsg {
  padding: 5px 7px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  animation: msgIn .2s ease;
}

.cmsg:hover {
  background: var(--bg3);
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(4px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.cmsg-top {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.cav {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  flex-shrink: 0;
}

.cname {
  font-size: 11px;
  font-weight: 500;
}

.cmod {
  font-size: 8px;
  background: rgba(16, 185, 129, .15);
  color: var(--green);
  padding: 1px 5px;
  border-radius: 3px;
}

.ctxt {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  padding-left: 24px;
}

.emoji-strip {
  display: flex;
  gap: 5px;
  padding: 7px 9px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.ebtn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s;
  line-height: 1.4;
}

.ebtn:hover {
  transform: scale(1.25);
  background: var(--bg4);
}

.chat-input-row {
  display: flex;
  gap: 6px;
  padding: 8px 9px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cinput {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 11px;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
  font-family: 'Outfit', sans-serif;
  transition: border-color .2s;
  min-width: 0;
}

.cinput:focus {
  border-color: var(--accent);
}

.sbtn {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 15px;
  transition: opacity .2s;
  flex-shrink: 0;
}

.sbtn:hover {
  opacity: .8;
}

.chat-username-row {
  padding: 7px 9px;
  border-bottom: 1px solid var(--border);
}

.chat-username-row input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11px;
  outline: none;
  font-family: 'Outfit', sans-serif;
}

/* ── Share modal ── */
.share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg3);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-bottom: 8px;
}

.share-option:hover {
  border-color: var(--accent);
  background: var(--bg4);
}

.share-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.share-txt strong {
  display: block;
  font-size: 13px;
}

.share-txt span {
  font-size: 11px;
  color: var(--muted);
}

.embed-code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--accent);
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 100px;
  overflow-y: auto;
}

/* ── ADMIN ── */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar .logo-area {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: all .2s;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--accent);
  background: rgba(245, 158, 11, .06);
}

.sidebar-link i {
  font-size: 16px;
  flex-shrink: 0;
}

.admin-main {
  padding: 24px;
  background: var(--bg);
}

.admin-main h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

@media(max-width: 768px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px;
  }

  .admin-sidebar .logo-area {
    border-bottom: none;
    padding: 0 10px;
    margin: 0;
  }

  .sidebar-link span {
    display: none;
  }

  .sidebar-link {
    padding: 8px 10px;
  }
}


/*
 * app_additions.css
 * Paste these rules into your existing app.css, or @import this file after app.css.
 * Covers: team logos, multi-quality channel bar, polished header, section headings.
 */

/* ═══════════════════════════════════════
   NAVBAR — language switcher + socials
═══════════════════════════════════════ */
.nav-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  padding: 4px 0;
}

/* Language switcher pill group */
.lang-switcher {
  display: flex;
  background: var(--bg3, rgba(255, 255, 255, .06));
  border: 1px solid var(--border, rgba(255, 255, 255, .1));
  border-radius: 7px;
  overflow: hidden;
}

.lt-btn {
  background: transparent;
  border: none;
  color: var(--muted, #64748b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .4px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
  line-height: 1;
}

.lt-btn:hover {
  background: rgba(255, 255, 255, .07);
  color: var(--text, #e2e8f0);
}

.lt-btn.active {
  background: var(--accent, #f59e0b);
  color: #000;
}

/* Social icon buttons */
.social-icons {
  display: flex;
  gap: 4px;
}

.soc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: var(--muted, #64748b);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}

.soc-btn:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--border, rgba(255, 255, 255, .1));
  color: var(--text, #e2e8f0);
}

/* ═══════════════════════════════════════
   TEAM LOGOS in match bar
═══════════════════════════════════════ */
.team-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  flex-shrink: 0;
}

/* On mobile shrink a bit */
@media (max-width: 480px) {
  .team-logo-img {
    width: 36px;
    height: 36px;
  }
}

/* team-block already exists in app.css — just add flex + gap */
.team-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-block.right {
  flex-direction: row-reverse;
}

/* ═══════════════════════════════════════
   CHANNEL BAR — multi-quality pills
═══════════════════════════════════════ */
.ch-lang-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border, rgba(255, 255, 255, .08));
  border-radius: 8px;
  padding: 3px 6px 3px 8px;
}

.ch-lang-name {
  font-size: 11px;
  color: var(--muted, #64748b);
  white-space: nowrap;
  margin-right: 4px;
}

.ch-qual-pills {
  display: flex;
  gap: 3px;
}

/* ch-pill may already exist — override for quality context */
.ch-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted, #64748b);
  cursor: pointer;
  transition: background .12s, color .12s;
  line-height: 1.3;
}

.ch-pill:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--text, #e2e8f0);
}

.ch-pill.active {
  background: var(--accent, #f59e0b);
  color: #000;
  border-color: transparent;
}

/* ═══════════════════════════════════════
   ADMIN — section headings
═══════════════════════════════════════ */
.section-heading {
  color: var(--accent, #f59e0b);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 0;
}

.form-label-sm {
  font-size: 11px;
  color: var(--muted, #64748b);
  margin-bottom: 4px;
}

/* Quality group card in admin forms */
.quality-group {
  background: rgba(255, 255, 255, .02);
}

/* ═══════════════════════════════════════
   CHAT — persist scroll position hint
═══════════════════════════════════════ */

/* ═══════════════════════════════════════
   NAVBAR mobile collapse spacing
═══════════════════════════════════════ */
@media (max-width: 991px) {
  .nav-right-group {
    margin-top: 12px;
    padding-bottom: 8px;
    flex-wrap: wrap;
  }
}


/*
 * ADD THESE RULES TO YOUR assets/css/app.css
 * (or @import this file from it)
 * ─────────────────────────────────────────────
 * Covers:
 *  1. Language <select> styling
 *  2. RTL layout overrides for Arabic
 * ─────────────────────────────────────────────
 */

/* ══════════════════════════════════════════════
   1. LANGUAGE SELECT WRAPPER
   Custom-styled <select> — hides native arrow,
   shows globe icon on the left and chevron right.
══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   2. RTL OVERRIDES — applied when html[dir="rtl"]
   (set automatically by setUiLang('ar'))
══════════════════════════════════════════════ */

/* Flip the whole navbar right-to-left */
/* ── REPLACE the old [dir="rtl"] navbar block in app.css with this ── */

[dir="rtl"] .navbar .container-fluid {
  flex-direction: row-reverse;
}

[dir="rtl"] .navbar .lang-select-wrap {
  margin-left: 0 !important;
  margin-right: auto !important;
  /* was ms-auto, now flipped */
}

[dir="rtl"] .navbar .lang-select-wrap.me-2 {
  margin-right: 0 !important;
  margin-left: .5rem !important;
  /* gap between selector and toggler */
}

[dir="rtl"] .navbar-nav {
  margin-left: 0 !important;
  margin-right: .75rem !important;
}

[dir="rtl"] .navbar-nav .nav-link svg {
  margin-right: 0 !important;
  margin-left: 4px;
}

[dir="rtl"] .lang-select-wrap {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-select {
  padding-right: 0;
  padding-left: 14px;
}

[dir="rtl"] .lang-chevron {
  margin-left: 0;
  margin-right: -10px;
}

/* Globe + chevron swap sides inside the wrapper */
[dir="rtl"] .lang-select-wrap {
  padding: 0 8px 0 8px;
  /* stays symmetric — fine either way */
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-select {
  padding-right: 0;
  padding-left: 14px;
}

[dir="rtl"] .lang-chevron {
  margin-left: 0;
  margin-right: -10px;
}

/* Match cards — flip team layout */
[dir="rtl"] .match-teams-line {
  flex-direction: row-reverse;
}

[dir="rtl"] .match-arrow {
  transform: scaleX(-1);
}

/* Match page — video on right, chat on left in RTL */
[dir="rtl"] .match-layout {
  direction: rtl;
}

[dir="rtl"] .match-bar,
[dir="rtl"] .ch-lang-bar,
[dir="rtl"] .ctrl-bar {
  direction: rtl;
}

/* Chat panel text alignment */
[dir="rtl"] .chat-msgs,
[dir="rtl"] .chat-input-row,
[dir="rtl"] .chat-username-row {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .cmsg {
  align-items: flex-end;
}

[dir="rtl"] .cmsg-top {
  flex-direction: row-reverse;
}

/* Back button arrow flip */
[dir="rtl"] .btn-outline-secondary svg {
  transform: scaleX(-1);
}

/* Day tabs: right-to-left */
[dir="rtl"] .day-tabs {
  direction: rtl;
}

/* Ticker */
[dir="rtl"] .ticker-wrap {
  direction: rtl;
}

[dir="rtl"] .ticker-inner {
  animation-direction: reverse;
  /* ticker scrolls right-to-left already — keep natural */
}

/* Notification banner */
[dir="rtl"] .notif-banner {
  flex-direction: row-reverse;
  text-align: right;
}

/* Share modal */
[dir="rtl"] .share-option {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .share-option .ms-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Channel quality pills */
[dir="rtl"] .ch-lang-group {
  flex-direction: row-reverse;
}

/* Volume slider + controls bar */
[dir="rtl"] .vol-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .ctrl-bar {
  flex-direction: row-reverse;
}

/* FAB group stays in bottom-right corner regardless */
[dir="rtl"] .fab-group {
  left: 10px;
  right: auto;
}

/* Admin / generic form labels */
[dir="rtl"] label {
  display: block;
  text-align: right;
}

/* Custom language dropdown */
.lang-select-wrap { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 4px 8px;
  color: inherit;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.lang-btn:hover { border-color: rgba(255,255,255,0.4); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #1a1d24;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 4px 0;
  list-style: none;
  margin: 0;
  min-width: 100px;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #ccc;
  transition: background 0.15s;
}
.lang-option:hover { background: rgba(255,255,255,0.07); color: #fff; }

.lang-option img { border-radius: 2px; object-fit: cover; }

/* RTL — custom lang dropdown */
[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-btn {
  flex-direction: row-reverse;
}


#videoWrap:-webkit-full-screen,
#videoWrap:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  aspect-ratio: unset !important;
  max-width: none !important;
}

#videoWrap:-webkit-full-screen #hls-video,
#videoWrap:fullscreen #hls-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

@media (orientation: landscape) and (max-width: 860px) {
  .match-layout {
    grid-template-columns: 1fr;
  }
}