/* iLEKTROLOGIKA · Video-Player (Konzept)
   Ruhig, rund, Milchglas. Eigene Steuerelemente fuer MP4, Datenschutz-Huelle fuer YouTube/Vimeo.
   Alle Klassen beginnen mit .ilkp- */
.ilkp {
  --glass: rgba(28, 29, 32, .52);
  --glass-line: rgba(255, 255, 255, .14);
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
  background: #000; color: #fff; isolation: isolate; container-type: inline-size;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  outline-offset: 4px;
}
.ilkp.is-hoch { aspect-ratio: 9 / 16; border-radius: 24px; }
.ilkp.is-hoch .ilkp-cover img { object-fit: cover; }
.ilkp:fullscreen, .ilkp:-webkit-full-screen { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.ilkp-backdrop { position: absolute; inset: -40px; background: #0b0b0c center / cover no-repeat; filter: blur(34px) saturate(140%) brightness(.55); transform: scale(1.1); z-index: 0; }
.ilkp video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; z-index: 1; display: block; }
.ilkp iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5; background: #000; }
.ilkp-hit { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.ilkp.is-idle, .ilkp.is-idle .ilkp-hit { cursor: none; }

/* Grosser Abspielknopf (Milchglas) */
.ilkp-big {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25); color: #fff;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .25s ease;
}
.ilkp-big svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.ilkp-big.replay svg { margin-left: 0; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Vorschaubild-Huelle */
.ilkp-cover { position: absolute; inset: 0; z-index: 4; border: 0; padding: 0; margin: 0; cursor: pointer; color: #fff; background: transparent; display: block; width: 100%; font: inherit; text-align: left; transition: opacity .45s ease, visibility .45s ease; }
.ilkp-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ilkp-cover.is-wide img { object-fit: cover; }
/* Titel oben: unten stehen in eigenen Filmen oft eingebrannte Untertitel */
.ilkp-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 40%); pointer-events: none; }
.ilkp-cover:hover .ilkp-big, .ilkp-cover:focus-visible .ilkp-big { transform: scale(1.08); background: rgba(255, 255, 255, .24); }
.ilkp-cover:focus-visible { outline: none; }
.ilkp-cover:focus-visible .ilkp-big { outline: 3px solid #fff; outline-offset: 4px; }
.ilkp-cap { position: absolute; left: 22px; right: 22px; top: 18px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-right: 110px; }   /* rechts oben frei lassen, z. B. fuer den Hinweis „Mit KI erstellt“ im Film */
.ilkp-cap b { font-size: 17px; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.ilkp-cap span { flex: none; font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-variant-numeric: tabular-nums; }
.ilkp.is-started .ilkp-cover { opacity: 0; visibility: hidden; pointer-events: none; }

/* Kurzes Symbol in der Mitte beim Umschalten (wie bei Apple) */
.ilkp-flash { position: absolute; left: 50%; top: 50%; z-index: 3; width: 72px; height: 72px; translate: -50% -50%; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .38); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; pointer-events: none; }
.ilkp-flash svg { width: 26px; height: 26px; fill: #fff; }
.ilkp-flash.go { animation: ilkp-flash .6s ease-out; }
@keyframes ilkp-flash { 0% { opacity: .95; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.25); } }

/* Ende: Nochmal ansehen */
.ilkp-end { position: absolute; inset: 0; z-index: 4; border: 0; background: rgba(0, 0, 0, .35); cursor: pointer; display: none; color: #fff; padding: 0; width: 100%; }
.ilkp.is-ended .ilkp-end { display: block; }

/* Laden */
.ilkp-spin { position: absolute; left: 50%; top: 50%; z-index: 3; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: ilkp-rot .8s linear infinite; display: none; }
.ilkp.is-waiting .ilkp-spin { display: block; }
@keyframes ilkp-rot { to { transform: rotate(360deg); } }

/* Steuerleiste: Milchglas-Kapsel */
.ilkp-bar {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 6;
  display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 8px;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.ilkp:not(.is-started) .ilkp-bar, .ilkp.is-idle .ilkp-bar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.ilkp-btn { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .2s ease, transform .15s ease; }
.ilkp-btn:hover { background: rgba(255, 255, 255, .14); }
.ilkp-btn:active { transform: scale(.92); }
.ilkp-btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; border-radius: 50%; }
.ilkp-btn svg { width: 20px; height: 20px; }
.ilkp-btn .f { fill: currentColor; }
.ilkp-btn .s { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ilkp-time { flex: none; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 38px; text-align: center; opacity: .92; }

/* Zeitleiste */
.ilkp-scrub { position: relative; flex: 1; min-width: 40px; height: 36px; display: flex; align-items: center; cursor: pointer; touch-action: none; margin: 0 6px; }
.ilkp-scrub:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }
.ilkp-track { position: relative; width: 100%; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .22); overflow: hidden; transition: height .2s ease; }
.ilkp-scrub:hover .ilkp-track, .ilkp.is-scrubbing .ilkp-track { height: 7px; }
.ilkp-buf, .ilkp-prog { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; }
.ilkp-buf { background: rgba(255, 255, 255, .28); }
.ilkp-prog { background: #fff; }
.ilkp-knob { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .35); transform: scale(0); transition: transform .2s ease; pointer-events: none; }
.ilkp-scrub:hover .ilkp-knob, .ilkp.is-scrubbing .ilkp-knob, .ilkp-scrub:focus-visible .ilkp-knob { transform: scale(1); }
.ilkp-tip { position: absolute; bottom: 36px; left: 0; translate: -50% 0; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: rgba(0, 0, 0, .7); white-space: nowrap; opacity: 0; transition: opacity .15s ease; pointer-events: none; font-variant-numeric: tabular-nums; }
.ilkp-scrub:hover .ilkp-tip, .ilkp.is-scrubbing .ilkp-tip { opacity: 1; }

/* Lautstaerke */
.ilkp-vol { display: flex; align-items: center; }
.ilkp-vol input { -webkit-appearance: none; appearance: none; width: 0; height: 4px; border-radius: 999px; margin: 0; opacity: 0; cursor: pointer; transition: width .3s ease, opacity .3s ease, margin .3s ease;
  background: linear-gradient(to right, #fff var(--v, 100%), rgba(255, 255, 255, .25) var(--v, 100%)); }
.ilkp-vol:hover input, .ilkp-vol:focus-within input { width: 72px; opacity: 1; margin: 0 8px 0 2px; }
.ilkp-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.ilkp-vol input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
@media (hover: none) { .ilkp-vol input { display: none; } }

/* Kleine Player (Handy, Seitenleiste): nur das Wichtigste */
@container (max-width: 520px) {
  .ilkp-bar { left: 8px; right: 8px; bottom: 8px; height: 42px; padding: 0 4px; gap: 0; }
  .ilkp-btn { width: 34px; height: 34px; }
  .ilkp-btn svg { width: 18px; height: 18px; }
  .ilkp-time { font-size: 11.5px; min-width: 32px; }
  .ilkp-time.rest, .ilkp-pip, .ilkp-vol input { display: none; }
  .ilkp-big { width: 64px; height: 64px; }
  .ilkp-big svg { width: 24px; height: 24px; }
  .ilkp-cap { left: 14px; right: 14px; top: 12px; padding-right: 64px; gap: 4px; }
  .ilkp-cap b { font-size: 14.5px; }
  .ilkp-flash { width: 56px; height: 56px; }
}
@container (max-width: 340px) {
  .ilkp-time.cur { display: none; }
  .ilkp-cap b { font-size: 13px; }
}

/* Externe Videos: Datenschutz-Huelle (laedt erst nach Klick) */
.ilkp-consent { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; text-align: center;
  background: radial-gradient(70% 90% at 12% 0%, rgba(255, 106, 0, .26), transparent), radial-gradient(70% 90% at 95% 100%, rgba(10, 108, 255, .30), transparent), radial-gradient(50% 60% at 70% 40%, rgba(48, 209, 88, .12), transparent), #0b0b0c; }
.ilkp-consent-box { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 460px; }
.ilkp-src { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); }
.ilkp-consent p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .78); max-width: 44ch; }
.ilkp-load { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: #fff; font: 600 15px/1 var(--font, system-ui); padding: 12px 20px; border-radius: 999px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.ilkp-load:hover { background: rgba(255, 255, 255, .26); transform: scale(1.03); }
.ilkp-load svg { width: 16px; height: 16px; fill: currentColor; }
.ilkp-load[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.ilkp-consent a { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.ilkp-consent a:hover { color: #fff; }
@container (max-width: 520px) {
  .ilkp-consent { padding: 10px; }
  .ilkp-consent-box { gap: 8px; }
  .ilkp-consent p { font-size: 11.5px; line-height: 1.4; }
  .ilkp-load { font-size: 13.5px; padding: 9px 15px; }
  .ilkp-consent a { font-size: 11px; }
}
@container (max-width: 340px) { .ilkp-consent a { display: none; } }

/* Fehler */
.ilkp-msg { position: absolute; inset: 0; z-index: 7; display: none; place-items: center; padding: 20px; text-align: center; font-size: 14px; background: rgba(11, 11, 12, .82); }
.ilkp.is-error .ilkp-msg { display: grid; }

@media (prefers-reduced-motion: reduce) {
  .ilkp-flash.go { animation: none; }
  .ilkp-bar, .ilkp-cover, .ilkp-big { transition: none; }
}
