/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap');

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Inter',sans-serif;
  background:#0b0f14;
  color:white;
  overflow:hidden;
}

/* TOPBAR */

.topbar{
  height:80px;
  border-bottom:1px solid #1f2a36;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 24px;
  background:#111821;
}

.brand h1{
  font-size:1.2rem;
  letter-spacing:1px;
}

.brand span{
  color:#8ca0b3;
  font-size:0.85rem;
}

.topControls{
  display:flex;
  gap:12px;
}

button,
.importBtn{
  background:#18222d;
  border:1px solid #263444;
  color:white;
  padding:12px 18px;
  cursor:pointer;
  border-radius:8px;
  transition:0.2s;
  font-size:0.85rem;
}

button:hover,
.importBtn:hover{
  background:#223243;
}

.importBtn input{
  display:none;
}

/* MAIN */

.mainLayout{
  display:grid;
  grid-template-columns:1fr 340px;
  height:calc(100vh - 80px);
}

/* VIDEO */

.videoPanel{
  display:flex;
  flex-direction:column;
  padding:20px;
  gap:16px;
}

.videoWrapper{
  flex:1;
  position:relative;
  background:black;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #1f2a36;
}

video,
#overlay{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:contain;
}

#overlay{
  pointer-events:none;
}

.measurementHud{
  position:absolute;
  top:10px;
  left:10px;
  z-index:10;
  display:flex;
  gap:12px;
}

.measurementHud div{
  background:rgba(0,0,0,0.7);
  padding:8px 12px;
  border-radius:6px;
  font-size:0.8rem;
}

/* TIMELINE */

.timelineControls{
  display:flex;
  gap:10px;
}

#timeline{
  width:100%;
}

/* RIGHT */

.rightPanel{
  border-left:1px solid #1f2a36;
  padding:20px;
  overflow:auto;
  background:#10161d;
}

.card{
  background:#161f29;
  border:1px solid #263444;
  border-radius:10px;
  padding:18px;
  margin-bottom:18px;
}

.card h2{
  font-size:1rem;
  margin-bottom:16px;
}

/* RANK */

.rankItem{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px;
  background:#1b2632;
  border-radius:8px;
  margin-bottom:10px;
}

.rankItem strong{
  color:#4dd7ff;
}

/* AUDIO */

#audioCanvas{
  width:100%;
  height:120px;
  background:black;
  border-radius:8px;
}

.audioStats{
  margin-top:12px;
  display:flex;
  justify-content:space-between;
  font-size:0.85rem;
}

/* SETTINGS */

.settingRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
}

/* MOBILE */

@media(max-width:1000px){

  .mainLayout{
    grid-template-columns:1fr;
  }

  .rightPanel{
    border-left:none;
    border-top:1px solid #1f2a36;
  }

  body{
    overflow:auto;
  }

}