/* ================= ROOT & RESET ================= */
:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --card: #020617;
  --primary: #38bdf8;
  --accent: #22c55e;
  --danger: #ef4444;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --radius: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Hind Siliguri", "Times New Roman", Times, serif;
}

body {
  background: linear-gradient(180deg, #020617, #020617);
  color: var(--text);
  overflow-x: hidden;
}

/* ================= CANVAS BG ================= */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -20;
}

/* ================= HEADER ================= */
.app-header {
  height: 10px;
  background: transparent;
  backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  border-bottom: 1px solid #020617;
}

.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  color: var(--primary);
}

.notification-wrapper {
  position: relative;
  font-size: 20px;
  cursor: pointer;
}

.notification-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 50%;
  display: none;
}

/* ================= NOTIFICATION DRAWER ================= */
.notif-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 40;
}

.notif-drawer {
  position: fixed;
  right: -320px;
  top: 0;
  width: 320px;
  height: 100%;
  background: var(--bg-soft);
  z-index: 50;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.notif-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #020617;
  font-weight: 600;
}

.drawer-content {
  padding: 14px;
  overflow-y: auto;
}

.drawer-links {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.drawer-btn {
  padding: 10px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: white;
}

.drawer-btn.primary {
  background: var(--primary);
  color: #020617;
}

.drawer-btn.telegram {
  background: #229ed9;
}

.drawer-btn.legal {
  background: #334155;
}

.empty-notif {
  color: var(--muted);
  text-align: center;
  margin-top: 20px;
}

/* ================= VIDEO PLAYER ================= */






/* ================= BELOW VIDEO ================= */
.match-info-bar {
  margin-top: 8px;
  padding: 6px;
}

.featured-title {
  font-weight: 900;
}

.auto-msg {
  font-size: 13px;
  color: var(--muted);
  display: none;
}

.server-options,
.match-info-bar,
.tabs {
  position: relative;
  z-index: 999999;
}

.server-options button {
  padding: 3px 6px;
  border-radius: 8px;
  border: 0.5px solid #4cb673b5;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.server-options button.active {
  background: var(--primary);
  color: #020617;
}

/* ================= TABS ================= */
.tabs-wrap {
  margin-top: 10px;
}

.tabs {
  display: flex;
  gap: 6px;
}

.tab-btn {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid #1e293b;
  color: var(--text);
  cursor: pointer;
}

.tab-btn.active {
  background: var(--primary);
  color: #020617;
}

.tab-btn .count {
  font-size: 12px;
  margin-left: 4px;
}

/* ================= MATCHES & CHANNELS ================= */
.matches-section,
#channels-container {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.loading-text {
  text-align: center;
  color: var(--muted);
  margin-top: 20px;
}

/* ================= SEARCH ================= */
.search-container {
  padding: 10px;
}

.search-box {
  width: 100%;
  padding: 10px;
  
  border: none;
  outline: none;
  background: transparent;
  
  color: white;
}

/* ================= VIEWS ================= */
.view-section {
  display: none;
  padding-bottom: 70px;
}

.view-section.active {
  display: block;
}

/* ================= BOTTOM NAV ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  height: 60px;
  background: rgba(2, 6, 23, 0.95);
  display: flex;
  border-top: 1px solid #020617;
}

.nav-item {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.nav-item.active {
  color: var(--primary);
}

/* ================= TRANSPARENT MATCH CARD ================= */
.match-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 18px 14px 20px;
  margin-bottom: 16px;
  position: relative;
}

/* floating league pill */
.match-header {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

/* row */
.match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 22px;
}

/* teams */
.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}



