
/* =========================
   GLOBAL RESET
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: "Segoe UI", sans-serif;
}

body{
  background:#05070a;
  color:#fff;
  overflow-x:hidden;
}

/* =========================
   MAIN APP LAYOUT
========================= */
#app{
  display:flex;
  flex-direction:column;
  height:100vh;
}

/* =========================
   TOP BAR
========================= */
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:12px 18px;

  background:rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);

  border-bottom:1px solid rgba(255,255,255,0.06);
}

.logo{
  font-size:16px;
  font-weight:bold;
  color:#00e5ff;
  letter-spacing:1px;
}

/* =========================
   BRAND TICKER
========================= */
#brandTicker{
  font-size:12px;
  color:rgba(255,255,255,0.7);

  max-width:60%;
  overflow:hidden;
  white-space:nowrap;
}

/* =========================
   MAIN LAYOUT (SIDEBAR + PLAYER)
========================= */
.layout{
  display:flex;
  flex:1;
  overflow:hidden;
}

/* =========================
   SIDEBAR
========================= */
.sidebar{
  width:320px;
  padding:16px;

  background:rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);

  border-right:1px solid rgba(255,255,255,0.06);

  overflow-y:auto;
}

.sidebar h3{
  margin:12px 0;
  font-size:14px;
  color:#00e5ff;
}

.sidebar input{
  width:100%;
  padding:10px;
  margin-bottom:10px;

  border:none;
  outline:none;

  border-radius:10px;

  background:rgba(255,255,255,0.06);
  color:#fff;
}

.sidebar button{
  width:100%;
  padding:10px;

  border:none;
  border-radius:10px;

  background:#00e5ff;
  color:#000;

  cursor:pointer;
  font-weight:bold;

  transition:0.3s;
}

.sidebar button:hover{
  transform:scale(1.03);
  box-shadow:0 0 20px rgba(0,229,255,0.4);
}

/* =========================
   PLAYER AREA
========================= */
.player-area{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:16px;
}

/* =========================
   PLAYER BOX (CINEMATIC)
========================= */
#player-box{
  position:relative;
  width:100%;
  height:70vh;

  border-radius:18px;
  overflow:hidden;

  background:#000;

  box-shadow:
    0 30px 100px rgba(0,0,0,0.8),
    inset 0 0 80px rgba(0,229,255,0.05);
}

#videoPlayer{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* overlay cinematic */
#player-box::after{
  content:"";
  position:absolute;
  inset:0;

  background:
    radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.6)),
    linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  pointer-events:none;
}

/* =========================
   STATUS BOX
========================= */
#statusBox{
  position:absolute;
  top:12px;
  left:12px;

  padding:6px 10px;

  background:rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);

  border:1px solid rgba(255,255,255,0.1);

  border-radius:10px;

  font-size:12px;
}

/* =========================
   WATERMARK
========================= */
#watermark{
  position:absolute;
  bottom:12px;
  right:12px;

  font-size:12px;
  color:#00e5ff;

  opacity:0.8;
  pointer-events:none;
}

/* =========================
   CONTROLS
========================= */
#player-controls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;

  margin-top:12px;
}

#player-controls button,
#player-controls select{
  padding:10px 14px;

  border:none;
  border-radius:10px;

  background:rgba(255,255,255,0.06);
  color:#fff;

  cursor:pointer;

  transition:0.3s;
}

#player-controls button:hover{
  background:#00e5ff;
  color:#000;
  transform:translateY(-2px);
}

/* =========================
   HISTORY BOX
========================= */
#historyList{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.history-item{
  padding:8px;
  border-radius:8px;

  background:rgba(255,255,255,0.05);
  cursor:pointer;

  transition:0.3s;
}

.history-item:hover{
  background:rgba(0,229,255,0.2);
  transform:scale(1.02);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px){

  .layout{
    flex-direction:column;
  }

  .sidebar{
    width:100%;
    height:auto;
  }

  #player-box{
    height:45vh;
  }

}

/* =========================
   TV MODE FEEL
========================= */
@media (min-width: 1600px){

  .logo{
    font-size:20px;
  }

  #brandTicker{
    font-size:14px;
  }

  #player-controls button{
    padding:12px 16px;
  }
}