/* Copyright Ayers Electronics Inc. All rights reserved. */
/* no-artwork tile. */

/* ---- the no-artwork face (every title's poster slot is filled) ----
   An <img> cannot carry generated text, so a title's poster has a sibling .art-missing that the
   stylesheet shows only while the image is marked data-missing (js sets it when there is no art
   or the fetch fails). The face mirrors the poster's own box, so nothing shifts, and carries the
   title's own name (js/on-demand-card.js card() writes it in). A library's tile builds no face.
   This base rule is the shared place that the info page, the guide's preview and Coming Up Next
   read; each surface gives the face its own height (a card's is its .card-art box,
   css/components/on-demand.css). The type under .card .art-missing belongs to rail and grid cards
   alone, since those other surfaces draw no title into the face. */
.card-btn {
  position: relative;
}
.art-missing {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  background: var(--elevated);
  color: var(--muted);
  font-size: var(--type-label);
  letter-spacing: 0.08em;
}
/* Title large, wrapped, sentence case - readable at every card width the rail draws. */
.card .art-missing {
  font-size: var(--type-body);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.25;
  overflow: hidden;
}
/* ---- the title face (js/stock-card.js): what a title with no artwork wears. A dark
   field in the title's own tone with the accent washed into its lower right, the name in the wordmark's face at the top and
   the kind along the bottom - no bird, so the name is what tells two cards apart. Every paint of the
   same card is the same. ---- */
.art-missing.stock {
  display: none;
  position: relative;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.art-missing.stock[data-face="1"] {
  background: var(--face-1);
}
.art-missing.stock[data-face="2"] {
  background: var(--face-2);
}
.art-missing.stock[data-face="3"] {
  background: var(--face-3);
}
.art-missing.stock[data-face="4"] {
  background: var(--face-4);
}
.art-missing.stock[data-face="5"] {
  background: var(--face-5);
}
.poster[data-missing="1"] + .art-missing.stock {
  display: block;
}
/* In a card the face takes the poster's frame outright: a poster with nothing to show gives up its
   box, so the face is the tile's one picture rather than a second one stacked under an empty frame. */
.card .poster[data-missing="1"] {
  display: none;
}
/* The accent wash as its own layer at a fixed opacity: the ground names the accent token and nothing
   else, and no colour function above the WebView floor is needed to soften it. */
.preview-idle .stock-glow,
.search-row .art.stock .stock-glow,
.art-missing.stock .stock-glow {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(120% 90% at 100% 100%, var(--accent), transparent 62%);
  opacity: 0.22;
  pointer-events: none;
}
.art-missing.stock .stock-title {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 12px;
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.12;
  text-align: left;
  color: var(--accent-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
/* An artist's initial: centred on the tone, large, in the wordmark's face. */
.art-missing.stock .stock-initial {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: calc(56 * var(--od-tv-px));
  line-height: 1;
  text-align: center;
  color: var(--accent-text);
}
/* A rated card's chip rides the corner the name starts in, so the name starts under it. */
.card.rated .art-missing.stock .stock-title {
  top: calc(30 * var(--od-tv-px));
}
/* The kind word hangs under the centred icon (css/components/library-kind-face.css .stock-icon), so the
   foot stays clear for the score and count chips. */
.art-missing.stock .stock-kind {
  position: absolute;
  top: calc(68% + 4px);
  left: 10px;
  right: 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--type-micro);
  letter-spacing: 0.08em;
  color: var(--muted);
}
.poster[data-missing="1"] + .art-missing,
.upnext-poster[data-missing="1"] + .art-missing {
  display: flex;
}
.upnext-card {
  position: relative;
}
/* The card is a fixed-height row that clips, so the face covers it whole. */
.upnext-card .art-missing {
  height: 100%;
}
.hero-art .art-missing {
  border-radius: var(--radius);
}
