@font-face {
  font-family: 'Bandipur';
  src: url('fonts/Bandipur.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  height: 100svh;
  width: 100vw;
  overflow: hidden;
  background-color: #000;
  color: #fff;
}

#bus-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.site-container {
  position: relative;
  z-index: 2;
  height: 100svh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: radial-gradient(circle at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.6) 100%);
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.nav-right {
  min-width: 70px;
}

.online-badge, .weather-badge {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.green-dot {
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.center-branding {
  text-align: center;
  margin-top: -1rem;
}

.kannada-title {
  font-family: 'Bandipur', 'Noto Sans Kannada', sans-serif;
  font-size: 4.5rem;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
}

.sub-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Floating Player Bar */
.player-bar-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.player-bar {
  width: 100%;
  max-width: 580px;
  background: rgba(45, 30, 30, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 35px;
  padding: 0.35rem 0.8rem 0.35rem 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.track-thumb-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

#track-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-details-container {
  flex-grow: 1;
  min-width: 0;
}

.track-meta h2 {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-meta p {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-wrapper {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-bar {
  flex-grow: 1;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 2px;
  transition: width 0.3s linear;
}

.time-readout {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.ctrl-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, opacity 0.2s, color 0.2s;
}

.icon-btn {
  opacity: 0.75;
  padding: 0.25rem;
}

.icon-btn:hover {
  opacity: 1;
}

.play-btn {
  width: 32px;
  height: 32px;
  background-color: #ffffff;
  color: #000000;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.play-btn:active {
  transform: scale(0.92);
}

.hidden-player {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 480px) {
  .kannada-title {
    font-size: 3.2rem;
  }
  .site-container {
    padding: 1rem;
  }
  .player-bar {
    max-width: 100%;
  }
}