.match-team span {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

/* center */
.match-center {
  text-align: center;
  min-width: 120px;
}

/* status */
.status-label {
  font-size: 8px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* live */
.match-center.live .status-label {
  color: #ef4444;
}

.match-center.live .status-label::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 6px #ef4444;
}

.live-timer {
  font-size: 20px;
  font-weight: 400;
  color: #fff;
}

/* upcoming */
.match-center.upcoming .status-label {
  color: #22c55e;
}

.upcoming-timer {
  font-size: 18px;
  font-weight: 600;
  color: #22c55e;
}

/* recent */
.match-center.recent .status-label {
  color: #94a3b8;
}

/* tap feedback */
.match-card:active {
  transform: scale(0.97);
}

/* ================= SLIM TABS ================= */
.tabs {
  gap: 6px;
}

.tab-btn {
  padding: 6px 8px;
  font-size: 13px;
  
  border-radius: 8px;
  font-weight: 600;
}

.tab-btn .count {
  font-size: 11px;
  padding-left: 2px;
}
/* ================= SLIM MATCH CARD ================= */
.match-card {
  padding: 14px 12px 16px;
  margin-bottom: 12px;
  border-radius: 14px;
}

.match-header {
  top: -10px;
  font-size: 12px;
  padding: 4px 12px;
}

/* row spacing reduce */
.match-row {
  margin-top: 16px;
}

/* teams smaller */
.match-team img {
  width: 55px;
  height: 55px;
}

.match-team span {
  font-size: 13px;
}

/* center */
.match-center {
  min-width: 90px;
}

.status-label {
  font-size: 11px;
  margin-bottom: 4px;
}

.live-timer {
  font-size: 16px;
}

.upcoming-timer {
  font-size: 12px;
}
/* ================= MOBILE (small phones) ================= */
@media (max-width: 480px) {
  .tab-btn {
    font-size: 12px;
    padding: 6px 6px;
  }

  .match-team img {
    width: 34px;
    height: 34px;
  }

  .live-timer {
    font-size: 15px;
  }
}

/* ================= TABLET ================= */
@media (min-width: 481px) and (max-width: 768px) {
  .match-team img {
    width: 40px;
    height: 40px;
  }

  .live-timer {
    font-size: 17px;
  }
}

/* ================= DESKTOP ================= */
@media (min-width: 1024px) {
  .tabs {
    max-width: 900px;
    margin: auto;
  }

  .matches-section {
    max-width: 900px;
    margin: auto;
  }

  .match-card {
    padding: 16px 16px 18px;
  }

  .match-team img {
    width: 44px;
    height: 44px;
  }

  .live-timer {
    font-size: 18px;
  }
}

/* ================= TV (Android TV / Smart TV) ================= */
@media (min-width: 1600px) {
  .tab-btn {
    font-size: 16px;
    padding: 10px 14px;
  }

  .match-card {
    padding: 20px 20px 22px;
  }

  .match-team img {
    width: 54px;
    height: 54px;
  }

  .match-team span {
    font-size: 16px;
  }

  .live-timer {
    font-size: 22px;
  }
}
/* ================= CENTER INFO – COMPACT + DEPTH ================= */

/* center wrapper */
.match-center {
  min-width: 90px;
  padding: 6px 8px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(0, 0, 0, 0.18)
  );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 10px rgba(0,0,0,0.35);
}

/* STARTS / LIVE label */
.status-label {
  font-size: 10px;
  letter-spacing: 0.6px;
  font-weight: 700;
  margin-bottom: 3px;
}

/* STARTS color */
.match-center.upcoming .status-label {
  color: #22c55e;
}

