/* Custom podcast controls; native audio stays as a no-JavaScript fallback. */
#tema-portal .tp-podcast-player.tp-custom-audio{gap:24px;padding:18px 22px;background:#252922;border:1px solid #ffffff20;border-radius:15px}
#tema-portal .tp-custom-audio>audio[hidden]{display:none!important}
#tema-portal .tp-custom-audio>.tp-audio-controls{flex:0 0 410px;min-width:0}
#tema-portal .tp-audio-transport{display:flex;align-items:center;gap:10px}
#tema-portal .tp-audio-controls button{display:flex;align-items:center;justify-content:center;flex-shrink:0;border:0;color:#eceee4;background:transparent;min-height:36px;min-width:36px;padding:4px;border-radius:7px;font:600 12px/1 Arial,sans-serif!important;cursor:pointer}
#tema-portal .tp-audio-controls button:hover{background:#ffffff12}
#tema-portal .tp-audio-controls .tp-audio-toggle{width:44px;height:44px;background:#e87b17;color:#fff;border-radius:50%;margin-right:3px}
#tema-portal .tp-audio-controls .tp-audio-toggle:hover{background:#c9670e}
#tema-portal .tp-audio-toggle svg{width:21px;height:21px;fill:currentColor;stroke:none}
#tema-portal .tp-audio-controls .tp-audio-back,#tema-portal .tp-audio-controls .tp-audio-forward{flex-direction:column;gap:4px;font-size:13px!important}
#tema-portal .tp-audio-controls button>span{font-size:8px!important;line-height:1;color:#a9b09f;font-weight:400}
#tema-portal .tp-audio-controls .tp-audio-speed{margin-left:auto;font-size:12px!important;color:#e7a562}
#tema-portal .tp-audio-mute svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#tema-portal .tp-audio-silent,#tema-portal .tp-audio-mute[aria-pressed=true] .tp-audio-waves{display:none}
#tema-portal .tp-audio-mute[aria-pressed=true] .tp-audio-silent{display:block}
#tema-portal .tp-audio-timeline{display:flex;align-items:center;gap:10px;margin-top:6px;color:#c2c7b9;font-size:10px!important;font-variant-numeric:tabular-nums}
#tema-portal .tp-audio-timeline>span{min-width:30px;white-space:nowrap}
#tema-portal .tp-audio-controls input[type=range]{appearance:none;-webkit-appearance:none;border:0;padding:0;margin:0;height:24px;border-radius:0;background:transparent;cursor:pointer;box-shadow:none;min-width:0;accent-color:#e87b17}
#tema-portal .tp-audio-controls .tp-audio-seek{flex:1;width:100%}
#tema-portal .tp-audio-controls .tp-audio-volume{width:65px;flex:0 0 65px}
#tema-portal .tp-audio-controls input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:5px;background:linear-gradient(to right,#e87b17 var(--tp-progress,0%),#ffffff30 var(--tp-progress,0%))}
#tema-portal .tp-audio-controls input[type=range]::-moz-range-track{height:4px;border-radius:5px;background:linear-gradient(to right,#e87b17 var(--tp-progress,0%),#ffffff30 var(--tp-progress,0%))}
#tema-portal .tp-audio-controls input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:12px;height:12px;margin-top:-4px;border:0;border-radius:50%;background:#f4b16f}
#tema-portal .tp-audio-controls input[type=range]::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:#f4b16f}
#tema-portal .tp-audio-controls input:disabled{opacity:.4;cursor:default}
#tema-portal .tp-audio-controls button:focus-visible,#tema-portal .tp-audio-controls input:focus-visible,#tema-portal .tp-custom-audio .tp-podcast-close:focus-visible{outline:2px solid #f4b16f;outline-offset:3px}
#tema-portal .tp-custom-audio .tp-podcast-close{align-self:center;color:#bfc5b6;border-radius:50%}
#tema-portal .tp-custom-audio .tp-podcast-close:hover{color:#fff;background:#ffffff12}
#tema-portal .tp-podcast-status:empty{display:none}
body.tp-podcast-open{padding-bottom:145px!important}
@media(max-width:850px){#tema-portal .tp-custom-audio>.tp-audio-controls{flex-basis:345px}#tema-portal .tp-podcast-player.tp-custom-audio{gap:16px}}
@media(max-width:680px){#tema-portal .tp-podcast-player.tp-custom-audio{display:grid;grid-template-columns:minmax(0,1fr) 30px;padding:15px 17px;gap:12px;bottom:8px}#tema-portal .tp-custom-audio>.tp-audio-controls{grid-column:1/-1;grid-row:2;width:100%}#tema-portal .tp-audio-controls .tp-audio-volume{width:52px;flex-basis:52px}#tema-portal .tp-audio-transport{gap:8px}#tema-portal .tp-custom-audio .tp-current-episode{font-size:13px!important}#tema-portal .tp-custom-audio .tp-podcast-close{grid-column:2;grid-row:1}body.tp-podcast-open{padding-bottom:205px!important}}
@media(max-width:360px){#tema-portal .tp-audio-transport{gap:4px}#tema-portal .tp-audio-controls .tp-audio-volume{width:38px;flex-basis:38px}}
/* Keep the language switcher clear of the listening controls. */
body.tp-podcast-open .gt_switcher_wrapper{bottom:145px!important}
@media(max-width:680px){body.tp-podcast-open .gt_switcher_wrapper{bottom:190px!important}}

/* Full-width timeline below the episode and transport row. */
#tema-portal .tp-podcast-player.tp-custom-audio{display:grid;grid-template-columns:minmax(0,1fr) 410px 40px;row-gap:8px}
#tema-portal .tp-custom-audio>.tp-audio-controls{display:contents}
#tema-portal .tp-custom-audio .tp-audio-transport{grid-column:2;grid-row:1}
#tema-portal .tp-custom-audio .tp-audio-timeline{grid-column:1/-1;grid-row:2;margin-top:0}
#tema-portal .tp-custom-audio .tp-podcast-close{grid-column:3;grid-row:1}
#tema-portal .tp-inline-audio{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 18px;padding:20px 24px;margin:26px 0;background:#252922;color:#f5f3eb;border:1px solid #55594c;border-radius:13px;clear:both;box-sizing:border-box}
#tema-portal .tp-inline-audio audio[hidden]{display:none!important}
#tema-portal .tp-inline-audio-label{grid-column:1;grid-row:1;align-self:center;font-size:13px!important;line-height:1.4!important;color:#e7a562}
#tema-portal .tp-inline-audio .tp-audio-transport{grid-column:2;grid-row:1}
#tema-portal .tp-inline-audio .tp-audio-timeline{grid-column:1/-1;grid-row:2}
#tema-portal .tp-inline-audio .tp-podcast-status{grid-column:1/-1;grid-row:3;font-size:12px!important;color:#ecc9a4;line-height:1.5!important}
@media(max-width:850px){#tema-portal .tp-podcast-player.tp-custom-audio{grid-template-columns:minmax(0,1fr) 335px 30px}}
@media(max-width:680px){#tema-portal .tp-podcast-player.tp-custom-audio{grid-template-columns:minmax(0,1fr) 30px;gap:8px}#tema-portal .tp-custom-audio .tp-podcast-close{grid-column:2;grid-row:1}#tema-portal .tp-custom-audio .tp-audio-transport{grid-column:1/-1;grid-row:2}#tema-portal .tp-custom-audio .tp-audio-timeline{grid-column:1/-1;grid-row:3}#tema-portal .tp-inline-audio{padding:17px;gap:10px;grid-template-columns:minmax(0,1fr)}#tema-portal .tp-inline-audio-label{grid-column:1;grid-row:1}#tema-portal .tp-inline-audio .tp-audio-transport{grid-column:1;grid-row:2}#tema-portal .tp-inline-audio .tp-audio-timeline{grid-column:1;grid-row:3}#tema-portal .tp-inline-audio .tp-podcast-status{grid-row:4}}

/* Mobile listeners use the device volume buttons. */
@media(max-width:680px){
 #tema-portal .tp-audio-controls .tp-audio-mute,
 #tema-portal .tp-audio-controls .tp-audio-volume{display:none}
}

/* Finger-sized seek target for phones and touch screens. */
@media(max-width:680px),(pointer:coarse){
 #tema-portal .tp-audio-controls input.tp-audio-seek{height:48px;min-height:48px;touch-action:none}
 #tema-portal .tp-audio-controls input.tp-audio-seek::-webkit-slider-runnable-track{height:8px;border-radius:8px}
 #tema-portal .tp-audio-controls input.tp-audio-seek::-moz-range-track{height:8px;border-radius:8px}
 #tema-portal .tp-audio-controls input.tp-audio-seek::-webkit-slider-thumb{width:24px;height:24px;margin-top:-8px;box-shadow:0 0 0 5px #f4b16f20}
 #tema-portal .tp-audio-controls input.tp-audio-seek::-moz-range-thumb{width:24px;height:24px;box-shadow:0 0 0 5px #f4b16f20}
}
@media(max-width:680px){body.tp-podcast-open{padding-bottom:235px!important}body.tp-podcast-open .gt_switcher_wrapper{bottom:220px!important}}

/* Keep mobile seeking clear of browser chrome and the home gesture area. */
@media(max-width:680px){
 #tema-portal .tp-podcast-player.tp-custom-audio{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
 body.tp-podcast-open{padding-bottom:calc(251px + env(safe-area-inset-bottom,0px))!important}
 body.tp-podcast-open .gt_switcher_wrapper{bottom:calc(236px + env(safe-area-inset-bottom,0px))!important}
}
