html,
body{
  margin:0;
  width:100%;
  height:100%;
  overflow:hidden;
  font-family:'Montserrat',sans-serif;
  background:#090b12;
}

*{
  box-sizing:border-box;
}

a{
  color:inherit;
  text-decoration:none;
}

/* PAGE */
.stream-radio-page{
  position:relative;
  width:100vw;
  height:100vh;
  overflow:hidden;
  color:#fff;
}

/* BACKGROUND */
.stream-radio-bg{
  position:fixed;
  inset:0;
  z-index:0;
}

.stream-radio-bg img{
  width:100%;
  height:100%;
  object-fit:cover;

  filter:
    brightness(.72)
    saturate(1.08);

  transform:scale(1.03);
}

.stream-radio-bg__shade{
  position:absolute;
  inset:0;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.16),
      rgba(0,0,0,.06)
    ),
    linear-gradient(
      to top,
      rgba(7,10,18,.86),
      rgba(7,10,18,0) 42%
    );
}

/* HIDDEN YOUTUBE PLAYER */
.stream-youtube-engine{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
}

.stream-youtube-engine iframe{
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}

/* PLAYER BAR */
.stream-radio-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    height: 110px;
    padding: 18px 28px;
    display: grid;
    grid-template-columns: 260px
    180px
    1fr
    520px;
    align-items: center;
    gap: 28px;
    background: linear-gradient(to top, rgb(0 0 0 / 30%), rgb(7 10 18 / 0%));
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(22px);
}

/* NOW PLAYING */
.stream-now{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.stream-now img{
  width:64px;
  height:64px;
  border-radius:6px;
  object-fit:cover;
  flex-shrink:0;
}

.stream-now strong{
  display:block;

  font-size:16px;
  font-weight:800;

  color:#fff;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.stream-now span{
  display:block;
  margin-top:5px;

  font-size:12px;
  font-weight:600;

  color:rgba(255,255,255,.72);

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* CONTROLS */
.stream-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
}

.stream-controls button{
  width:36px;
  height:36px;

  border:0;
  background:transparent;

  color:#fff;

  cursor:pointer;

  display:grid;
  place-items:center;

  font-size:16px;

  opacity:.92;

  transition:.18s ease;
}

.stream-controls button:hover{
  opacity:1;
  transform:translateY(-1px);
}

.stream-play-main{
  width:44px!important;
  height:44px!important;

  border-radius:999px!important;

  background:#fff!important;
  color:#111!important;

  font-size:16px!important;
}

/* PROGRESS */
.stream-progress{
  display:grid;
  grid-template-columns:44px 1fr 44px;
  gap:12px;
  align-items:center;
}

.stream-progress span{
  font-size:11px;
  font-weight:700;
  color:rgba(255,255,255,.76);
}

.stream-bar{
  position:relative;

  height:4px;

  border-radius:999px;

  overflow:hidden;

  background:rgba(255,255,255,.18);
}

.stream-bar span{
  display:block;

  width:0%;

  height:100%;

  border-radius:999px;

  background:#fff;
}

/* RIGHT ACTIONS */
.stream-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:28px;
}

.stream-action{
  border:0;
  background:none;

  color:#fff;

  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;

  cursor:pointer;

  opacity:.88;

  transition:.2s ease;
}

.stream-action:hover{
  opacity:1;
}

.stream-action i{
  font-size:18px;
}

.stream-action span{
  font-size:11px;
  font-weight:700;
}

.stream-action.is-active {
    color: #018bff;
    opacity: 1;
}

/* MOBILE */
@media(max-width:980px){

  .stream-radio-player{
    height:auto;

    grid-template-columns:1fr auto;

    gap:16px;

    padding:16px 18px;
  }

  .stream-now{
    grid-column:1;
  }

  .stream-controls{
    grid-column:2;
    grid-row:1;
    gap:12px;
  }

  .stream-progress{
    grid-column:1 / -1;
    grid-row:2;
  }

  .stream-actions{
    grid-column:1 / -1;
    grid-row:3;

    justify-content:space-between;

    gap:12px;
  }

  .stream-action span{
    display:none;
  }

}

@media(max-width:640px){

  .stream-radio-player{
    padding-bottom:22px;
  }

  .stream-now img{
    width:56px;
    height:56px;
  }

  .stream-now strong{
    font-size:14px;
  }

  .stream-controls button{
    width:32px;
    height:32px;
    font-size:14px;
  }

  .stream-play-main{
    width:40px!important;
    height:40px!important;
  }

}

.stream-radio-bg video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.stream-radio-bg video,
#streamBgVideo{
  position:absolute;
  inset:0;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
  z-index:1;
}

.stream-radio-bg__shade{
  z-index:2;
  pointer-events:none;
}

.stream-now img{
  background:rgba(255,255,255,.12);
}

.visuals-panel {
    position: fixed;
    right: 34px;
    bottom: 126px;
    z-index: 90;
    width: 520px;
    max-width: calc(100vw - 40px);
    max-height: 72vh;
    padding: 38px;
    border-radius: 8px;
    background: rgba(20,31,42,.94);
    color: #fff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

.visuals-panel[hidden]{
  display:none !important;
}

.visuals-panel::after {
    content: "";
    position: absolute;
    right: 220px;
    bottom: -22px;
    width: 46px;
    height: 46px;
    background: rgba(20,31,42,.94);
    transform: rotate(45deg);
    border-radius: 4px;
}

.visuals-panel__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:34px;
}

.visuals-panel__head h2 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -1px;
}

.visuals-panel__head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
}

.visuals-close{
  width:40px;
  height:40px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:24px;
  cursor:pointer;
}

.visuals-grid{
  max-height:430px;
  overflow-y:auto;
  padding-right:10px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}

.visuals-grid::-webkit-scrollbar{
  width:10px;
}

.visuals-grid::-webkit-scrollbar-track{
  background:rgba(255,255,255,.08);
}

.visuals-grid::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.7);
  border-radius:999px;
}

.visual-thumb {
    position: relative;
    height: 120px;
    width: 200px;
    border: 0;
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
    background: #111;F
    cursor: pointer;
    text-align: left;
}

.visual-thumb video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:brightness(.72);
  transition:.25s ease;
}

.visual-thumb:hover video,
.visual-thumb.is-active video{
  filter:brightness(.9);
  transform:scale(1.03);
}

.visual-thumb span {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 2;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
}

.visual-thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%);
}

@media(max-width:760px){
  .visuals-panel{
    left:16px;
    right:16px;
    bottom:160px;
    width:auto;
    padding:26px;
  }

  .visuals-panel::after{
    right:80px;
  }

  .visuals-panel__head h2{
    font-size:30px;
  }

  .visuals-panel__head p{
    font-size:18px;
  }

  .visuals-grid{
    grid-template-columns:1fr;
  }

  .visual-thumb{
    height:190px;
  }
}