/* DATE text */
.match-center.upcoming div:nth-child(2) {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

/* TIME text */
.match-center.upcoming div:nth-child(3) {
  font-size: 11px;
  color: #cbd5f5;
  margin-top: 2px;
}

/* live timer smaller */
.live-timer {
  font-size: 15px;
  font-weight: 700;
}

/* countdown text */
.upcoming-timer {
  font-size: 11px;
  font-weight: 600;
}

/* reduce overall row height */
.match-row {
  margin-top: 14px;
}

@media (max-width: 480px) {
  .match-center {
    min-width: 80px;
    padding: 5px 6px;
  }

  .match-center.upcoming div:nth-child(2) {
    font-size: 12px;
  }

  .match-center.upcoming div:nth-child(3) {
    font-size: 10px;
  }
}
@media (min-width: 1200px) {
  .match-center {
    min-width: 110px;
    padding: 8px 10px;
  }

  .match-center.upcoming div:nth-child(2) {
    font-size: 15px;
  }

  .live-timer {
    font-size: 18px;
  }
}

/* ================= GLASS MATCH CARD ================= */
.match-card {
  position: relative;
  margin-bottom: 16px;
  padding: 22px 14px 18px;
  border-radius: 18px;

  /* 🔥 glass transparency */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);

  /* 🔥 low green DNS-style border */
  border: 1px solid rgba(34, 197, 94, 0.25);

  /* subtle depth */
  box-shadow:
    0 0 10px rgba(34, 197, 94, 0.18),
    inset 0 0 0 rgba(0,0,0,0);
}

/* ================= GLASS MATCH TITLE ================= */
.match-header {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);

  padding: 4px 14px;
  border-radius: 16px;

  /* glass */
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* thin green outline */
  border: 1px solid rgba(34, 197, 94, 0.45);

  box-shadow:
    0 0 8px rgba(34, 197, 94, 0.25);

  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

/* spacing so header doesn't overlap */
.match-row {
  margin-top: 30px;
}


/* ================= CENTER CLEAN ================= */
.match-center {
  background: transparent;
  box-shadow: none;
}




.channel-tab.active {
  background: rgba(34,197,94,0.15);
  box-shadow: 0 0 12px rgba(34,197,94,0.4);
}

.channel-grid-vertical {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
  padding: 12px;
}
/* ================= SIMPLE CHANNEL GRID ================= */
.channel-grid-simple {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  padding: 12px;
}

/* ================= MINI CHANNEL CARD ================= */
.channel-card-mini {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);

  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 12px;

  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
}

.channel-card-mini img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 6px;
}

.channel-card-mini div {
  font-size: 11px;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.2;
}
/* ===== CHANNEL CATEGORY TABS (HOME STYLE) ===== */
l



.channel-tabs .tab-btn {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(34,197,94,0.35);
  color: #e5e7eb;
}

.channel-tabs .tab-btn.active {
  background: rgba(34,197,94,0.25);
  box-shadow: 0 0 10px rgba(34,197,94,0.4);
}

/* ===== CHANNEL GRID ===== */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  padding: 12px;
}

/* ===== CHANNEL CARD (SMALL BOX) ===== */
.channel-card-grid {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 12px;

  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
}

.channel-card-grid img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 6px;
}

.channel-card-grid span {
  font-size: 11px;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.2;
}
/* ===== FORCE CHANNEL TABS VISIBLE ===== */
#view-channels .tabs-wrap {
  display: block !important;
}

#view-channels .tabs {
  display: flex !important;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
}

#view-channels .tab-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;

  
  border: 1px solid rgba(34,197,94,0.35);
  color: #e5e7eb;
  white-space: nowrap;
}

#view-channels .tab-btn.active {
  background: rgba(34,197,94,0.25);
  box-shadow: 0 0 10px rgba(34,197,94,0.45);
}
/* ===== CHANNEL GRID FIX ===== */
#view-channels .channel-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  padding: 12px;
}
#view-channels .channel-card-grid {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);

  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 12px;

  padding: 10px 6px;
  text-align: center;
  cursor: pointer;

  overflow: hidden; /* 🔥 logo overflow stop */
}

#view-channels .channel-card-grid img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 6px;
}

#view-channels .channel-card-grid span {
  font-size: 11px;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.2;
}
/* channel card mini tweak */
.channel-card .match-team.single {
  flex-direction: column;
  gap: 6px;
}

.channel-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.channel-card span {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.channel-card .match-team.single {
  flex-direction: column;
  gap: 6px;
}

.channel-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.channel-card span {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  padding: 12px;
}

.channel-card-grid {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}

.channel-card-grid img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.channel-card-grid span {
  font-size: 11px;
  font-weight: 600;
}
/* পুরোনো category heading পুরোপুরি লুকাও */
.channel-category,
#view-channels h3,
#view-channels .category-title {
  display: none !important;
}
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  padding: 12px;
}

