/* ================================
   SUNO VIBE STATION V2 — CINEMATIC
================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cyan: #06b6d4;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --green: #10b981;
  --red: #ef4444;
  --orange: #f59e0b;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  background: #000;
  color: #fff;
  min-height: 100vh;
  /* Touch optimizations */
  -webkit-tap-highlight-color: rgba(6, 182, 212, 0.2);
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* ========================================
   LAYER 1: ANIMATED GRADIENT BACKGROUND
======================================== */
.gradient-background {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: 
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.5) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.5) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.4) 0%, transparent 70%),
    linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(2deg); }
}

/* ========================================
   LAYER 2: DJ BACKGROUND (FULL SCREEN)
======================================== */
.dj-background {
  position: fixed;
  inset: 0;
  z-index: 2;
  background-image: url('/assets/images/dj.png');
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  animation: djBreath 30s ease-in-out infinite, parallaxDrift 60s ease-in-out infinite;
  filter: brightness(0.8) contrast(1.1);
  transition: background-image 0.5s ease-in-out;
}

@keyframes djBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes parallaxDrift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-15px, 10px); }
  50% { transform: translate(0, -10px); }
  75% { transform: translate(15px, 5px); }
}

/* ========================================
   LAYER 3: ATMOSPHERE PARTICLES
======================================== */
.particles {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: 
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(6, 182, 212, 0.3), transparent),
    radial-gradient(3px 3px at 50% 50%, rgba(236, 72, 153, 0.2), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.3), transparent);
  background-size: 200% 200%;
  animation: particleFloat 40s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% {
    background-position: 0% 0%;
    opacity: 0.4;
  }
  50% {
    background-position: 100% 100%;
    opacity: 0.7;
  }
}

/* ========================================
   LAYER 4: AMBIENT GLOW
======================================== */
.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
  mix-blend-mode: screen;
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* ========================================
   LAYER 5: BRANDING (TOP LEFT)
======================================== */
.branding {
  position: fixed;
  top: 32px;
  left: 32px;
  z-index: 20;
}

.brand-logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #06b6d4 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(6, 182, 212, 0.5);
  margin-bottom: 4px;
}

.brand-tagline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   LAYER 6: STATUS BADGES (TOP RIGHT)
======================================== */
.status-badges {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 20;
  display: flex;
  gap: 12px;
}

