/* Direct engine selection, available without opening the full garage. */
.ov-motorsport .ov-instrument-heading h1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.ov-engine-picker {
  display: flex;
  align-items: stretch;
  gap: 7px;
  flex: 0 0 auto;
  margin: 15px 0 0;
  position: relative;
  z-index: 3;
}
.ov-engine-picker > button {
  width: 43px;
  flex: 0 0 43px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #ffffff23;
  border-radius: 6px;
  background: #ffffff06;
  color: #f0f0e9;
  font: 500 30px/1 sans-serif;
  transition: background 0.15s;
}
.ov-engine-picker > button:hover {
  background: #ffffff12;
  border-color: #ff7954;
}
.ov-engine-picker > button:disabled {
  opacity: 0.35;
  cursor: wait;
}
.ov-engine-choice {
  min-width: 0;
  flex: 1;
  border: 1px solid #ffffff23;
  border-radius: 6px;
  background: #ffffff06;
  padding: 6px 10px 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.ov-engine-choice:focus-within {
  outline: 2px solid var(--ov-accent);
  outline-offset: 2px;
}
.ov-engine-choice label {
  font:
    500 6px/1 Montserrat,
    sans-serif;
  letter-spacing: 0.15em;
  color: #a7b1b6;
}
.ov-engine-choice select {
  color-scheme: dark;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: 0;
  outline: 0 !important;
  padding: 0 14px 0 0;
  margin: 0;
  color: #f0f0e9;
  font: 600 20px/1.2 var(--ov-display);
  text-overflow: ellipsis;
  cursor: pointer;
}
.ov-engine-choice select:disabled {
  opacity: 0.5;
  cursor: wait;
}
.ov-engine-choice select option,
.ov-engine-choice select optgroup {
  font:
    400 14px Montserrat,
    sans-serif;
  background: #1d2226;
  color: #f0f0e9;
}
.ov-engine-art-button {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  display: block;
  border-radius: 8px;
}
.ov-engine-art-button:disabled {
  cursor: wait;
}
.ov-art-browse {
  position: absolute;
  bottom: 25px;
  right: 12px;
  padding: 7px 9px;
  background: #11181cdd;
  border: 1px solid #ffffff21;
  border-radius: 4px;
  color: #ff9e87;
  font:
    500 9px Montserrat,
    sans-serif;
  z-index: 3;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 0.18s,
    transform 0.18s;
  pointer-events: none;
}
.ov-engine-art-button:hover .ov-art-browse,
.ov-engine-art-button:focus-visible .ov-art-browse {
  opacity: 1;
  transform: translateY(0);
}
.ov-motorsport .cv-visuel {
  position: relative;
}
.ov-layout-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #ffffff28;
  border-radius: 4px;
  background: #11181ce8;
  color: #f0f0e9;
  padding: 5px 7px;
  font:
    500 8px/1.2 Montserrat,
    sans-serif;
  z-index: 1;
}
@media (min-width: 701px) and (max-width: 1100px) {
  .ov-motorsport .stage {
    grid-template-rows: 160px minmax(0, 1fr);
  }
  .ov-motorsport .ov-engine-picker {
    position: absolute;
    left: 17px;
    right: 54%;
    bottom: 12px;
    margin: 0;
    gap: 5px;
  }
  .ov-engine-picker > button {
    min-height: 40px;
    width: 32px;
    flex-basis: 32px;
    font-size: 25px;
  }
  .ov-engine-choice {
    padding: 5px 6px;
  }
  .ov-engine-choice label {
    font-size: 5px;
  }
  .ov-engine-choice select {
    font-size: 17px;
    padding-right: 7px;
  }
  .ov-motorsport .ov-engine-figure {
    height: 150px;
  }
}
@media (max-width: 700px) {
  .ov-motorsport .ov-showcase {
    min-height: 202px;
    max-height: 202px;
    flex-basis: 202px;
    padding-bottom: 63px;
  }
  .ov-motorsport .ov-engine-figure {
    height: 140px;
    top: 3px;
  }
  .ov-motorsport .ov-engine-picker {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    margin: 0;
    gap: 7px;
  }
  .ov-engine-picker > button {
    width: 43px;
    flex-basis: 43px;
    min-height: 44px;
  }
  .ov-engine-choice select {
    font-size: 20px;
  }
  .ov-engine-choice label {
    font-size: 6px;
  }
  .ov-engine-choice {
    padding: 5px 10px;
  }
  .ov-art-browse {
    display: none;
  }
  .ov-motorsport .ov-engine-figure figcaption {
    bottom: 1px;
    right: 10px;
    font-size: 5px;
  }
  .ov-layout-badge {
    font-size: 7px;
    bottom: 6px;
    left: 6px;
    padding: 4px 5px;
    max-width: calc(100% - 12px);
  }
}
@media (max-height: 760px) and (max-width: 700px) {
  .ov-motorsport .ov-showcase {
    min-height: 188px;
    max-height: 188px;
    flex-basis: 188px;
    padding-top: 15px;
  }
  .ov-motorsport .ov-engine-figure {
    height: 128px;
  }
  .ov-motorsport #tacho {
    height: 160px;
  }
}
@media (max-height: 700px) and (min-width: 701px) {
  .ov-motorsport .stage {
    grid-template-rows: 112px minmax(0, 1fr);
  }
  .ov-motorsport .ov-showcase {
    padding-top: 12px;
    padding-bottom: 51px;
  }
  .ov-motorsport .ov-instrument-heading h1 {
    font-size: 26px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin: 4px 0;
  }
  .ov-motorsport .ov-eyebrow {
    font-size: 7px;
  }
  .ov-motorsport .ov-instrument-heading p {
    display: none;
  }
  .ov-motorsport .ov-engine-picker {
    position: absolute;
    left: 14px;
    right: 54%;
    bottom: 9px;
    margin: 0;
    gap: 5px;
  }
  .ov-engine-picker > button {
    width: 32px;
    flex-basis: 32px;
    min-height: 38px;
    font-size: 24px;
  }
  .ov-engine-choice {
    padding: 4px 6px;
  }
  .ov-engine-choice label {
    font-size: 5px;
  }
  .ov-engine-choice select {
    font-size: 17px;
    padding-right: 7px;
  }
  .ov-motorsport .ov-engine-figure {
    height: 105px;
  }
  .ov-motorsport .ov-engine-figure figcaption {
    bottom: 1px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ov-engine-picker > button,
  .ov-art-browse {
    transition: none;
  }
}
.ov-engine-choice {
  position: relative;
}
.ov-engine-choice::after {
  content: "";
  position: absolute;
  right: 12px;
  top: calc(50% + 1px);
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #c5cdd0;
  border-bottom: 1.5px solid #c5cdd0;
  transform: rotate(45deg);
  pointer-events: none;
}
.ov-engine-choice select {
  appearance: none;
  padding-right: 23px;
}
@media (min-width: 701px) and (max-width: 1100px) {
  .ov-motorsport .ov-engine-picker {
    right: 48%;
  }
  .ov-engine-picker > button {
    width: 40px;
    flex-basis: 40px;
    min-height: 44px;
  }
  .ov-motorsport .ov-instrument-heading p {
    display: none;
  }
  .ov-motorsport .ov-instrument-heading h1 {
    font-size: 32px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}
@media (max-height: 700px) and (min-width: 701px) {
  .ov-motorsport .ov-engine-picker {
    right: 48%;
  }
  .ov-engine-picker > button {
    width: 40px;
    flex-basis: 40px;
    min-height: 44px;
  }
  .ov-motorsport .ov-engine-figure {
    width: 46%;
  }
  .ov-motorsport .ov-instrument-heading h1 {
    font-size: 26px;
    display: block;
    white-space: nowrap;
  }
}
/* Vehicle images replace the illustrative engine renders. */
.ov-motorsport .ov-showcase[data-media="vehicle"] .ov-engine-art {
  mix-blend-mode: normal;
  object-fit: contain;
  border-radius: 8px;
}
.ov-motorsport .ov-showcase[data-media="vehicle"] .ov-engine-number {
  display: none;
}
.ov-motorsport .ov-showcase[data-media="vehicle"] .ov-engine-figure figcaption {
  background: #11171be8;
  color: #c0c9cc;
  padding: 4px 6px;
  border-radius: 3px;
  z-index: 4;
  font-size: 7px;
  letter-spacing: 0.04em;
  max-width: calc(100% - 20px);
  text-align: right;
}
.ov-motorsport .ov-engine-figure figcaption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  position: relative;
  z-index: 5;
}
@media (max-width: 700px) {
  .ov-motorsport
    .ov-showcase[data-media="vehicle"]
    .ov-engine-figure
    figcaption {
    font-size: 6px;
    padding: 3px 4px;
  }
}
/* Vehicle selection shows names, with source details kept in About. */
.ov-motorsport .cv-choisir .cv-nom {
  padding-top: 4px;
  padding-bottom: 5px;
}
.ov-motorsport .local-about .ov-sound-provenance #credit,
.ov-motorsport .local-about .ov-sound-provenance .local-fidelity {
  font-size: 11px;
  line-height: 1.7;
  margin: 10px 0;
  color: var(--muted);
  opacity: 1;
}
.ov-motorsport .local-about .ov-sound-provenance #credit:empty {
  display: none;
}
