*{box-sizing:border-box}

html,body{
  margin:0;
  width:100%;
  height:100%;
  color:#fff;
  background:#080604;
  font-family:Arial,Helvetica,sans-serif;
}

.bg{
  position:fixed;
  inset:0;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  z-index:0;
}

.shade{
  position:fixed;
  inset:0;
  z-index:1;
  background:linear-gradient(90deg,rgba(0,0,0,.62),rgba(0,0,0,.22),rgba(0,0,0,.70)),radial-gradient(circle,rgba(0,0,0,.05),rgba(0,0,0,.58));
}

.topbar{
  position:relative;
  z-index:5;
  height:76px;
  display:flex;
  align-items:center;
  gap:26px;
  padding:0 34px;
  background:rgba(0,0,0,.84);
  border-bottom:1px solid rgba(206,143,57,.28);
}

.brand{width:335px;flex:0 0 335px}
.logo{font-size:31px;font-weight:1000;text-transform:uppercase;color:#e0a24a}
.logo span{color:#f4c46f}
.tag{color:#efc98a;font-size:10px;letter-spacing:1.4px;font-weight:900}

nav{display:flex;gap:12px;flex:1}
nav a{color:#fff;text-decoration:none;text-transform:uppercase;padding:11px 17px;border-radius:7px;font-size:12px;font-weight:900}
nav a.active,nav a:hover{background:rgba(94,55,20,.86);color:#ffc15d}

.headstats{display:flex;align-items:center;gap:28px}
.headstats small{display:block;color:#ddd;font-size:10px;font-weight:900}
.headstats b{font-size:24px}
.onair{border:2px solid #ff3b2f;color:#fff;padding:9px 19px;border-radius:7px;font-size:19px;letter-spacing:2px;text-shadow:0 0 12px red;box-shadow:0 0 18px rgba(255,60,30,.65)}

.layout{
  position:relative;
  z-index:3;
  height:calc(100vh - 76px);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:22px;
  padding:18px 30px 12px;
  overflow:hidden;
}

.center{
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.player,.recent,.cards>div,.chat{
  background:rgba(10,9,8,.86);
  backdrop-filter:blur(10px);
  border:1px solid rgba(216,162,76,.25);
  box-shadow:0 0 35px rgba(0,0,0,.55);
  border-radius:14px;
}

.player{
  flex:0 0 305px;
  padding:18px;
  overflow:hidden;
}

.player-head{
  display:flex;
  justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.12);
  padding-bottom:10px;
  margin-bottom:14px;
}

.red{color:#ff3a31}
.player-head p{margin:5px 0 0}

.bars{display:flex;align-items:end;gap:4px;height:32px}
.bars span{width:5px;background:#d68b21;animation:bars .8s infinite ease-in-out}
.bars span:nth-child(odd){height:18px}
.bars span:nth-child(even){height:30px;animation-delay:.2s}
@keyframes bars{0%,100%{transform:scaleY(.45)}50%{transform:scaleY(1.1)}}

.player-body{display:flex;gap:20px;align-items:center}
.player-body img{width:155px;height:155px;border-radius:8px;object-fit:cover;box-shadow:0 0 20px rgba(0,0,0,.65)}

.song{flex:1;min-width:0}
.song h1{font-size:27px;margin:0 0 6px;line-height:1.05}
.song h2{margin:0 0 8px;color:#e2ad4c;font-size:20px}
.song p{color:#f0d7a4;font-weight:700;margin:0}

.progress{display:grid;grid-template-columns:54px 1fr 42px;gap:10px;align-items:center;margin:24px 0 18px}
.progress i{height:6px;border-radius:999px;background:rgba(255,255,255,.15);overflow:hidden}
.progress b{display:block;width:35%;height:100%;background:#d23126}

.controls{display:flex;align-items:center;gap:16px}
#playBtn{width:56px;height:56px;border-radius:999px;border:0;cursor:pointer;font-size:24px;background:linear-gradient(135deg,#f4c46f,#b77225);color:#120d08;box-shadow:0 0 20px rgba(245,170,70,.38)}
#volume{width:125px;accent-color:#d69a3b}
#playStatus{color:#d7c6aa;font-size:12px}

.recent{
  flex:0 0 88px;
  padding:14px 18px;
  overflow:hidden;
}

.recent h3{
  border-left:4px solid #d33226;
  padding-left:12px;
  font-weight:900;
  text-transform:uppercase;
  margin:0 0 9px;
  font-size:20px;
}

#recentSongs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.recent-item{color:#f4f4f4;font-size:12px;border-left:1px solid rgba(255,255,255,.08);padding-left:9px;min-width:0}
.recent-item b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recent-item span{color:#e2ad4c;font-size:11px}

.cards{
  flex:0 0 112px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}

.cards>div{padding:15px 17px;min-height:0}
.cards span{display:block;color:#e2ad4c;text-transform:uppercase;font-size:11px;font-weight:900;margin-bottom:14px}
.cards b{display:block;font-size:21px;line-height:1.08}
.cards small{color:#d7c6aa;text-transform:uppercase;font-size:9px}

footer{
  flex:1;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#dca84c;
  font-size:12px;
  font-weight:900;
  text-align:center;
  padding:0;
  letter-spacing:1px;
  overflow:hidden;
}

.chat{
  height:100%;
  overflow:hidden;
  align-self:stretch;
}

.chat iframe{
  width:100%;
  height:100%;
  border:0;
  background:transparent;
}

/* PC: no scroll */
@media(min-width:1151px){
  html,body{
    height:100vh;
    max-height:100vh;
    overflow:hidden!important;
  }
}

/* Smaller desktop/laptop */
@media(min-width:1151px) and (max-height:760px){
  .topbar{height:68px}
  .layout{height:calc(100vh - 68px);padding:12px 24px 8px;gap:18px}
  .player{flex-basis:270px;padding:14px}
  .player-body img{width:130px;height:130px}
  .song h1{font-size:24px}
  .song h2{font-size:18px}
  .progress{margin:18px 0 14px}
  #playBtn{width:50px;height:50px}
  .recent{flex-basis:78px;padding:11px 15px}
  .recent h3{font-size:17px;margin-bottom:7px}
  .cards{flex-basis:96px}
  .cards>div{padding:12px}
  footer{font-size:11px}
}

/* Mobile/tablet keeps scroll */
@media(max-width:1150px){
  html,body{
    height:auto;
    overflow:auto;
  }

  .topbar{
    height:auto;
    min-height:76px;
    flex-wrap:wrap;
    padding:16px;
  }

  .brand{width:100%;flex:0 0 100%}
  nav{order:3;flex-wrap:wrap}

  .layout{
    height:auto;
    min-height:calc(100vh - 76px);
    grid-template-columns:1fr;
    padding:18px 14px;
    overflow:visible;
  }

  .center{overflow:visible}
  .player{flex:auto}
  .player-body{flex-direction:column;text-align:center}
  .cards,#recentSongs{grid-template-columns:1fr 1fr}
  .chat{height:50vh;min-height:360px}
  footer{padding:22px 0}
}

@media(max-width:640px){
  .logo{font-size:26px}
  .headstats{width:100%;justify-content:space-between}
  .player-body img{width:150px;height:150px}
  .song h1{font-size:25px}
  .cards,#recentSongs{grid-template-columns:1fr}
}
