:root{--bg:#0f0f0f;--panel:#181818;--text:#f1f1f1;--muted:#a9a9a9;--border:#2a2a2a;--accent:#ff0033}
*{box-sizing:border-box}html,body{height:100%}
body{margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;background:var(--bg);color:var(--text)}
a{color:inherit;text-decoration:none}
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:rgba(15,15,15,.9);backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}
.brand{display:flex;align-items:center;gap:10px}
.brand__logo{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:var(--accent);
  color:#fff;              /* <- macht das SVG weiß (currentColor) */
}
.brand__logoimg{
  width:20px;
  height:20px;
  display:block;
}
.brand__name{font-weight:700;letter-spacing:.2px}
.topnav{display:flex;gap:10px}
.topnav__link{padding:8px 12px;border-radius:999px;border:1px solid var(--border);background:transparent;color:var(--text)}
.topnav__link.is-active{background:var(--panel);border-color:#3a3a3a}
.main{padding:18px 16px 40px;max-width:1200px;margin:0 auto}
.section{margin:18px 0 26px}
.section__rowtitle{display:flex;align-items:center;justify-content:space-between}
.section__title{margin:0 0 12px;font-size:18px}
.section__more{color:var(--muted);font-size:14px}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media (max-width:1000px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.grid{grid-template-columns:1fr}}
.card{border-radius:14px;overflow:hidden;display:flex;flex-direction:column;gap:10px}
.card__thumb{border-radius:14px;overflow:hidden;border:1px solid var(--border);background:var(--panel);aspect-ratio:16/9;display:grid;place-items:center}
.thumb__placeholder{width:100%;height:100%;display:grid;place-items:center;color:var(--muted);font-weight:700;letter-spacing:.3px}
.card__meta{padding:0 2px}
.card__title{font-weight:650;line-height:1.25}
.card__sub{color:var(--muted);font-size:13px;margin-top:4px}
.row{display:flex;gap:12px;overflow:auto;padding-bottom:6px;scroll-snap-type:x mandatory}
.row{
  display:flex;
  gap:12px;
  overflow:auto;
  padding: 4px 2px 10px;
  scroll-snap-type:x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.row::-webkit-scrollbar{ width:0; height:0; }

.shortcard{
  scroll-snap-align:start;
  min-width: 190px;   /* gleichmäßige Breite */
  max-width: 190px;
  border-radius: 26px;
}

.shortcard__thumb{
  width: 100%;
  aspect-ratio: 9 / 16;   /* <- der wichtigste Fix */
  height: auto;           /* keine fixe Höhe mehr */
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  position: relative;
  border-radius: 26px !important;
}

.shortthumb{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: 50% 50%;
  display:block;
}

/* Optional: dezenter Fade unten (wie Shorts), macht es "sauberer" */
.shortcard__thumb::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height: 38%;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  pointer-events:none;
}

.shortcard__thumb img{
  border-radius: inherit;
}

/* Title unterhalb kompakter */
.shortcard__title{
  margin-top: 10px;
  font-weight: 850;
  font-size: 13px;
  line-height: 1.2;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
  color: rgba(255,255,255,.92);
}

/* Placeholder im 9:16 Format */
.thumb__placeholder--tall{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color: rgba(255,255,255,.65);
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
}

/* Mobile */
@media (max-width: 520px){
  .shortcard{ min-width: 165px; max-width: 165px; }
}
.shortcard__title{margin-top:8px;font-weight:650;font-size:14px}
.alert{padding:10px 12px;border-radius:12px;margin:10px 0 14px;border:1px solid var(--border)}
.alert--error{background:rgba(255,0,60,.12)}
.alert--success{background:rgba(0,200,120,.12)}
.form{display:grid;gap:12px;max-width:640px}
.form__label{display:grid;gap:6px;color:var(--muted)}
.form__control{padding:10px 12px;border-radius:12px;border:1px solid var(--border);background:var(--panel);color:var(--text)}
.btn{padding:10px 14px;border-radius:12px;border:1px solid var(--border);background:var(--accent);color:#fff;font-weight:700;cursor:pointer}
.watch{display:grid;grid-template-columns:1.6fr .9fr;gap:16px}
@media (max-width:980px){.watch{grid-template-columns:1fr}}
.watch__video{width:100%;border-radius:16px;border:1px solid var(--border);background:#000}
.watch__title{margin:12px 0 6px;font-size:20px}
.watch__sub{color:var(--muted);font-size:13px}
.watch__desc{margin-top:12px;background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:12px;color:#ddd}
.side__title{color:var(--muted);font-size:13px;margin:4px 0 10px}
.sideitem{display:flex;gap:10px;padding:10px;border-radius:14px}
.sideitem:hover{background:rgba(255,255,255,.04)}
.sideitem__thumb{width:140px;aspect-ratio:16/9;border-radius:12px;border:1px solid var(--border);background:var(--panel);overflow:hidden}
.sideitem__title{font-weight:650;font-size:14px}
.sideitem__sub{color:var(--muted);font-size:12px}
.faithies-shell{max-width:520px;margin:0 auto}
.faithies-feed{height:calc(100vh - 74px);overflow-y:auto;scroll-snap-type:y mandatory;border-radius:18px;scrollbar-width: none;-ms-overflow-style: none;}
.faithies-feed::-webkit-scrollbar{width: 0;height: 0;}
.faithy{position:relative;height:calc(100vh - 74px);scroll-snap-align:start;background:#000;border:1px solid var(--border);border-radius:18px;overflow:hidden}
.faithy__video{width:100%;height:100%;object-fit:cover;display:block;background:#000}
.faithy__overlay{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:space-between;padding:14px;background:linear-gradient(transparent 55%,rgba(0,0,0,.72))}
.faithy__meta{max-width:78%}
.faithy__title{font-weight:800;font-size:16px;margin-bottom:6px}
.faithy__comment{color:#e7e7e7;font-size:14px;line-height:1.25;margin-bottom:10px}
.faithy__channel{color:var(--muted);font-size:13px}
.faithy__actions{display:flex;flex-direction:column;gap:10px}
.actionbtn{width:44px;height:44px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.35);color:#fff;cursor:pointer;font-size:18px}
.playerframe{
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background:
    radial-gradient(900px 250px at 40% 0%, rgba(255,45,85,.22), transparent 55%),
    radial-gradient(800px 260px at 95% 10%, rgba(124,58,237,.18), transparent 60%),
    rgba(255,255,255,.03);
  padding: 10px;
  box-shadow: var(--shadow);
}

.watch__video{
  width:100%;
  border-radius: calc(var(--radius2) - 10px);
  background:#000;
  display:block;
}

/* nicer native controls (Chrome/Safari/Edge) */
.watch__video::-webkit-media-controls-panel{
  background: rgba(15,15,16,.55);
  backdrop-filter: blur(12px);
}
.watch__video::-webkit-media-controls-enclosure{
  border-radius: calc(var(--radius2) - 10px);
}

.watch__metaBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.channelchip{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}

.channelchip__avatar{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(255,45,85,.35), rgba(124,58,237,.30));
  border: 1px solid rgba(255,255,255,.14);
}

.channelchip__name{
  font-weight: 950;
  font-size: 13.5px;
  line-height: 1.1;
}
.channelchip__handle{
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  margin-top: 2px;
}

.metaPills{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap: wrap;
}

.pill{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.92);
  font-weight: 750;
  font-size: 12.5px;
}

.pill--date{
  background: linear-gradient(135deg, rgba(255,45,85,.16), rgba(124,58,237,.14));
  border-color: rgba(255,255,255,.16);
}

.dot{ color: var(--muted); font-weight: 900; }

/* Description als modernes <details> */
.desc{
  margin-top: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  overflow:hidden;
}
.desc__summary{
  cursor:pointer;
  padding: 12px 12px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  list-style: none;
}
.desc__summary::-webkit-details-marker{ display:none; }
.desc__body{
  padding: 0 12px 12px;
  color: rgba(255,255,255,.90);
  line-height: 1.35;
}

/* Mobile Watch polishing */
@media (max-width: 520px){
  .playerframe{ padding: 8px; }
  .channelchip{ width: 100%; justify-content:flex-start; }
  .metaPills{ width: 100%; }
}

/* Thumb images */
.card__thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.shortthumb{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.sidethumb{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* Kleine Link-Optik in Subtext */
.linkish{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.linkish:hover{
  border-bottom-color: rgba(255,255,255,.28);
}

/* Fallback Box */
.mutedbox{
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 14px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.02);
}

/* Channels row */
.channels-row{
  display:flex;
  gap:12px;
  overflow:auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.channels-row::-webkit-scrollbar{ width:0; height:0; }

.channelcard{
  min-width: 240px;
  scroll-snap-align: start;
  display:flex;
  align-items:center;
  gap:12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  transition: transform .12s ease, background .12s ease;
}
.channelcard:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.05);
}
.channelcard__avatar{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  font-weight: 950;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(255,45,85,.32), rgba(124,58,237,.28));
  overflow:hidden;
}
.channelcard__avatar img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.channelcard__name{
  font-weight: 950;
  font-size: 14px;
  line-height: 1.1;
}
.channelcard__handle{
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  margin-top: 4px;
}

/* Channel header */
.channelhead{
  display:flex;
  align-items:center;
  gap:14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.channelhead__avatar{
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  font-size: 26px;
  font-weight: 950;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(255,45,85,.32), rgba(124,58,237,.28));
  overflow:hidden;
}
.channelhead__avatar img{ width:100%; height:100%; object-fit:cover; }
.channelhead__name{ font-weight: 1000; font-size: 20px; }
.channelhead__handle{ color: var(--muted); font-weight: 750; margin-top: 4px; }
.channelhead__hint{ color: rgba(255,255,255,.75); margin-top: 8px; font-size: 13px; }

@media (max-width: 520px){
  .channelcard{ min-width: 210px; }
  .channelhead__name{ font-size: 18px; }
}
.playerframe{
  position: relative;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding: 10px;
  box-shadow: var(--shadow);
}

.watch__video{
  width:100%;
  border-radius: calc(var(--radius2) - 10px);
  background:#000;
  display:block;
}

/* Controls Bar */
.playerui{
  position:absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.62); /* no blur */
}

.pbtn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.pbtn:active{ transform: scale(.98); }

.timeline{
  flex: 1;
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.seek{
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

/* nicer range track (best-effort) */
.seek::-webkit-slider-runnable-track{
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.seek::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(0,0,0,.35);
  margin-top: -5px;
}
.seek::-moz-range-track{
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.seek::-moz-range-thumb{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(0,0,0,.35);
}

.time{
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 750;
}

/* Mobile: Controls etwas größer */
@media (max-width: 520px){
  .playerui{ left: 14px; right: 14px; bottom: 14px; }
  .pbtn{ width: 48px; height: 48px; }
}

/* ===== Edit Page ===== */
.editbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.edittabs{ display:flex; gap:8px; flex-wrap: wrap; }
.edittab{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  font-weight: 800;
  font-size: 13px;
}
.edittab.is-active{
  background: linear-gradient(135deg, rgba(255,45,85,.18), rgba(124,58,237,.16));
  border-color: rgba(255,255,255,.18);
}

.editsearch{ display:flex; gap:10px; align-items:center; flex: 1; justify-content:flex-end; }
.btn--ghost{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}

.editlist{ display:flex; flex-direction:column; gap:14px; }

.edititem{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}

.editthumb{
  position: relative;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  aspect-ratio: 16/9;
}
.editthumb.is-faithy{ aspect-ratio: 9/16; }

.editthumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.badge{
  position:absolute;
  left:10px;
  top:10px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .6px;
}

.editmeta__top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.editmeta__id{ font-weight: 950; }
.editmeta__small{ color: var(--muted); font-size: 12px; font-weight: 650; }

.editgrid{
  display:grid;
  grid-template-columns: 1fr 160px 1fr;
  gap: 10px;
}

.editactions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  align-items:center;
  margin-top: 10px;
}

.editdelete{
  margin-top: 10px;
  display:flex;
  justify-content:flex-end;
}

.btn--danger{
  background: rgba(255,45,85,.18);
  border: 1px solid rgba(255,45,85,.35);
  box-shadow: none;
}

.editpaths{
  margin-top: 10px;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  display:grid;
  gap: 6px;
}
.editpaths span{ color: var(--muted); font-weight: 750; }
.editpaths code{
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.35);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.10);
}

/* responsive */
@media (max-width: 900px){
  .edititem{ grid-template-columns: 1fr; }
  .editgrid{ grid-template-columns: 1fr; }
  .editsearch{ justify-content:flex-start; }
}
/* Faithy Kommentar: 2 Zeilen, Klick zum Aufklappen */
.faithy__commentwrap{
  position: relative;
  margin-bottom: 10px;
  padding-right: 6px;
  cursor: pointer;
  user-select: none;
}

.faithy__comment{
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Default: nur 2 Zeilen */
.faithy__commentwrap.is-collapsed .faithy__comment{
  -webkit-line-clamp: 2;
}

/* Expanded: kompletter Text */
.faithy__commentwrap.is-expanded .faithy__comment{
  -webkit-line-clamp: unset;
}

/* Dezent "Mehr anzeigen" wie modern Apps */
.faithy__commenthint{
  margin-top: 6px;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 800;
}

/* Wenn expanded, leicht anderes Label */
.faithy__commentwrap.is-expanded .faithy__commenthint{
  background: rgba(255,255,255,.10);
}

/* Optional: noch runder im Player */
.faithy{
  border-radius: 26px !important;
}
.faithy__video{
  border-radius: 26px !important;
}

/* Faithy Kommentar: 2 Zeilen, Tap zum Auf-/Zuklappen (ohne Button) */
.faithy__commentwrap{
  position: relative;
  margin-bottom: 10px;
  padding-right: 6px;
  user-select: none;
}

/* klickbar nur wenn wirklich nötig */
.faithy__commentwrap.is-toggleable{
  cursor: pointer;
}

.faithy__comment{
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Default: nur 2 Zeilen */
.faithy__commentwrap.is-collapsed .faithy__comment{
  -webkit-line-clamp: 2;
}

/* Expanded: kompletter Text */
.faithy__commentwrap.is-expanded .faithy__comment{
  -webkit-line-clamp: unset;
}

/* Watch Player: UI ein/ausblenden */
.playerui{
  transition: opacity .16s ease, transform .16s ease;
}
.playerui.is-hidden{
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* Fullscreen (Container wird fullscreen, nicht nur <video>) */
.playerframe:fullscreen{
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  background: #000 !important;
}
.playerframe:fullscreen .watch__video{
  border-radius: 0 !important;
}
.playerframe:fullscreen .playerui{
  left: 14px;
  right: 14px;
  bottom: 14px;
}

/* Fullscreen-Button etwas kompakter */
.pbtn--fs{
  width: 44px;
}

/* ===== Comments (watch + modal) ===== */
.comments{
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding: 14px;
}
.comments__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.comments__title{
  font-weight: 950;
  font-size: 16px;
}
.comments__count{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  font-weight: 900;
  font-size: 12px;
  color: rgba(255,255,255,.9);
}

.cform{
  display:grid;
  gap:10px;
  margin-bottom: 12px;
}
.cform__row{
  display:flex;
  gap:10px;
  align-items:center;
}
.cform__row .form__control{ flex: 1; }

.clist{ display:grid; gap:10px; }

.citem{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  padding: 12px;
}
.citem__top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 6px;
}
.citem__user{
  font-weight: 950;
  color: rgba(255,255,255,.95);
}
.citem__time{
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.citem__body{
  color: rgba(255,255,255,.9);
  line-height: 1.35;
  font-size: 14px;
}

@media (max-width: 520px){
  .cform__row{ flex-direction: column; align-items: stretch; }
}

/* ===== Faithy comments modal ===== */
.cmOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding: 14px;
  z-index: 9999;
}
.cmSheet{
  width: min(680px, 100%);
  max-height: 78vh;
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(20,20,22,.98);
  padding: 12px;
}
.cmHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 6px 6px 10px;
}
.cmTitle{ font-weight: 950; font-size: 16px; }
.cmClose{
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}

.cmList{ display:grid; gap:10px; padding: 6px; }
.cmForm{
  display:grid;
  gap:10px;
  padding: 10px 6px 6px;
}

/* prevent background scroll when modal open */
body.noscroll{ overflow: hidden; }

/* ===== Toast ===== */
.toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events:none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.75);
  color: rgba(255,255,255,.92);
  font-weight: 850;
  z-index: 10000;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-on{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Sicherheit: hidden muss immer wirklich unsichtbar sein */
[hidden]{ display:none !important; }

/* Modal + Comments Styling */
.cmOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding: 14px;
  z-index: 9999;
}
.cmSheet{
  width: min(680px, 100%);
  max-height: 78vh;
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(20,20,22,.98);
  padding: 12px;
}
.cmHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 6px 6px 10px;
}
.cmTitle{ font-weight: 950; font-size: 16px; }
.cmClose{
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}

.cmList{ display:grid; gap:10px; padding: 6px; }
.cmForm{ display:grid; gap:10px; padding: 10px 6px 6px; }

body.noscroll{ overflow: hidden; }

/* Kommentar-Karte */
.citem{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  padding: 12px;
}
.citem__top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 6px;
}
.citem__user{ font-weight: 950; color: rgba(255,255,255,.95); }
.citem__time{ color: var(--muted); font-size: 12px; font-weight: 650; }
.citem__body{ color: rgba(255,255,255,.9); line-height: 1.35; font-size: 14px; }

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events:none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.75);
  color: rgba(255,255,255,.92);
  font-weight: 850;
  z-index: 10000;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-on{ opacity: 1; transform: translateX(-50%) translateY(0); }

/* hidden MUSS wirklich ausblenden */
[hidden]{ display:none !important; }

/* Faithy Overlay: nur Buttons klickbar, nicht "alles" */
.faithy__overlay{ pointer-events:none; }
.faithy__meta, .faithy__actions{ pointer-events:auto; }

/* Rechte Button-Leiste */
.faithy__actions{
  position:absolute;
  right: 14px;
  bottom: 110px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.actionbtn{
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.95);
  font-size: 18px;
  cursor: pointer;
}

/* Kommentar-Modal */
.cmOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding: 14px;
  z-index: 9999;
}
.cmSheet{
  width: min(680px, 100%);
  max-height: 78vh;
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(20,20,22,.98);
  padding: 12px;
}
.cmHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 6px 6px 10px;
}
.cmTitle{ font-weight: 950; font-size: 16px; }
.cmClose{
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}
.cmList{ display:grid; gap:10px; padding: 6px; }
.cmForm{ display:grid; gap:10px; padding: 10px 6px 6px; }

