/* ── Evestv IPTV Channel Browser — channel-browser.css | evestv-iptv.com ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --ecb-teal:       #00c6a7;
  --ecb-teal-lt:    #00e8c6;
  --ecb-teal-dk:    #009e86;
  --ecb-bg:         #0a0b0d;
  --ecb-surf:       #0f1117;
  --ecb-surf2:      #161820;
  --ecb-surf3:      #1c1e28;
  --ecb-border:     rgba(0, 198, 167, 0.10);
  --ecb-border-sub: rgba(255, 255, 255, 0.06);
  --ecb-muted:      rgba(255, 255, 255, 0.42);
  --ecb-font:       'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── TRIGGER BUTTON ─────────────────────────────────────────── */
.ecb-wrap { display: inline-block; }

.ecb-trigger {
  display:        inline-flex;
  align-items:    center;
  gap:            10px;
  padding:        13px 28px;
  border-radius:  50px;
  background:     linear-gradient(135deg, var(--ecb-teal), var(--ecb-teal-lt));
  color:          #032e27;
  font-family:    var(--ecb-font);
  font-size:      15px;
  font-weight:    800;
  letter-spacing: .4px;
  text-transform: uppercase;
  border:         none;
  cursor:         pointer;
  transition:     filter .18s, transform .12s, box-shadow .18s;
  line-height:    1;
  box-shadow:     0 4px 20px color-mix(in srgb, var(--ecb-teal) 35%, transparent);
}
.ecb-trigger:hover {
  filter:     brightness(1.08);
  transform:  translateY(-2px);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--ecb-teal) 50%, transparent);
}
.ecb-trigger:active  { transform: translateY(0); }
.ecb-trigger:focus   { outline: 2px solid var(--ecb-teal); outline-offset: 3px; }
.ecb-trigger svg     { flex-shrink: 0; }

/* ── OVERLAY ────────────────────────────────────────────────── */
.ecb-overlay {
  display:         none;
  position:        fixed;
  inset:           0;
  background:      rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index:         999999;
  align-items:     center;
  justify-content: center;
  padding:         1rem;
}
.ecb-overlay.ecb-open {
  display:   flex;
  animation: ecb-fade .22s ease;
}
@keyframes ecb-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── MODAL ──────────────────────────────────────────────────── */
.ecb-modal {
  background:     var(--ecb-surf);
  border-radius:  18px;
  border:         1px solid var(--ecb-border);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 40px 80px rgba(0,0,0,0.8),
    0 0 60px color-mix(in srgb, var(--ecb-teal) 8%, transparent);
  width:          min(1000px, 100%);
  max-height:     90vh;
  display:        flex;
  flex-direction: column;
  overflow:       hidden;
  animation:      ecb-up .24s cubic-bezier(0.34, 1.4, 0.64, 1);
  font-family:    var(--ecb-font);

  /* subtle teal grid texture */
  background-image:
    linear-gradient(rgba(0,198,167,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,198,167,0.018) 1px, transparent 1px);
  background-size: 40px 40px;
}
@keyframes ecb-up {
  from { transform: translateY(24px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)     scale(1);   opacity: 1; }
}

/* ── HEADER ─────────────────────────────────────────────────── */
.ecb-header {
  padding:       22px 26px 0;
  flex-shrink:   0;
  border-bottom: 1px solid var(--ecb-border-sub);
}
.ecb-header-top {
  display:         flex;
  align-items:     flex-start;
  justify-content: space-between;
  margin-bottom:   8px;
}

/* Brand pill */
.ecb-brand-row { margin-bottom: 6px; }
.ecb-brand-pill {
  display:        inline-flex;
  align-items:    center;
  gap:            5px;
  font-size:      10px;
  font-weight:    800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color:          var(--ecb-teal);
  background:     color-mix(in srgb, var(--ecb-teal) 10%, transparent);
  border:         1px solid color-mix(in srgb, var(--ecb-teal) 25%, transparent);
  border-radius:  999px;
  padding:        3px 10px;
}
.ecb-brand-pill::before {
  content:       '';
  width:         5px;
  height:        5px;
  border-radius: 50%;
  background:    var(--ecb-teal);
  box-shadow:    0 0 6px var(--ecb-teal);
  animation:     ecb-pulse 1.8s infinite;
}
@keyframes ecb-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.ecb-modal-title {
  font-size:      24px;
  font-weight:    800;
  color:          #fff;
  letter-spacing: -.4px;
  margin:         0 0 4px;
  line-height:    1.2;
}
.ecb-modal-sub {
  font-size: 13px;
  color:     var(--ecb-muted);
  margin:    0 0 14px;
  line-height: 1.5;
}

