/**
 * ==============================================================================
 * ASSETTO REMOTE CLOUD — CARPLAY MEDIA & INFOTAINMENT (player.css)
 * ==============================================================================
 */

.carplay-media-bar {
  position: fixed;
  bottom: 14px;
  left: calc(var(--sidebar-w) + 20px);
  right: 20px;
  max-width: 1440px;
  background: rgba(11, 15, 23, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
  box-sizing: border-box;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.2) inset;
  z-index: 90;
  transition: all var(--transition-normal);
}

.carplay-media-bar:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

@media (max-width: 1024px) {
  .carplay-media-bar {
    left: 8px !important;
    right: 8px !important;
    bottom: 64px !important;
    border-radius: 14px !important;
    padding: 6px 12px !important;
    min-height: 52px !important;
    max-width: calc(100vw - 16px) !important;
    width: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    gap: 10px !important;
  }
  .cmb-track-group {
    min-width: 0 !important;
    flex: 1 !important;
    gap: 8px !important;
    overflow: hidden !important;
  }
  .cmb-art {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
  }
  .cmb-title {
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .cmb-artist {
    font-size: 9px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .cmb-progress-group {
    display: none !important;
  }
  .cmb-controls {
    gap: 8px !important;
    flex-shrink: 0 !important;
  }
  .cmb-btn {
    padding: 3px !important;
  }
  .cmb-btn svg {
    width: 15px !important;
    height: 15px !important;
  }
  .cmb-btn-play {
    width: 32px !important;
    height: 32px !important;
  }
  .cmb-btn-play svg {
    width: 13px !important;
    height: 13px !important;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .carplay-media-bar {
    display: none !important;
  }
}

.cmb-track-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}
.cmb-art {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.cmb-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cmb-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cmb-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmb-artist {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmb-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cmb-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.cmb-btn:hover {
  color: var(--accent-amber);
}
.cmb-btn-play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-amber);
  color: #05070B;
  box-shadow: 0 4px 14px var(--accent-amber-glow);
}
.cmb-btn-play:hover {
  filter: brightness(1.1);
  transform: scale(1.04);
}

.cmb-progress-group {
  flex: 1;
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cmb-time {
  font-family: var(--font-telemetry);
  font-size: 11px;
  color: var(--text-muted);
}
.cmb-slider {
  flex: 1;
  height: 4px;
  background: var(--surface-card);
  border-radius: var(--radius-pill);
  appearance: none;
  outline: none;
  cursor: pointer;
}
.cmb-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-amber);
}

@media (max-width: 768px) {
  .cmb-progress-group {
    display: none;
  }
}