body.noscroll{ overflow: hidden; }

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events:none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.75);
  color: rgba(255,255,255,.92);
  font-weight: 850;
  z-index: 10000;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-on{ opacity: 1; transform: translateX(-50%) translateY(0); }
/* Modal: default AUS, nur .is-open AN */
.cmOverlay{ display:none !important; }
.cmOverlay.is-open{ display:flex !important; }
[hidden]{ display:none !important; }

/* ===== RECOVERY OVERRIDES (gewinnt gegen alte CSS-Blöcke) ===== */
[hidden]{ display:none !important; }
.cmOverlay{ display:none !important; }
.cmOverlay.is-open{ display:flex !important; }

/* Faithy Overlay: nur Buttons/Text klickbar */
.faithy__overlay{ pointer-events:none; }
.faithy__meta, .faithy__actions{ pointer-events:auto; }

/* ===== ROLLBACK SAFETY: hide any comment modal remnants ===== */
.cmOverlay, .cmSheet, .cmForm, .cmList, .comments, .cform, .clist { display:none !important; }

/* ===== ROLLBACK OVERRIDES: ensure player controls visible/clickable ===== */
.playerui{ opacity:1 !important; transform:none !important; pointer-events:auto !important; }
.playerui.is-hidden{ opacity:0 !important; pointer-events:none !important; }