.badge {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(12px);
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge.live {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.badge.live::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.badge.listeners {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.5);
  color: #67e8f9;
}

/* ========================================
   LAYER 7: DJ CHAT BUBBLE
======================================== */
.dj-chat-bubble {
  position: fixed;
  top: 20%;
  left: 15%;
  max-width: 400px;
  z-index: 15;
  padding: 24px 32px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  border: 2px solid var(--cyan);
  border-radius: 30px 30px 30px 0;
  color: #67e8f9;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(6, 182, 212, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.08);
  animation: bubbleFloat 3s ease-in-out infinite;
  transition: all 0.8s ease;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========================================
   LAYER 8: GLASS PANEL BASE
======================================== */
.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 80px rgba(6, 182, 212, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 20px;
  transition: all 0.3s ease;
}

.glass-panel:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.3),
    0 0 100px rgba(6, 182, 212, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ========================================
   HUD CONTAINER (3-COLUMN GRID)
======================================== */
.hud-container {
  position: relative;
  z-index: 10;
  max-width: 1600px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 20px;
  padding-top: 140px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 380px 1fr 320px;
  grid-template-rows: auto 1fr;
  gap: 16px;
  align-items: start;
}

/* ========================================
   TICKER (FULL WIDTH TOP)
======================================== */
.ticker-container {
  grid-column: 1 / -1;
  height: 44px;
  overflow: hidden;
  position: relative;
  background: rgba(15, 15, 35, 0.5);
  padding: 0 !important;
  border-radius: 12px;
}

.ticker {
  position: absolute;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 0 20px;
  height: 100%;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.ticker-item.up {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.ticker-item.down {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.ticker-item.info {
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.3);
}

/* ========================================
   DRAG HANDLES FOR PANELS
======================================== */
.drag-handle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
  z-index: 10;
  user-select: none;
}

.drag-handle:hover {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
}

.drag-handle:active {
  cursor: grabbing;
  transform: scale(0.95);
}

/* Panel positioning */
.left-panel,
.middle-panel,
.right-panel {
  position: relative;
  transition: box-shadow 0.2s ease;
}

.left-panel:has(.drag-handle:hover),
.middle-panel:has(.drag-handle:hover),
.right-panel:has(.drag-handle:hover) {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ========================================
   LEFT PANEL: NOW PLAYING + TV (IN MIDDLE, LOWER)
   Updated: 2026-01-10 - Center wide column
======================================== */
.left-panel {
  grid-column: 2 !important;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 312px;
}

.now-playing-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  text-align: center;
}

.track-info {
  margin-bottom: 24px;
  text-align: center;
}

.track-title {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  line-height: 1.2;
}

.track-artist {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* EQUALIZER (STEREO VISUALIZATION) */
.equalizer {
  display: flex;
  flex-direction: row;
  gap: 4px;
  height: 120px;
  align-items: flex-end;
  justify-content: center;
  margin: 16px 0;
  padding: 0 12px;
}

.eq-bar {
  width: 6px;
  height: 3px;
  min-height: 3px;
  background: linear-gradient(to top, #06b6d4, #8b5cf6, #ec4899);
  border-radius: 3px;
  transition: height 0.03s linear, background 0.05s ease;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
  transform-origin: bottom;
}

@keyframes eqBounce {
  0%, 100% { width: 20%; }
  50% { width: 100%; }
}

/* CONTROLS */
.controls {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.control-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  flex: 1;
  user-select: none;
  -webkit-user-select: none;
}

.control-btn:hover {
  background: rgba(6, 182, 212, 0.3);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
  transform: translateY(-2px);
}

.control-btn.primary {
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  border-color: transparent;
}

.control-btn.primary:hover {
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.7);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.volume-control input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* TV PANEL */
.tv-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tv-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

#vibe-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.tv-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tv-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #67e8f9;
}

.tv-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(6, 182, 212, 0.3);
  color: #fff;
  border: 1px solid rgba(6, 182, 212, 0.5);
  transition: all 0.3s ease;
}

.tv-btn:hover {
  background: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.tv-channel-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.tv-channel-btn:hover {
  background: rgba(6, 182, 212, 0.3);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.tv-channel-btn.audio-toggle {
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  border: none;
}

/* ========================================
   MIDDLE PANEL: BUBBLES + SHOUTOUTS (ON LEFT)
======================================== */
.middle-panel {
  grid-column: 1 !important;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-content: start;
}

/* AI COMMENTARY BUBBLES */
.bubbles-panel {
  padding: 16px;
}

.bubble-grid {
  display: grid;
  gap: 12px;
}

.bubble {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.bubble:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateX(4px);
}

.bubble-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.bubble-content {
  flex: 1;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.bubble-news {
  border-left: 3px solid var(--cyan);
}

.bubble-joke {
  border-left: 3px solid var(--purple);
}

.bubble-shout {
  border-left: 3px solid var(--pink);
}

/* SHOUTOUT PANEL */
.shoutout-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel-header {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.submission-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.5);
}

.tab-btn.active {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
}

.submission-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.shoutout-input,
.shoutout-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.shoutout-input:focus,
.shoutout-textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.shoutout-textarea {
  resize: none;
  height: 70px;
}

.shoutout-input::placeholder,
.shoutout-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.file-upload-area {
  position: relative;
}

.file-upload-area input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-label:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
}

.upload-icon {
  font-size: 32px;
}

.upload-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.file-name {
  font-size: 12px;
  color: var(--cyan);
  display: none;
}

.shoutout-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  color: #fff;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shoutout-btn:hover {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.6);
  transform: translateY(-2px);
}

.shoutout-submissions {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  max-height: 250px;
  padding-right: 8px;
}

.shoutout-submissions::-webkit-scrollbar {
  width: 4px;
}

.shoutout-submissions::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.shoutout-submissions::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.4);
  border-radius: 4px;
}

.submission-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.submission-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(6, 182, 212, 0.3);
}

