/* Telling Studios · Classical Christmas theme for live-player.
   Matches the Dec 6 concert graphics: night/pine ground, gold double rule, the wreath's own
   garland and warm lights, Libre Baskerville + Pinyon Script, Jost for UI.
   Pairs with themes/telling.js (garland frame, the light-string progress line and the elves). */
.lp--telling {
  --lp-bg: #05090c;
  --lp-fg: #f4eedd;
  --lp-mute: #cfc7b2;
  --lp-accent: #b02a37;
  --lp-accent-2: #e9cf7a;
  --lp-grad: linear-gradient(100deg, #a8862a 0%, #e9cf7a 40%, #fff3c8 55%, #d4af37 75%, #a8862a 100%);
  --lp-frame: none;
  --lp-frame-w: 0px;
  --lp-font: "Jost", system-ui, -apple-system, sans-serif;
  --lp-display: "Libre Baskerville", Baskerville, Georgia, serif;
  --lp-radius: 6px;
  --lp-glass: rgba(6, 14, 12, .62);
  --lp-glass-line: rgba(233, 207, 122, .22);
  --lp-ambient: .38;
  --tc-gold: #e9cf7a;
  --tc-gold-deep: #a8862a;
  --tc-line-h: clamp(40px, 5.2vw, 60px);
}
.lp--telling .lp-frame { display: none; }

/* gold double rule round the picture, like the stream cards and posters */
.lp--telling .lp-stage {
  box-shadow:
    0 0 0 1px rgba(233, 207, 122, .9),
    0 0 0 4px #05090c,
    0 0 0 5px rgba(233, 207, 122, .55),
    0 26px 70px -24px rgba(0, 0, 0, .9);
}
.lp--telling.is-fs .lp-stage { box-shadow: none; }

/* ---------- idle cards ---------- */
.lp--telling .lp-card { background: radial-gradient(120% 90% at 50% 40%, #0f1d24, #05090c 70%); }
.lp--telling .lp-card__art { filter: blur(3px) brightness(.36) saturate(1.05); inset: -2%; }
.lp--telling .lp-card__kicker { font-family: var(--lp-font); font-weight: 500; letter-spacing: .34em; color: var(--tc-gold); }
.lp--telling .lp-card__title { font-weight: 400; letter-spacing: 0; line-height: 1.08; font-size: clamp(22px, 4.6vw, 58px); }
.lp--telling .lp-card__title .scr { display: block; margin-top: .12em; font-family: "Pinyon Script", "Snell Roundhand", cursive; font-size: .82em; color: var(--tc-gold); }
.lp--telling .lp-card__inner::after { content: ""; order: 3; width: min(40%, 300px); height: 1px; background: linear-gradient(90deg, transparent, var(--tc-gold), transparent); }
.lp--telling .lp-card__title { order: 2; }
.lp--telling .lp-card__status { order: 4; border-color: rgba(233, 207, 122, .3); }
.lp--telling .lp-count, .lp--telling .lp-card__body, .lp--telling .lp-card__when { order: 5; }
.lp--telling .lp-card__kicker, .lp--telling .lp-card__mark { order: 1; }
.lp--telling .lp-count > div { background: rgba(2, 4, 3, .45); border-color: rgba(233, 207, 122, .28); border-radius: 4px; }
.lp--telling .lp-count b { font-weight: 400; color: var(--lp-fg); }
.lp--telling .lp-count span { color: var(--tc-gold); }
.lp--telling .lp-card__when { color: var(--lp-mute); letter-spacing: .04em; }
.lp--telling[data-state="upcoming"] .lp-card__status .lp-dot { background: #e2584f; }

/* the Live badge's dot is a red Christmas bulb */
.lp--telling .lp-live { background: linear-gradient(180deg, #b8323f, #7d1a26); color: #fff6e4; letter-spacing: .2em; }
.lp--telling .lp-live .lp-dot, .lp--telling .lp-card__status .lp-dot {
  position: relative; width: .62em; height: .8em; border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%;
  background: radial-gradient(60% 50% at 40% 35%, #fff 0 12%, #ff8a7a 30%, #d4283a 70%);
  box-shadow: 0 0 .7em .1em rgba(255, 110, 90, .85);
}
.lp--telling .lp-live .lp-dot::before, .lp--telling .lp-card__status .lp-dot::before {
  content: ""; position: absolute; left: 50%; top: -.26em; width: .34em; height: .28em; translate: -50% 0;
  border-radius: 1px; background: linear-gradient(180deg, #f1d98a, #a8862a);
}
.lp--telling.is-behind .lp-live { background: rgba(233, 207, 122, .16); }
.lp--telling.is-behind .lp-live .lp-dot { filter: grayscale(1) brightness(.7); box-shadow: none; }
.lp--telling .lp-sound { border-color: rgba(233, 207, 122, .45); color: var(--tc-gold); letter-spacing: .18em; font-weight: 500; }
.lp--telling .lp-big { background: linear-gradient(180deg, #e9cf7a, #a8862a); color: #1a1206; box-shadow: 0 14px 40px -12px rgba(233, 207, 122, .7); }
.lp--telling .lp-time { display: none; }
.lp--telling .lp-title { font-family: var(--lp-display); font-weight: 400; font-size: 13px; }
@media (max-width: 560px) { .lp--telling .lp-title { display: none; } }


/* ---------- the progress line: a string of Christmas lights, elves on the wire ---------- */
/* elves stand on the wire (upper part of the box), bulbs hang below it. With the controls up,
   the whole line rides just above the control bar (--tc-bar is set from the bar's height). */
.tc-line {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: var(--tc-line-h);
  pointer-events: none; transition: transform .35s var(--lp-ease), opacity .5s var(--lp-ease);
}
.lp[data-state="live"].is-awake .tc-line, .lp[data-state="live"].is-paused .tc-line { transform: translateY(calc(-1 * var(--tc-bar, 64px))); }
.tc-line::before { /* soft floor so the bulbs read over a bright picture */
  content: ""; position: absolute; inset: -40% 0 0; background: linear-gradient(transparent, rgba(2, 6, 5, .55));
  opacity: 0; transition: opacity .4s;
}
.lp.is-awake .tc-line::before, .lp.is-paused .tc-line::before, .lp:not([data-state="live"]) .tc-line::before { opacity: 1; }
.tc-line svg.tc-wire { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.tc-wire path { fill: none; stroke: #10130d; stroke-width: 2.4; stroke-linecap: round; }
.tc-wire .tc-wire__hi { stroke: rgba(233, 207, 122, .42); stroke-width: .7; transform: translateY(-.6px); }
.tc-b .glass { fill: rgba(220, 225, 215, .16); stroke: rgba(255, 255, 255, .14); stroke-width: .5; transition: fill .8s; }
.tc-b .cap { fill: #2c2a1c; }
.tc-b .halo { opacity: 0; transition: opacity .8s; }
.tc-b.on .glass { fill: var(--c); stroke: rgba(255, 255, 255, .45); }
.tc-b.on .halo { opacity: .85; animation: tc-twinkle var(--t, 3s) ease-in-out var(--d, 0s) infinite; }
.tc-b.now .halo { opacity: 1; animation: tc-now 1.8s ease-in-out infinite; }
.tc-b.warm .glass { fill: rgba(255, 233, 170, .5); }
.tc-b.warm .halo { opacity: .35; animation: tc-twinkle var(--t, 3s) ease-in-out var(--d, 0s) infinite; }
@keyframes tc-twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .35; } }
@keyframes tc-now { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.8); } }
.tc-b .halo { transform-box: fill-box; transform-origin: center; }

/* elves */
.tc-elf { position: absolute; left: 0; bottom: var(--tc-elf-b, 14px); width: calc(var(--tc-line-h) * .4); height: auto; overflow: visible; will-change: transform; }
.tc-elf.tc-lead { transition: transform 1.2s var(--lp-ease), opacity .4s; opacity: 0; }
.lp.is-awake .tc-elf.tc-lead, .lp.is-paused .tc-elf.tc-lead, .lp:not([data-state="live"]) .tc-elf.tc-lead { opacity: 1; }
.tc-elf .leg, .tc-elf .arm { transform-box: view-box; }
.tc-elf .leg { transform-origin: 20px 43px; }
.tc-elf .arm { transform-origin: 20px 31.5px; }
.tc-elf.walk .leg.f, .tc-elf.walk .arm.b { animation: tc-swing .46s ease-in-out infinite alternate; }
.tc-elf.walk .leg.b, .tc-elf.walk .arm.f { animation: tc-swing .46s ease-in-out infinite alternate-reverse; }
.tc-elf.walk .bod { animation: tc-bob .23s ease-in-out infinite alternate; }
.tc-elf.idle .bod { animation: tc-bob 1.4s ease-in-out infinite alternate; }
.tc-elf.idle .arm.f { transform: rotate(-70deg); }  /* lead elf holds the live bulb up */
@keyframes tc-swing { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@keyframes tc-bob { to { transform: translateY(-1.2px); } }

/* ---------- garland frame (wraps the player on the page; not shown in full screen) ---------- */
.tc-frame { --g: clamp(16px, 4.4vw, 56px); position: relative; padding: var(--g); isolation: isolate; }
.tc-frame > .lp { z-index: 2; }
.tc-garland { position: absolute; z-index: 1; pointer-events: none; background-repeat: repeat-x; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); }
.tc-garland--t, .tc-garland--b { left: calc(var(--g) * -.5); right: calc(var(--g) * -.5); height: calc(var(--g) * 1.9); background-size: auto 100%; }
.tc-garland--t { top: calc(var(--g) * -.5); }
.tc-garland--b { bottom: calc(var(--g) * -.5); transform: scaleY(-1); }
/* side bands are the same strip turned on its side (sized and placed by theme.js) */
.tc-garland--l, .tc-garland--r { top: 0; left: 0; height: calc(var(--g) * 1.9); background-size: auto 100%; transform-origin: 0 0; }
.tc-garland--l { rotate: -90deg; background-position: -1400px 0; }
.tc-garland--r { rotate: 90deg; background-position: -2300px 0; }
.tc-garland--b { background-position: -700px 0; }
.tc-string { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tc-string path { fill: none; stroke: rgba(20, 22, 14, .9); stroke-width: 1.2; }
.tc-fl .h { fill: url(#tc-glow); opacity: .8; transform-box: fill-box; transform-origin: center; animation: tc-twinkle var(--t, 3.4s) ease-in-out var(--d, 0s) infinite; }
.tc-fl .c { fill: #fff3c8; }
.tc-fl.gold .c { fill: #ffd98a; }
.tc-bow { position: absolute; z-index: 4; top: calc(var(--g) * -.62); width: calc(var(--g) * 2.5); height: auto; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .6)); }
.tc-bow--l { left: calc(var(--g) * -.75); rotate: -18deg; }
.tc-bow--r { right: calc(var(--g) * -.75); rotate: 18deg; transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  .tc-fl .h, .tc-b .halo, .tc-elf .leg, .tc-elf .arm, .tc-elf .bod { animation: none !important; }
}