/* Ensure watch buttons are clickable above the video */
.playerframe{ position:relative; }
.playerui{ position:absolute; left:12px; right:12px; bottom:12px; z-index:20; }
.watch__video{ position:relative; z-index:1; }

/* Faithies: only overlay interactive elements clickable */
.faithy__overlay{ pointer-events:none; }
.faithy__meta, .faithy__actions{ pointer-events:auto; }

/* Faithy Comments Bottom Sheet (Instagram-like) */
.fcsheet{
  position:absolute;
  left:0; right:0; bottom:0;
  height:55%;
  display:none;
  z-index: 40;
  padding: 0;
  pointer-events: auto;
}
.fcsheet.is-open{ display:block; }

.fcsheet__panel{
  height:100%;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(18,18,20,.98);
  display:flex;
  flex-direction: column;
  overflow: hidden;
}

.fcsheet__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.fcsheet__title{ font-weight: 950; }
.fcsheet__close{
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
}

.fcsheet__list{
  flex: 1;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px;
  display:grid;
  gap:10px;
}

.fcsheet__form{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 10px 12px 12px;
  display:grid;
  gap:10px;
  background: rgba(0,0,0,.12);
}
.fcsheet__row{
  display:flex;
  gap:10px;
  align-items:center;
}
.fcsheet__row .form__control{ flex:1; }

