/*
 Theme Name: Jukebox Genesis Child
 Theme URI: https://jukebox.webstpaul.com
 Description: Mobile-first jukebox interface for Sony 100-CD changer
 Author: Terrence Bogie
 Template: genesis
 Version: 1.13
*/

/* Import Oswald from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;700&display=swap');

html {
  box-sizing: border-box;
  font-size: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: 'Oswald', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #111;
  color: #f5f5f5;
}

/* Layout */
.jukebox-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
}

/* Header */
.jukebox-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.jukebox-title {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Search + alphabet strip */
.jukebox-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.jukebox-search {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  background: #222;
  color: #f5f5f5;
}

.jukebox-search::placeholder {
  color: #888;
}

.jukebox-alpha {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.25rem;
}

.jukebox-alpha button {
  flex: 0 0 auto;
  min-width: 28px;
  padding: 0.25rem 0;
  border: none;
  border-radius: 999px;
  background: #222;
  color: #ccc;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.jukebox-alpha button.active {
  background: #f36;
  color: #fff;
}

/* Tile grid (Zune-style) */
.jukebox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.jukebox-tile {
  position: relative;
  background: #222;
  border-radius: 6px;
  overflow: hidden;
  padding: 0.5rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.jukebox-tile:hover,
.jukebox-tile:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  background: #2a2a2a;
}

.jukebox-tile-slot {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999;
}

.jukebox-tile-title {
  margin-top: 0.15rem;
  font-size: 0.9rem;
  line-height: 1.2;
}

.jukebox-tile-artist {
  font-size: 0.75rem;
  color: #bbb;
}

/* Detail panel */
.jukebox-detail {
  margin-top: 1rem;
  border-top: 1px solid #333;
  padding-top: 0.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.jukebox-artwork {
  width: 100%;
  max-width: 260px;
  border-radius: 6px;
  background: #222;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.jukebox-meta-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.jukebox-meta-artist {
  font-size: 0.9rem;
  color: #ccc;
}

.jukebox-meta-slot {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
}

.jukebox-tracks {
  margin-top: 0.5rem;
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
}

.jukebox-tracks li {
  padding: 0.25rem 0;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.jukebox-track-title {
  flex: 1;
}

.jukebox-track-duration {
  flex: 0 0 auto;
  color: #aaa;
  font-size: 0.75rem;
}

/* Loading / status */
.jukebox-status {
  font-size: 0.8rem;
  color: #aaa;
}

/* Larger screens */
@media (min-width: 768px) {
  .jukebox-wrapper {
    padding: 1rem 1.5rem;
  }

  .jukebox-detail {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    align-items: flex-start;
  }
}
