/* The radio and the archive transport share the same enamel, brass and dial. */
.christmas-radio, .christmas-active {
  --radio-enamel: radial-gradient(ellipse at 95% 0, #85415399, transparent 62%),
                  linear-gradient(120deg, #174049, #172b36 56%, #472532);
  --radio-dial: linear-gradient(105deg, #0a1921f2, #162033bf),
                url("../images/christmas/polar-night-small.webp") 70% 67% / cover;
  --radio-play: radial-gradient(circle at 32% 22%, #ae5965, #752b40 58%, #4a1c2f);
  --radio-gold: #f2cd96;
  --radio-cream: #ffedcd;
  --radio-level: linear-gradient(90deg, #c29967, #ffe4ae);
}
.christmas-radio body {
  background: linear-gradient(#0a223480, #0a192f88), url("../images/christmas/polar-night-small.webp") center / cover;
}
.christmas-radio .p, .christmas-active #sticky-player-bar {
  /* The archive sets its video background inline; the seasonal finish also applies there. */
  background: url("../images/christmas/frost.webp") top left / var(--frost-width, 94px) auto no-repeat,
              var(--radio-enamel) !important;
  border-color: #b7cacc9c;
  box-shadow: inset 0 1px #deeadcc4, inset 0 -2px #a9c6ca42, 0 16px 30px #03101caa;
}
.christmas-radio .brand, .christmas-radio .tm, .christmas-radio .t { color: var(--radio-cream); }
.christmas-radio .display {
  border-color: #b69b7055;
  background: var(--radio-dial);
}
.christmas-radio .c { border-color: #29474b; outline-color: #d6b47d85; }
.christmas-radio .hirsch-img { opacity: 1; }
.christmas-radio .speaker-caption, .christmas-radio .display-label,
.christmas-radio .signature, .christmas-radio .brand span { color: var(--radio-gold); }
.christmas-radio .pb, .christmas-active #sticky-play-pause, .christmas-active .episode-item.active .play-button {
  color: #ffe9be; border-color: #e9bf85; background: var(--radio-play);
}
.christmas-radio .vs { accent-color: #e7b678; }
.christmas-radio .tuner::after { background: #ffe8b7; box-shadow: 0 0 8px #ffc572; }
.christmas-radio .radio-bottom { border-color: #c2a47744; }

.christmas-active #sticky-player-bar {
  --frost-width: 76px;
  --text: var(--radio-cream);
  --muted: #ddcfbb;
}
.christmas-active #sticky-player-bar .sticky-head { border-bottom: 1px solid #d1ac754d; }
body.christmas-active.episode-prompts-visible .episode-prompts { margin-block-start: 12px; }
.christmas-active .episode-prompt {
  --prompt-accent: var(--radio-gold);
  --prompt-tint: 233, 194, 133;
  background: linear-gradient(115deg, #254b43, #142e30);
}
.christmas-active .rating-prompt {
  background: linear-gradient(115deg, #603340, #39252f);
}
.christmas-active .episode-prompt-title { color: var(--radio-cream); }
.christmas-active .episode-prompt-title small, .christmas-active .episode-prompt-close { color: #ddcfbb; }
.christmas-active .episode-prompt-icon {
  position: relative;
}
.christmas-active .episode-prompt-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 9px;
  top: -2px;
  right: -2px;
  background: var(--radio-gold);
  clip-path: polygon(50% 0, 63% 36%, 100% 50%, 63% 64%, 50% 100%, 37% 64%, 0 50%, 37% 36%);
}
.christmas-active #sticky-player-bar :is(.sticky-kicker, .sticky-date-line) { color: var(--radio-gold); }
.christmas-active #sticky-player-bar :is(.skip-btn, #sticky-speed, #sticky-jump, #sticky-close, .skip-time-btn) {
  color: var(--radio-cream); border-color: #bfa37887; background: #18343b;
}
.christmas-active #sticky-player-bar .skip-btn::before { background: linear-gradient(135deg, #e8c08730, transparent); }
.christmas-active #sticky-player-bar :is(#sticky-chapters-toggle, #sticky-subtitles-toggle, #sticky-quiz-toggle, #sticky-quiz-toggle-locked) {
  color: #efd6aa !important; border-color: #b99a6c88 !important; background: #19363f !important;
}
.christmas-active #sticky-player-bar :is(#sticky-chapters-toggle, #sticky-subtitles-toggle, #sticky-quiz-toggle, #sticky-quiz-toggle-locked).active {
  color: #ffebc2 !important; border-color: #ebc58b !important; background: #693448 !important;
}
.christmas-active #sticky-player-bar #sticky-quiz-toggle.completed:not(.active) {
  color: #c1ead4 !important; background: #24463a !important; border-color: #78ad95 !important;
}
.christmas-active #chapter-edit-toggle, .christmas-active #chapter-close-button {
  color: var(--radio-cream) !important; background: #233943 !important; border-color: #ba9e746b !important;
}
.christmas-active #chapter-edit-toggle[aria-pressed="true"] {
  background: #693448 !important; border-color: #ebc58b !important; box-shadow: inset 0 0 0 1px #ebc58b;
}
.christmas-active #sticky-player-bar :is(#sticky-chapters-container, #sticky-subtitles-container, #sticky-hauptthema-container, #skip-timeline, #quiz-panel, #rating-panel) {
  background: var(--radio-dial) !important; border-top-color: #b69b7066 !important;
}
.christmas-active #sticky-subtitles-container > div:first-child { background: #142c36 !important; }
.christmas-active #sticky-chapters-list .chapter-item {
  background: linear-gradient(105deg, #1c3841, #1d2c36 70%, #302a34) !important;
  border-color: #b9ae8e33 !important;
}
.christmas-active #sticky-chapters-list .chapter-content { --accent: var(--radio-gold); }
@media (hover: hover) and (pointer: fine) {
  .christmas-active #sticky-chapters-list .chapter-item:not(.chapter-disabled, .active-chapter):hover { border-color: #c3a77999 !important; }
}
.christmas-active #sticky-chapters-list .chapter-item.active-chapter {
  background: linear-gradient(115deg, #54313e, #2a3039) !important; border-color: #d8b37d !important;
  box-shadow: none;
  transform: none;
}
.christmas-active #sticky-chapters-list .active-chapter strong { color: #ffe3ab !important; }
.christmas-active #sticky-player-mount .mejs__container.mejs__audio {
  background: #10242e !important; box-shadow: inset 0 1px #d6b47d45;
}
.christmas-active #sticky-player-mount :is(.mejs__time-total, .mejs__horizontal-volume-total) { background: #34515a !important; }
.christmas-active #sticky-player-mount .mejs__time-loaded { background: #678181 !important; }
.christmas-active #sticky-player-mount :is(.mejs__time-current, .mejs__horizontal-volume-current) {
  background: var(--radio-level) !important; box-shadow: none !important;
}
body.christmas-active :is(.episode-item.active, .category-episode-item.playing, .search-match-item.playing, .slot-result-card.playing) {
  position: relative;
  background: var(--radio-enamel) !important;
  border: 1px solid #688078 !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 9px #051b21aa, 0 0 16px #f4bf7920 !important;
}
.christmas-active :is(.episode-item.active, .category-episode-item.playing, .search-match-item.playing) {
  animation: none;
}
.episode-christmas-lights { display: none; }
.christmas-active .episode-christmas-lights {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}
.episode-christmas-lights canvas { display: block; width: 100%; height: 100%; }
.episode-lamp-glint {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px;
  pointer-events: none;
}
.episode-lamp-glint::before, .episode-lamp-glint::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse 3px 2px, #fffef0 25%, #fff4d4bf 65%, transparent),
              radial-gradient(closest-side, var(--lamp-color) 13%, transparent 98%);
}
.episode-lamp-glint::before { animation: christmas-lamp-chase var(--lap-time) linear var(--chase-delay) infinite; }
.episode-lamp-glint::after { animation: christmas-lamp-glow var(--pulse-time) ease-in-out var(--pulse-delay) infinite; }
.episode-lamp-glint:nth-child(3n + 2)::after { animation-name: christmas-lamp-twinkle; }
@keyframes christmas-lamp-glow {
  0%, 18%, 90%, 100% { opacity: 0; transform: scale(.72); }
  56% { opacity: .84; transform: scale(1.06); }
}
@keyframes christmas-lamp-twinkle {
  0%, 24%, 92%, 100% { opacity: 0; transform: scale(.75); }
  43% { opacity: .93; transform: scale(1.08); }
  60% { opacity: .14; transform: scale(.86); }
  73% { opacity: .58; transform: scale(.98); }
}
@keyframes christmas-lamp-chase {
  0%, 1% { opacity: 1; transform: scale(1.1); }
  3.5% { opacity: .72; }
  8%, 95% { opacity: 0; transform: scale(.8); }
  98% { opacity: .55; }
  100% { opacity: 1; transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .episode-lamp-glint { display: none; }
}
html.mobile-zoom-active .episode-lamp-glint::before,
html.mobile-zoom-active .episode-lamp-glint::after { animation-play-state: paused; }
.christmas-active .episode-item.active .mini-progress { background: #38515a; }
.christmas-active .episode-item.active .mini-progress-bar { background: var(--radio-level); box-shadow: none; }
.christmas-active .episode-item.active .mini-progress-handle { background: var(--radio-cream); }

/* Live transcript. Keep the desktop speech tails on the same surface as the chat. */
.christmas-active #live-transcript-container {
  --transcript-night: #10252e;
  --muted: #d6cdbc;
  background: var(--transcript-night);
  border-color: #758582;
}
.christmas-active .live-transcript-header {
  background: url("../images/christmas/frost.webp") top left / 48px auto no-repeat, var(--radio-enamel);
  border-color: #af966b80;
  gap: 8px;
}
.christmas-active .live-transcript-header h3 {
  flex-wrap: wrap;
  gap: 3px 8px;
  color: var(--radio-cream);
}
.christmas-active .live-transcript-close-btn {
  flex: none;
  background: #253d43;
  color: var(--radio-cream);
  border-color: #af966b9c;
}
.christmas-active .live-transcript-close-btn:is(:hover, :focus-visible) {
  background: #643044;
  border-color: var(--radio-gold);
}
.christmas-active #live-avatar-hint {
  background: #20383e !important;
  border-color: #73858370 !important;
}
.christmas-active #live-transcript-messages .subtitle-row {
  --speaker-surface: #2c3740;
  --speaker-current: #47464a;
  --speaker-ink: #f4dab0;
}
.christmas-active #live-transcript-messages .left {
  --speaker-surface: #492d3a;
  --speaker-current: #6a3547;
}
.christmas-active #live-transcript-messages .right {
  --speaker-surface: #1e423e;
  --speaker-current: #28574e;
  --speaker-ink: #bee8d5;
}
.christmas-active #live-transcript-messages .subtitle-bubble {
  --bubble-fill: var(--speaker-surface);
  background: var(--bubble-fill);
  color: #fff3df;
  border-color: #9ca39a54;
  opacity: .84;
  overflow-wrap: anywhere;
}
.christmas-active #live-transcript-messages .subtitle-bubble.active {
  --bubble-fill: var(--speaker-current);
  opacity: 1;
  border-color: #dfbd83;
  box-shadow: 0 0 12px #ebbe741a;
}
.christmas-active #live-transcript-messages .subtitle-bubble::before { border-color: var(--bubble-fill); }
.christmas-active #live-transcript-messages .subtitle-bubble::after { background-color: var(--transcript-night); }
.christmas-active #live-transcript-messages .subtitle-speaker { color: var(--speaker-ink); opacity: 1; }
.christmas-active #live-transcript-messages .subtitle-time { opacity: .8; }
.christmas-active #live-transcript-messages :is(.subtitle-avatar:not(.dual-avatar), .domian-avatar) {
  background: var(--speaker-surface);
  border-color: var(--speaker-ink);
}