.submission-name {
  font-size: 13px;
  font-weight: 700;
  color: #67e8f9;
  margin-bottom: 4px;
}

.submission-msg {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* ========================================
   RIGHT PANEL: MARKET FEED (ON RIGHT)
======================================== */
.right-panel {
  grid-column: 3 !important;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 180px);
}

.feed-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 8px;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  margin: 16px 0;
}

.feed-list::-webkit-scrollbar {
  width: 4px;
}

.feed-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.feed-list::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.4);
  border-radius: 4px;
}

.feed-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  animation: feedSlideIn 0.5s ease-out;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

@keyframes feedSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feed-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateX(-4px);
}

.buy-vibe-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #fff;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 12px;
}

.buy-vibe-btn:hover {
  box-shadow: 0 0 40px rgba(236, 72, 153, 0.7);
  transform: translateY(-2px);
}

/* ========================================
   PLAYER BAR (BOTTOM)
======================================== */
.playerbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(15, 15, 35, 0.8);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pb-left {
  flex: 1;
}

.pb-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 4px;
}

.pb-now {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.pb-mid {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pb-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.pb-btn:hover {
  background: rgba(6, 182, 212, 0.3);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.pb-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* ========================================
   START OVERLAY
======================================== */
.start-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.95));
  backdrop-filter: blur(10px);
  color: #fff;
  z-index: 9999;
  cursor: pointer;
  text-align: center;
  padding: 24px;
  transition: opacity 0.3s ease;
  animation: startPulse 2s ease-in-out infinite;
}

.start-overlay:hover {
  background: linear-gradient(180deg, rgba(6,182,212,0.15), rgba(139,92,246,0.15));
}

@keyframes startPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1400px) {
  .hud-container {
    grid-template-columns: 320px 1fr 280px;
  }
}

/* TABLET */
@media (max-width: 1024px) {
  .hud-container {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 100px;
    padding-bottom: 80px; /* Space for player bar */
  }
  
  .ticker-container {
    grid-column: 1;
  }
  
  .left-panel,
  .middle-panel,
  .right-panel {
    grid-column: 1;
    grid-row: auto;
  }
  
  .branding {
    top: 16px;
    left: 16px;
  }
  
  .status-badges {
    top: 16px;
    right: 16px;
  }
  
  .dj-chat-bubble {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 85%;
  }
}

