/* VT episode player. Brand palette only: red #961a1a, charcoal #1f1a1a, white, cream bar #fbf7f2.
   Type: Playfair Display / Source Sans Pro / Lato, same as the episode template.
   Layout: cover art on the left, title on top, play button + progress, then skip/speed/download. */
.vtp {
  --vtp-bg: #1f1a1a; --vtp-title: #ffffff; --vtp-eyebrow: #d9d2cc; --vtp-meta: #a59c96; --vtp-link: #ffffff;
  --vtp-track: rgba(255,255,255,.2); --vtp-fill: #961a1a; --vtp-thumb: #ffffff;
  --vtp-ctrl: #ffffff; --vtp-ctrl-hover: rgba(255,255,255,.09); --vtp-ctrl-line: rgba(255,255,255,.3);
  --vtp-play: #961a1a; --vtp-play-hover: #ab2222; --vtp-focus: #ffffff;
  --vtp-border: transparent; --vtp-shadow: 0 14px 30px -8px rgba(0,0,0,.28); --vtp-art-shadow: 0 10px 24px -12px rgba(0,0,0,.7);
  position: relative; display: grid;
  grid-template-columns: 152px 56px minmax(0, 1fr);
  grid-template-areas: "art head head" "art play bar" "art ctrls ctrls";
  gap: 10px 16px; align-items: center;
  margin: 28px 0 32px; padding: 20px 24px 14px 20px; border-radius: 6px; border: 1px solid var(--vtp-border);
  background: var(--vtp-bg); box-shadow: var(--vtp-shadow); color: var(--vtp-title);
  font-family: Lato, "Helvetica Neue", Arial, sans-serif; line-height: 1.35; overflow-wrap: normal;
}
.vtp--paper {
  --vtp-bg: #fbf7f2; --vtp-title: #0e0c19; --vtp-eyebrow: #961a1a; --vtp-meta: #6b6460; --vtp-link: #961a1a;
  --vtp-track: #e9dfd4; --vtp-fill: #961a1a; --vtp-thumb: #961a1a;
  --vtp-ctrl: #1f1a1a; --vtp-ctrl-hover: rgba(150,26,26,.08); --vtp-ctrl-line: #d9cabc;
  --vtp-focus: #961a1a; --vtp-border: #efe5da; --vtp-shadow: none; --vtp-art-shadow: 0 8px 18px -12px rgba(31,26,26,.5);
}
.vtp * { box-sizing: border-box; }
.vtp button { font: inherit; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vtp :focus-visible { outline: 3px solid var(--vtp-focus); outline-offset: 3px; }

.vtp-art { grid-area: art; display: block; width: 152px; height: 152px; max-width: none; margin: 0 8px 0 0; padding: 0;
  border: 0; border-radius: 4px; object-fit: cover; box-shadow: var(--vtp-art-shadow); background: rgba(255,255,255,.06); }

.vtp-play { grid-area: play; width: 56px; height: 56px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center;
  background: var(--vtp-play); color: #fff; box-shadow: 0 6px 16px -6px rgba(150,26,26,.7); transition: background .15s ease, transform .15s ease; }
.vtp-play:hover { background: var(--vtp-play-hover); transform: scale(1.04); }
.vtp-play svg { width: 24px; height: 24px; fill: currentColor; }
.vtp-play .i-play { margin-left: 3px; }
.vtp-play .i-pause, .vtp.is-playing .vtp-play .i-play { display: none; }
.vtp.is-playing .vtp-play .i-pause { display: block; }
.vtp.is-loading .vtp-play { animation: vtp-pulse 1s ease-in-out infinite; }
@keyframes vtp-pulse { 50% { box-shadow: 0 0 0 8px rgba(150,26,26,.25); } }

.vtp-head { grid-area: head; min-width: 0; display: grid; gap: 4px; align-self: end; }
.vtp-eyebrow { font: 500 13px/1.3 "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; letter-spacing: 3px; text-transform: uppercase; color: var(--vtp-eyebrow); }
.vtp-title { font: 500 22px/1.2 "Playfair Display", Georgia, "Times New Roman", serif; color: var(--vtp-title); text-wrap: balance; }
.vtp-meta { font-size: 15px; color: var(--vtp-meta); }
.vtp-meta b { font-weight: 700; color: var(--vtp-title); }

.vtp-bar { grid-area: bar; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.vtp-time { font-size: 14px; color: var(--vtp-meta); font-variant-numeric: tabular-nums; min-width: 4.2ch; }
.vtp-time.vtp-dur { text-align: right; }
.vtp-seek { --p: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; padding: 0; background: transparent; cursor: pointer; }
.vtp-seek::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--vtp-fill) var(--p), var(--vtp-track) var(--p)); }
.vtp-seek::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--vtp-fill) var(--p), var(--vtp-track) var(--p)); }
.vtp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; border: 0; background: var(--vtp-thumb); box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.vtp-seek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; border: 0; background: var(--vtp-thumb); box-shadow: 0 1px 4px rgba(0,0,0,.35); }

.vtp-ctrls { grid-area: ctrls; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: -10px; }
.vtp-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 100px; border: 0; background: transparent;
  color: var(--vtp-ctrl); font-weight: 700; font-size: 14px; letter-spacing: .5px; text-decoration: none; transition: background .15s ease; }
.vtp-btn:hover { background: var(--vtp-ctrl-hover); color: var(--vtp-ctrl); }
.vtp-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vtp-rate { border: 1.5px solid var(--vtp-ctrl-line); min-width: 58px; justify-content: center; font-variant-numeric: tabular-nums; }
.vtp-spacer { flex: 1 1 auto; }
/* Divi's post-content link color is more specific than a single class, so the player's own link wins with !important. */
.vtp a.vtp-dl, .vtp a.vtp-dl:hover, .vtp a.vtp-dl:visited { color: var(--vtp-link) !important; text-decoration: none !important; }

/* If the cover art can't load, fall back to the layout without it. */
.vtp.vtp--noart { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "play head" "bar bar" "ctrls ctrls"; padding-left: 24px; }
.vtp.vtp--noart .vtp-art { display: none; }
.vtp.vtp--noart .vtp-ctrls { margin-left: -10px; }

@media (max-width: 600px) {
  .vtp { grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "art head" "play bar" "ctrls ctrls";
    gap: 12px 14px; padding: 16px 16px 10px; }
  .vtp-art { width: 76px; height: 76px; margin: 0; align-self: start; }
  .vtp-head { align-self: center; }
  .vtp-play { width: 52px; height: 52px; justify-self: center; }
  .vtp-play svg { width: 22px; height: 22px; }
  .vtp-title { font-size: 18px; }
  .vtp-meta { font-size: 14px; }
  .vtp-eyebrow { font-size: 12px; letter-spacing: 2px; }
  .vtp-bar { gap: 10px; }
  .vtp-time { font-size: 13px; }
  .vtp-ctrls { margin-left: -6px; }
  .vtp-btn .lbl-long { display: none; }
  .vtp.vtp--noart { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "play head" "bar bar" "ctrls ctrls"; padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) { .vtp-play, .vtp-btn { transition: none; } .vtp.is-loading .vtp-play { animation: none; } }
