/* Public multipage shell. The established Nightmagenta theme remains owner. */
html { scroll-padding-top: 100px; }
body[data-web-view] #main { min-height: 64vh; }
[data-web-view] { scroll-margin-top: 100px; }
body[data-web-view] #main > .section { padding-block: clamp(32px, 5vw, 72px); }
body[data-web-view] #main > .section:first-child { padding-top: clamp(112px, 12vw, 160px); }
body[data-web-view] .main-nav a[aria-current="page"] { color: var(--text); }
body[data-web-view] .main-nav a[aria-current="page"]::after { background: linear-gradient(90deg,var(--cyan),var(--violet)); }
body[data-web-view] .hero { min-height: 0; padding-top: 124px; padding-bottom: 38px; }
body[data-web-view] .hero-content { gap: 18px; }
body[data-web-view] .hero-meta { margin-top: 8px; }
body[data-web-view] .scroll-cue { display: none; }
.hero-surprise-entry { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.hero-surprise-entry small { color:var(--muted); }
.hero-surprise-entry svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.web-home-about { max-width: 1100px; margin-inline:auto; }
.web-home-about h2 { margin-block:8px 20px; }
.web-home-about p:not(.eyebrow) { max-width:60ch; line-height:1.7; color:var(--muted); }
.web-home-about .button { margin-top:12px; }
.text-link { color:var(--cyan); text-decoration:none; font-weight:650; min-height:48px; display:inline-flex; align-items:center; gap:8px; }
.text-link:hover { color:var(--violet); }
/* Leave room for Videos before the existing mobile navigation takes over. */
@media (min-width:821px) and (max-width:1100px) {
  body[data-web-view] .global-search-trigger-label,
  body[data-web-view] .global-search-trigger kbd { display:none; }
  body[data-web-view] .global-search-trigger { width:44px; padding:0; justify-content:center; }
  body[data-web-view] .main-nav { gap:22px; }
}
.web-geek-teasers { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.web-geek-teaser { display:block; text-decoration:none; color:var(--text); padding:24px; border:1px solid var(--border,rgba(120,144,255,.2)); background:rgba(15,22,45,.5); border-radius:20px; }
.web-geek-teaser small { color:var(--violet); }
.web-geek-teaser h3 { font-size:1.3rem; margin-block:14px; }
.web-geek-teaser p { color:var(--muted); line-height:1.6; }
.web-geek-teaser:hover { border-color:var(--cyan); }
.web-detail-page { max-width:1120px; margin-inline:auto; }
.web-detail-page .cms-geek-detail { max-width:840px; margin-inline:auto; }
.web-detail-page .cms-geek-detail { padding:0; background:none; }
.web-detail-page .cms-geek-detail h1 { margin:12px 0 24px; font-size:clamp(2rem,4.5vw,3.8rem); line-height:1.12; letter-spacing:-.04em; text-wrap:balance; }
.web-detail-page .cms-geek-detail-content { font-size:1.065rem; line-height:1.8; }
.web-detail-page .cms-geek-detail-content p { max-width:70ch; }
.web-detail-page .content-universe-detail-hero { width:100%; }
.web-detail-page .content-universe-detail-hero img { width:100%; max-height:540px; object-fit:contain; }
.web-detail-page .web-detail-back { margin:0 0 20px; }
body[data-web-view] .section-heading h1 { max-width:800px; margin:0; font-size:clamp(30px,4vw,54px); font-weight:760; line-height:1.13; letter-spacing:-.04em; }
body[data-web-view] #about-title { max-width:15ch; margin:0 0 32px; font-size:clamp(36px,4.8vw,64px); font-weight:790; line-height:1.05; letter-spacing:-.065em; }
body[data-web-view] #kim-intro-title { margin:0; font-size:clamp(64px,8vw,118px); line-height:.9; letter-spacing:-.075em; background:linear-gradient(95deg,var(--text),var(--cyan) 52%,var(--violet)); background-clip:text; color:transparent; }
.web-detail-page dialog.content-universe-lightbox { margin:0; width:100vw; height:100dvh; max-width:none; max-height:none; border:0; }
body[data-web-view] .wish-shell { max-width:850px; margin-inline:auto; }
body[data-web-view] .reveal { opacity:1; transform:none; }
@media (max-width:820px) {
  body[data-web-view] .hero { padding-top:108px; padding-bottom:24px; row-gap:24px; }
  body[data-web-view] .hero .hero-content { order:0; }
  body[data-web-view] .hero .kim-hero-showcase { order:1; }
  .web-geek-teasers { grid-template-columns:1fr; gap:14px; }
  .web-home-recent .section-heading { display:block; }
  .web-home-recent .section-heading .text-link { margin-top:12px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

/* One editorial grid for the public music and technology magazine. */
body[data-web-view] { --editorial-width:1280px; --editorial-gutter:clamp(20px,3.3vw,48px); }
body[data-web-view] #main > :is(.section,.hero,.home-command-deck) { width:min(100%,var(--editorial-width)); max-width:var(--editorial-width); margin-inline:auto; padding-inline:var(--editorial-gutter); }
body[data-web-view] #main > .section { padding-block:32px; }
body[data-web-view] #main > .section:first-child { padding-top:124px; }
body[data-web-view] .site-header { padding-inline:max(var(--editorial-gutter),calc((100% - 1280px)/2 + var(--editorial-gutter))); }
body[data-web-view] .site-footer { display:grid; grid-template-columns:auto 1fr; max-width:1280px; margin-inline:auto; padding:36px var(--editorial-gutter) 128px; gap:20px 32px; }
body[data-web-view] .footer-nav { grid-column:1/-1; flex-wrap:wrap; gap:4px 24px; border-top:1px solid var(--line); padding-top:16px; }
body[data-web-view] .footer-copy { justify-self:end; }
body[data-web-view] .section-heading { display:flex; justify-content:space-between; margin-bottom:24px; align-items:end; gap:20px; }
body[data-web-view] .section-heading h2 { font-size:clamp(26px,3vw,38px); line-height:1.15; letter-spacing:-.035em; }
body[data-web-view] .section-heading .eyebrow { margin-bottom:10px; }
body[data-web-view] .section-heading > p { line-height:1.7; max-width:44ch; }
body[data-web-view] #main > .editorial-hero { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); align-items:center; gap:clamp(28px,4vw,56px); padding-top:112px; padding-bottom:40px; overflow:visible; }
.editorial-hero::before,.editorial-hero::after { display:none; }
body[data-web-view] .editorial-hero .hero-content { display:block; max-width:none; }
.editorial-hero h1 { margin:14px 0 20px; font-size:clamp(38px,4.5vw,64px); font-weight:780; line-height:1.06; letter-spacing:-.055em; }
.editorial-hero h1 span { color:#b1b9ff; }
body[data-web-view] .editorial-hero .hero-intro { margin:0; font-size:1.0625rem; line-height:1.75; max-width:43ch; }
.editorial-hero .hero-actions { margin:24px 0 0; gap:12px; }
.editorial-hero .hero-actions .button { min-height:48px; padding-inline:22px; }
/* Keep the complete cast in its original 4:5 portrait, including K.I.M. at the feet. */
.hero-cast { position:relative; isolation:isolate; width:100%; max-width:520px; min-width:0; margin:0; justify-self:end; }
.hero-cast::before { content:""; position:absolute; z-index:-1; inset:8% -5% 12%; background:radial-gradient(ellipse at 25% 40%,#20bcff20,transparent 65%),radial-gradient(ellipse at 80% 55%,#da28ff18,transparent 65%); filter:blur(30px); pointer-events:none; }
.hero-cast-art { position:relative; border-radius:24px; }
.hero-cast-art img { display:block; width:100%; height:auto; aspect-ratio:4/5; object-fit:contain; border-radius:inherit; }
.hero-cast-art::after { content:""; position:absolute; inset:0; border-radius:inherit; background:linear-gradient(180deg,var(--bg),transparent 3%,transparent 97%,var(--bg)); pointer-events:none; }
.hero-cast figcaption { display:flex; justify-content:center; flex-wrap:wrap; gap:6px 10px; margin-top:14px; color:var(--muted); font-size:.8125rem; line-height:1.5; letter-spacing:.035em; }
.hero-cast figcaption span { color:#b1b9ff; }
.editorial-focus-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:stretch; }
.editorial-focus-grid > div { min-width:0; }
.editorial-focus-grid :is(.blog-article-card,.editorial-music-card) { height:100%; }
.editorial-music-card.kim-featured-strip { display:flex; flex-direction:column; align-items:stretch; gap:0; position:relative; width:100%; margin:0; padding:0; overflow:hidden; border:1px solid transparent; border-radius:24px; background:linear-gradient(145deg,#141d32,#0b1122) padding-box,linear-gradient(140deg,#6d86b799,#ad72a766 52%,#42678b80) border-box; box-shadow:inset 0 1px 0 #ffffff0a,0 14px 36px #0003; }
.editorial-music-card[hidden] { display:none; }
.editorial-music-card .editorial-music-art { display:flex; justify-content:center; align-items:center; min-height:0; height:auto; padding:24px 24px 0; border:0; background:none; }
.editorial-music-card .editorial-music-art img { display:block; width:min(100%,320px); height:auto; aspect-ratio:1; object-fit:contain; border-radius:16px; box-shadow:0 14px 28px #0005,0 0 0 1px #ffffff12; }
.editorial-music-card .editorial-music-copy { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; align-content:center; flex:1; gap:6px 16px; padding:22px 24px 24px; }
.editorial-music-card .editorial-music-copy > :is(p,h3) { grid-column:1; }
.editorial-music-card .editorial-card-topic { margin:0; font-size:.75rem; font-weight:750; color:#aebaff; text-transform:uppercase; letter-spacing:.08em; }
.editorial-music-card h3 { margin:0; font-size:clamp(22px,2vw,26px); line-height:1.22; letter-spacing:-.025em; overflow-wrap:anywhere; }
.editorial-music-card h3 a { color:var(--text); text-decoration:none; }
.editorial-music-card h3 .song-title-text { font:inherit; color:inherit; letter-spacing:inherit; text-transform:none; white-space:normal; }
.editorial-music-card h3 a:hover { color:#b1b9ff; }
.editorial-music-card [data-featured-song-album] { margin:0; font-size:.9375rem; color:var(--muted); }
.editorial-music-card .editorial-featured-play { display:flex; grid-column:1/-1; justify-self:start; gap:10px; margin-top:8px; min-height:48px; width:auto; height:auto; border-radius:12px; font-size:.875rem; line-height:1.35; padding:12px 16px; white-space:normal; text-align:left; border:1px solid #536691; background:linear-gradient(130deg,#223153,#30233e); box-shadow:inset 0 1px #ffffff15; }
.editorial-music-card .editorial-featured-play span:not(.song-explicit) { color:var(--text); text-transform:none; letter-spacing:0; }
.editorial-music-card .song-explicit { color:#112133; font:700 11px/1 system-ui,sans-serif; letter-spacing:0; text-transform:none; }
.editorial-music-actions { display:flex; flex-direction:column; gap:6px; align-items:center; justify-content:center; grid-column:2; grid-row:1/4; align-self:center; }
.editorial-music-card .editorial-song-play { flex:none; width:48px; height:48px; min-width:48px; border:1px solid #8193de; border-radius:50%; background:linear-gradient(135deg,#29395d,#31254c); color:#f7f2f8; font-size:1rem; }
.editorial-music-actions > span { color:var(--text); text-transform:none; letter-spacing:0; font-size:.875rem; }
.editorial-music-card :is(a,button):focus-visible { outline:3px solid #b1b9ff; outline-offset:3px; }
.editorial-load-state { padding:24px; margin:0; color:var(--muted); line-height:1.7; }
.editorial-blog-focus > .editorial-load-state { border:1px solid var(--line); border-radius:24px; background:#0e1528; min-height:220px; }
.editorial-load-state .text-link { background:none; border:0; padding:0; font:inherit; color:#b1b9ff; cursor:pointer; }
.web-home-recent .recent-track-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.web-home-recent .recent-track-card { min-width:0; }
.editorial-music-discover { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin-top:20px; }
.editorial-catalog-count { color:var(--muted); font-size:.875rem; margin:0; }
.editorial-catalog-count span { color:var(--text); }
.web-home-geek .web-geek-teasers { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
body[data-web-view] #main > .web-home-author { display:flex; align-items:center; justify-content:space-between; gap:32px; border-top:1px solid var(--line); margin-top:32px; padding-block:32px 48px; }
.web-home-author h2 { font-size:clamp(22px,2.4vw,28px); letter-spacing:-.025em; margin:8px 0 12px; }
.web-home-author p:not(.eyebrow) { margin:0; max-width:66ch; color:var(--muted); line-height:1.7; }
.web-home-author .text-link { flex:none; }
.editorial-title-sub { display:block; font-size:.5em; font-weight:550; letter-spacing:-.02em; margin-top:10px; color:#b1b9ff; }
body[data-web-view] .about-editorial-hero { padding:clamp(24px,3vw,40px); }
body[data-web-view] #about-title { font-size:clamp(32px,4vw,52px); }
@media(max-width:900px) {
 body[data-web-view] #main > .editorial-hero { grid-template-columns:minmax(0,1fr); gap:28px; padding-top:110px; padding-bottom:28px; }
 body[data-web-view] .editorial-hero .hero-content { width:100%; max-width:620px; justify-self:center; }
 .editorial-hero h1 { font-size:clamp(38px,6vw,54px); }
 body[data-web-view] .editorial-hero .hero-intro { max-width:52ch; }
 .hero-cast { justify-self:center; }
}
@media(max-width:820px) {
 .editorial-desktop-break { display:none; }
 .editorial-focus-grid { gap:16px; }
 .editorial-music-card .editorial-music-art { padding:20px 20px 0; }
 .editorial-music-card .editorial-music-copy { padding:20px; }
 .web-home-recent .recent-track-grid { gap:14px; }
 body[data-web-view] .footer-copy { justify-self:start; }
}
@media(max-width:620px) {
 body[data-web-view] #main > .editorial-hero { gap:24px; padding-top:104px; }
 .editorial-hero .eyebrow { padding:0; max-width:none; line-height:1.6; }
 .editorial-hero .hero-content > h1 { font-size:clamp(34px,8.9vw,52px); margin:14px 0 16px; }
 body[data-web-view] .editorial-hero .hero-intro { font-size:1rem; }
 .editorial-hero .hero-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
 .editorial-hero .hero-actions .button { padding-inline:12px; font-size:.8125rem; }
 .hero-cast-art { border-radius:18px; }
 .hero-cast figcaption { gap:4px 8px; letter-spacing:0; }
 body[data-web-view] #main > .section { padding-block:24px; }
 body[data-web-view] #main > .section:first-child { padding-top:108px; }
 body[data-web-view] .section-heading { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
 body[data-web-view] .section-heading .text-link { margin:0; }
 .editorial-focus-grid,.web-home-geek .web-geek-teasers { grid-template-columns:1fr; gap:20px; }
 .web-home-recent .recent-track-grid { display:grid; grid-template-columns:1fr; overflow:visible; padding:0; scroll-snap-type:none; }
 .editorial-music-discover { align-items:start; flex-direction:column; }
 .hero-surprise-entry { gap:10px; }
 body[data-web-view] #main > .web-home-author { align-items:start; flex-direction:column; gap:12px; margin-top:24px; }
 body[data-web-view] .site-footer { grid-template-columns:1fr; }
 .footer-nav { gap:4px 18px; }
}
@media(max-width:360px) {
 .editorial-music-card .editorial-music-copy { grid-template-columns:minmax(0,1fr); }
 .editorial-music-actions { grid-column:1; grid-row:auto; flex-direction:row; justify-content:flex-start; gap:10px; margin-top:8px; }
}

/* The existing clip and Stage controller retain their ownership and fit modes. */
.album-dialog:not(.is-signalforge-stage) .freakydeck-visual-column { display:block; padding:20px; }
.album-dialog:not(.is-signalforge-stage) .freakydeck-visual { position:relative; top:auto; min-height:0; max-height:none; aspect-ratio:1; }
.album-dialog:not(.is-signalforge-stage) .freakydeck-visual[data-fit-mode="contain"] :is(img,video) { object-fit:contain; }
.album-dialog:not(.is-signalforge-stage) .freakydeck-visual-toggle { position:absolute; z-index:4; isolation:isolate; right:10px; bottom:8px; display:flex; align-items:center; justify-content:center; gap:6px; min-width:44px; min-height:44px; padding:0 10px; margin:0; border:0; border-radius:999px; background:transparent; color:#e4e7f0; font-size:.875rem; font-weight:500; line-height:1.2; box-shadow:none; }
/* The quiet 30px surface sits inside the unchanged 44px pointer target. */
.album-dialog:not(.is-signalforge-stage) .freakydeck-visual-toggle::before { content:""; position:absolute; z-index:-1; inset:7px 0; border:1px solid #ffffff1a; border-radius:inherit; background:rgba(8,12,24,.72); pointer-events:none; }
.album-dialog:not(.is-signalforge-stage) .freakydeck-visual-toggle:is(:hover,:focus-visible)::before { background:rgba(8,12,24,.9); border-color:#ffffff40; }
.album-dialog:not(.is-signalforge-stage) .freakydeck-visual-toggle:active::before { background:rgba(8,12,24,.96); }
.freakydeck-system-status { margin:0; padding:0; }
.freakydeck-system-status [data-visual-status]:not(:empty) { display:block; margin-top:10px; color:var(--muted); }
.freakydeck-system-status:has([data-visual-status]:empty) { display:none; }
.freakydeck-content-label { display:none; }
.album-dialog:not(.is-signalforge-stage) .freakydeck-chips { display:flex; flex-wrap:wrap; gap:6px 14px; padding:0; margin-bottom:16px; }
.album-dialog:not(.is-signalforge-stage) .freakydeck-chips span { padding:0; border:0; background:none; color:var(--muted); font-size:.8125rem; line-height:1.6; }
.album-dialog:not(.is-signalforge-stage) [data-signalforge-actions] [data-signalforge-queue] { display:none; }
.album-dialog:not(.is-signalforge-stage) .signalforge-actions { justify-content:flex-end; margin:0 0 12px; }
.freakydeck-controls > button:not(.freakydeck-power) { min-width:48px; min-height:48px; border-radius:50%; color:#edf1ff; border:1px solid #869bd6; background:linear-gradient(150deg,#34476d,#141d36 60%,#271b3a); box-shadow:inset 0 0 0 3px #172039,inset 0 0 0 4px #7890ff70; transition:transform 120ms ease,border-color 120ms ease; }
.freakydeck-controls > button:not(.freakydeck-power):hover { border-color:#ff8acf; transform:translateY(-1px); }
.freakydeck-controls > button:active { transform:scale(.96); }
.freakydeck-controls > button:disabled { opacity:.45; transform:none; cursor:default; }
.freakydeck-controls > .freakydeck-power { box-shadow:inset 0 0 0 3px #172039,inset 0 0 0 5px #7890ff90,0 0 0 2px #ff63be55; }
/* Keep depth inside each transport target: neighboring halos must not merge.
   Playback is already communicated by the icon and accessible label. */
.freakydeck-controls > .freakydeck-power[data-playing="true"] { animation:none; }
html .freakydeck-controls > button:focus-visible { outline-offset:2px; }
.freakydeck :is(button,summary):focus-visible, .web-geek-teaser:focus-visible, .text-link:focus-visible { outline:3px solid #aabbff; outline-offset:4px; }
.freakydeck-header :is(button,summary) { min-height:44px; }
@media(min-width:901px) {
 .album-dialog:not(.is-signalforge-stage) .freakydeck-visual { max-height:calc(100dvh - 332px); min-height:220px; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-track-heading { padding:16px 28px 4px; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-track-heading h2 { font-size:clamp(1.75rem,3.2vw,2.75rem); line-height:1.16; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-main { padding:12px 28px 24px; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-grid { row-gap:0; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-chips { margin-top:0; margin-bottom:8px; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-tabs { margin-top:0; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-track-heading button { margin-top:4px; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-header { min-height:64px; padding-block:10px; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-panels { padding-top:12px; }
 /* Use desktop width to keep controls available without consuming the reading area. */
 .album-dialog:not(.is-signalforge-stage) .freakydeck-transport { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:'title controls' 'time controls' 'seek controls' 'message message'; gap:3px 24px; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-controls { width:auto; }
 html .album-dialog:not(.is-signalforge-stage) .freakydeck > .signalforge-queue:not([hidden]) { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto minmax(60px,1fr) auto; gap:8px 12px; margin-block:8px; }
 .album-dialog:not(.is-signalforge-stage) .signalforge-queue > :is(header,ol,details) { grid-column:1 / -1; }
 .album-dialog:not(.is-signalforge-stage) .signalforge-queue > header { margin:0; min-height:44px; }
 .album-dialog:not(.is-signalforge-stage) .signalforge-queue > header > div { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 12px; }
 .album-dialog:not(.is-signalforge-stage) .signalforge-queue > .music-queue-modes { padding:0; }
 .album-dialog:not(.is-signalforge-stage) .signalforge-queue-edit { margin:0; }
 .album-dialog:not(.is-signalforge-stage) .signalforge-queue-options { margin:0; }
}
@media(max-width:820px) {
 .album-dialog:not(.is-signalforge-stage) .freakydeck-visual-column { padding:12px 16px 20px; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-content-label { display:block; margin:20px 0 12px; color:#ff8acf; font-size:1.125rem; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; gap:8px; border:0; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-tabs button { min-height:48px; padding:10px; white-space:normal; font-size:.8125rem; text-align:left; border:1px solid #52618f; border-radius:12px; background:#111a30; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-tabs [aria-selected="true"] { color:#f8f5ff; border-color:#aabbff; background:linear-gradient(115deg,#243354,#442442); box-shadow:inset 3px 0 #ff8acf; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-header { flex-wrap:wrap; gap:8px; padding-left:16px; padding-right:64px; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-header > div { min-width:100px; }
 .album-dialog:not(.is-signalforge-stage) .freakydeck-tabs { margin-inline:0; padding-inline:0; }
}
@media(prefers-reduced-motion:reduce) { .freakydeck-controls > button { transition:none; } .freakydeck-controls > button:hover,.freakydeck-controls > button:active { transform:none; } }
@media(max-width:620px) {
 /* Match the available layout width, excluding a classic browser scrollbar. */
 .album-dialog:not(.is-signalforge-stage):is([data-overlay-mode="song-details"],[data-overlay-mode="now-playing"]) { width:100%; max-width:100%; }
}

.web-detail-loading:not([hidden]) { position:fixed; z-index:110; top:88px; left:50%; transform:translateX(-50%); max-width:calc(100% - 32px); margin:0; padding:12px 18px; border:1px solid #899ed2; border-radius:14px; background:#111a30; color:#f4f6ff; box-shadow:0 8px 24px #0006; pointer-events:none; }
.public-not-found-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }

/* On typical screens the companion has its own header slot. Only a wide
   exterior margin can carry the full-size floating companion. */
.kim-header-dock { display:none; }
@media (max-width:1660px) {
  .kim-header-dock { display:grid; width:44px; height:44px; flex:0 0 44px; place-items:center; }
  .kim-header-dock .kim-companion { position:relative; inset:auto; width:44px; height:44px; }
  .kim-header-dock .kim-companion-toggle { border-radius:13px; }
  .kim-header-dock .kim-info-panel { top:calc(100% + 14px); right:0; bottom:auto; max-height:calc(100svh - 110px); }
}
@media (max-width:820px) {
  .kim-header-dock .kim-info-panel { right:-80px; width:min(320px,calc(100vw - 48px)); }
}
@media (max-width:620px) {
  body[data-web-view] .editorial-hero .hero-actions { display:flex; flex-wrap:wrap; }
  body[data-web-view] .editorial-hero .hero-actions .button {
    flex:1 1 max-content; width:auto; min-width:max-content; padding-inline:10px; gap:5px; white-space:nowrap;
  }
}
.web-detail-page .cms-rich-text { max-inline-size:66ch; }
.web-detail-page .cms-rich-text > :is(p,ul,ol) { max-inline-size:66ch; }
#geek-title + .editorial-title-sub { font-size:clamp(1rem,2vw,1.4rem); }
.music-grid-placeholder { display:grid; grid-column:1/-1; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; width:100%; }
.music-grid-placeholder i { height:clamp(90px,11vw,162px); border:1px solid var(--line); border-radius:16px;
  background:linear-gradient(110deg,#101729 12%,#1b2940 48%,#101729 85%); }
@media(max-width:620px) { .music-grid-placeholder { grid-template-columns:1fr; } .music-grid-placeholder i:not(:first-of-type) { display:none; } }

.wish-page{color:#e9f0f7;background:#081321;min-height:100vh}.wish-header{max-width:850px;margin:auto;padding:24px;display:flex;justify-content:space-between;gap:20px}.wish-header a{color:#c6dae9}.wish-shell{max-width:790px;margin:30px auto 80px;padding:0 24px}.wish-shell h1{font-size:clamp(36px,7vw,64px);line-height:1.08;letter-spacing:-.035em}.wish-shell>p{max-width:600px;color:#b6c9d9;line-height:1.7}.wish-shell form{display:grid;gap:20px;margin-top:28px}.wish-shell label{display:grid;gap:9px;font-weight:650}.wish-shell label span,.wish-shell small{font-weight:400;color:#a9bdcc;font-size:.85rem;line-height:1.6}.wish-shell input:not([type=checkbox]),.wish-shell textarea,.wish-shell select{box-sizing:border-box;width:100%;padding:14px;color:#edf7ff;background:#0e2033;border:1px solid #50637a;border-radius:9px;font:inherit;line-height:1.5}.wish-shell textarea{resize:vertical}.wish-shell :is(input,textarea,select,button,summary,a):focus-visible{outline:2px solid #56e3f2;outline-offset:4px}.wish-fields{display:grid;gap:20px;padding-top:20px}.wish-shell details{border:1px solid #354b63;border-radius:9px;padding:16px}.wish-shell summary{cursor:pointer}.wish-two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.wish-notice{padding:22px;border:1px solid #34556a;background:#102234;border-radius:12px}.wish-notice h2{font-size:1.1rem}.wish-notice p{color:#c0d0dc;line-height:1.65}.wish-notice a{color:#75e6f0}.wish-notice small{display:block;margin-top:14px}.wish-shell .wish-check{display:flex;align-items:flex-start;gap:12px}.wish-check input{width:22px;height:22px;flex:0 0 auto}.wish-shell .wish-check span{color:#eef4fb;font-size:1rem}.wish-actions{display:flex;flex-wrap:wrap;gap:12px}.wish-shell button{min-height:48px;border:1px solid #49657b;border-radius:9px;background:#173046;color:#e8f4ff;padding:12px 22px;font:inherit;cursor:pointer}.wish-shell button[type=submit]{background:#b7edf0;color:#081b2a;font-weight:700}.wish-shell button:disabled{opacity:.5;cursor:not-allowed}.wish-shell [role=status]{min-height:1.5em;line-height:1.6;color:#a8e5e8}.wish-shell [data-wish-success]{padding:24px;background:#112b39;border:1px solid #67b6c1;border-radius:12px}.wish-shell [hidden]{display:none!important}@media(max-width:540px){.wish-two{grid-template-columns:1fr}.wish-shell{padding:0 18px}.wish-notice{padding:16px}.wish-actions button{width:100%}}

.home-videos[hidden],.video-dialog [hidden] { display:none !important; }
.video-feature { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); align-items:center; background:linear-gradient(135deg,#132139,#0d1626); border:1px solid #30415c; border-radius:20px; overflow:hidden; box-shadow:0 24px 60px #0003; }
.video-feature-copy { padding:clamp(24px,3vw,40px); min-width:0; }
.video-feature-loading { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); min-height:410px; overflow:hidden; border:1px solid #30415c; border-radius:20px; background:#101a2b; }
.video-loading-picture { aspect-ratio:16/9; align-self:center; background:#14223a; }
.video-loading-copy { align-self:center; padding:32px; color:#b2bed3; font-size:.8rem; }
.video-loading-copy i { display:block; height:16px; width:80%; margin-top:20px; border-radius:4px; background:#20314e; }
.video-loading-copy i:last-child { width:50%; height:48px; margin-top:30px; }
.video-feature-copy h2,.video-feature-copy h3 { color:#f4f6fc; font-size:clamp(1.75rem,2.8vw,2.65rem); line-height:1.12; letter-spacing:-.045em; margin:12px 0 16px; overflow-wrap:anywhere; text-wrap:balance; }
.video-feature-copy .eyebrow { color:#9aafff; font-size:.65rem; letter-spacing:.14em; margin:0 0 14px; }
.video-feature-copy .eyebrow::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--media-accent); margin:0 8px 1px 0; }
.video-feature-copy .video-kicker { color:#b2bed3; font-size:.72rem; margin:0; }
.video-description { line-height:1.7; color:#b2bed3; white-space:pre-line; font-size:.9rem; margin:0 0 20px; }
.video-poster { position:relative; display:block; width:100%; aspect-ratio:16 / 9; padding:0; border:0; background:#060b15; overflow:hidden; color:white; cursor:pointer; }
.video-poster img { width:100%; height:100%; display:block; object-fit:contain; }
.video-poster::after { content:''; position:absolute; inset:55% 0 0; background:linear-gradient(transparent,#04081280); pointer-events:none; }
.video-poster-label { display:none; }
.video-play-icon { display:grid; place-items:center; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:58px; height:58px; border-radius:50%; color:white; background:#0b152be0; border:1px solid #d5def2b3; box-shadow:0 4px 25px #0005; z-index:1; transition:background .18s,border-color .18s; }
.video-play-icon svg { width:25px; height:25px; }
.video-poster:hover .video-play-icon,.video-card-action:hover .video-play-icon { background:#283e73; border-color:#fff; }
.video-poster .video-poster-fallback { object-fit:contain; padding:24px; }
.video-watch-button { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; margin:0; padding:12px 20px; background:linear-gradient(110deg,#b80fcb,#6540f5 48%,#2455e8); color:#fff; border:1px solid #9d8aff; border-radius:10px; font-size:.88rem; font-weight:700; box-shadow:inset 0 1px #fff2,0 6px 24px #2455e819; }
.video-watch-button:hover { background:linear-gradient(110deg,#b80fcb,#6540f5 48%,#2455e8); border-color:#c4b9ff; box-shadow:inset 0 1px #fff3,0 8px 28px #6540f533; }
.video-watch-button svg { width:19px; height:19px; flex:none; }
.video-privacy-hint { color:#a9b9d3; font-size:.68rem; line-height:1.5; margin:12px 0 0; }
.video-feature--portrait { grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); }
.video-feature--portrait > .video-poster { aspect-ratio:9 / 16; width:min(100%,280px); justify-self:center; }
.video-filter-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-block:26px 18px; border-bottom:1px solid #26364f; }
.video-filters { display:flex; flex-wrap:wrap; gap:6px; }
.video-filters button { border:1px solid transparent; background:transparent; color:#b2bed3; border-radius:9px; min-height:48px; padding:10px 16px; font:inherit; font-size:.8rem; font-weight:600; cursor:pointer; }
.video-filters button[aria-pressed=true] { background:#182a49; color:#f4f6fc; border-color:#5c79b5; box-shadow:inset 0 -2px #7c6ded; }
.video-filters button:hover { border-color:#6380b3; color:#fff; }
.video-status { margin:0; color:#a9b9d3; font-size:.74rem; }
.video-refresh-controls { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
.video-refresh { min-height:48px; border:0; border-radius:9px; padding:8px; background:transparent; color:#b2bed3; font:inherit; font-size:.72rem; cursor:pointer; }
.video-refresh:hover { background:#182a49; color:#fff; }
.video-refresh:disabled { opacity:.6; cursor:wait; }
.video-collection { padding-block:28px 8px; }
.media-collection-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.media-collection-heading > div:first-child { min-width:0; }
.video-collection h2 { margin:0; font-size:clamp(1.25rem,2vw,1.6rem); letter-spacing:-.035em; color:#f4f6fc; }
.video-collection-intro { color:#b2bed3; margin:6px 0 0; font-size:.8rem; line-height:1.5; }
.media-rail-controls { display:flex; gap:8px; flex:none; }
.media-rail-controls[hidden] { display:none; }
.media-rail-controls button { display:grid; place-items:center; width:48px; height:48px; padding:0; border:1px solid #425d89; border-radius:50%; color:#f4f6fc; background:#13233d; font:inherit; font-size:1.1rem; cursor:pointer; }
.media-rail-controls button:hover { background:#223b65; border-color:#94aaff; }
.media-rail-controls button:disabled { opacity:.35; cursor:default; }
.video-rail { display:grid; grid-auto-flow:column; grid-auto-columns:clamp(12rem,22vw,15rem); gap:18px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; scrollbar-width:thin; scrollbar-color:#4f6791 #101a2b; padding:4px 4px 16px; margin:0 -4px; align-items:stretch; }
.video-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.video-rail { scroll-padding-inline:4px; }
.video-grid--shorts { grid-template-columns:repeat(4,minmax(0,1fr)); }
.video-card { min-width:0; border:1px solid #293d5d; border-radius:14px; background:#101b2e; overflow:hidden; scroll-snap-align:start; transition:border-color .18s,background .18s; }
.video-card:hover { border-color:#7a91c2; background:#14223a; }
.video-card-action { display:flex; flex-direction:column; width:100%; height:100%; padding:0; border:0; color:#f4f6fc; text-align:left; background:none; cursor:pointer; font:inherit; }
.video-card--short .video-poster { aspect-ratio:9 / 16; }
.video-card--short .video-poster img { object-fit:cover; }
.video-card--short .video-play-icon { width:42px; height:42px; }
.video-card--short .video-play-icon svg { width:20px; height:20px; }
.video-card-copy { display:flex; flex-direction:column; flex:1; gap:9px; padding:16px; }
.video-kicker { color:#a9bad6; font-size:.65rem; font-weight:500; line-height:1.5; }
.video-card-title { font-size:.9rem; line-height:1.45; font-weight:650; overflow-wrap:anywhere; }
.video-date { margin-top:auto; padding-top:4px; font-size:.68rem; color:#a9b9d3; }
.video-collection--films .video-grid[data-count="1"] { max-width:680px; grid-template-columns:1fr; }
.video-collection--films .video-grid[data-count="1"] .video-card-action { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; }
.video-empty { padding:32px 0; color:#b2bed3; }
.video-empty .text-link { display:flex; width:fit-content; }
.videos-outro { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:40px; padding:28px 0; border-top:1px solid #26364f; }
.videos-outro h2 { color:#f4f6fc; font-size:1rem; line-height:1.4; margin:0 0 8px; }
.videos-outro p { color:#b2bed3; font-size:.8rem; line-height:1.6; margin:0; }
.videos-channel { display:inline-flex; align-items:center; gap:9px; flex-shrink:0; text-decoration:none; color:#d8e1f4; min-height:48px; padding:10px 15px; border:1px solid #3a4f71; border-radius:9px; background:#101a2b; font-size:.78rem; }
.videos-channel svg { width:21px; height:21px; color:#ff5a91; }
.videos-channel:hover { border-color:#8ba3da; }
.video-dialog { width:min(1120px,calc(100% - 32px)); max-height:94dvh; padding:0; overflow:auto; border:1px solid #526a95; border-radius:18px; background:#080d19; box-shadow:0 30px 100px #0009; }
.video-dialog::backdrop { background:#030812ed; backdrop-filter:blur(8px); }
.video-dialog-toolbar,.video-dialog-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; }
.video-dialog-footer[hidden],.video-dialog-footer [hidden] { display:none; }
.video-dialog-toolbar h2 { color:#f4f6fc; font-size:1rem; margin:0; line-height:1.5; }
.video-close,.video-next { min-width:48px; min-height:48px; padding:10px 14px; border:1px solid #526a95; border-radius:9px; color:#f4f6fc; background:#172640; font:inherit; cursor:pointer; }
.video-close { flex:none; }
.video-dialog-footer a { color:#b9cbff; font-size:.8rem; min-height:48px; display:flex; align-items:center; }
.video-frame { aspect-ratio:16/9; background:#000; }
.video-frame iframe,.video-frame video { width:100%; height:100%; display:block; border:0; }
.video-dialog--portrait { width:min(520px,calc(100% - 24px)); }
.video-dialog--portrait .video-frame { aspect-ratio:9/16; max-height:72dvh; width:auto; margin:auto; }
.video-dialog :focus-visible,.home-videos :focus-visible { outline:3px solid #b7c4ff; outline-offset:4px; }
.media-screen-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-width:0; }
.media-fullscreen-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:10px 14px; border:1px solid #526a95; border-radius:9px; color:#f4f6fc; background:#172640; font:inherit; font-size:.8rem; cursor:pointer; }
.media-fullscreen-button svg { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.media-fullscreen-button:hover { border-color:#b7c4ff; background:#21375c; }
.media-fullscreen-button[aria-pressed=true] { border-color:#a6b5fb; background:#23365c; }
.video-dialog-toolbar { flex-wrap:wrap; }
.video-dialog-toolbar h2 { flex:1 1 200px; min-width:0; overflow-wrap:anywhere; }
.video-dialog[data-media-fullscreen]:not([data-media-fullscreen=""]),.drama-focus[data-media-fullscreen]:not([data-media-fullscreen=""]) { width:100%; max-width:none; height:100dvh; max-height:100dvh; inset:0; margin:0; padding:0; border:0; border-radius:0; }
.video-screen[data-media-fullscreen]:not([data-media-fullscreen=""]) { display:grid; grid-template-rows:auto minmax(200px,1fr) auto; width:100%; height:100dvh; background:#080d19; color:#f4f6fc; overflow:auto; padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.video-screen[data-media-fullscreen]:not([data-media-fullscreen=""]) .video-frame { width:100%; height:100%; min-height:0; max-height:none; aspect-ratio:auto; margin:0; }
@media(max-width:1000px) { .video-feature,.video-feature-loading { grid-template-columns:1fr; } .video-grid--shorts { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:680px) {
 .video-feature,.video-feature--portrait { grid-template-columns:1fr; border-radius:16px; }
 .video-feature-loading { min-height:548px; border-radius:16px; }
 .video-feature-copy { padding:22px; }
 .video-feature-copy .eyebrow { margin-bottom:10px; }
 .video-feature-copy h2,.video-feature-copy h3 { font-size:1.85rem; margin:10px 0 12px; }
 .video-description { font-size:.82rem; line-height:1.6; margin-bottom:18px; }
 .video-filter-bar { display:block; padding-block:18px 12px; }
 .video-filters { gap:3px; }
 .video-filters button { padding:9px 10px; font-size:.74rem; }
 .video-refresh-controls { margin-top:4px; justify-content:space-between; }
 .video-collection { padding-top:24px; }
 .media-collection-heading { gap:12px; }
 .video-collection h2 { font-size:1.2rem; }
 .video-collection-intro { font-size:.74rem; }
 .media-rail-controls { gap:4px; }
 .video-rail { grid-auto-columns:min(65vw,14rem); gap:14px; }
 .video-grid { grid-template-columns:1fr; gap:16px; }
 .video-grid--shorts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px; }
 .video-card-copy { padding:14px 12px; }
 .video-grid--shorts .video-card-title { font-size:.83rem; }
 .videos-outro { display:block; padding:24px 0; }
 .videos-outro .videos-channel { margin-top:16px; }
 .video-dialog-toolbar,.video-dialog-footer { padding:12px; gap:10px; }
 .video-dialog-toolbar h2 { font-size:.85rem; }
 .video-dialog-footer { flex-wrap:wrap; }
 .video-collection--films .video-grid[data-count="1"] .video-card-action { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) { .video-play-icon,.video-card { transition:none; } }

/* Mediathek 1.1: cool surfaces, original artwork, one deliberate magenta-to-blue accent. */
.videos-page,.home-dramas,.home-videos,.drama-focus,.video-dialog {
  --media-ink:#f4f6fc; --media-muted:#b2bed3; --media-line:#30415c;
  --media-base:#080d19; --media-surface:#101a2b; --media-blue:#9aafff;
  --media-accent:linear-gradient(110deg,#b80fcb 0%,#6540f5 48%,#2455e8 100%);
  color:var(--media-ink);
}
body[data-web-view=videos] { background:#080d19; }
body[data-web-view] #main > .videos-page:first-child { max-width:1360px; padding-top:112px; padding-bottom:64px; }
body[data-web-view=videos] .site-footer { padding-bottom:calc(40px + var(--media-dock-space,0px)); }
.media-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.mediathek-heading { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:22px; }
.mediathek-heading h1 { margin:0; font-size:clamp(2rem,3.4vw,3rem); line-height:1.15; letter-spacing:-.055em; font-weight:800; }
.mediathek-heading h1 > span { color:#9aaeff; }
.mediathek-intro { margin:0; color:var(--media-muted); font-size:.9rem; line-height:1.5; }
.mediathek-tabs { display:flex; gap:8px; margin:0 0 28px; width:fit-content; max-width:100%; }
.mediathek-tabs a { position:relative; display:flex; align-items:center; gap:12px; min-width:210px; min-height:64px; padding:12px 20px; border:1px solid #263750; border-radius:12px; background:#0c1525; color:var(--media-muted); text-decoration:none; font-size:.95rem; font-weight:650; transition:background .18s,border-color .18s; }
.mediathek-tabs a > svg { width:23px; height:23px; flex:none; stroke:currentColor; stroke-width:1.6; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.mediathek-tabs small { display:block; margin-top:2px; color:var(--media-muted); font-size:.68rem; font-weight:400; line-height:1.4; }
.mediathek-tabs a[aria-current=page] { color:#fff; border-color:#49639b; background:#15243d; }
.mediathek-tabs a[aria-current=page]::after { content:''; position:absolute; bottom:-1px; left:16px; right:16px; height:2px; border-radius:2px; background:var(--media-accent); }
.mediathek-tabs a[aria-current=page] > svg { color:#b7c5ff; }
.mediathek-tabs a:hover { border-color:#6681b5; background:#16233a; }
.mediathek-tab-arrow { display:none; }
.videos-page [hidden],.home-dramas[hidden],.drama-focus [hidden] { display:none !important; }
[data-drama-list],[data-home-drama-card] { display:grid; gap:24px; }
.drama-card { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); align-items:center; border:1px solid var(--media-line); border-radius:20px; background:linear-gradient(135deg,#132139,#0d1626); overflow:hidden; box-shadow:0 24px 60px #0003; }
.drama-card-image { position:relative; display:block; min-width:0; background:#070c16; }
.drama-card img { width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; display:block; }
.drama-image-label { position:absolute; display:flex; align-items:center; gap:8px; bottom:16px; left:16px; padding:8px 12px; border:1px solid #52617b; border-radius:8px; background:#080d19e8; color:#f4f6fc; font-size:.72rem; line-height:1.4; }
.drama-image-label svg,.drama-player-kind svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round; stroke-linecap:round; }
.drama-card-copy { padding:clamp(24px,3vw,40px); min-width:0; }
.drama-card-copy .eyebrow,.drama-detail-heading .eyebrow { color:var(--media-blue); font-size:.65rem; letter-spacing:.14em; margin:0 0 14px; }
.drama-card-copy .eyebrow::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--media-accent); margin:0 8px 1px 0; }
.drama-card-copy h3 { font-size:clamp(1.75rem,2.8vw,2.65rem); margin:0 0 16px; line-height:1.12; letter-spacing:-.045em; text-wrap:balance; }
.drama-card-copy h3 a { color:var(--media-ink); text-decoration:none; }
.drama-meta { display:flex; flex-wrap:wrap; gap:5px 10px; margin:0 0 18px; font-size:.72rem; line-height:1.55; color:var(--media-muted); }
.drama-meta span + span::before { content:'·'; margin-right:10px; color:#8da0bf; }
.drama-card-copy .drama-summary { margin:0 0 24px; color:var(--media-muted); font-size:.9rem; line-height:1.7; }
.drama-card-cta { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:12px 20px; border:1px solid #9d8aff; border-radius:10px; background:var(--media-accent); color:#fff; text-decoration:none; font-size:.88rem; font-weight:700; box-shadow:inset 0 1px #fff2,0 6px 24px #2455e819; }
.drama-card-cta svg { width:19px; height:19px; flex:none; }
.drama-card-cta:hover { box-shadow:inset 0 1px #fff3,0 8px 28px #6540f533; border-color:#c4b9ff; }
.drama-saved { margin-top:18px; color:var(--media-muted); font-size:.74rem; line-height:1.6; }
.drama-saved-track { height:3px; border-radius:3px; background:#31415e; margin-top:9px; overflow:hidden; }
.drama-saved-track span { display:block; height:100%; background:var(--media-accent); }
.videos-page[data-drama-detail=true] .mediathek-heading,.videos-page[data-drama-detail=true] .mediathek-tabs { display:none; }
[data-drama-detail] { max-width:1280px; margin:auto; }
.drama-back { color:var(--media-muted); font-size:.8rem; min-height:48px; margin:0 0 10px; letter-spacing:0; text-transform:none; }
.drama-back:hover { color:#fff; }
.drama-detail-heading { margin-bottom:26px; }
.drama-detail-heading .eyebrow { margin-bottom:10px; }
.drama-detail-heading h2 { font-size:clamp(1.8rem,3.3vw,3rem); line-height:1.12; letter-spacing:-.045em; margin:0 0 12px; text-wrap:balance; }
.drama-detail-heading p:not(.eyebrow):not(.drama-detail-meta) { color:var(--media-muted); line-height:1.65; font-size:.9rem; margin:0; max-width:72ch; }
.drama-detail-meta { color:#9baecf; font-size:.74rem; margin:12px 0 0; }
.drama-detail-meta span { margin-inline:8px; }
.drama-player { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr); align-items:center; overflow:hidden; border:1px solid var(--media-line); border-radius:20px; background:linear-gradient(140deg,#132139,#0d1626); box-shadow:0 24px 65px #0003; }
.drama-picture { aspect-ratio:16/9; position:relative; background:#050911; overflow:hidden; min-width:0; }
.drama-picture img { width:100%; height:100%; object-fit:contain; display:block; }
.drama-image-error { position:absolute; inset:0; display:grid; align-content:center; padding:30px; color:var(--media-muted); text-align:center; font-size:.9rem; }
.drama-player-body { padding:24px; min-width:0; }
.drama-player-caption { display:flex; justify-content:space-between; align-items:start; gap:12px; margin-bottom:14px; }
.drama-caption { color:#c8d3e9; font-size:.8rem; line-height:1.5; margin:0; min-height:2.5em; }
.drama-player-kind { color:#93aaf0; padding-top:2px; }
.drama-progress-label { display:block; }
.drama-progress-label > span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.drama-progress-label input { appearance:none; display:block; width:100%; height:48px; cursor:pointer; margin:0; background:transparent; --drama-progress:0%; }
.drama-progress-label input::-webkit-slider-runnable-track { height:4px; border-radius:99px; background:linear-gradient(to right,#8b74ff var(--drama-progress),#455574 var(--drama-progress)); }
.drama-progress-label input::-moz-range-track { height:4px; border-radius:99px; background:#455574; }
.drama-progress-label input::-moz-range-progress { height:4px; border-radius:99px; background:#8b74ff; }
.drama-progress-label input::-webkit-slider-thumb { appearance:none; width:15px; height:15px; margin-top:-5.5px; border-radius:50%; background:#f4f6fc; border:2px solid #b4baff; box-shadow:0 0 0 4px #8b74ff16; }
.drama-progress-label input::-moz-range-thumb { width:12px; height:12px; border-radius:50%; background:#f4f6fc; border:2px solid #b4baff; }
.drama-time { display:flex; justify-content:space-between; margin-top:-4px; color:var(--media-muted); font-size:.73rem; font-variant-numeric:tabular-nums; }
.drama-controls { display:flex; gap:14px; align-items:center; justify-content:center; margin:18px 0; }
.drama-controls button { color:#e4eafa; font:inherit; cursor:pointer; }
.drama-controls button:not(.primary-button) { display:grid; place-items:center; flex:none; position:relative; width:48px; height:48px; border:1px solid #344666; border-radius:50%; background:#101c31; }
.drama-controls button:not(.primary-button) svg { width:30px; height:30px; stroke:currentColor; stroke-width:1.5; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.drama-controls button:not(.primary-button) span { position:absolute; top:21px; font-size:.6rem; font-weight:700; }
.drama-controls .primary-button { display:inline-flex; gap:9px; align-items:center; justify-content:center; min-height:54px; min-width:144px; padding:12px 18px; border:1px solid #9d8aff; border-radius:12px; background:var(--media-accent); color:#fff; font-size:.9rem; font-weight:700; box-shadow:inset 0 1px #fff2; }
.drama-controls .primary-button svg { width:21px; height:21px; flex:none; }
.drama-controls .primary-button .drama-pause-icon { display:none; }
.drama-controls .primary-button[data-playing=true] svg:first-child { display:none; }
.drama-controls .primary-button[data-playing=true] .drama-pause-icon { display:block; }
.drama-controls button:hover { border-color:#c2c7ff; }
.drama-controls button:disabled { opacity:.4; cursor:default; }
.drama-options { display:flex; gap:6px 10px; flex-wrap:wrap; justify-content:center; padding-top:12px; border-top:1px solid #30415c; }
.drama-options button,.drama-more summary { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:9px 10px; border:1px solid #344766; border-radius:8px; background:#0e192b; color:var(--media-muted); font:inherit; font-size:.73rem; cursor:pointer; }
.drama-options button[aria-pressed=true] { border-color:#7f97e4; color:#e8edff; background:#1b2c4c; }
.drama-options button:hover,.drama-more summary:hover { border-color:#8199d5; color:#fff; }
.drama-more { flex-basis:100%; text-align:center; }
.drama-more summary { border:0; background:transparent; list-style:none; color:#9eaeca; }
.drama-more summary::-webkit-details-marker { display:none; }
.drama-more summary::after { content:'⌄'; margin-left:8px; }
.drama-more[open] summary::after { content:'⌃'; }
.drama-more button { display:block; margin:0 auto 6px; }
.drama-note { color:var(--media-muted); font-size:.75rem; line-height:1.6; text-align:center; margin:18px auto 0; }
.drama-error { color:#ffbccb; margin:12px 0 0; text-align:center; line-height:1.5; font-size:.8rem; }
.drama-error:empty { display:none; }
.drama-scenes { grid-column:1/-1; min-width:0; padding:22px 24px 24px; border-top:1px solid #30415c; background:#0a1425; }
.drama-scenes h3 { margin:0; font-size:1rem; font-weight:650; letter-spacing:-.02em; }
.drama-scenes .media-collection-heading p { color:var(--media-muted); font-size:.75rem; margin:6px 0 0; line-height:1.5; }
.drama-scene-rail { display:grid; grid-auto-flow:column; grid-auto-columns:min(12rem,64vw); gap:12px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; scrollbar-width:thin; scrollbar-color:#4f6791 #101a2b; padding:4px 4px 12px; margin:0 -4px; }
.drama-scene { display:flex; flex-direction:column; gap:7px; text-align:left; scroll-snap-align:start; background:#101c30; border:1px solid #30415c; border-radius:9px; padding:0 0 12px; color:var(--media-muted); font:inherit; cursor:pointer; min-width:0; overflow:hidden; }
.drama-scene-rail { scroll-padding-inline:4px; }
.drama-scene-image { position:relative; display:block; width:100%; aspect-ratio:16/9; background:#080d19; }
.drama-scene-image img { display:block; width:100%; height:100%; object-fit:contain; }
.drama-scene-image > span { position:absolute; bottom:6px; left:6px; padding:3px 6px; background:#080d19ee; border-radius:4px; font-size:.63rem; color:#fff; font-variant-numeric:tabular-nums; }
.drama-scene-title { font-size:.72rem; line-height:1.4; padding:0 10px; color:#d5def2; }
.drama-scene-time { font-size:.67rem; padding:0 10px; margin-top:auto; font-variant-numeric:tabular-nums; }
.drama-scene[aria-current=true] { border-color:#97acff; box-shadow:0 0 0 2px #3754a5; background:#1a2b4a; }
.drama-scene[aria-current=true] .drama-scene-image > span { background:#405bba; }
.drama-scene:hover { border-color:#91a7d4; }
.drama-scene-start { display:flex; gap:9px; align-items:center; min-height:48px; margin-top:12px; padding:10px 15px; border:1px solid #7d96e3; border-radius:9px; background:#18294a; color:#f4f6fc; font:inherit; font-size:.82rem; cursor:pointer; }
.drama-scene-start svg { width:18px; height:18px; }
.drama-focus { width:calc(100% - 40px); max-width:1280px; max-height:94dvh; padding:0; border:1px solid #526a95; border-radius:18px; background:#080d19; overflow:auto; }
.drama-focus::backdrop { background:#030812ed; backdrop-filter:blur(10px); }
.drama-focus-toolbar { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 20px; border-bottom:1px solid #30415c; background:#0c1525; }
.drama-focus-toolbar > span { font-size:.85rem; font-weight:600; line-height:1.4; }
.drama-focus-toolbar button { display:flex; gap:8px; align-items:center; justify-content:center; min-width:48px; min-height:48px; padding:10px 14px; background:#172640; border:1px solid #526a95; border-radius:9px; color:#fff; font:inherit; font-size:.8rem; cursor:pointer; }
.drama-focus .drama-player { border:0; border-radius:0; }
.drama-focus [data-drama-focus] { display:none; }
.drama-focus-open { overflow:hidden; }
.drama-options [data-drama-focus] { gap:8px; }
.drama-options [data-drama-focus] svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.drama-focus-toolbar { flex-wrap:wrap; }
.drama-focus-toolbar > span { flex:1 1 180px; min-width:0; overflow-wrap:anywhere; }
.drama-focus-toolbar .media-fullscreen-button span { display:inline; }
.drama-focus-screen[data-media-fullscreen]:not([data-media-fullscreen=""]) { width:100%; height:100dvh; overflow:auto; background:#080d19; color:#f4f6fc; padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.drama-focus-screen[data-media-fullscreen]:not([data-media-fullscreen=""]) .drama-player { max-width:1800px; margin-inline:auto; }
.videos-page :focus-visible,.home-dramas :focus-visible,.drama-focus :focus-visible { outline:3px solid #b7c4ff; outline-offset:4px; }
.player[data-drama-inline=true] { visibility:hidden; pointer-events:none; }
body[data-web-view=videos] .player { border-color:#476089; background:#101a2bf5; box-shadow:0 -8px 35px #0005; }
body[data-web-view=videos] .player-track strong { text-transform:none; letter-spacing:0; }
body[data-web-view=videos] .player-track [data-player-status] { color:#aabada; letter-spacing:.05em; font-weight:600; }
body[data-web-view=videos] .player-track .song-title-text { color:#f4f6fc; letter-spacing:0; text-transform:none; font-size:.82rem; font-weight:650; }
body[data-web-view=videos] .player::before { background:linear-gradient(90deg,#b80fcb,#6540f5,#2455e8); box-shadow:none; }
@media(max-width:1000px) {
 .drama-card { grid-template-columns:1fr; }
 .drama-player { grid-template-columns:1fr; }
 .drama-player-body { padding:20px 28px; }
 .drama-caption { min-height:0; }
 .drama-options .drama-more { flex-basis:auto; }
}
@media(max-width:680px) {
 body[data-web-view] #main > .videos-page:first-child { padding-top:96px; padding-bottom:36px; }
 .mediathek-heading { display:block; margin-bottom:18px; }
 .mediathek-heading h1 { font-size:2.05rem; }
 .mediathek-intro { margin-top:7px; font-size:.8rem; }
 .mediathek-tabs { display:grid; grid-template-columns:1fr 1fr; width:100%; gap:8px; margin-bottom:22px; }
 .mediathek-tabs a { min-width:0; min-height:52px; padding:12px 16px; font-size:.9rem; gap:10px; }
 .mediathek-tabs small { display:none; }
 .mediathek-tabs a > svg { width:20px; height:20px; }
 .drama-card { border-radius:16px; }
 .drama-card-copy { padding:22px; }
 .drama-card-copy .eyebrow { margin-bottom:10px; }
 .drama-card-copy h3 { font-size:1.85rem; margin-bottom:12px; }
 .drama-meta { font-size:.68rem; margin-bottom:14px; gap:5px 7px; }
 .drama-meta span + span::before { margin-right:7px; }
 .drama-card-copy .drama-summary { font-size:.82rem; line-height:1.6; margin-bottom:18px; }
 .drama-image-label { bottom:10px; left:10px; font-size:.63rem; padding:6px 9px; }
 .drama-back { margin-bottom:8px; }
 .drama-detail-heading { margin-bottom:20px; }
 .drama-detail-heading h2 { font-size:1.85rem; }
 .drama-detail-heading p:not(.eyebrow):not(.drama-detail-meta) { font-size:.8rem; }
 .drama-detail-meta { font-size:.7rem; }
 .drama-player { border-radius:14px; }
 .drama-player-body { padding:18px 16px 10px; }
 .drama-caption { font-size:.72rem; }
 .drama-controls { gap:12px; margin-block:16px; flex-wrap:wrap; }
 .drama-controls .primary-button { min-width:126px; font-size:.83rem; padding-inline:12px; }
 .drama-options { gap:6px; }
 .drama-options button,.drama-more summary { font-size:.7rem; }
 .drama-options .drama-more { flex-basis:100%; }
 .drama-scenes { padding:20px 16px 18px; }
 .drama-scenes h3 { font-size:.95rem; }
 .drama-scenes .media-collection-heading { gap:10px; align-items:start; }
 .drama-scene-rail { grid-auto-columns:min(10rem,62vw); }
 .drama-focus { width:calc(100% - 16px); max-height:96dvh; border-radius:12px; }
 .drama-focus-toolbar { padding:8px 12px; }
 .drama-focus-toolbar > span { font-size:.75rem; }
 .drama-focus-toolbar button span { display:none; }
}
@media(prefers-reduced-motion:reduce) { .mediathek-tabs a,body[data-web-view=videos] .player::before { transition:none; } }

/* Cinema uses the whole display; controls float above the original image. */
.drama-cinema-surface { position:absolute; inset:0; width:100%; height:100%; padding:0; border:0; border-radius:0; background:transparent; cursor:pointer; }
.drama-focus-screen[data-cinema=true] { position:relative; width:100%; height:100dvh; padding:0; overflow:hidden; background:#000; color:#f4f6fc; }
.drama-focus-screen[data-cinema=true] [data-drama-focus-body],
.drama-focus-screen[data-cinema=true] .drama-player { display:block; width:100%; max-width:none; height:100%; margin:0; background:#000; box-shadow:none; }
.drama-focus-screen[data-cinema=true] .drama-picture { position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto; background:#000; }
.drama-focus-screen[data-cinema=true] .drama-picture img { object-fit:contain; }
.drama-focus-screen[data-cinema=true][data-fit=cover] .drama-picture img { object-fit:cover; }
.drama-focus-screen[data-cinema=true] .drama-focus-toolbar { position:absolute; inset:0 0 auto; z-index:3; flex-wrap:nowrap; padding:calc(16px + env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) 36px max(24px,env(safe-area-inset-left)); border:0; background:linear-gradient(#030711eb,#030711a6 68%,transparent); }
.drama-focus-screen[data-cinema=true] .drama-focus-toolbar > span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.drama-focus-screen[data-cinema=true] .drama-focus-toolbar button span { display:inline; }
.drama-focus-screen[data-cinema=true] .media-fullscreen-button { display:none; }
.drama-focus-screen[data-cinema=true] .drama-player-body { position:absolute; inset:auto 0 0; z-index:2; max-height:calc(100% - 100px); overflow:auto; padding:44px max(32px,env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(32px,env(safe-area-inset-left)); background:linear-gradient(transparent,#030711d9 30%,#030711f5); }
.drama-focus-screen[data-cinema=true] .drama-player-caption { margin:0; }
.drama-focus-screen[data-cinema=true] .drama-caption { min-height:0; color:#eef2ff; font-size:.75rem; }
.drama-focus-screen[data-cinema=true] .drama-player-kind,
.drama-focus-screen[data-cinema=true] .drama-options,
.drama-focus-screen[data-cinema=true] .drama-scenes { display:none; }
.drama-focus-screen[data-cinema=true] .drama-controls { margin:8px 0 0; gap:16px; }
.drama-focus-screen[data-cinema=true] .drama-controls .primary-button { min-height:48px; }
.drama-focus-screen[data-cinema=true] .drama-controls button { border-radius:var(--media-action-radius); }
.drama-focus-screen[data-cinema=true] .drama-focus-toolbar,
.drama-focus-screen[data-cinema=true] .drama-player-body { transition:opacity .2s,visibility .2s; }
.drama-focus-screen[data-cinema=true][data-controls=hidden] { cursor:none; }
.drama-focus-screen[data-cinema=true][data-controls=hidden] .drama-cinema-surface { cursor:none; }
.drama-focus-screen[data-cinema=true][data-controls=hidden] .drama-focus-toolbar,
.drama-focus-screen[data-cinema=true][data-controls=hidden] .drama-player-body { opacity:0; visibility:hidden; pointer-events:none; }
.drama-focus-screen[data-cinema=true] .drama-cinema-surface:focus-visible { outline-offset:-5px; }
@media(max-width:680px) {
 .drama-focus-screen[data-cinema=true] .drama-focus-toolbar { flex-wrap:wrap; gap:8px; padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right)); }
 .drama-focus-screen[data-cinema=true] .drama-focus-toolbar > span { flex-basis:100%; }
 .drama-focus-screen[data-cinema=true] .media-screen-actions { margin-left:auto; }
 .drama-focus-screen[data-cinema=true] .drama-player-body { padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right)); }
}
@media(max-height:500px) and (orientation:landscape) {
 .drama-focus-screen[data-cinema=true] .drama-focus-toolbar { padding-top:max(8px,env(safe-area-inset-top)); padding-bottom:20px; }
 .drama-focus-screen[data-cinema=true] .drama-player-body { padding-top:24px; padding-bottom:max(8px,env(safe-area-inset-bottom)); }
 .drama-focus-screen[data-cinema=true] .drama-controls { margin-top:2px; }
 .drama-focus-screen[data-cinema=true] .drama-caption { font-size:.68rem; }
}
@media(prefers-reduced-motion:reduce) {
 .drama-focus-screen[data-cinema=true] .drama-focus-toolbar,
 .drama-focus-screen[data-cinema=true] .drama-player-body { transition:none; }
}

.drama-card-actions,.drama-detail-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; }
.drama-detail-actions { margin:12px 0 0; }
.drama-detail-actions .drama-detail-meta { margin:0; }
.drama-share { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px;
  border:1px solid var(--media-line); border-radius:14px; padding:8px 14px; color:var(--media-ink); background:var(--media-surface,#131e32); font:inherit; font-size:.86rem; cursor:pointer; }
.drama-share svg { width:18px; height:18px; }
.drama-share:hover,.drama-share:focus-visible { border-color:#96aeef; }

/* One tactile action material, based on the approved "Im Blog stöbern" button. */
:root {
  --media-action-radius:14px;
  --media-action-accent:linear-gradient(110deg,#8e0ba6 0%,#4728b8 48%,#183ea8 100%);
  --media-action-shadow:inset 0 2px 0 #e5edff1f,inset 0 -1px 0 #0005,0 6px 16px #0004;
}
.videos-page,.home-dramas,.home-videos,.drama-focus,.video-dialog { --media-accent:var(--media-action-accent); }
html :is(.button,.video-watch-button,.drama-card-cta,.drama-controls button,.drama-options button,.drama-more summary,.drama-more button,.video-close,.video-next,.media-fullscreen-button,.drama-focus-toolbar button,.videos-channel,.video-refresh,.media-rail-controls button) {
  border:1px solid var(--fv-edge,rgba(164,184,226,.28));
  border-radius:var(--media-action-radius);
  background:var(--fv-control,linear-gradient(180deg,#23314d,#141e34 58%,#10182b));
  color:#f4f6fc;
  box-shadow:var(--media-action-shadow);
  transition:border-color .16s,box-shadow .16s,transform .16s;
}
html :is(.button-primary,.video-watch-button,.drama-card-cta,.drama-controls .primary-button) {
  border-color:#726493;
  background:linear-gradient(180deg,#ffffff0c,transparent 60%,#00000015),var(--media-action-accent);
  box-shadow:inset 0 2px 0 #e7dfff2e,inset 0 -1px 0 #0005,0 7px 18px #0005;
}
html :is(.button,.video-watch-button,.drama-card-cta,.drama-controls button,.drama-options button,.drama-more summary,.drama-more button,.video-close,.video-next,.media-fullscreen-button,.drama-focus-toolbar button,.videos-channel,.video-refresh,.media-rail-controls button):hover:not(:disabled) {
  border-color:#8c9cbd;
  box-shadow:inset 0 2px 0 #edf3ff29,inset 0 -1px 0 #0005,0 9px 22px #0005;
}
html :is(.button,.video-watch-button,.drama-card-cta,.drama-controls button,.drama-options button,.drama-more summary,.drama-more button,.video-close,.video-next,.media-fullscreen-button,.drama-focus-toolbar button,.videos-channel,.video-refresh,.media-rail-controls button):active:not(:disabled) {
  transform:translateY(1px);
  box-shadow:inset 0 2px 5px #0004,0 2px 6px #0003;
}
html :is(.drama-options button,.media-fullscreen-button)[aria-pressed=true] { border-color:#98a5cf; box-shadow:var(--media-action-shadow),inset 0 -3px #6474bd; }
html :is(.mediathek-tabs a,.video-filters button) { border-radius:var(--media-action-radius); background:var(--fv-control); border-color:var(--fv-edge); box-shadow:var(--media-action-shadow); }
html :is(.mediathek-tabs a[aria-current=page],.video-filters button[aria-pressed=true]) { border-color:#788cb5; background:linear-gradient(180deg,#293859,#19243d 58%,#111b30); box-shadow:var(--media-action-shadow),inset 0 -2px #7373bb; }
@media(prefers-reduced-motion:reduce) {
  html :is(.button,.video-watch-button,.drama-card-cta,.drama-controls button,.drama-options button,.drama-more summary,.drama-more button,.video-close,.video-next,.media-fullscreen-button,.drama-focus-toolbar button,.videos-channel,.video-refresh,.media-rail-controls button) { transition:none; transform:none; }
}
