/* ==========================================================================
   DEVI PAKSHA — EXACT REFERENCE REPLICATED DESIGN SYSTEM
   ========================================================================== */

:root {
  --font-bengali: 'Galada', 'Noto Sans Bengali', serif;
  --font-body: 'Hind Siliguri', 'Poppins', sans-serif;
  --font-sans: 'Poppins', -apple-system, sans-serif;

  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
  --glass-bg-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
  --glass-bg-card: linear-gradient(145deg, rgba(38, 35, 52, 0.65) 0%, rgba(20, 18, 28, 0.55) 100%);
  --glass-bg-modal: linear-gradient(145deg, rgba(42, 38, 58, 0.75) 0%, rgba(22, 20, 32, 0.65) 100%);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-border-light: rgba(255, 255, 255, 0.32);
  --glass-blur: blur(24px) saturate(190%);
  --glass-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 1.5px 1px rgba(255, 255, 255, 0.35);
  --yellow-glow: #ffcd00;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0b0c10;
  font-family: var(--font-body);
  color: #ffffff;
}

/* Static Background Image Container */
.bg-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

/* App Layout Container */
.app-layout {
  position: relative;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 2rem;
}

/* Shared Pill Styling */
.pill-badge {
  display: flex;
  align-items: center;
}

/* Top Navigation Bar */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

/* Top Left Clock Pill (No Glass Effect) */
.clock-pill {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0.2rem 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  z-index: 2;
}

.clock-colon {
  opacity: 0.9;
  margin: 0 0.05rem;
}

.ampm-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-left: 0.2rem;
}

/* Top Center Status Pill (Centrally Aligned) */
.status-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  box-shadow: var(--glass-shadow);
  padding: 0.5rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  z-index: 1;
}

.green-dot {
  width: 8px;
  height: 8px;
  background-color: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 10px #00e676;
}

.online-text strong {
  color: #ffffff;
  font-weight: 700;
}

.pill-divider {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
}

.countdown-text {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

/* Top Right Circular Buttons */
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.circle-btn:hover {
  background: var(--glass-bg-hover);
  color: #ffffff;
  border-color: var(--glass-border-light);
  transform: translateY(-1px);
}

.circle-btn-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  pointer-events: none;
}

/* Center Hero Typography */
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: -2rem;
  pointer-events: none;
}

.hero-bengali-title {
  font-family: var(--font-bengali);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.92;
  padding: 1.5rem 0;
  overflow: visible;
}

.hero-bengali-title .line-1,
.hero-bengali-title .line-2 {
  font-size: clamp(4.5rem, 11vw, 8.5rem);
  font-weight: 700;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: initial;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.95), 0 0 25px rgba(255, 255, 255, 0.4);
  padding: 0;
  margin: 0;
  display: block;
}

/* Bottom Player Controller */
.bottom-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}

/* Puja Radio Pill Trigger */
.radio-pill-btn {
  background: var(--glass-bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  padding: 0.38rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  margin-bottom: 0.65rem;
  transition: all 0.2s ease;
}

.radio-pill-btn:hover {
  background: var(--glass-bg-hover);
  color: #ffffff;
  border-color: var(--glass-border-light);
}

/* Audio Player Card */
.player-card {
  background: var(--glass-bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), inset 0 1.5px 1px rgba(255, 255, 255, 0.3);
  border-radius: 22px;
  width: 100%;
  max-width: 440px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

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

.track-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
  gap: 0.1rem;
}

.track-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-name {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Scrub Progress Bar */
.scrub-container {
  position: relative;
  width: 100%;
  height: 4px;
  margin: 0.3rem 0 0.15rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.scrub-bg {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.scrub-fill {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 3px;
}

.scrub-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.time-row {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Player Right Media Buttons */
.player-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.ctrl-icon-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  transition: all 0.2s ease;
}

.ctrl-icon-btn:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.play-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.play-circle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.4);
}

/* Playlist Popup Modal */
/* ==========================================================================
   PLAYLISTS MODAL DIALOG (EXACT DEVipaksha REPLICA)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.playlists-modal {
  background: var(--glass-bg-modal);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-light);
  border-radius: 24px;
  width: 540px;
  max-width: 92vw;
  padding: 1.6rem 1.75rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), inset 0 1.5px 1px rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.modal-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #ffffff;
}

/* Category Tabs */
.modal-tabs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.tab-description {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.1rem;
}

/* Track List */
.modal-track-list-wrapper {
  max-height: 340px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.modal-track-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-track-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s ease;
}

.modal-track-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.modal-track-item.active {
  background: rgba(255, 255, 255, 0.12);
}

.track-index {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  min-width: 20px;
}

.modal-track-item.active .track-index {
  color: #ffd000;
}

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

.track-info-modal {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
  gap: 0.1rem;
}

.track-name-modal {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-track-item.active .track-name-modal {
  color: #ffd000;
}

.artist-name-modal {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-duration-modal {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

/* Modal Scrollbar */
.modal-track-list-wrapper::-webkit-scrollbar {
  width: 4px;
}
.modal-track-list-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .app-layout {
    padding: 1rem;
  }
  .top-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
  .status-pill {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .hero-bengali-title .line-1,
  .hero-bengali-title .line-2 {
    font-size: 4.2rem;
  }
}