/* comment cards */
.citem{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  padding: 12px;
}
.citem__top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 6px;
}
.citem__user{ font-weight: 950; color: rgba(255,255,255,.95); }
.citem__time{ color: var(--muted); font-size: 12px; font-weight: 650; }
.citem__body{ color: rgba(255,255,255,.9); line-height: 1.35; font-size: 14px; }

/* Preroll Overlay: stabil auf iPhone (nicht über Flex-Top positionieren) */
.playerframe{ position: relative; } /* falls nicht schon gesetzt */

.prerollbar{
  position: absolute;
  inset: 10px;                 /* entspricht playerframe padding */
  z-index: 50;
  pointer-events: none;        /* nur Button klickbar */
}

/* Fullscreen: playerframe hat padding 0 -> Overlay auch 0 */
.playerframe:fullscreen .prerollbar{
  inset: 0;
}

/* Skip-Button: rechts, Oberkante im unteren Drittel */
.prerollskip{
  position: absolute;
  top: 66.666%;
  right: calc(14px + env(safe-area-inset-right, 0px));
  pointer-events: auto;

  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.62);
  color: rgba(255,255,255,.95);
  font-weight: 950;
  cursor: pointer;
}

.prerollskip:disabled{
  opacity: .65;
  cursor: default;
}

/* Badge optional (wenn du ihn nutzt) */
.prerollbadge{
  position: absolute;
  left: 14px;
  bottom: 14px;
  pointer-events: none;

  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.55);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .6px;
  color: rgba(255,255,255,.92);
}


/* iPhone: Skip-Button etwas höher */
@supports (-webkit-touch-callout: none){
  @media (max-width: 520px){
    #chAdSkip,
    .prerollskip{
      top: 40% !important;   /* vorher ~66.6% -> jetzt höher */
    }
  }
}