.tk-heading{margin:22px 0}.tk-heading h2{font-size:clamp(1.5rem,4vw,2.1rem);margin:6px 0;color:var(--text,#eee)}.tk-heading p,.tk-panel p{color:var(--muted,#b9b8cb);line-height:1.55}.tk-eyebrow{font-size:.7rem!important;letter-spacing:.17em;color:#b7a4ff!important;font-weight:700}
.tk-panel{box-sizing:border-box;min-width:0;padding:22px;border:1px solid var(--border,rgba(180,165,255,.18));border-radius:22px;background:linear-gradient(130deg,rgba(124,92,255,.09),rgba(12,18,30,.85));backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);margin-bottom:20px;color:var(--text,#eee)}
.tk-button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 16px;border:1px solid rgba(181,162,255,.24);border-radius:13px;background:rgba(124,92,255,.11);color:var(--text,#eee);font:inherit;font-size:.88rem;text-decoration:none;cursor:pointer;touch-action:manipulation}.tk-button:hover,.tk-button[aria-current]{background:rgba(124,92,255,.3);border-color:#a78bfa}.tk-button:focus-visible,.tk-search input:focus-visible{outline:2px solid #c4b5fd;outline-offset:3px}.tk-button:disabled{opacity:.45;cursor:wait}.tk-primary{background:#7553d7}.tk-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.tk-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tk-search{position:relative;flex:1;min-width:180px}.tk-search input,.tk-admin input{box-sizing:border-box;width:100%;min-width:0;min-height:46px;border:1px solid rgba(185,168,255,.28);border-radius:13px;background:rgba(30,30,48,.9);color:#f2efff;font:inherit;font-size:16px;padding:12px 15px}.tk-search-results{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:1100;max-height:260px;overflow:auto;background:rgba(24,23,41,.96);backdrop-filter:blur(22px);border:1px solid #65548b;border-radius:15px;padding:8px;box-shadow:0 16px 45px #0006}.tk-search-results button{width:100%;justify-content:flex-start;margin:2px 0;text-align:left}.tk-search-results p{padding:8px;font-size:.9rem}
.tk-canvas{height:clamp(360px,62vh,680px);height:clamp(360px,62svh,680px);width:100%;max-width:100%;border-radius:17px;z-index:0;background:#252a36}.tk-canvas .leaflet-tile-pane{filter:brightness(.64) saturate(.7)}.tk-canvas .leaflet-control-attribution{background:rgba(255,255,255,.9);color:#222;font-size:10px}.tk-canvas .leaflet-control-zoom a{width:44px;height:44px;line-height:44px;background:#242238;color:#eee;border-color:#66548d}.tk-status{min-height:24px;font-size:.86rem;margin:12px 0!important}.tk-footnote{font-size:.75rem;margin:12px 0 0!important}.tk-map-icon{background:transparent;border:0}.tk-marker{position:relative;display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:linear-gradient(145deg,#b59bff,#6550b7);border:3px solid #ece5ff;box-shadow:0 4px 18px #16112380;color:white;font-weight:750;font-size:20px}.tk-face{display:flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;border-radius:50%;overflow:hidden}.tk-face img,.tk-record-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.tk-cluster{box-shadow:7px 2px 0 -1px #7863b9,12px 4px 0 -2px #49396e,0 6px 24px #1118}.tk-count{position:absolute;right:-12px;bottom:-6px;min-width:26px;padding:4px 5px;background:#f3edff;color:#493381;border:2px solid #7863b9;border-radius:20px;font-size:12px;text-align:center;line-height:1}
.tk-detail{padding:18px 0 0;max-height:420px;overflow:auto;overscroll-behavior:contain}.tk-detail>.tk-toolbar{justify-content:space-between}.tk-record{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid #ffffff15;overflow-wrap:anywhere}.tk-record h3{margin:0 0 6px;font-size:1rem}.tk-record p{margin:3px 0}.tk-record small{display:block;color:var(--muted,#b9b8cb);margin:4px 0}.tk-record-avatar{position:relative;display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:50%;overflow:hidden;background:linear-gradient(140deg,#9070d9,#453679);color:#fff;font-size:22px}
.tk-admin{margin:0;padding:24px;background:radial-gradient(ellipse at 15% 0,#282043 0,transparent 55%),#0b0f1a;color:#eee;font:15px/1.55 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.tk-admin-wrap{max-width:1100px;margin:auto}.tk-admin-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.tk-admin-head>div{flex:1}.tk-admin h1{margin:4px 0;font-size:1.8rem}.tk-admin h2{font-size:1.1rem}.tk-admin label{display:block;margin:15px 0}.tk-admin input[type=file]{margin:8px 0}.tk-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.tk-stat-grid strong{font-size:1.8rem;display:block;color:#b8a3ff}.tk-stat-grid span{font-size:.8rem;color:#c5bfd5}.tk-error{border-color:#c5687b;color:#ffb0bb;white-space:pre-line}.tk-admin details{margin:14px 0}.tk-admin summary{cursor:pointer;min-height:36px}.tk-admin code{overflow-wrap:anywhere;font-size:.8rem}.tk-demo-list{max-height:250px;overflow:auto}.tk-table-wrap{overflow:auto;max-width:100%}.tk-admin table{width:100%;border-collapse:collapse}.tk-admin th,.tk-admin td{padding:12px 9px;text-align:left;border-bottom:1px solid #ffffff18;vertical-align:top;overflow-wrap:anywhere;min-width:100px}.tk-admin td small{display:block;color:#b7adc9}.tk-admin .tk-toolbar input{flex:1}.tk-admin .tk-toolbar{margin:16px 0}
@media(max-width:600px){.tk-map-panel{padding:12px;border-radius:18px}.tk-search{flex-basis:100%}.tk-toolbar>.tk-button{flex:1}.tk-canvas{height:52svh;min-height:330px}.tk-tabs{gap:6px}.tk-tabs .tk-button{flex:1 1 42%;padding:9px 8px;font-size:.8rem}.tk-detail{max-height:48svh;padding-bottom:env(safe-area-inset-bottom)}.tk-heading p{font-size:.85rem}.tk-admin{padding:12px}.tk-admin .tk-panel{padding:16px}.tk-stat-grid{grid-template-columns:repeat(2,1fr);gap:8px}.tk-stat-grid .tk-panel{margin:0}.tk-admin-head>a{flex:1}.tk-admin-head>div{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.tk-canvas *{scroll-behavior:auto!important;transition:none!important}}

.tk-canvas.leaflet-container .leaflet-control-zoom a{width:44px;height:44px;line-height:44px;font-size:23px}.tk-canvas.leaflet-container .leaflet-control-attribution{font-size:10px}

/* Category navigation uses the original compact pills, independent of map controls. */
.tk-tabs .cat-tab-btn{display:inline-flex;align-items:center;gap:7px;padding:7px 16px;border-radius:20px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.04);color:var(--muted);font-size:.88rem;font-weight:600;cursor:pointer}
.tk-tabs .cat-tab-btn.active{border-color:rgba(124,92,255,.5);background:rgba(124,92,255,.18);color:#a78bfa}

/* The detail sheet stays inside the map: selecting a caller never moves the page footer. */
.tk-stage{position:relative;isolation:isolate;border-radius:17px;overflow:hidden;overflow-anchor:none}
.tk-stage .tk-detail{position:absolute;z-index:600;right:14px;top:14px;bottom:14px;width:min(350px,calc(100% - 76px));max-height:none;padding:16px;border:1px solid rgba(170,146,250,.4);border-radius:18px;background:rgba(17,17,31,.97);box-shadow:0 12px 40px #0007;backdrop-filter:blur(20px);overscroll-behavior:contain}
.tk-detail[hidden]{display:none}.tk-detail h3{font-size:1rem}.tk-detail .tk-record{flex-wrap:wrap}.tk-detail .tk-record>div:last-child{flex:1;min-width:160px}.tk-detail .tk-record p{font-size:.88rem}
.tk-map-panel{background:linear-gradient(145deg,rgba(33,29,53,.94),rgba(12,17,29,.96));border-radius:20px;overflow-anchor:none}
.tk-map-panel .tk-button{border-radius:22px;font-weight:600;background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.14);color:#d3cde5;box-shadow:inset 0 1px 0 #ffffff08}
.tk-map-panel .tk-button:hover{background:rgba(124,92,255,.2);border-color:#9f85df}
.tk-filterbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.tk-gender{display:flex;gap:4px;padding:4px;background:#090a144d;border:1px solid #ffffff0f;border-radius:28px}
.tk-gender .tk-button{border-color:transparent;min-height:36px;padding:6px 13px;background:transparent;font-size:.8rem}
.tk-gender .tk-button[aria-pressed=true]{background:rgba(124,92,255,.24);border-color:rgba(167,139,250,.4);color:#d6c7ff}
.tk-precision{display:flex;gap:4px;padding:4px;border:1px solid rgba(215,197,255,.22);border-radius:999px;background:linear-gradient(145deg,rgba(103,81,150,.22),rgba(17,20,38,.5));backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 8px 24px rgba(0,0,0,.15)}
.tk-tier-controls{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.tk-tier-controls .tk-button{border-radius:999px;min-height:40px;padding:8px 14px;background:linear-gradient(130deg,rgba(146,122,205,.13),rgba(28,25,48,.4));border-color:rgba(207,189,255,.24);backdrop-filter:blur(18px) saturate(145%);-webkit-backdrop-filter:blur(18px) saturate(145%)}.tk-tier-controls .tk-button[aria-pressed="true"]{color:#fff;background:linear-gradient(130deg,rgba(126,94,215,.72),rgba(72,61,132,.68));border-color:#bda8ff;box-shadow:0 7px 24px #321d7666,inset 0 1px #ffffff38}.tk-marker-tier-2{background:linear-gradient(145deg,#eab96a,#9b611c);border-color:#fff0ca}.tk-marker-tier-3{background:linear-gradient(145deg,#76bfd0,#30597f);border-color:#d7f6ff}.tk-tier-badge{display:inline-block;padding:5px 9px;margin-bottom:6px;border:1px solid #e7bd70a8;border-radius:999px;color:#ffe0a3;background:#a9662430;font-size:.72rem}.tk-record[data-tier="3"] .tk-tier-badge{border-color:#8ecfe0a8;color:#c5f2ff;background:#35829b30}.tk-evidence{padding:9px 11px;border-left:2px solid #ae94e5;border-radius:7px;background:#ffffff0b;font-size:.83rem;line-height:1.45;overflow-wrap:anywhere}
.tk-map-panel .tk-precision .tk-button{min-height:36px;padding:6px 13px;border-color:transparent;background:transparent;font-size:.8rem;white-space:nowrap}
.tk-map-panel .tk-precision .tk-button[aria-pressed=true]{color:#fff;background:linear-gradient(135deg,rgba(150,115,240,.45),rgba(84,63,149,.3));border-color:rgba(224,207,255,.42);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 3px 12px rgba(57,34,112,.2)}
.tk-precision-note{margin:9px 2px 0;color:#bab2d1;font-size:.78rem;line-height:1.45}
.tk-map-panel .tk-play{background:linear-gradient(120deg,#7956d7,#5848af);color:#fff;margin-top:12px;width:100%}
.tk-search input{background:#0d0d1f80;border-radius:24px;padding-left:20px}.tk-status{font-variant-numeric:tabular-nums;white-space:normal;overflow:visible;line-height:1.45}
.tk-canvas.leaflet-container .leaflet-control-zoom{border:1px solid #aa91e04d;border-radius:14px;overflow:hidden;box-shadow:0 6px 22px #0004}
.tk-canvas.leaflet-container .leaflet-control-zoom a{background:#211d34ed;color:#e1d4ff;border-color:#ffffff18}
.tk-canvas{touch-action:pan-x pan-y}.tk-tabs .cat-tab-btn svg{width:15px;height:15px}
.tk-chapter-button{width:31px;height:31px;padding:4px;border-radius:7px;flex-shrink:0;cursor:pointer;color:#a78bfa;border:1px solid rgba(124,92,255,.35);background:rgba(124,92,255,.12);display:flex;align-items:center;justify-content:center;touch-action:manipulation}
@media(max-width:600px){.tk-stage .tk-detail{left:10px;right:10px;top:auto;bottom:10px;width:auto;max-height:65%;padding:12px}.tk-filterbar{gap:8px}.tk-filterbar>.tk-button{font-size:.78rem;padding:8px 12px}.tk-gender .tk-button{padding:6px 9px}.tk-precision{width:100%;box-sizing:border-box}.tk-map-panel .tk-precision .tk-button{flex:1;min-width:0;padding:7px 8px;white-space:normal}.tk-canvas{height:60svh;min-height:380px}.chapter-action-buttons{gap:4px!important}.tk-heading h2{font-size:1.5rem}}
@media(max-width:600px){.tk-tier-controls{display:grid;grid-template-columns:1fr;gap:6px}.tk-tier-controls .tk-button{width:100%;justify-content:flex-start;text-align:left}.tk-tier-badge{white-space:normal}}

/* One predictable list: fixed controls, only its records scroll. */
.tk-stage .tk-detail{display:flex;flex-direction:column;overflow:hidden;gap:10px}
.tk-stage .tk-detail[hidden]{display:none}
.tk-detail-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0}
.tk-detail-head h3{margin:0}.tk-detail-head .tk-button{width:36px;min-height:36px;padding:5px;flex-shrink:0}
.tk-detail-zoom{flex-shrink:0;width:100%;min-height:36px!important;font-size:.8rem!important}
.tk-detail-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#8972b8 transparent;padding-right:6px}
.tk-detail-body::-webkit-scrollbar{width:6px}.tk-detail-body::-webkit-scrollbar-thumb{background:#8972b8;border-radius:9px}
.tk-detail-body .tk-record:first-child{padding-top:4px}
@media(max-width:600px){.tk-stage .tk-detail{height:65%;max-height:65%}}

.tk-country{position:relative;flex-shrink:0;z-index:1200}
.tk-map-panel .tk-country-trigger{gap:9px;background:linear-gradient(135deg,rgba(170,145,255,.18),rgba(255,255,255,.045));border:1px solid rgba(195,177,255,.3);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 4px 18px #0002;backdrop-filter:blur(18px) saturate(150%);-webkit-backdrop-filter:blur(18px) saturate(150%)}
.tk-country-chevron{display:block;flex:0 0 7px;width:7px;height:7px;margin:0 2px 3px 5px;border-right:2px solid #cabbeb;border-bottom:2px solid #cabbeb;transform:rotate(45deg);transition:transform .18s,translate .18s;pointer-events:none}.tk-country-trigger[aria-expanded=true] .tk-country-chevron{transform:rotate(225deg);translate:0 3px}@media(prefers-reduced-motion:reduce){.tk-country-chevron{transition:none}}
.tk-country-menu{position:absolute;top:calc(100% + 9px);right:0;min-width:220px;max-width:min(300px,calc(100vw - 48px));max-height:260px;overflow:auto;padding:7px;border-radius:17px;border:1px solid rgba(196,177,255,.32);background:linear-gradient(135deg,rgba(63,49,91,.75),rgba(19,20,35,.83));backdrop-filter:blur(28px) saturate(165%);-webkit-backdrop-filter:blur(28px) saturate(165%);box-shadow:0 18px 45px #0006,inset 0 1px 0 #ffffff1a}
.tk-country-menu[hidden]{display:none}.tk-map-panel .tk-country-menu .tk-button{display:flex;width:100%;justify-content:space-between;gap:16px;border:1px solid transparent;border-radius:10px;background:transparent;padding:10px 12px;min-height:42px;text-align:left;font-size:.85rem;color:#eee7ff;box-shadow:none}
.tk-map-panel .tk-country-menu .tk-button:hover,.tk-map-panel .tk-country-menu .tk-button:focus-visible{background:rgba(177,149,255,.17);border-color:rgba(196,177,255,.2);outline:none}
.tk-country-count{font-size:.75rem;background:#b49bea20;color:#cbbbeb;padding:2px 8px;border-radius:10px;font-variant-numeric:tabular-nums}
@media(max-width:600px){.tk-country{flex:1}.tk-country-trigger{width:100%}.tk-country-menu{left:0;right:auto;min-width:200px}}

/* Compact caller cards, shared visual language with voice profiles. */
.tk-stage .tk-detail{background:linear-gradient(145deg,rgba(37,31,61,.92),rgba(15,17,29,.94));backdrop-filter:blur(24px) saturate(140%);-webkit-backdrop-filter:blur(24px) saturate(140%)}
.tk-detail .tk-record{flex-wrap:nowrap;gap:11px;margin:0 0 10px;padding:14px!important;border:1px solid #b69cfa22;border-radius:14px;background:linear-gradient(130deg,#ffffff09,#ffffff03)}
.tk-detail .tk-record>div:last-child{min-width:0}.tk-record-avatar{flex-basis:42px;height:42px;font-size:18px;border:1px solid #c2aaff40}.tk-record-avatar img{position:absolute;width:100%;height:100%;object-fit:cover}
.tk-record h3{font-weight:650;font-size:.93rem;margin-bottom:4px}.tk-detail .tk-record .tk-topic{font-size:.82rem;line-height:1.5;color:#cecadb;margin:8px 0}.tk-location-note{font-size:.72rem;color:#b9a9dc!important}
.tk-record-actions{display:flex;align-items:center;gap:8px;margin-top:10px}.tk-map-panel .tk-record-actions .tk-play{flex:1;width:auto;min-width:0;margin:0;padding:9px 11px;font-size:.8rem;min-height:36px}.tk-record-actions>button:not(.tk-play){flex-shrink:0}
@media(max-width:600px){.tk-detail .tk-record{padding:11px!important;gap:9px}.tk-record-avatar{flex-basis:36px;height:36px}.tk-detail .tk-record p{font-size:.8rem}}

/* Translucent map sheet: map colours remain visible behind the frosted glass. */
.tk-stage .tk-detail{
  background:linear-gradient(140deg,rgba(76,61,108,.56),rgba(19,22,39,.68));
  backdrop-filter:blur(22px) saturate(145%);-webkit-backdrop-filter:blur(22px) saturate(145%);
  border:1px solid rgba(226,214,255,.34);border-radius:22px;padding:16px;
  box-shadow:0 20px 55px rgba(7,5,21,.35),inset 0 1px 0 rgba(255,255,255,.23),inset 0 -1px 0 rgba(162,142,225,.12);
}
.tk-stage .tk-detail[data-layout=single]{bottom:auto;height:auto;max-height:calc(100% - 28px)}
.tk-detail-head{padding:0 2px 8px;border-bottom:1px solid rgba(231,221,255,.12)}
.tk-detail-head h3{font-size:.82rem;letter-spacing:.025em;color:#f1ebff;font-weight:600}
.tk-detail-head .tk-button{background:rgba(255,255,255,.065);border-color:rgba(233,223,255,.22);color:#f3edff}
.tk-detail-head .tk-button:hover{background:rgba(255,255,255,.15);border-color:rgba(241,232,255,.5)}
.tk-detail-body{padding-right:3px;scrollbar-gutter:auto}
.tk-detail .tk-record{
  background:linear-gradient(135deg,rgba(255,255,255,.1),rgba(187,160,255,.035));
  border-color:rgba(226,211,255,.2);border-radius:17px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 5px 20px rgba(6,5,18,.08);
  padding:15px!important;margin-bottom:10px;
}
.tk-detail .tk-record:last-child{margin-bottom:0}
.tk-detail .tk-record h3{font-size:.97rem;color:#fff;line-height:1.35}
.tk-detail .tk-record p,.tk-detail .tk-record small{color:#e1dce9}
.tk-detail .tk-record .tk-topic{color:#f0ebf6;line-height:1.55;margin:10px 0}
.tk-detail .tk-record-avatar{border:2px solid rgba(231,214,255,.7);box-shadow:0 0 0 3px rgba(184,149,255,.13),0 4px 14px rgba(11,6,29,.22)}
.tk-map-panel .tk-record-actions .tk-play{
  background:linear-gradient(125deg,rgba(174,132,255,.55),rgba(113,89,199,.45));
  border:1px solid rgba(220,195,255,.42);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 4px 16px rgba(70,35,140,.2);
  min-height:42px;color:#fff;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
}
.tk-map-panel .tk-record-actions .tk-play:hover{background:linear-gradient(125deg,rgba(187,152,255,.7),rgba(137,108,225,.6));border-color:rgba(239,221,255,.7)}
.tk-record-actions>button:not(.tk-play){min-width:38px;min-height:42px;border-radius:12px;background:rgba(214,73,143,.1);border-color:rgba(244,117,184,.35)}
.tk-media-toggle{display:inline-flex;gap:3px;max-width:100%;padding:4px;margin-top:12px;border:1px solid rgba(219,202,255,.24);border-radius:999px;background:rgba(18,15,34,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.1);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.tk-media-toggle[hidden]{display:none}
:is(.tk-map-panel,.tk-mobile-sheet) .tk-media-toggle .tk-button{border:1px solid transparent;border-radius:999px;padding:6px 12px;min-height:34px;background:transparent;color:#ded7eb;font-size:.8rem}
:is(.tk-map-panel,.tk-mobile-sheet) .tk-media-toggle .tk-button[aria-pressed=true]{background:linear-gradient(130deg,rgba(166,126,247,.46),rgba(107,83,165,.3));border-color:rgba(229,208,255,.4);box-shadow:inset 0 1px 0 rgba(255,255,255,.16);color:#fff}
:is(.tk-map-panel,.tk-mobile-sheet) .tk-media-toggle .tk-button:focus-visible{outline:2px solid #d7c0ff;outline-offset:2px}
.tk-map-panel .tk-play:disabled{opacity:.65;cursor:wait}
@media(max-width:600px){:is(.tk-map-panel,.tk-mobile-sheet) .tk-media-toggle .tk-button{min-height:44px;padding:7px 14px}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.tk-stage .tk-detail{background:rgba(26,24,43,.96)}}
@media(max-width:600px){
  .tk-stage .tk-detail{border-radius:19px;padding:12px;background:linear-gradient(140deg,rgba(65,50,95,.62),rgba(19,22,39,.73))}
  .tk-stage .tk-detail[data-layout=single]{top:auto;bottom:10px;height:auto;max-height:calc(100% - 65px)}
  .tk-detail .tk-record{padding:12px!important}.tk-detail .tk-record h3{font-size:.92rem}
  .tk-map-panel .tk-record-actions .tk-play{min-height:44px}.tk-record-actions>button:not(.tk-play){min-width:44px;min-height:44px}
}

/* Episode sorting is unrelated to the map, even when background list updates run. */
#episodes-section.tk-map-active #sendungen-uebersicht-wrapper{display:none!important}
.tk-avatar-popup .leaflet-popup-content-wrapper{background:rgba(38,31,58,.82);color:#f5efff;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid #dac5ff55;border-radius:20px;box-shadow:0 12px 40px #0006}.tk-avatar-popup .leaflet-popup-tip{background:#352b48}.tk-avatar-popup .leaflet-popup-content{margin:18px;width:min(480px,calc(100vw - 110px))!important}.tk-avatar-picker>p{font-size:12px;margin:8px 0!important;color:#d7cfe5}.tk-avatar-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(65px,1fr));gap:8px;max-height:280px;overflow-y:auto;overscroll-behavior:contain;padding:4px;scrollbar-width:thin}.tk-avatar-choice{display:flex;align-items:center;flex-direction:column;gap:5px;padding:7px 3px;border:1px solid #dbc9ff25;border-radius:12px;background:#ffffff09;color:#fff;cursor:pointer;min-width:0}.tk-avatar-choice:hover,.tk-avatar-choice:focus-visible{background:#bb96ff30;border-color:#dbc9ff99}.tk-avatar-choice .tk-record-avatar{width:42px;flex-basis:42px}.tk-avatar-choice>span:last-child{font-size:10px;line-height:1.3;max-width:100%;overflow-wrap:anywhere}.tk-avatar-popup .leaflet-popup-close-button{color:#fff!important}
.tk-avatar-overlay{position:absolute;z-index:650;top:50%;left:50%;transform:translate(-50%,-50%);width:min(540px,calc(100% - 28px));max-height:calc(100% - 28px);overflow:auto;padding:20px;box-sizing:border-box;color:#f5efff;background:rgba(38,31,58,.82);border:1px solid #dac5ff55;border-radius:20px;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:0 12px 40px #0006}.tk-avatar-overlay .tk-avatar-picker>strong{display:block;padding-right:35px}.tk-avatar-close{position:absolute;right:10px;top:10px;padding:5px!important;min-height:30px!important;width:30px}.tk-locked-preview{filter:blur(5px);user-select:none;pointer-events:none;margin:12px 0}.tk-record a.tk-play{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.tk-intro{margin:0 0 14px!important;font-size:.85rem;color:var(--muted,#b9b8cb);line-height:1.5}
/* Standalone conversation player: relative clip time, separate from the episode player. */
.tk-clip{margin-top:12px;padding:14px;border:1px solid #dacaff55;border-radius:18px;background:linear-gradient(135deg,#ad80ef22,#6dcce715),#17142575;backdrop-filter:blur(20px);box-shadow:inset 0 1px #ffffff18,0 8px 24px #0002;overflow:hidden}.tk-clip-top,.tk-clip-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}.tk-clip-label{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#e2d3fa}.tk-clip-controls{margin:10px 0}.tk-clip-toggle{width:40px;height:40px;border-radius:50%;border:1px solid #dec8ff70;color:white;background:linear-gradient(135deg,#a375ed,#5b49b8);cursor:pointer;font-size:17px}.tk-clip-time{font-size:12px;font-variant-numeric:tabular-nums;color:#faf6ff}.tk-clip-range{--clip-progress:0%;display:block;width:100%;height:7px;margin:14px 0;appearance:none;border:0;border-radius:8px;background:linear-gradient(90deg,#be85ff,#71dcdf) 0/var(--clip-progress) 100% no-repeat,#ffffff24;cursor:pointer}.tk-clip-range::-webkit-slider-thumb{appearance:none;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 0 12px #c49bff}.tk-clip-range::-moz-range-thumb{width:15px;height:15px;border:0;border-radius:50%;background:white}.tk-clip-status{display:block;font-size:11px;color:#d1c7df;line-height:1.5}.tk-clip-bars{display:flex;align-items:center;gap:3px;height:19px}.tk-clip-bars i{width:3px;height:5px;border-radius:3px;background:linear-gradient(#77eeea,#ca8bff)}.tk-clip.is-playing .tk-clip-bars i{animation:tk-clip-wave .8s ease-in-out infinite alternate}.tk-clip-bars i:nth-child(2){animation-delay:-.3s!important}.tk-clip-bars i:nth-child(3){animation-delay:-.6s!important}.tk-clip-bars i:nth-child(4){animation-delay:-.15s!important}.tk-clip-bars i:nth-child(5){animation-delay:-.45s!important}.tk-clip video{display:block;width:100%;max-height:240px;background:#0d0b17;border-radius:12px;margin-top:12px}.tk-clip audio{display:none}.tk-clip button:focus-visible,.tk-clip input:focus-visible{outline:2px solid #dabfff;outline-offset:4px}@keyframes tk-clip-wave{to{height:18px;filter:hue-rotate(45deg)}}@media(prefers-reduced-motion:reduce){.tk-clip.is-playing .tk-clip-bars i{animation:none;height:12px}}
/* The clip spans both avatar and text columns instead of inheriting the text indent. */
.tk-detail .tk-record:has(>.tk-clip){display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;column-gap:11px;row-gap:0}
.tk-record>.tk-clip{grid-column:1 / -1;width:100%;min-width:0;box-sizing:border-box;margin-top:12px}
.tk-clip .tk-clip-toggle{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;box-sizing:border-box;padding:0;line-height:1}
.tk-clip-toggle svg{display:block;width:22px;height:22px;pointer-events:none}
@media(max-width:600px){.tk-detail .tk-record:has(>.tk-clip){grid-template-columns:36px minmax(0,1fr);column-gap:9px}}
/* Mobile navigation stays in two rows; the map can use the phone's width. */
@media(max-width:600px){
  #category-view-container .cat-tab-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;width:100%;box-sizing:border-box}
  #category-view-container .cat-tab-row .cat-tab-btn{display:flex!important;align-items:center;justify-content:center;gap:5px!important;min-width:0;min-height:40px;padding:8px 5px!important;font-size:clamp(11px,3.3vw,14px)!important;white-space:nowrap;box-sizing:border-box}
  #category-view-container .cat-tab-row .cat-tab-btn svg{flex-shrink:0;width:15px;height:15px}
  #category-view-container.tk-map-view{box-sizing:border-box;width:calc(100vw - 16px);max-width:none;padding:16px 0 0;margin-left:calc(50% - 50vw + 8px);margin-right:0}
  .tk-map-view .tk-intro{padding:0 8px}
  .tk-map-view .tk-map-panel{padding:10px 8px;border-radius:18px}
  .tk-map-view .tk-tabs{padding:0 4px}
}
/* Mobile details are a viewport sheet, independent of the small map canvas. */
.tk-mobile-sheet[hidden]{display:none!important}
@media(max-width:600px){
  .tk-detail.tk-mobile-sheet{position:fixed;z-index:100010;inset:auto 6px max(6px,env(safe-area-inset-bottom));width:auto;height:82dvh;max-height:calc(100dvh - 20px);box-sizing:border-box;display:flex;flex-direction:column;gap:10px;padding:0 14px 14px;border:1px solid #d6c1ff66;border-radius:24px;background:linear-gradient(140deg,#493d60ee,#191a2af5);backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);box-shadow:0 -10px 60px #0008;color:#f5f0ff;overflow:hidden}
  .tk-mobile-sheet .tk-detail-head{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:8px}
  .tk-mobile-sheet .tk-detail-head h3{font-size:1rem;margin:0}
  .tk-mobile-sheet .tk-detail-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 2px 5px}
  .tk-mobile-sheet .tk-detail-zoom{flex-shrink:0}
  .tk-sheet-grip{display:flex;align-items:center;justify-content:center;flex:0 0 30px;width:100%;padding:0;border:0;background:transparent;cursor:pointer;touch-action:none}
  .tk-sheet-line{display:block;width:48px;height:5px;border-radius:6px;background:#d5c9ee99}
  .tk-sheet-grip:focus-visible{outline:2px solid #c7acff;outline-offset:-3px;border-radius:12px}
  .tk-detail.tk-mobile-sheet{transition:height .34s cubic-bezier(.22,1,.36,1)}
  .tk-detail.tk-mobile-sheet.is-collapsed{height:var(--tk-folded-height,96px)}
  .tk-mobile-sheet .tk-detail-body,.tk-mobile-sheet .tk-detail-zoom{transition:opacity .2s ease,visibility .2s;opacity:1;visibility:visible}
  .tk-mobile-sheet.is-collapsed .tk-detail-body,.tk-mobile-sheet.is-collapsed .tk-detail-zoom{opacity:0;visibility:hidden;pointer-events:none}
  .tk-mobile-sheet .tk-record-actions .tk-play{background:linear-gradient(125deg,#ae84ff88,#7159c773);border-color:#dcc3ff66;color:white}
}
@media(max-width:600px){.tk-map-view .tk-filterbar{justify-content:center}.tk-map-view .tk-gender{margin-inline:auto}}
.tk-clip-picture{position:relative;margin-top:12px;border-radius:12px;overflow:hidden;background:#0d0b17}
.tk-clip .tk-clip-picture video{margin:0;border-radius:0}
.tk-clip-fullscreen{position:absolute;right:8px;bottom:8px;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #ffffff66;border-radius:12px;color:white;background:#191329aa;backdrop-filter:blur(12px);cursor:pointer;opacity:0;transition:opacity .18s;pointer-events:none}
.tk-clip-picture:hover .tk-clip-fullscreen,.tk-clip-picture:focus-within .tk-clip-fullscreen,.tk-clip-picture.show-controls .tk-clip-fullscreen{opacity:1;pointer-events:auto}
@media(hover:none){.tk-clip-fullscreen{opacity:.85;pointer-events:auto}}
.tk-clip:fullscreen{width:100%;height:100%;box-sizing:border-box;margin:0;border:0;border-radius:0;background:#090811;display:flex;flex-direction:column;padding:16px max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.tk-clip:fullscreen .tk-clip-picture{flex:1;min-height:0;width:100%}
.tk-clip:fullscreen .tk-clip-picture video{width:100%;height:100%;max-height:none;object-fit:contain}
.tk-clip:-webkit-full-screen{width:100%;height:100%;box-sizing:border-box;margin:0;background:#090811;display:flex;flex-direction:column;padding:16px}
.tk-clip:-webkit-full-screen .tk-clip-picture{flex:1;min-height:0}.tk-clip:-webkit-full-screen video{width:100%;height:100%;max-height:none;object-fit:contain}

@media(prefers-reduced-motion:reduce){.tk-detail.tk-mobile-sheet,.tk-mobile-sheet .tk-detail-body,.tk-mobile-sheet .tk-detail-zoom{transition:none}}

/* Full-width gender selection on phones. */
@media(max-width:600px){
  .tk-map-view .tk-gender{display:flex;width:100%;box-sizing:border-box;margin-inline:0;}
  .tk-map-view .tk-gender>button{flex:1 1 0;min-width:0;justify-content:center;}
}

/* Single chapter hits need no empty list-sized sheet. */
@media(max-width:600px){
  .tk-detail.tk-mobile-sheet[data-layout="single"]:not(.is-collapsed){height:auto;max-height:min(82dvh,calc(100dvh - 20px));}
  .tk-mobile-sheet[data-layout="single"] .tk-detail-body{flex:0 1 auto;}
}

@media(max-width:600px){.tk-detail.tk-mobile-sheet[data-layout="single"]{transition:none}}