.channel-card-grid {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
}

.channel-card-grid img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.channel-card-grid span {
  font-size: 11px;
  font-weight: 600;
}
/* ===== FORCE CHANNEL TABS VISIBLE ===== */
#view-channels .tabs-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(1px);
  padding-top: 8px;
}

#view-channels .tabs {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  overflow-x: auto;
}

#view-channels .tab-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(34,197,94,0.35);
  color: #e5e7eb;
}

#view-channels .tab-btn.active {
  background: rgba(34,197,94,0.25);
  box-shadow: 0 0 10px rgba(34,197,94,0.45);
}
#view-channels .search-container {
  margin-bottom: 6px;
}
#view-channels .channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  padding: 12px;
}
#channelTabs {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
}

#channelTabs .tab-btn {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(34,197,94,0.4);
  color: #fff;
  font-size: 13px;
}

#channelTabs .tab-btn.active {
  background: rgba(34,197,94,0.3);
}
/* tabs */
#view-channels .tabs {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  overflow-x: auto;
}

#view-channels .tab-btn {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(34,197,94,0.4);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

#view-channels .tab-btn.active {
  background: rgba(34,197,94,0.3);
}

/* channel grid */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
  padding: 12px;
}

.channel-card-grid {
  text-align: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 12px;
  padding: 10px 6px;
}

.channel-card-grid img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 6px;
}

.channel-card-grid .channel-name {
  font-size: 11px;
  font-weight: 600;
}
/* ===== CHANNEL TABS ===== */




.channel-tab.active {
  background: rgba(34,197,94,0.3);
}

/* ===== CHANNEL GRID ===== */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
  padding: 12px;
}

.channel-card {
  text-align: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 12px;
  padding: 10px 6px;
}

.channel-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 6px;
}

.channel-name {
  font-size: 11px;
  font-weight: 600;
}/* ===== CHANNEL TABS (SEPARATED) ===== */


/* single tab */


/* active tab */
.channel-tab.active {
  background: rgba(34,197,94,0.25);
  box-shadow: 0 0 12px rgba(34,197,94,0.45);
}

/* ===============================
   SERVER LIST – ONE LINE SCROLL
================================ */

#serverRow {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;   /* 🔥 MOST IMPORTANT */

  gap: 8px;
  padding: 6px 3px;

  width: 100%;
  max-width: 100%;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  white-space: nowrap;

  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;

  scrollbar-width: none;
}

#serverRow::-webkit-scrollbar {
  display: none;
}

/* EACH SERVER BUTTON */
.server-btn {
  flex: 0 0 auto !important;   /* 🔥 DO NOT SHRINK / WRAP */
  min-width: 50px;
  text-align: center;
}




/* wrapper */
.player-wrapper {
  width: 100%;
}



/* drag cursor */
.channel-grid.dragging {
  cursor: grabbing;
}


/* ==============================
   DEFAULT: MOBILE + DESKTOP
   (NO BORDER AT ALL)
================================ */
.tab-btn {
  border: none !important;
  box-shadow: none !important;
  background: rgba(255,255,255,0.06);
}

.tab-btn.active {
  border: none !important;
  box-shadow: none !important;
  background: rgba(34, 197, 94, 0.2);
}

/* ==============================
   TV ONLY (VERY LARGE SCREENS)
================================ */
@media (min-width: 1600px) {

  .tab-btn {
    border: 2px solid rgba(34,197,94,0.45) !important;
    background: rgba(255,255,255,0.08);
  }

  .tab-btn.active {
    background:red ;

    box-shadow:
      0 0 0 2px rgba(34,197,94,0.4),
      0 0 20px rgba(34,197,94,0.35) !important;
  }
}
/* ==============================
   FORCE REMOVE BORDER (MOBILE)
================================ */
@media (max-width: 768px) {

  .tab-btn,
  .tab-btn.active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

}
/* =================================================
   PLAYER BASE
================================================= */
.player-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

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

