*{box-sizing:border-box}

body{
  margin:0;
  background:#070707;
  color:#fff;
  font-family:Inter,Arial,Helvetica,sans-serif;
}

/* LOGIN */
.login-page{
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at top,#340000 0%,#070707 45%,#000 100%);
}

.login-box{
  width:360px;
  padding:34px;
  border-radius:22px;
  background:rgba(15,15,15,.92);
  border:1px solid rgba(255,0,0,.22);
  box-shadow:0 0 40px rgba(255,0,0,.18);
  text-align:center;
}

.logo{
  font-size:26px;
  font-weight:700;
  letter-spacing:2px;
}

.subtitle{
  color:#aaa;
  font-size:13px;
  margin:8px 0 24px;
}

input{
  width:100%;
  margin:8px 0;
  padding:15px;
  border-radius:12px;
  border:1px solid #222;
  background:#111;
  color:white;
  outline:none;
  font-size:15px;
}

input:focus{
  border-color:#d00000;
  box-shadow:0 0 12px rgba(208,0,0,.45);
}

button{
  background:linear-gradient(135deg,#d00000,#7a0000);
  color:#fff;
  border:none;
  border-radius:12px;
  padding:13px 18px;
  margin:6px;
  cursor:pointer;
  font-weight:600;
}

button:hover{
  filter:brightness(1.18);
}

#btnLogin{
  width:100%;
  margin-top:14px;
}

#status{
  margin-top:14px;
  min-height:24px;
  font-size:14px;
}

/* APP */
.topbar{
  height:62px;
  background:#0c0c0c;
  display:flex;
  align-items:center;
  padding:8px 14px;
  border-bottom:1px solid #1f1f1f;
}

#main{
  display:flex;
  height:calc(100vh - 62px);
}

#sidebar{
  width:28%;
  overflow-y:auto;
  background:#080808;
  border-right:1px solid #222;
}

#viewer{
  width:72%;
  position:relative;
  background:#000;
}

#player{
  width:100%;
  height:100%;
  background:#000;
}

#content{
  width:100%;
  height:100%;
  overflow:auto;
  padding:20px;
  display:none;
}

.item{
  padding:13px 16px;
  border-bottom:1px solid #1b1b1b;
  cursor:pointer;
  font-size:14px;
}

.item:hover,.item.active{
  background:#b00000;
}

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

.card{
  cursor:pointer;
  background:#111;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #1d1d1d;
}

.card:hover{
  transform:scale(1.04);
  box-shadow:0 0 18px rgba(208,0,0,.35);
}

.card img{
  width:100%;
  height:210px;
  object-fit:cover;
  background:#191919;
}

.card p{
  margin:0;
  padding:10px;
  font-size:13px;
}

.tbrand{
  display:flex;
  flex-direction:column;
  align-items:center;
  margin-bottom:18px;
}

#tlogo{
  width:96px;
  height:96px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:64px;
  font-weight:900;
  color:#ff1a1a;
  border:2px solid rgba(255,0,0,.45);
  box-shadow:0 0 28px rgba(255,0,0,.35);
  background:radial-gradient(circle,#1a0000,#050505);
}

.player-text{
  margin-top:8px;
  font-size:22px;
  font-weight:700;
  letter-spacing:3px;
  color:#fff;
}

#tlogo.loading{
  animation:tspin 1s linear infinite;
}

@keyframes tspin{
  from{transform:rotate(0deg)}
  to{transform:rotate(360deg)}
}

/* LOGO TPLAYER CLEAN */
.tbrand{
  display:flex;
  flex-direction:column;
  align-items:center;
  margin-bottom:26px;
}

.tmark{
  position:relative;
  width:120px;
  height:95px;
  filter:drop-shadow(0 0 18px rgba(230,0,0,.45));
}

.tbar{
  position:absolute;
  top:8px;
  left:8px;
  width:104px;
  height:18px;
  background:linear-gradient(90deg,#5c0000,#ff1f1f,#7c0000);
  border-radius:18px;
  box-shadow:0 0 20px rgba(255,0,0,.45);
}

.tstem{
  position:absolute;
  top:20px;
  left:48px;
  width:24px;
  height:68px;
  background:linear-gradient(180deg,#ff2b2b,#750000);
  border-radius:0 0 18px 18px;
  box-shadow:0 0 18px rgba(255,0,0,.35);
}

.player-text{
  margin-top:6px;
  font-size:30px;
  font-weight:800;
  letter-spacing:1px;
  color:#fff;
}

#tlogo.loading{
  animation:tpulse .9s ease-in-out infinite;
}

@keyframes tpulse{
  0%{transform:scale(1);filter:drop-shadow(0 0 12px rgba(230,0,0,.35))}
  50%{transform:scale(1.08);filter:drop-shadow(0 0 30px rgba(255,0,0,.75))}
  100%{transform:scale(1);filter:drop-shadow(0 0 12px rgba(230,0,0,.35))}
}

.searchBox{
  position:sticky;
  top:0;
  z-index:10;
  background:#050505;
  padding:12px;
  border-bottom:1px solid #222;
}

.searchBox input{
  width:100%;
  padding:14px 18px;
  border-radius:14px;
  border:1px solid #2a2a2a;
  background:#111;
  color:#fff;
  font-size:15px;
  outline:none;
}

.searchBox input:focus{
  border-color:#d00000;
  box-shadow:0 0 14px rgba(208,0,0,.45);
}