/* MOBILE PHONES */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  /* Reduce padding for mobile */
  .hud-container {
    padding: 12px 10px;
    padding-top: 80px;
    padding-bottom: 90px;
    gap: 10px;
  }

  .glass-panel {
    padding: 14px;
    border-radius: 16px;
  }

  /* Branding - Smaller on mobile */
  .branding {
    top: 12px;
    left: 12px;
  }

  .brand-logo {
    font-size: 20px;
    letter-spacing: -0.5px;
  }

  .brand-tagline {
    font-size: 9px;
    letter-spacing: 1px;
  }

  /* Status badges - Smaller and stackable */
  .status-badges {
    top: 12px;
    right: 12px;
    flex-direction: column;
    gap: 6px;
  }

  .badge {
    padding: 6px 12px;
    font-size: 10px;
  }

  /* DJ Chat Bubble - Smaller, centered */
  .dj-chat-bubble {
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    padding: 16px 20px;
    font-size: 15px;
    border-radius: 20px 20px 20px 0;
  }

  /* Ticker - Smaller items */
  .ticker-container {
    height: 38px;
  }

  .ticker-item {
    font-size: 12px;
    padding: 6px 12px;
    gap: 6px;
  }

  /* Now Playing Card */
  .track-title {
    font-size: 20px;
  }

  .track-artist {
    font-size: 13px;
  }

  .now-playing-title {
    font-size: 11px;
  }

  /* Equalizer - Smaller on mobile */
  .equalizer {
    height: 80px;
    gap: 2px;
  }

  /* Controls - Larger touch targets */
  .controls {
    gap: 8px;
  }

  .control-btn {
    padding: 14px 16px;
    font-size: 18px;
    min-height: 48px; /* Better touch target */
  }

  /* TV Panel */
  .tv-video-wrapper {
    height: 180px;
  }

  .tv-channel-btn {
    padding: 14px;
    font-size: 13px;
    min-height: 48px;
  }

  /* Bubbles - More compact */
  .bubble {
    padding: 12px;
    gap: 10px;
  }

  .bubble-icon {
    font-size: 20px;
  }

  .bubble-content {
    font-size: 13px;
  }

  /* Shoutout Panel */
  .panel-header {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .tab-btn {
    padding: 10px 12px;
    font-size: 12px;
    min-height: 44px;
  }

  .shoutout-input,
  .shoutout-textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .shoutout-textarea {
    height: 70px;
  }

  .shoutout-btn {
    padding: 14px;
    font-size: 14px;
    min-height: 48px;
  }

  .submission-item {
    padding: 10px;
  }

  .submission-name {
    font-size: 12px;
  }

  .submission-msg {
    font-size: 11px;
  }

  /* Feed - More compact */
  .feed-list {
    gap: 8px;
  }

  .feed-item {
    padding: 10px;
    font-size: 12px;
  }

  .buy-vibe-btn {
    padding: 14px 20px;
    font-size: 15px;
    min-height: 48px;
  }

  /* Player Bar - Larger touch targets */
  .playerbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .pb-left {
    flex: 1 1 100%;
    order: 1;
  }

  .pb-mid {
    flex: 1;
    order: 2;
  }

  .pb-right {
    order: 3;
  }

  .pb-name {
    font-size: 13px;
  }

  .pb-now {
    font-size: 11px;
  }

  .pb-btn {
    padding: 12px 18px;
    font-size: 16px;
    min-height: 48px;
  }

  /* Start Overlay */
  .start-overlay {
    padding: 16px;
  }

  .start-overlay div[style*="font-size:64px"] {
    font-size: 48px !important;
  }

  .start-overlay div[style*="font-size:36px"] {
    font-size: 28px !important;
  }

  .start-overlay div[style*="font-size:20px"] {
    font-size: 16px !important;
  }
}

/* SMALL PHONES */
@media (max-width: 480px) {
  .hud-container {
    padding: 10px 8px;
    padding-top: 75px;
    padding-bottom: 100px;
  }

  .glass-panel {
    padding: 12px;
  }

  .brand-logo {
    font-size: 18px;
  }

  .brand-tagline {
    font-size: 8px;
  }

  .badge {
    padding: 5px 10px;
    font-size: 9px;
  }

  .dj-chat-bubble {
    padding: 14px 16px;
    font-size: 14px;
    max-width: 95%;
  }

  .track-title {
    font-size: 18px;
  }

  .equalizer {
    height: 60px;
  }

  .control-btn {
    padding: 12px 14px;
    font-size: 16px;
  }

  .tv-video-wrapper {
    height: 150px;
  }

  .playerbar {
    padding: 10px 12px;
  }
}

/* LANDSCAPE PHONES */
@media (max-width: 900px) and (orientation: landscape) {
  .hud-container {
    padding-top: 60px;
    padding-bottom: 70px;
  }

  .branding {
    top: 8px;
    left: 12px;
  }

  .brand-logo {
    font-size: 16px;
  }

  .brand-tagline {
    display: none; /* Hide tagline in landscape to save space */
  }

  .status-badges {
    top: 8px;
    right: 12px;
    flex-direction: row;
  }

  .dj-chat-bubble {
    top: 10%;
    font-size: 14px;
    padding: 12px 16px;
  }

  .ticker-container {
    height: 36px;
  }

  .equalizer {
    height: 60px;
  }

  .playerbar {
    padding: 8px 12px;
  }
}
