/* ═══════════════════════════════════════════════════
   PAN WALA — style.css
   Pixel-Perfect Saloon.wtf 1:1 Aesthetic
   Crisp Unblurred Background, Minimalist UI
═══════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white:        #ffffff;
  --white-90:     rgba(255, 255, 255, 0.92);
  --white-75:     rgba(255, 255, 255, 0.75);
  --white-50:     rgba(255, 255, 255, 0.50);
  --white-20:     rgba(255, 255, 255, 0.20);
  --white-12:     rgba(255, 255, 255, 0.12);
  
  --green-online: #22c55e;
  --green-glow:   rgba(34, 197, 94, 0.4);

  --font-main:    'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-pill:  9999px;
  --radius-card:  30px;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: #120502;
  font-family: var(--font-main);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════
   CRISP UNBLURRED BACKGROUND
══════════════════════════════════════ */
.hero-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: #120502;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  filter: none !important;
  -webkit-filter: none !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (max-width: 640px) {
  .hero-img {
    object-position: center 42%;
  }
}

/* Hidden YouTube audio container (kept active on screen to prevent browser throttling) */
.hidden-player-container {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  opacity: 0.001;
  pointer-events: none;
  z-index: -999;
}

/* ══════════════════════════════════════
   MAIN FULLSCREEN SHELL
══════════════════════════════════════ */
.shell {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 32px 32px;
  pointer-events: none; /* Let background clicks pass through */
}

/* ══════════════════════════════════════
   TOP BAR (Exact Saloon.wtf Reference)
══════════════════════════════════════ */
.topbar {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  pointer-events: auto;
}

/* Left: Plain Text Clock */
.topbar-clock {
  font-size: 14px;
  font-weight: 500;
  color: var(--white-90);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

/* Center: 🟢 30 online */
.topbar-center {
  display: flex;
  justify-content: center;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.dot-wrap {
  position: relative;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.dot-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green-online);
  opacity: 0.8;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.dot-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green-online);
  box-shadow: 0 0 8px var(--green-online);
}

@keyframes ping {
  0%   { transform: scale(1); opacity: 0.9; }
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

.live-number {
  font-weight: 700;
  color: var(--white);
}

.live-label {
  color: var(--white-75);
}

/* Right: Navigation Pills */
.topbar-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pill-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

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

.pill-icon {
  opacity: 0.9;
}

.pill-arrow {
  font-size: 13px;
  opacity: 0.75;
  margin-left: 1px;
}

/* ══════════════════════════════════════
   BOTTOM FLOATING MUSIC PLAYER CARD
   (1:1 Saloon.wtf Match)
══════════════════════════════════════ */
.player-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.player-card {
  width: 100%;
  max-width: 490px;
  background: rgba(28, 10, 8, 0.72);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  padding: 10px 16px 10px 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Rounded Square Artwork */
.art-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1e0904;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.art-img.loaded {
  display: block;
}

.art-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
}

/* Track Metadata & Progress */
.player-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.track-meta {
  min-width: 0;
}

.track-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.track-artist {
  font-size: 11.5px;
  color: var(--white-75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* Minimalist Seeker */
.seek-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.seek-bar {
  position: relative;
  width: 100%;
  height: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.seek-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  overflow: hidden;
}

.seek-fill {
  height: 100%;
  background: var(--white);
  border-radius: 2px;
  width: 0%;
  transition: width 0.15s linear;
}

.seek-thumb {
  display: none; /* Clean flat scrubber without bulky thumb */
}

.seek-times {
  font-size: 10.5px;
  color: var(--white-50);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.time-sep {
  margin: 0 1px;
}

/* Controls */
.controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ctrl-sm {
  background: transparent;
  border: none;
  color: var(--white-90);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.ctrl-sm:hover {
  color: var(--white);
  transform: scale(1.1);
}

.ctrl-sm:active {
  transform: scale(0.9);
}

.ctrl-lg {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: #000000;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.ctrl-lg:hover {
  transform: scale(1.06);
  background: #f5f5f5;
}

.ctrl-lg:active {
  transform: scale(0.94);
}

.ctrl-lg:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ══════════════════════════════════════
   SEO FOOTER (Hidden Visually)
══════════════════════════════════════ */
.site-footer-seo {
  position: absolute;
  bottom: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Toast */
.toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE ADJUSTMENTS & MOBILE OPTIMIZATION
══════════════════════════════════════ */
@media (max-width: 640px) {
  .shell {
    padding: max(16px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  }

  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .topbar-clock {
    font-size: 13px;
    font-weight: 600;
  }

  .live-pill {
    padding: 5px 11px;
    font-size: 12px;
    gap: 5px;
  }

  .topbar-right {
    gap: 6px;
  }

  .pill-btn {
    padding: 5px 10px;
    font-size: 12px;
    gap: 5px;
  }

  .player-wrap {
    width: 100%;
    margin-bottom: max(6px, env(safe-area-inset-bottom));
  }

  .player-card {
    padding: 8px 12px 8px 10px;
    gap: 10px;
    border-radius: 22px;
  }

  .art-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .track-name {
    font-size: 12.5px;
  }

  .track-artist {
    font-size: 11px;
  }

  .ctrl-lg {
    width: 35px;
    height: 35px;
  }

  .ctrl-sm {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 380px) {
  .shell {
    padding: max(12px, env(safe-area-inset-top)) 10px max(14px, env(safe-area-inset-bottom));
  }

  .live-label {
    display: none;
  }

  .pill-btn span:not(.pill-arrow) {
    display: none;
  }

  .pill-btn {
    padding: 6px 8px;
  }

  .pill-arrow {
    display: none;
  }

  .player-card {
    padding: 6px 10px 6px 8px;
    gap: 8px;
  }

  .art-wrap {
    width: 40px;
    height: 40px;
  }

  .track-name {
    font-size: 12px;
  }
}


