/* Bhakti Sangeet Sagar - Player Dedicated Styles */

.player-body {
  background: #08060d;
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
}

.player-page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bhajan-hub {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 5%;
  flex: 1;
}

.hub-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hub-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.hub-hero p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 650px;
  margin: 0 auto 1.8rem;
}

/* Search Bar */
.search-bar-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
}

.search-bar-wrap svg {
  position: absolute;
  left: 1.2rem;
  color: var(--gold-primary);
}

.search-bar-wrap input {
  width: 100%;
  padding: 0.95rem 1.2rem 0.95rem 3.2rem;
  background: rgba(22, 17, 34, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  color: #fff;
  font-size: 0.98rem;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.search-bar-wrap input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 25px rgba(255, 193, 7, 0.3);
  background: rgba(28, 22, 44, 0.95);
}

/* Category Filter Pills */
.category-pills {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.15rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 193, 7, 0.4);
}

.cat-pill.active {
  background: linear-gradient(135deg, var(--gold-primary), var(--saffron));
  color: #000;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.35);
}

/* Music Layout */
.music-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2.2rem;
  align-items: start;
}

/* Tracklist */
.tracklist-container {
  background: rgba(16, 12, 26, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
}

.tracklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.tracklist-counter {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

/* Custom scrollbar */
.track-list::-webkit-scrollbar {
  width: 6px;
}
.track-list::-webkit-scrollbar-thumb {
  background: rgba(255, 193, 7, 0.2);
  border-radius: 10px;
}
.track-list::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

.track-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.track-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 193, 7, 0.2);
  transform: translateX(3px);
}

.track-item.active {
  background: rgba(255, 193, 7, 0.12);
  border-color: var(--gold-primary);
}

.track-item.active .track-title {
  color: var(--gold-primary);
}

.track-index {
  font-size: 0.85rem;
  color: var(--text-muted);
  width: 24px;
  text-align: center;
}

.track-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.track-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.track-category-tag {
  color: var(--gold-light);
  background: rgba(255, 193, 7, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.track-duration {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Right: Player Console */
.player-console {
  position: sticky;
  top: 90px;
}

.now-playing-card {
  background: linear-gradient(160deg, #181228, #0f0b1a);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 193, 7, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.album-art-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 193, 7, 0.2);
  margin-bottom: 1.5rem;
}

.album-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.now-playing-card.playing .album-art-wrap img {
  transform: scale(1.04);
}

.deity-tag-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.track-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.track-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Progress Bar */
.progress-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.seek-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.seek-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-primary), var(--saffron));
  border-radius: 10px;
}

/* Controls */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  position: relative;
}

.ctrl-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

.ctrl-btn.active {
  color: var(--gold-primary);
}

.play-main-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), var(--saffron));
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
  transition: all 0.2s ease;
}

.play-main-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.6);
}

/* Volume */
.volume-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--text-muted);
}

.volume-row input[type="range"] {
  accent-color: var(--gold-primary);
  cursor: pointer;
  height: 4px;
}

@media (max-width: 900px) {
  .music-layout {
    grid-template-columns: 1fr;
  }
  .player-console {
    position: static;
    order: -1;
  }
  .album-art-wrap {
    width: 160px;
    height: 160px;
  }
}