/* Close button */
.ecb-close {
  width:       36px;
  height:      36px;
  border-radius: 50%;
  background:  rgba(255,255,255,0.05);
  border:      1px solid var(--ecb-border-sub);
  color:       var(--ecb-muted);
  cursor:      pointer;
  display:     flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:  background .15s, color .15s, border-color .15s;
  margin-top:  2px;
}
.ecb-close:hover {
  background:   color-mix(in srgb, var(--ecb-teal) 16%, transparent);
  border-color: color-mix(in srgb, var(--ecb-teal) 35%, transparent);
  color:        #fff;
}

/* ── SEARCH ─────────────────────────────────────────────────── */
.ecb-search-wrap { position: relative; margin-bottom: 14px; }
.ecb-search-icon {
  position:  absolute;
  left:      14px;
  top:       50%;
  transform: translateY(-50%);
  color:     var(--ecb-muted);
  display:   flex;
  pointer-events: none;
}
.ecb-search {
  width:         100%;
  padding:       10px 14px 10px 42px;
  background:    var(--ecb-surf3);
  border:        1px solid var(--ecb-border-sub);
  border-radius: 50px;
  color:         #fff;
  font-family:   var(--ecb-font);
  font-size:     14px;
  outline:       none;
  transition:    border-color .18s, box-shadow .18s;
}
.ecb-search::placeholder { color: rgba(255,255,255,0.22); }
.ecb-search:focus {
  border-color: var(--ecb-teal);
  box-shadow:   0 0 0 3px color-mix(in srgb, var(--ecb-teal) 15%, transparent);
}

/* ── CONTINENT TABS ─────────────────────────────────────────── */
.ecb-continent-tabs {
  display:    flex;
  gap:        0;
  overflow-x: auto;
  scrollbar-width: none;
  margin:     0 -26px;
  padding:    0 26px;
}
.ecb-continent-tabs::-webkit-scrollbar { display: none; }

