
/* =========================
   GLOBAL UI THEME
========================= */
:root{
  --primary:#00e5ff;
  --bg:#05070a;
  --glass:rgba(255,255,255,0.06);
  --glass2:rgba(255,255,255,0.03);
}

/* =========================
   BODY UI BASE
========================= */
body{
  background:var(--bg);
  color:#fff;
}

/* =========================
   GLASS CARD BASE
========================= */
.card,
.channel-card,
.history-item{
  background:var(--glass);
  backdrop-filter: blur(14px);

  border:1px solid rgba(255,255,255,0.08);

  border-radius:14px;

  transition:0.3s ease;

  box-shadow:0 10px 40px rgba(0,0,0,0.4);
}

/* =========================
   HOVER EFFECT (PREMIUM LIFT)
========================= */
.card:hover,
.channel-card:hover,
.history-item:hover{
  transform:translateY(-4px) scale(1.02);

  background:rgba(0,229,255,0.12);

  box-shadow:
    0 20px 60px rgba(0,229,255,0.15),
    0 10px 40px rgba(0,0,0,0.5);
}

/* =========================
   CHANNEL GRID (IMPORTANT)
========================= */
#channelGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
  gap:12px;

  padding:10px;
}

/* =========================
   CHANNEL CARD STYLE
========================= */
.channel-card{
  padding:10px;
  cursor:pointer;

  position:relative;

  overflow:hidden;
}

/* glow border animation */
.channel-card::before{
  content:"";
  position:absolute;
  inset:0;

  border-radius:14px;

  background:linear-gradient(135deg, transparent, rgba(0,229,255,0.2), transparent);

  opacity:0;
  transition:0.4s ease;
}

.channel-card:hover::before{
  opacity:1;
}

/* =========================
   CARD TITLE
========================= */
.channel-card .title{
  font-size:13px;
  font-weight:bold;

  color:#fff;

  margin-top:6px;
}

/* =========================
   CARD SUBTEXT
========================= */
.channel-card .desc{
  font-size:11px;
  color:rgba(255,255,255,0.6);
}

/* =========================
   HISTORY PANEL
========================= */
#historyList{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.history-item{
  padding:10px;
  cursor:pointer;

  font-size:12px;

  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* =========================
   BUTTONS (GLOBAL UI STYLE)
========================= */
button{
  border:none;
  outline:none;

  border-radius:10px;

  background:var(--glass);
  color:#fff;

  cursor:pointer;

  transition:0.3s ease;
}

button:hover{
  background:var(--primary);
  color:#000;

  transform:translateY(-2px);
}

/* =========================
   INPUT FIELDS
========================= */
input{
  background:var(--glass);
  border:1px solid rgba(255,255,255,0.08);

  padding:10px;

  border-radius:10px;

  color:#fff;

  outline:none;

  transition:0.3s;
}

input:focus{
  border-color:var(--primary);
  box-shadow:0 0 20px rgba(0,229,255,0.2);
}

/* =========================
   SCROLLBAR (PREMIUM LOOK)
========================= */
::-webkit-scrollbar{
  width:6px;
}

::-webkit-scrollbar-track{
  background:transparent;
}

::-webkit-scrollbar-thumb{
  background:rgba(0,229,255,0.4);
  border-radius:10px;
}

/* =========================
   BADGE / LIVE TAG
========================= */
.badge-live{
  background:#00e5ff;
  color:#000;

  font-size:10px;

  padding:3px 6px;
  border-radius:6px;

  font-weight:bold;
}

/* =========================
   GRID ANIMATION (LOAD FEEL)
========================= */
.channel-card{
  animation:fadeInUp 0.4s ease both;
}

@keyframes fadeInUp{
  from{
    opacity:0;
    transform:translateY(10px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* =========================
   GLASS PANEL
========================= */
.panel{
  background:var(--glass2);

  border:1px solid rgba(255,255,255,0.06);

  border-radius:14px;

  padding:12px;
}

/* =========================
   TV MODE OPTIMIZATION
========================= */
@media (min-width:1600px){

  .channel-card{
    padding:14px;
  }

  input, button{
    font-size:14px;
  }
}