/* =================================================
   SPINNER
================================================= */
.loading-spinner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.45);
  z-index: 30;
}

.loading-spinner.hidden {
  display: none;
}

.loading-spinner::after {
  content: "";
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,.2);
  border-top-color: #22d3ee;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* =================================================
   ERROR OVERLAY
================================================= */
.error-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: grid;
  place-items: center;
  z-index: 40;
}

.error-overlay.hidden {
  display: none;
}

.error-overlay button {
  padding: 12px 22px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  border: none;
  font-size: 16px;
}

/* =================================================
   HLS YOUTUBE PREMIUM UI
================================================= */
.hls-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 20;
}

.hls-ui.show {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- SEEK BAR ---------- */
.hls-progress {
  padding: 0 14px;
}



/* ---------- CONTROLS ---------- */
.hls-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.7),
    rgba(0,0,0,.25),
    transparent
  );
}

.hls-controls .btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  margin: 0 6px;
}

.hls-controls .live {
  font-size: 13px;
  color: #22d3ee;
  margin-left: 8px;
}

/* ---------- QUALITY ---------- */
.quality-menu {
  position: absolute;
  right: 14px;
  bottom: 56px;
  background: rgba(0,0,0,.85);
  border-radius: 12px;
  overflow: hidden;
}

.quality-menu.hidden {
  display: none;
}

.quality-menu div {
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
}

/* =================================================
   DESKTOP (HOVER)
================================================= */
@media (hover:hover) {
  .player-container:hover .hls-ui {
    opacity: 1;
    pointer-events: auto;
  }
}

/* =================================================
   MOBILE (SLIM)
================================================= */
@media (max-width: 768px) {
  .hls-controls .btn {
    font-size: 16px;
  }

  .player-container {
    border-radius: 14px;
  }
}

/* =================================================
   TV MODE (REMOTE)
================================================= */
@media (min-width: 1200px) {
  .hls-controls .btn {
    font-size: 22px;
    padding: 10px;
  }

  .seek-bar {
    height: 6px;
  }
}

/* =================================================
   TV FOCUS RING
================================================= */
.tv-focus,
.hls-controls button:focus {
  outline: 3px solid #22d3ee;
  outline-offset: 4px;
  border-radius: 10px;
}
.shaka-spinner,
.shaka-spinner-container,
.shaka-spinner-svg {
  display: none !important;
}



#fixedTop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100; /* ❌ 9999 না */
  background: #020617;
}

/* HEADER */
.app-header {
  height: 56px;
}

/* PLAYER */
.player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* SPACER */
#playerSpacer {
  height: 0;
}






/* ===============================
   SERVER LIST – FORCE HORIZONTAL SCROLL
================================ */


.hidden {
  display: none !important;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 200; /* player এর থেকেও উপরে */
}
#contentAfterPlayer {
  position: relative;
  z-index: 0;
  margin-top: 56px; /* শুধু header height */
}

/* 🔥 player visible হলে extra space */
#playerSpacer {
  height: 0;
}


/* TITLE + SERVER + TABS */
.match-info-bar,
.server-options,
#channelTabs {
  background: #020617;
  position: relative;
}

/* SCROLL CONTENT */
#scrollContent {
  padding: 12px;
}

/* 🔥 CONTENT UI MUST BE ABOVE BACKGROUND */
#contentAfterPlayer {
  position: relative;
  z-index: 5;
}

/* 🔥 TABS / SERVER / TITLE VISIBILITY FIX */
.tabs,
.server-options,
.match-info-bar {
  position: relative;
  z-index: 10;
  background: rgba(2, 6, 23, 0.15); /* subtle glass */
  backdrop-filter: blur(0px);
  border-radius: 4px;
}
.tab-btn {
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

.tab-btn.active {
  background: #22d3ee;
  color: #020617;
}
#fixedTop {
  z-index: 10;
}