/* Archive search uses the same brass controls and enamel as the episode player. */
.christmas-active :is(.search-wrapper, #search-results, #search-help-tooltip, #search-mode-menu) {
  --text: var(--radio-cream);
  --accent: var(--radio-gold);
  --muted: #d5cbbe;
}
.christmas-active #theme-search {
  background: #19343e !important;
  border-color: #8b918375 !important;
}
.christmas-active #theme-search::placeholder { color: #c3cbca; }
.christmas-active #theme-search:focus {
  border-color: var(--radio-gold) !important;
  box-shadow: 0 0 0 3px #ddbc7b33 !important;
}
.christmas-active :is(#search-mode-button, #category-browser-btn, .search-tooltip-close),
.christmas-active #search-results :where(.search-sort-btn, #search-themen-btn, .search-more-matches, #search-load-more-btn) {
  color: var(--radio-cream) !important;
  background: #24444a !important;
  border-color: #ac936e80 !important;
}
.christmas-active :is(#search-mode-button[aria-expanded="true"], #search-mode-button[data-mode="deep"]),
.christmas-active #search-stats :is([aria-pressed="true"], .search-play-all, .reset-btn) {
  background: var(--radio-play) !important;
  border-color: #ceaa73 !important;
  color: var(--radio-cream) !important;
}
.christmas-active #search-stats .resume-btn {
  background: #285445 !important;
  color: #e1f2dd !important;
  border-color: #86aa91 !important;
}
.christmas-active #search-mode-menu,
.christmas-active #search-help-tooltip {
  --search-help-surface: linear-gradient(145deg, #183c43, #192c35 60%, #442a36);
  background: var(--search-help-surface) !important;
  border-color: #938875 !important;
  box-shadow: 0 12px 32px #06151e99 !important;
}
.christmas-active #search-mode-menu button:is(:hover, :focus-visible):not(:disabled) {
  background: #4e343e !important;
  color: var(--radio-cream) !important;
}
.christmas-active #search-help-tooltip :is(.search-examples, #top-searches-section) { border-color: #a28d6c70 !important; }
.christmas-active #search-help-tooltip :is(.search-examples, #top-searches-list) button {
  background: #253d43 !important;
  color: var(--radio-cream) !important;
  border-color: #ac936e80 !important;
}
.christmas-active #search-results > div {
  background: url("../images/christmas/frost.webp") left top / 58px auto no-repeat,
              linear-gradient(160deg, #244049, #122731 260px) !important;
  border-color: #87988b80 !important;
}
.christmas-active #search-stats {
  margin-bottom: 12px;
  border-radius: var(--r-md);
  background: var(--radio-enamel);
  border: 1px solid #a5917275;
}
.christmas-active #search-result-count { color: var(--radio-cream); }
.christmas-active .search-result-card {
  background: linear-gradient(115deg, #1c3940, #1d2e37 68%, #372a34) !important;
  border-color: #9a93795c !important;
  box-shadow: 0 2px 8px #071a2240 !important;
}
.christmas-active .search-match-item:not(.playing) {
  background: #102831 !important;
  border: 1px solid #9186725c !important;
}
.christmas-active #search-results .toggle-bookmark-match-btn {
  background: #422b37 !important;
  color: #f4c2bc !important;
  border-color: #ad777e !important;
}
.christmas-active #search-results .toggle-bookmark-match-btn[data-status="true"],
.christmas-active #search-results .search-pill-active {
  background: #794251 !important;
  color: var(--radio-cream) !important;
}
.christmas-active #search-results .search-result-video-btn { border-color: #a7997c99 !important; }
.christmas-active :is(#search-results, .search-wrapper, #search-mode-menu) button:focus-visible {
  outline: 2px solid var(--radio-gold);
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .christmas-active .search-result-card:hover { border-color: #c2a77a !important; }
  .christmas-active .search-match-item:not(.playing):hover { background: #244349 !important; }
  .christmas-active :is(#search-mode-button, #category-browser-btn, #search-load-more-btn):hover,
  .christmas-active #search-stats button:not(:disabled):hover { border-color: var(--radio-gold) !important; }
}
.christmas-active .search-scan-radar {
  border-radius: 50%;
  border: 1px solid #ad936552;
  background: url("../images/hirsch_logo_xmas.png") center / 75% auto no-repeat,
              radial-gradient(circle, #324d4c, #1d333a 60%, #685047);
  box-shadow: 0 0 0 6px #b99d6e12, 0 0 42px #d7ba7522;
}
.christmas-active .search-scan-radar > div { display: none; }
.christmas-active #search-loading .sl-ember {
  background: #ffe6ad;
  box-shadow: 0 0 6px #e0ad6a;
}
.christmas-active #search-scan-title {
  background-image: linear-gradient(90deg, #e9be85, #fff0cf, #e9be85);
}
.christmas-active #search-scan-label { color: var(--radio-gold); }
.christmas-active #search-real-progress { background: #1c353d; border-color: #8c826d; }
.christmas-active #search-real-progress-fill, .christmas-active .search-scan-track > div {
  background-image: var(--radio-level) !important;
  box-shadow: none;
}
.christmas-active .search-scan-dots > div { background: var(--radio-gold) !important; }
@media (max-width: 600px) {
  .christmas-active #search-results > div { padding: 10px !important; }
  .christmas-active .search-result-card { padding: 10px !important; }
  .christmas-active #search-stats { padding: 12px !important; text-align: left !important; }
}

/* Gespeicherter Hörfortschritt in der Sendungsübersicht. */
.christmas-active .playback-progress-container { background: #28483f !important; }
.christmas-active .playback-progress-bar {
    background: linear-gradient(90deg, #448464, #99cea2) !important;
    box-shadow: 0 0 5px #76ad8540 !important;
}
.christmas-active .playback-time-display { color: #add8b8 !important; }

.christmas-active .episode-item .source-tag.thema {
    color: #fff0cc;
    background: #62303a;
    border-color: #cbab70;
}
.christmas-active .episode-item .has-chapters-pill {
    color: #e7ffe8;
    background: #214b3c;
    border-color: #85b997;
}
.christmas-active .episode-item .source-tag.thema.has-hauptthema-pill:hover { background: #763c47; }
.christmas-active .episode-item .has-chapters-pill:hover { background: #305e49; }

/* Weihnachts-Zeitleiste im Sticky-Player */
.christmas-active #sticky-player-mount .mejs__time-total,
.christmas-active .sticky-native-seek > div {
  overflow: visible !important;
  background: #29453d !important;
}
.christmas-active #sticky-player-mount .mejs__time-loaded,
.christmas-active .sticky-native-seek > div > :first-child {
  background: #486557 !important;
}
.christmas-active #sticky-player-mount .mejs__time-current,
.christmas-active .sticky-native-seek > div > :last-child {
  background: linear-gradient(90deg,#387851,#73a876 78%,#ddca86) !important;
  box-shadow: none !important;
}
.christmas-active #sticky-player-mount .mejs__time-handle {
  display:block !important; position:absolute !important; left:0; top:50% !important;
  width:0 !important; height:0 !important; margin:0 !important;
  border:0 !important; background:none !important; pointer-events:none;
}
.christmas-active #sticky-player-mount .mejs__time-handle-content { display:none !important; }
.christmas-active #sticky-player-mount .mejs__time-handle::after,
.christmas-active .sticky-native-seek > div > :last-child::after {
  content:"🎄" / ""; position:absolute; right:0; top:50%;
  transform:translate(50%,-55%); font:18px/1 "Apple Color Emoji","Segoe UI Emoji",sans-serif;
  pointer-events:none; filter:drop-shadow(0 1px 1px #142b21);
}
@media (max-width:768px) {
  .christmas-active #sticky-player-mount .mejs__time-handle::after,
  .christmas-active .sticky-native-seek > div > :last-child::after { font-size:22px; }
}
.christmas-active #sticky-seek-preview { background:#193a2d; border-color:#c3a66a; color:#fff3d8; }
