/* Tesla infotainment: Chromium ~79+ (MCU2). Avoid flex gap / aspect-ratio. */
html, body {
  margin: 0;
  height: 100%;
  background: #0b0b0f;
  color: #f4f0ea;
  font-family: "Tesla Sans", "Gotham", "Helvetica Neue", sans-serif;
  overflow: hidden;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.stage {
  display: -webkit-flex;
  display: flex;
  height: 100%;
}
.now {
  width: 36%;
  max-width: 540px;
  padding: 28px 32px 24px;
  background: #111118;
  border-right: 1px solid #2a2a33;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
}
.brand {
  margin: 0 0 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  color: #9a9488;
}
.brand em { color: #f5c518; font-style: normal; }
.art {
  width: 72%;
  max-width: 340px;
  height: 0;
  padding-bottom: 72%;
  max-height: 340px;
  border-radius: 18px;
  background: #1a1a22 center/cover no-repeat;
  margin: 0 0 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.now h1 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.15;
}
#artist, #status { margin: 0 0 8px; color: #9a9488; font-size: 18px; }
.transport {
  margin-top: auto;
  padding-top: 16px;
}
.transport button {
  width: 84px;
  height: 84px;
  margin-right: 12px;
  margin-bottom: 8px;
  border-radius: 50%;
  border: 2px solid #3a3a44;
  background: #1c1c24;
  color: #f4f0ea;
  font-size: 22px;
  vertical-align: middle;
}
.transport button.play {
  width: 108px;
  height: 108px;
  background: #f5c518;
  border-color: #f5c518;
  color: #1a1400;
  font-size: 28px;
}
.transport button.ghost {
  width: auto;
  min-width: 84px;
  padding: 0 18px;
  border-radius: 42px;
  font-size: 20px;
}
.hint { margin: 16px 0 0; color: #6f6a62; font-size: 14px; }
.stations {
  -webkit-flex: 1;
  flex: 1;
  overflow: hidden;
  padding: 16px 24px 24px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
}
.tabs { margin: 0 0 14px; }
.tabs button {
  min-width: 148px;
  min-height: 60px;
  margin-right: 10px;
  border-radius: 14px;
  border: 2px solid #3a3a44;
  background: #16161e;
  color: #f4f0ea;
  font-size: 22px;
}
.tabs button.is-on {
  border-color: #f5c518;
  background: #2a2208;
  color: #f5c518;
}
#station-pane, #queue-pane {
  -webkit-flex: 1;
  flex: 1;
  overflow: auto;
}
.grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}
.tile {
  width: 31%;
  margin: 0 2% 18px 0;
  background: #16161e;
  border: 3px solid transparent;
  border-radius: 16px;
  color: inherit;
  text-align: left;
  padding: 0;
  min-height: 168px;
  overflow: hidden;
}
.tile:focus, .tile.is-on {
  border-color: #f5c518;
  outline: none;
}
.tile.mix { border-color: #3a3420; }
.tile img, .tile .ph {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: #22222c;
  display: block;
}
.tile span {
  display: block;
  padding: 10px 12px 14px;
  font-size: 18px;
}
.qbar { margin: 0 0 12px; }
.qbar p {
  display: inline-block;
  margin: 0 16px 10px 0;
  font-size: 20px;
  color: #9a9488;
  vertical-align: middle;
}
.chip {
  min-height: 56px;
  min-width: 128px;
  margin: 0 10px 10px 0;
  padding: 0 18px;
  border-radius: 28px;
  border: 2px solid #3a3a44;
  background: #1c1c24;
  color: #f4f0ea;
  font-size: 20px;
  vertical-align: middle;
}
.qrow {
  display: -webkit-flex;
  display: flex;
  width: 100%;
  min-height: 76px;
  margin: 0 0 8px;
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #16161e;
  color: inherit;
  text-align: left;
  -webkit-align-items: center;
  align-items: center;
}
.qrow.is-on { border-color: #f5c518; background: #2a2208; }
.qrow .n {
  width: 44px;
  font-size: 22px;
  color: #9a9488;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.qrow.is-on .n { color: #f5c518; }
.qrow .qmeta { -webkit-flex: 1; flex: 1; min-width: 0; }
.qrow .qmeta b {
  display: block;
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qrow .qmeta i {
  display: block;
  font-style: normal;
  color: #9a9488;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1100px) {
  .now { width: 42%; }
  .tile { width: 47%; }
}