canvas#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}


/* ===============================
   CHANNEL CATEGORY TABS (PILL)
================================ */


.channel-tabs::-webkit-scrollbar {
  display: none;
}

/* tab button */


/* active tab */
.channel-tab.active {
  background: #22d3ee;
  color: #020617;
  border-color: transparent;

  box-shadow:
    0 0 0 1px rgba(34,211,238,.7),
    0 0 14px rgba(34,211,238,.6);
}

/* hover / focus (TV remote) */
.channel-tab:focus-visible,
.channel-tab:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 0 2px #22d3ee,
    0 0 12px rgba(34,211,238,.8);
  outline: none;
}


/* 🔥 FORCE CHANNEL TAB TO BE SMALL (NOT FULL WIDTH) */
.

.channel-tab {
  width: auto !important;
  min-width: unset !important;
  max-width: unset !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;

  padding: 6px 14px;   /* 🔥 smaller pill */
  font-size: 13px;
  line-height: 1;

  border-radius: 999px;
}

/* extra safety: stop stretch */
.channel-tabs > .channel-tab {
  flex: 0 0 auto !important;
}
.seek-bar {
  width: 100%;
  appearance: none;
  height: 4px;
  border-radius: 99px;
  background:
    linear-gradient(
      to right,
      #22d3ee 0%,
      #22d3ee var(--seek-progress, 0%),
      rgba(255,255,255,.3) var(--seek-progress, 0%),
      rgba(255,255,255,.3) 100%
    );
}

.seek-bar::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: #22d3ee;
  border-radius: 50%;
}
/* ===============================
   SHAKA TV REMOTE FOCUS GLOW
================================ */

.shaka-controls-container button:focus,
.shaka-controls-container .shaka-overflow-menu-button:focus,
.shaka-controls-container .shaka-settings-menu button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.9);
  border-radius: 10px;
  background: rgba(0, 200, 255, 0.15);
}

.shaka-controls-container button {
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

/* Quality list focus */
.shaka-settings-menu button:focus {
  background: rgba(0, 200, 255, 0.25);
}

/* Bigger hit area for TV */
.shaka-controls-container button {
  min-width: 48px;
  min-height: 48px;
}
.server-options:empty {
  display: none !important;
}
.notification-wrapper {
  position: relative;
  cursor: pointer;
}

.notification-menu {
  position: absolute;
  top: 45px;
  right: 0;
  background: #0f172a;
  border-radius: 10px;
  width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  overflow: hidden;
  z-index: 9999;
}

.notification-menu.hidden {
  display: none;
}

.notif-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #fff;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

.notif-item:hover {
  background: rgba(255,255,255,0.08);
}

.notif-item.telegram {
  text-decoration: none;
  color: #38bdf8;
}

.notification-dot {
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 2px;
}

.notification-dot.hidden {
  display: none;
}
.notif-menu {
  position: absolute;
  top: 56px;
  right: 12px;
  background: #0f172a;
  border-radius: 12px;
  width: 220px;
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
  padding: 8px;
  z-index: 9999;
}

.notif-menu.hidden {
  display: none;
}

.notif-menu button,
.notif-menu a {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  padding: 10px;
  text-align: left;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.notif-menu button:hover,
.notif-menu a:hover {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
}
/* ===== Cloudflare Protection ===== */
#cf-protect{
  position:fixed;
  inset:0;
  background:linear-gradient(135deg,#020617,#020617cc);
  backdrop-filter:blur(12px);
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
}

.cf-box{
  background:#020617;
  border:1px solid #1e293b;
  padding:28px 26px;
  border-radius:18px;
  text-align:center;
  max-width:420px;
  width:90%;
  box-shadow:0 20px 60px rgba(0,0,0,.6);
}

.cf-box i{
  font-size:42px;
  color:#38bdf8;
  margin-bottom:12px;
}

.cf-box h2{
  margin:6px 0;
  font-size:20px;
}

.cf-box p{
  font-size:14px;
  color:#94a3b8;
  line-height:1.5;
  margin-bottom:16px;
}

.cf-note{
  display:block;
  margin-top:14px;
  font-size:12px;
  color:#64748b;
}

/* TV / Desktop */
@media (min-width:1024px){
  .cf-box{
    max-width:520px;
    padding:34px;
  }
  .cf-box h2{font-size:24px;}
  .cf-box p{font-size:16px;}
}

@media (min-width: 1024px) {
  .player-container {
    max-height: 420px;
  }
}
/* বাংলা কইলাম এখানে আপডেট প্লেলিস্টের css //*/
/* ===============================
   PLAYLIST ONLY – GLASS FLOAT
   (NO SIDE EFFECT)
================================ */

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
  padding: 16px;
}

.playlist-card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 20px;
  padding: 22px 14px;

  text-align: center;
  cursor: pointer;

  border: 1px solid rgba(34,211,238,0.45);
  box-shadow:
    0 10px 30px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.08);

  transition: transform .25s ease, box-shadow .25s ease;
}