.ecb-ctab {
  padding:        10px 18px;
  font-size:      11.5px;
  font-weight:    700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color:          var(--ecb-muted);
  background:     none;
  border:         none;
  border-bottom:  2px solid transparent;
  margin-bottom:  -1px;
  cursor:         pointer;
  white-space:    nowrap;
  transition:     color .15s;
  font-family:    var(--ecb-font);
}
.ecb-ctab:hover          { color: rgba(255,255,255,0.75); }
.ecb-ctab.ecb-tab-active { color: #fff; border-bottom-color: var(--ecb-teal); }

/* ── BODY ───────────────────────────────────────────────────── */
.ecb-body {
  display:    flex;
  flex:       1;
  overflow:   hidden;
  min-height: 0;
}

/* Sidebar */
.ecb-sidebar {
  width:       200px;
  flex-shrink: 0;
  background:  var(--ecb-surf2);
  border-right: 1px solid var(--ecb-border-sub);
  overflow-y:  auto;
  padding:     12px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.ecb-sidebar::-webkit-scrollbar       { width: 3px; }
.ecb-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.ecb-country {
  padding:       9px 18px;
  font-size:     13px;
  font-weight:   500;
  color:         #fff;
  cursor:        pointer;
  border-left:   2px solid transparent;
  transition:    background .12s, color .12s, border-color .12s;
  text-transform: capitalize;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}
.ecb-country:hover { background: rgba(255,255,255,0.04); color: #fff; }
.ecb-country.ecb-country-active {
  color:             #fff;
  background:        color-mix(in srgb, var(--ecb-teal) 8%, transparent);
  border-left-color: var(--ecb-teal);
}

/* Channel panel */
.ecb-panel {
  flex:       1;
  overflow-y: auto;
  padding:    18px 22px;
  background: var(--ecb-bg);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.ecb-panel::-webkit-scrollbar       { width: 3px; }
.ecb-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

/* Count bar */
.ecb-count-bar {
  font-size:     12px;
  color:         var(--ecb-muted);
  margin-bottom: 14px;
  display:       flex;
  align-items:   center;
  gap:           8px;
  font-family:   var(--ecb-font);
}
.ecb-count-num {
  color:         #032e27;
  font-weight:   800;
  background:    var(--ecb-teal);
  padding:       2px 9px;
  border-radius: 20px;
  font-size:     11px;
}

/* Category group */
.ecb-cat-group    { margin-bottom: 22px; }
.ecb-cat-label {
  display:        inline-flex;
  align-items:    center;
  font-size:      10px;
  font-weight:    800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color:          #032e27;
  background:     var(--ecb-teal);
  padding:        4px 12px;
  border-radius:  5px;
  margin-bottom:  10px;
  font-family:    var(--ecb-font);
}

/* Channel grid */
.ecb-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap:                   6px;
}
.ecb-ch {
  padding:       8px 12px;
  background:    var(--ecb-surf2);
  border:        1px solid var(--ecb-border-sub);
  border-radius: 9px;
  font-size:     12px;
  font-weight:   500;
  color:         rgba(255,255,255,0.6);
  cursor:        default;
  transition:    background .12s, color .12s, border-color .12s;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
  display:       flex;
  align-items:   center;
  gap:           7px;
  font-family:   var(--ecb-font);
}
.ecb-ch:hover {
  background:   color-mix(in srgb, var(--ecb-teal) 10%, transparent);
  border-color: color-mix(in srgb, var(--ecb-teal) 35%, transparent);
  color:        #fff;
}
.ecb-dot {
  width:         6px;
  height:        6px;
  border-radius: 50%;
  background:    var(--ecb-teal);
  flex-shrink:   0;
  opacity:       .55;
  box-shadow:    0 0 4px var(--ecb-teal);
}

/* Loading / empty */
.ecb-loading {
  display:     flex;
  align-items: center;
  justify-content: center;
  gap:         10px;
  padding:     70px 20px;
  color:       var(--ecb-muted);
  font-size:   13px;
  font-family: var(--ecb-font);
}
.ecb-spinner {
  width:         20px;
  height:        20px;
  border:        2px solid rgba(255,255,255,0.08);
  border-top-color: var(--ecb-teal);
  border-radius: 50%;
  animation:     ecb-spin .65s linear infinite;
  flex-shrink:   0;
}
@keyframes ecb-spin { to { transform: rotate(360deg); } }

.ecb-empty {
  text-align:  center;
  padding:     70px 20px;
  color:       var(--ecb-muted);
  font-size:   14px;
  font-family: var(--ecb-font);
  line-height: 1.7;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ecb-modal        { max-height: 95vh; border-radius: 14px; }
  .ecb-header       { padding: 18px 18px 0; }
  .ecb-sidebar      { width: 120px; }
  .ecb-panel        { padding: 14px 14px; }
  .ecb-modal-title  { font-size: 19px; }
  .ecb-ctab         { padding: 8px 12px; font-size: 10.5px; }
  .ecb-grid         { grid-template-columns: 1fr 1fr; }
  .ecb-continent-tabs { margin: 0 -18px; padding: 0 18px; }
}


/* ══════════════════════════════════════════════════════════════
   INLINE EMBED WIDGET
   The browser renders directly on the page — no overlay,
   no button. Uses the same shared ecb- classes for content
   but has its own layout wrappers.
══════════════════════════════════════════════════════════════ */

.ecb-inline-browser {
  display:        flex;
  flex-direction: column;
  height:         640px;           /* overridden by Elementor slider */
  border-radius:  16px;            /* overridden by Elementor slider */
  overflow:       hidden;
  border:         1px solid var(--ecb-border);
  background:     var(--ecb-surf);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 20px 60px rgba(0,0,0,0.55),
    0 0 40px color-mix(in srgb, var(--ecb-teal) 6%, transparent);

  /* same subtle grid texture as the modal */
  background-image:
    linear-gradient(rgba(0,198,167,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,198,167,0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  font-family:    var(--ecb-font);
}

/* Header inside inline widget — no close button */
.ecb-inline-header {
  border-bottom: 1px solid var(--ecb-border-sub);
}

/* Header-top row — no close button so no space-between needed */
.ecb-inline-header-top {
  display:       block;
  margin-bottom: 8px;
}

/* No-header variant: just tabs + search strip */
.ecb-inline-no-header {
  padding:       16px 26px 0;
  flex-shrink:   0;
  border-bottom: 1px solid var(--ecb-border-sub);
}
.ecb-inline-no-header .ecb-search-wrap  { margin-bottom: 14px; }
.ecb-inline-no-header .ecb-inline-tabs  { margin: 0 -26px; padding: 0 26px; }

/* Tabs scroller inside inline widget */
.ecb-inline-tabs {
  display:    flex;
  gap:        0;
  overflow-x: auto;
  scrollbar-width: none;
  margin:     0 -26px;
  padding:    0 26px;
}
.ecb-inline-tabs::-webkit-scrollbar { display: none; }

/* Body: sidebar + panel — fill remaining height */
.ecb-inline-body {
  display:    flex;
  flex:       1;
  overflow:   hidden;
  min-height: 0;
}

/* Sidebar inside inline */
.ecb-inline-sidebar {
  width:       200px;
  flex-shrink: 0;
  background:  var(--ecb-surf2);
  border-right: 1px solid var(--ecb-border-sub);
  overflow-y:  auto;
  padding:     12px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.ecb-inline-sidebar::-webkit-scrollbar       { width: 3px; }
.ecb-inline-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

/* Panel inside inline */
.ecb-inline-panel {
  flex:       1;
  overflow-y: auto;
  padding:    18px 22px;
  background: var(--ecb-bg);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.ecb-inline-panel::-webkit-scrollbar       { width: 3px; }
.ecb-inline-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

/* ── Responsive inline ── */
@media (max-width: 640px) {
  .ecb-inline-browser    { border-radius: 12px; }
  .ecb-inline-sidebar    { width: 110px; }
  .ecb-inline-no-header  { padding: 14px 16px 0; }
  .ecb-inline-no-header .ecb-inline-tabs { margin: 0 -16px; padding: 0 16px; }
}
