/* Seedhe Maut — Glassmorphic Music Player */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Noto+Sans+Gujarati:wght@400;600;700&display=swap');

:root {
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-gujarati: 'Noto Sans Gujarati', 'Outfit', sans-serif;

  --bg-glass: rgba(20, 20, 28, 0.45);
  --bg-glass-hover: rgba(40, 40, 52, 0.55);
  --bg-glass-active: rgba(255, 255, 255, 0.15);
  --bg-drawer: rgba(15, 15, 22, 0.75);

  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-bright: rgba(255, 255, 255, 0.25);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);

  --accent-orange: #ff7700;
  --accent-amber: #ffaa00;
  --accent-glow: rgba(255, 136, 0, 0.4);

  --shadow-main: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 0, 0, 0.3);
  --blur-radius: 24px;
  --radius-full: 9999px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

body,
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-main);
  background-color: #0b0b0f;
  color: var(--text-primary);
}

/* Background Stage */
.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('SM 01.jpg');
  background-size: cover;
  background-position: center center;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  z-index: 1;
}

/* Atmospheric Overlays */
.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 35%, rgba(216, 31, 39, 0.12) 0%, transparent 65%),
    linear-gradient(to bottom, rgba(10, 10, 15, 0.6) 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.4) 70%, rgba(5, 5, 8, 0.8) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Floating Ambient Particles */
.particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 200, 100, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.8);
  animation: floatParticle 12s infinite linear;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) scale(0.5);
    opacity: 0;
  }

  20% {
    opacity: 0.8;
  }

  80% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-10vh) scale(1.2);
    opacity: 0;
  }
}

/* Top Navigation Bar */
.top-bar {
  position: absolute;
  top: 1.25rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}

.top-left {
  display: flex;
  align-items: center;
}

.clock {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}

.top-center {
  display: flex;
  align-items: center;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  box-shadow: 0 0 10px var(--accent-orange);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.35);
    opacity: 0.65;
  }
}

.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pill:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.nav-pill svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.icon-pill {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
}

/* Hero Branding (Seedhe Maut) */
.hero-title-container {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sm-hero-logo {
  width: 90px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(216, 31, 39, 0.6));
  animation: pulseLogo 3s ease-in-out infinite alternate;
}

@keyframes pulseLogo {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(216, 31, 39, 0.5));
  }

  100% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 30px rgba(216, 31, 39, 0.9));
  }
}

.hero-title-sm {
  font-family: var(--font-main);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(216, 31, 39, 0.4);
}

.hero-subtitle-sm {
  font-size: 0.95rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

/* ===== iOS PILL PLAYER ===== */

.player-wrapper {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 25;
  pointer-events: none;
}

.player-card {
  pointer-events: all;
  display: flex;
  align-items: center;
  width: 700px;
  max-width: calc(100vw - 48px);
  height: 88px;
  padding: 0 10px;
  background: rgba(28, 28, 34, 0.80);
  backdrop-filter: blur(36px) saturate(160%);
  -webkit-backdrop-filter: blur(36px) saturate(160%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.07) inset;
  gap: 0;
}

/* ---- LEFT: Playback Controls ---- */
.pill-left {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- CENTER: Art + Info + Waveform ---- */
.pill-center {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 5px;
  min-width: 0;
  padding: 8px 12px;
  flex-direction: column;
  justify-content: center;
}

/* Top row: art + title/artist */
.pill-center-top {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

/* ---- RIGHT: Utility Icons ---- */
.pill-right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- Shared pill button ---- */
.pill-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s, transform 0.15s;
}

.pill-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
  flex-shrink: 0;
}

.pill-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.pill-btn:active {
  transform: scale(0.9);
}

.pill-btn-sm svg {
  width: 18px;
  height: 18px;
}

.pill-play svg {
  width: 22px;
  height: 22px;
}

.pill-btn.active {
  color: #ffaa00;
}

/* ---- Album Art ---- */
.pill-art-wrap {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.pill-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pill-art-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  border-radius: 8px;
}

/* ---- Track Info ---- */
.pill-track-info {
  flex: 1;
  min-width: 0;
}

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

.pill-track-artist {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Waveform (hidden, replaced by seek bar) ---- */
.pill-center-extra {
  display: none;
}

.pill-waveform {
  display: none;
}

.pill-wave-bar {
  display: none;
}

/* ---- Seek Bar Row ---- */
.pill-seek {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.pill-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

/* The track line */
.pill-progress {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s ease;
}

.pill-progress:hover {
  height: 5px;
}

.pill-progress-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 99px;
  position: absolute;
  left: 0;
  top: 0;
  transition: width 0.2s linear;
  pointer-events: none;
}

/* Draggable thumb dot */
.pill-progress-thumb {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.pill-progress:hover .pill-progress-thumb {
  opacity: 1;
}







/* Volume Control Popup / Slider */
.volume-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.volume-slider-pop {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  padding: 12px 8px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 30;
}

.volume-wrap:hover .volume-slider-pop,
.volume-slider-pop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.volume-slider-pop input[type=range] {
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
  width: 6px;
  height: 80px;
  accent-color: var(--accent-orange);
  cursor: pointer;
}

/* Slide-out Playlist Drawer */
.playlist-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: var(--bg-drawer);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-left: 1px solid var(--border-glass);
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.6);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.playlist-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

.drawer-title {
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.6rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Search Box */
.search-container {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-glass);
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-orange);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Track List */
.track-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Custom Scrollbar */
.track-list::-webkit-scrollbar {
  width: 6px;
}

.track-list::-webkit-scrollbar-track {
  background: transparent;
}

.track-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.track-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.track-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: transparent;
  transition: all 0.2s ease;
}

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

.track-item.active {
  background: rgba(255, 119, 0, 0.18);
  border: 1px solid rgba(255, 119, 0, 0.35);
}

.track-item-thumb {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.track-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.track-item-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-item.active .track-item-title {
  color: var(--accent-amber);
  font-weight: 600;
}

.track-item-artist {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-item-duration {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Audio Equalizer Bars Animation */
.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.eq-bar {
  width: 3px;
  background: var(--accent-orange);
  border-radius: 2px;
  animation: eqBounce 1s infinite ease-in-out alternate;
}

.eq-bar:nth-child(1) {
  height: 40%;
  animation-delay: 0.1s;
}

.eq-bar:nth-child(2) {
  height: 90%;
  animation-delay: 0.3s;
}

.eq-bar:nth-child(3) {
  height: 60%;
  animation-delay: 0.2s;
}

@keyframes eqBounce {
  0% {
    height: 20%;
  }

  100% {
    height: 100%;
  }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(22, 22, 30, 0.9);
  border: 1px solid var(--border-glass-bright);
  border-radius: 24px;
  padding: 32px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent-amber);
}

.modal-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.shortcut-key {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-family: monospace;
}

.modal-close-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent-orange);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: #e66a00;
}

/* Hidden YouTube Player Iframe */
.hidden-player {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .top-bar {
    left: 1rem;
    right: 1rem;
    top: 1rem;
  }

  .nav-pill span {
    display: none;
  }

  .hero-title-gujarati {
    font-size: 3rem;
  }

  .player-card {
    padding: 8px 16px;
    gap: 12px;
  }

  .track-info {
    max-width: 130px;
  }

  .playlist-drawer {
    width: 100vw;
    right: -100vw;
  }
}