.playlist-card:hover,
.playlist-card:focus-visible {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 18px 40px rgba(34,211,238,.45),
    inset 0 1px 0 rgba(255,255,255,.12);
  outline: none;
}

.playlist-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.6));
}

.playlist-card .channel-name {
  font-size: 16px;
  font-weight: 800;
  color: #e5e7eb;
  line-height: 1.3;
}

/* Mobile tighter */
@media (max-width: 480px) {
  .playlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
  }

  .playlist-card {
    padding: 18px 12px;
  }
}
.sport-tabs button.active {
  background: #22d3ee;
  color: #020617;
  box-shadow: 0 0 12px rgba(34,211,238,.6);
}
/* ===============================
   CHANNEL CATEGORY TABS ONLY
=============================== */
.channel-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 6px;
  margin-bottom: 12px;

  /* smooth scroll */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  /* no wrap */
  white-space: nowrap;

  /* hide scrollbar */
  scrollbar-width: none;
}
.channel-tabs::-webkit-scrollbar {
  display: none;
}

/* ===============================
   TAB BUTTON
=============================== */
.channel-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.08);
  color: #eaeaea;
  border: 1px solid rgba(255,255,255,0.15);

  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover (desktop) */
.channel-tab:hover {
  background: rgba(255,255,255,0.15);
}

/* ===============================
   ACTIVE TAB
=============================== */
.channel-tab.active {
  background: linear-gradient(135deg, #00e5ff, #00bcd4);
  color: #001a1f;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

/* ===============================
   TV / LARGE SCREEN
=============================== */
@media (min-width: 900px) {
  .channel-tab {
    font-size: 15px;
    padding: 10px 18px;
  }
}
/* ================================
   SPORT TABS (TOP)
================================ */

/* wrapper */
#sportTabs {
  display: flex;
  gap: 10px;
  padding: 10px 12px;

  overflow-x: auto;
  overflow-y: hidden;

  white-space: nowrap;
  scroll-behavior: smooth;

  -webkit-overflow-scrolling: touch;
}

/* hide scrollbar */
#sportTabs::-webkit-scrollbar {
  display: none;
}
#sportTabs {
  scrollbar-width: none;
}

/* buttons */
#sportTabs button {
  flex: 0 0 auto;              /* 🔥 VERY IMPORTANT */
  padding: 10px 14px;

  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);

  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
  white-space: nowrap;

  transition: all 0.2s ease;
}

/* hover */
#sportTabs button:hover {
  background: rgba(255,255,255,0.12);
}

/* active */
#sportTabs button.active {
  background: #00cfe8;
  color: #000;
  border-color: transparent;
  font-weight: 600;
}

/* prevent tap highlight (mobile) */
#sportTabs button {
  -webkit-tap-highlight-color: transparent;
}

.marquee-text {
  font-family: "Hind Siliguri", "Times New Roman", Times, serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.2px;
}
