/* ══════════════════════════════════════════════════════════════════════════
   REMOTE VIEW (Modern, mobile-first) + MC VIEW (full-screen countdown)
   ══════════════════════════════════════════════════════════════════════════ */

#remoteView {
  padding: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

/* Head HUD */
.remote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.25rem 0.75rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.remote-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.remote-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: var(--text-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.status-dot.pulsing {
  animation: remoteDotBlink 1.5s infinite ease-in-out;
}

@keyframes remoteDotBlink {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.remote-panic-btn {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: var(--neon-rose);
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.remote-panic-btn:active {
  background: var(--neon-rose);
  color: var(--text-dark);
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}

.remote-stop-all-btn {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: var(--neon-rose);
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.remote-stop-all-btn:active {
  background: var(--neon-rose);
  color: var(--text-dark);
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}

/* TAB NAVIGATION */
.remote-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(9, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  padding: 0.6rem 0 calc(0.6rem + env(safe-area-inset-bottom, 0px)) 0;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.remote-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  flex: 1;
  padding: 0.2rem 0;
  font-family: inherit;
}

.remote-nav-btn i {
  font-size: 1.25rem;
  margin-bottom: 4px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.remote-nav-btn.active {
  color: var(--neon-cyan);
}

.remote-nav-btn.active i {
  opacity: 1;
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Tab contents */
.remote-tab-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: tabFadeIn 0.25s ease-out;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* GO Desk */
.remote-go-desk {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.remote-cue-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.cue-bar-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.cue-bar-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.08);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.remote-cue-cards {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.remote-cue-card {
  flex: 1;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.remote-cue-card.prev {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.remote-cue-card.next {
  background: rgba(0, 242, 254, 0.04);
  border: 1px solid rgba(0, 242, 254, 0.12);
}

.cue-card-hdr {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.cue-card-txt {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remote-cue-card.next .cue-card-txt {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.remote-go-btn-large {
  background: linear-gradient(135deg, var(--neon-emerald) 0%, var(--neon-cyan) 100%);
  color: var(--text-dark);
  border: none;
  border-radius: 16px;
  padding: 1.25rem 1rem;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3), inset 0 1px 1px rgba(255,255,255,0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  margin-bottom: 0.85rem;
  font-family: inherit;
}

.remote-go-btn-large:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.remote-go-btn-large i {
  font-size: 1.4rem;
}

.remote-go-btn-large:disabled {
  background: rgba(100, 116, 139, 0.3);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.remote-cue-actions {
  display: flex;
  gap: 0.6rem;
}

.remote-cue-act-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  padding: 0.65rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.remote-cue-act-btn:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.remote-cue-act-btn.back {
  color: var(--text-main);
}

.remote-cue-act-btn.reset {
  color: var(--neon-rose);
  border-color: rgba(244, 63, 94, 0.15);
  background: rgba(244, 63, 94, 0.02);
}

.remote-cue-act-btn.reset:active {
  background: rgba(244, 63, 94, 0.1);
}

/* Cue timeline list */
.remote-cue-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.remote-timeline-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  transition: all 0.2s;
}

.remote-timeline-item.done {
  opacity: 0.5;
}

.remote-timeline-item.current {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--neon-emerald);
  font-weight: 700;
}

.remote-timeline-item.next {
  background: rgba(0, 242, 254, 0.06);
  border-color: rgba(0, 242, 254, 0.35);
  color: var(--neon-cyan);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--text-muted);
}

.remote-timeline-item.current .timeline-dot {
  background: var(--neon-emerald);
  color: var(--text-dark);
}

.remote-timeline-item.next .timeline-dot {
  background: var(--neon-cyan);
  color: var(--text-dark);
}

.timeline-lbl {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-tag {
  font-size: 0.55rem;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

.remote-timeline-item.next .timeline-tag {
  background: rgba(0, 242, 254, 0.15);
  color: var(--neon-cyan);
}

/* Soundboard card grid */
.remote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.remote-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  min-height: 90px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.remote-tile:active {
  transform: scale(0.97);
}

.remote-tile.playing {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(168, 85, 247, 0.06) 100%);
  border-color: rgba(0, 242, 254, 0.55);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: remoteTilePulse 2s infinite alternate;
}

@keyframes remoteTilePulse {
  0% { box-shadow: 0 0 12px rgba(0, 242, 254, 0.15); }
  100% { box-shadow: 0 0 20px rgba(0, 242, 254, 0.35); }
}

.remote-tile-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.remote-tile-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  word-break: break-word;
  max-height: 2.6rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.remote-tile.playing .remote-tile-title {
  color: var(--neon-cyan);
}

.remote-tile-playing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  margin-top: 3px;
  flex-shrink: 0;
  animation: remoteDotPulse 1s infinite alternate;
}

@keyframes remoteDotPulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; }
}

.remote-tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  gap: 0.4rem;
}

.remote-tile-status-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.remote-tile.playing .remote-tile-status-icon {
  background: rgba(0, 242, 254, 0.2);
  color: var(--neon-cyan);
}

.remote-tile-sup-btn {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--neon-purple);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.remote-tile-sup-btn i {
  font-size: 0.75rem;
}

.remote-tile-sup-btn.active {
  background: var(--neon-purple);
  color: var(--text-dark);
  border-color: var(--neon-purple);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
  animation: remoteSupPulse 1s infinite alternate;
}

@keyframes remoteSupPulse {
  0% { box-shadow: 0 0 8px rgba(168, 85, 247, 0.3); }
  100% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.6); }
}

/* Playlists / Party Lists */
.remote-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 320px;
  overflow-y: auto;
}

.remote-row {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  text-align: left;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: inherit;
}

.remote-row:active {
  transform: translateX(2px);
}

.remote-row.active {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--neon-emerald);
}

.remote-row.playing {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--neon-emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.1);
  font-weight: 700;
}

/* Equalizer animations */
.remote-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 14px;
  height: 12px;
  flex-shrink: 0;
}

.remote-eq span {
  display: block;
  width: 2px;
  background-color: var(--neon-emerald);
  border-radius: 1px;
  height: 100%;
}

.remote-eq.animating span {
  animation: remoteEqPlay 0.8s ease-in-out infinite alternate;
}

.remote-eq span:nth-child(1) { height: 30%; animation-delay: -0.2s; }
.remote-eq span:nth-child(2) { height: 80%; animation-delay: -0.4s; }
.remote-eq span:nth-child(3) { height: 50%; animation-delay: -0.1s; }
.remote-eq span:nth-child(4) { height: 90%; animation-delay: -0.3s; }

@keyframes remoteEqPlay {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* ══════════════════════════════════════════
   MC VIEW (full-screen countdown)
   ══════════════════════════════════════════ */
.mc-view {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.15), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(0, 242, 254, 0.15), transparent 50%),
              var(--bg-darker);
  z-index: 99998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3vh 4vw;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.mc-view-tag {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--neon-cyan);
  margin-bottom: 1vh;
  text-transform: uppercase;
  opacity: 0.85;
}

.mc-view-title {
  font-size: clamp(2rem, 7vw, 5rem);
  font-weight: 800;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 3vh;
  text-shadow: 0 0 30px rgba(0, 242, 254, 0.25);
  line-height: 1.1;
}

.mc-view-time {
  font-family: 'Fira Code', monospace;
  font-size: clamp(5rem, 22vw, 22rem);
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 0 40px rgba(0, 242, 254, 0.5);
}

.mc-view-bar {
  width: 80%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-top: 3vh;
  overflow: hidden;
}

.mc-view-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  width: 0%;
  transition: width 0.2s linear;
}

.mc-view-next {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  margin-top: 3vh;
  color: var(--text-muted);
  text-align: center;
}

.mc-view-clock {
  position: absolute;
  top: 3vh;
  right: 4vw;
  font-family: 'Fira Code', monospace;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  font-weight: 600;
}

.mc-view-close {
  position: absolute;
  top: 3vh;
  left: 4vw;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.mc-view-close:hover {
  border-color: var(--neon-rose);
  color: var(--neon-rose);
}
