:root {
  --primary-color: #007fe0;
  --bg-color: #272727;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: white;
  font-family: Arial, sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
}

.header-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  margin: 15px 0;
  padding: 0 20px;
}

.header-logo img {
  width: auto;
  height: auto;
  max-width: 390px;
  max-height: 80px;
  object-fit: contain;
}


.album-art {
  width: 100%;
  max-width: 550px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.station-info {
  text-align: center;
}

.station-info h2 {
  margin: 0 0 5px;
  color: var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant: small-caps;
  max-width: 100%;
}

.track-info {
  text-align: center;
  margin: 0;
}

.track-info h3,
.track-info p {
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.track-info h3 {
  max-width: 300px;
}

.track-info p {
  max-width: 350px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  position: relative;
  margin: 15px 0;
}

.progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--primary-color);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.time-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  line-height: 2.0;
}

.controls {
  display: flex;
  gap: 20px;
  align-items: center;
}

.control-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 24px;
  padding: 10px;
}

.control-btn.play-pause {
  font-size: 48px;
}

.menu-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
}

.share-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: #1a1a1a;
  transition: 0.3s;
  z-index: 99;
  padding-top: 60px;
  overflow-y: auto; 
  -webkit-overflow-scrolling: touch; 
  padding-bottom: 20px; 
}

.sidebar.active {
  left: 0;
}

.station-list {
  list-style: none;
  padding: 15px;
  margin: 0;
}

.station {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: 8px;
  margin-bottom: 1px;
}

.station:active {
  background: rgba(255,255,255,0.2); 
}

.station:hover {
  background: rgba(255,255,255,0.1);
}

.station img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  flex-shrink: 0;
}

.station > div {
  flex: 1;
  min-width: 0;
}

.station h4 {
  margin: 0 0 4px 0;
  color: var(--primary-color);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-current-track {
  margin: 0;
  font-size: 11px;
  color: #ccc;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  
}

.station-current-track .track-artist {
  font-weight: bold;
}

.station-current-track .track-title {
  color: #aaa;
}

.share-menu {
  position: fixed;
  top: 70px;
  right: 20px;
  background: #1a1a1a;
  padding: 10px;
  border-radius: 5px;
  display: none;
}

.share-menu.active {
  display: block;
}

.share-menu a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 5px 10px;
}

.share-menu a:hover {
  background: rgba(255,255,255,0.1);
}

@media (max-width: 480px) {
  .menu-btn,
  .share-btn {
    font-size: 18px;
    padding: 8px;
  }
  
  .header-logo {
    padding: 0 45px;
    margin: 20px 0;
  }
  
  .header-logo img {
    max-width: 250px;
  }
  
  .station {
    padding: 8px;
    gap: 10px;
  }
  
  .station img {
    width: 35px;
    height: 35px;
  }
  
  .station h4 {
    font-size: 13px;
  }
  
  .station-current-track {
    font-size: 10px;
  }
}