/* =======================================
   NEONYZER – Ultra-Modern UI (v2.6 "Premium App" + Potter Theme)
   ======================================= */

/* =======================================
   1) Tokens / Custom Properties
   ======================================= */
:root {
  /* Farben */
  --bg: #08070c;
  --bg-1: #0f0c18;
  --bg-2: #171229;
  --glass: rgba(18, 14, 32, 0.65);
  --line: #2a2140;

  --fg: #efeaff;
  --muted: #bfb6db;
  --muted-2: #9b90be;

  --accent: #8b56ff;
  --accent-2: #6f42e5;
  --accent-3: #3f2397;

  --success: #32d3a0;
  --warn: #ffb95e;
  --danger: #ff6b7a;

  /* Radien & Größen */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 999px;

  --tap: 44px;
  --appbar-h: 60px;
  --maxw: 1040px;

  /* Schatten & Effekte */
  --shadow-1: 0 6px 18px rgba(105, 67, 255, .15);
  --shadow-2: 0 12px 28px rgba(105, 67, 255, .20);
  --shadow-glow: 0 0 18px rgba(139, 86, 255, .45);
  --ring: 0 0 0 3px rgba(139, 86, 255, .42);

  /* Transitions / Animation */
  --ts-fast: 0.15s ease-out;
  --ts-med: 0.25s ease-out;
  --ts-slow: 0.45s ease;

  --bg-anim-duration: 48s;
  --card-tilt: 0.6deg;

  /* Fluid Typography Scale */
  --fs-base: clamp(15px, 0.9vw + 0.6rem, 18px);
  --fs-h1: clamp(1.6rem, 1.6vw + 1rem, 2.1rem);
  --fs-h2: clamp(1.35rem, 1.2vw + 0.8rem, 1.7rem);
  --fs-h3: clamp(1.1rem, 0.9vw + 0.7rem, 1.3rem);
}

/* System Dark Hint */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; }
}

/* =======================================
   2) Base Styles & Resets
   ======================================= */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  margin: 0;
  color: var(--fg);
  font: 400 var(--fs-base)/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
   
  /* Korrektur für Statusleiste */
  padding-top: calc(var(--appbar-h) + env(safe-area-inset-top));

  /* Animated gradient background */
  background:
    radial-gradient(1200px 900px at 92% -10%, rgba(139,86,255,.18), transparent 70%),
    radial-gradient(900px 900px at 5% 105%, rgba(63,35,151,.20), transparent 70%),
    linear-gradient(135deg, #0b0816 0%, #0c0a18 35%, #0a0a14 65%, #0b0816 100%);
  background-size: 140% 140%, 120% 120%, 100% 100%;
  animation: bg-pan var(--bg-anim-duration) linear infinite;
  background-attachment: fixed;
}

@keyframes bg-pan {
  0%   { background-position: 0% 0%, 100% 100%, 0% 0%; }
  50%  { background-position: 100% 50%, 0% 50%, 0% 0%; }
  100% { background-position: 0% 0%, 100% 100%, 0% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none !important; }
}

body.noscroll { overflow: hidden; height: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ts-fast), text-shadow var(--ts-fast);
}
a:hover {
  color: var(--accent-2);
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(139,86,255,.35);
}

::selection { background: rgba(139,86,255,.35); color: #fff; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em 0; }
h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: .3px;
  text-shadow: 0 0 12px rgba(139, 86, 255, .25);
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(139, 86, 255, .15);
}
h3 { font-size: var(--fs-h3); font-weight: 600; }
p  { margin: 0 0 1em 0; }

/* Kleine Texte & Status */
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.status { color: var(--muted); }
.status.error { color: var(--danger); font-weight: 600; }

/* Scrollbars (dezent) */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: rgba(139,86,255,.35);
  border-radius: 8px;
}
*::-webkit-scrollbar-track { background: rgba(255,255,255,.05); }

/* Reduced Motion global */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =======================================
   3) Layout: App Bar, Drawer, View
   ======================================= */

/* App Bar */
.appbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  height: calc(var(--appbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0 16px;

  background: linear-gradient(
    180deg,
    rgba(15,12,24,.9) 0%,
    rgba(15,12,24,.75) 60%,
    rgba(15,12,24,.6) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .appbar { background: rgba(15,12,24,.92); }
}
.appbar .left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.appbar .logo {
  font-weight: 800;
  letter-spacing: .4px;
  font-size: 1.1rem;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(139,86,255,.18), rgba(63,35,151,.18));
  border: 1px solid rgba(139, 86, 255, .35);
  transition: transform var(--ts-med), box-shadow var(--ts-med), filter var(--ts-med);
}
.appbar .logo:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: var(--shadow-glow);
  filter: brightness(1.05);
}
.appbar .status { opacity: .9; }

/* Header rechts (Translate-Button) */
.appbar .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .5rem;
}

#translate-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* Icon Button (Hamburger etc.) */
.icon-btn {
  width: var(--tap);
  height: var(--tap);
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: transform var(--ts-fast), box-shadow var(--ts-med), filter var(--ts-fast);
}
.icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2), var(--shadow-glow);
}
.icon-btn:active {
  transform: translateY(0);
  filter: brightness(.95);
}
.icon {
  width: 20px;
  height: 20px;
  position: relative;
}
.icon::before,
.icon::after,
.icon span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--fg);
  border-radius: var(--r-full);
  transition: transform var(--ts-med), top var(--ts-med), bottom var(--ts-med), opacity var(--ts-med);
}
.icon::before { top: 6px; }
.icon span    { top: calc(50% - 1px); }
.icon::after  { bottom: 6px; }

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 10001;
  pointer-events: none;
}
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 12, .6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--ts-med) ease;
  pointer-events: none;
}
.drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(84vw, 340px);
  background: linear-gradient(180deg, rgba(23,18,42,.98), rgba(12,8,21,.98));
  border-right: 1px solid var(--line);
  transform: translateX(-101%);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
  box-shadow: 10px 0 40px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;

  padding: calc(var(--appbar-h) + env(safe-area-inset-top)) 0 14px 0;
  height: 100svh;
  max-height: 100svh;
  touch-action: pan-y;
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer__scrim {
  opacity: 1;
  pointer-events: auto;
}
.drawer.open .drawer__panel {
  transform: translateX(0);
  box-shadow: 10px 0 40px rgba(8, 7, 12, .5);
}

/* Drawer-Navigation */
.nav {
  display: grid;
  gap: 8px;
  padding: 14px;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
}

/* Verstecken nur, wenn JS es explizit markiert */
.nav .nav-item.hidden-by-role { display: none !important; }
/* Initial: data-roles ausblenden, um FOUC zu verhindern */
.nav .nav-item[data-roles] { display: none; }
/* Wenn JS fertig ist, nur zeigen, WENN nicht hidden-by-role */
body.roles-ready .nav .nav-item[data-roles]:not(.hidden-by-role) {
  display: flex !important;
}

/* Staggered Animation für Nav-Items */
.drawer.open .nav-item {
  animation: nav-item-fade-in 0.4s ease-out both;
}
.drawer.open .nav-item:nth-child(1)  { animation-delay: 0.05s; }
.drawer.open .nav-item:nth-child(2)  { animation-delay: 0.1s; }
.drawer.open .nav-item:nth-child(3)  { animation-delay: 0.15s; }
.drawer.open .nav-item:nth-child(4)  { animation-delay: 0.2s; }
.drawer.open .nav-item:nth-child(5)  { animation-delay: 0.25s; }
.drawer.open .nav-item:nth-child(6)  { animation-delay: 0.3s; }
.drawer.open .nav-item:nth-child(7)  { animation-delay: 0.35s; }
.drawer.open .nav-item:nth-child(8)  { animation-delay: 0.4s; }
.drawer.open .nav-item:nth-child(9)  { animation-delay: 0.45s; }
.drawer.open .nav-item:nth-child(10) { animation-delay: 0.5s; }
.drawer.open .nav-item:nth-child(11) { animation-delay: 0.55s; }
.drawer.open .nav-item:nth-child(12) { animation-delay: 0.6s; }

@keyframes nav-item-fade-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Standarddarstellung für Einträge */
.nav .nav-item { display: flex; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  will-change: transform, background-color, border-color, box-shadow;
  transition:
    transform var(--ts-med),
    box-shadow var(--ts-med),
    border-color var(--ts-med),
    background-color var(--ts-med);
}
.nav-item:hover {
  transform: translateX(4px) scale(1.02);
  background-color: rgba(139, 86, 255, .1);
}
.nav-item.active {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(139,86,255,.25), rgba(63,35,151,.15));
  box-shadow: var(--shadow-glow), 0 0 0 1px var(--accent-2);
  font-weight: 700;
  color: #fff;
  transform: scale(1.02);
}
.nav-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 86, 255, .25);
  animation: pulse 1.8s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50%      { transform: scale(1.25); opacity: 1; }
}

/* Haupt-View */
.view {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 16px 30px;
}

/* =======================================
   4) Komponenten
   ======================================= */

.card {
  background: linear-gradient(180deg, rgba(23,18,42,.9), rgba(15,11,28,.9));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  margin: 16px 0;
  padding: 16px;
  transition:
    box-shadow var(--ts-med),
    transform var(--ts-med),
    border-color var(--ts-med),
    background var(--ts-med);
  overflow: hidden;
  will-change: transform, box-shadow;
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(139,86,255,.0),
    rgba(139,86,255,.15),
    rgba(139,86,255,.0)
  );
  opacity: 0;
  transform: translateX(-30%);
  transition: opacity var(--ts-slow), transform var(--ts-slow);
  mix-blend-mode: screen;
}
.card:hover {
  transform: translateY(-4px) rotateX(var(--card-tilt));
  box-shadow: var(--shadow-2), var(--shadow-glow);
  border-color: rgba(139,86,255,.45);
  background: linear-gradient(180deg, rgba(27,22,48,.92), rgba(16,12,30,.92));
}
.card:hover::before {
  opacity: 1;
  transform: translateX(30%);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
  background:
    radial-gradient(150% 150% at 100% 0%, rgba(255,255,255,.22), transparent 40%),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  will-change: transform, box-shadow, filter;
  transition:
    transform var(--ts-fast),
    box-shadow var(--ts-med),
    filter var(--ts-fast),
    background var(--ts-med),
    border-color var(--ts-med);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255,255,255,.28) 50%,
    transparent 80%
  );
  transform: translateX(-101%);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.btn:hover::after { transform: translateX(101%); }

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-2), var(--shadow-glow);
  filter: brightness(1.1);
}
.btn:active {
  transform: translateY(-1px) scale(0.98);
  filter: brightness(.92);
  transition-duration: 0.05s;
}

.btn.outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.outline:hover {
  background: rgba(139,86,255,.1);
  border-color: var(--accent);
}
.btn.outline:active {
  background: rgba(139,86,255,.2);
  filter: none;
}
.btn.small {
  min-height: auto;
  padding: 6px 12px;
  font-size: 0.9rem;
  border-radius: var(--r-sm);
}

/* Loader / Spinner */
.loader {
  width: 28px;
  height: 28px;
  margin: 26px auto;
  border-radius: 50%;
  border: 3px solid rgba(139,86,255,.25);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
.loader.small {
  width: 20px;
  height: 20px;
  border-width: 2px;
  margin: 10px auto;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Zustände */
.error,
.empty {
  padding: 15px;
  text-align: center;
  border-radius: var(--r-sm);
  margin: 10px 0;
}
.error {
  background: rgba(255,107,122,.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}
.empty { color: var(--muted); }

/* =======================================
   5) Spezifische Komponenten / Views
   ======================================= */

.news-card { padding: 0; }
.news-card .thumb {
  overflow: hidden;
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.news-card .thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center top; /* Kopf bleibt sichtbar bei Portraits */
  display: block;
  transition: transform var(--ts-med);
}
.news-card:hover .thumb img {
  transform: scale(1.03);
}
.news-card .content { padding: 16px; }
.news-card .content h3 {
  margin: 0 0 5px 0;
  font-size: 1.15rem;
}
.news-card .content p.small {
  margin-bottom: 8px;
  color: var(--muted);
}
.news-card .content div.small {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.news-card .content p:last-child { margin-bottom: 0; }

.status-card { padding: 0; }
.status-card .thumb {
  overflow: hidden;
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.status-card .thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center top; /* Kopf bleibt sichtbar */
  display: block;
  transition: transform var(--ts-med);
}
.status-card:hover .thumb img {
  transform: scale(1.03);
}
.status-card .content { padding: 16px; }
.status-card .content h3 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
}
.status-card .status-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg);
  margin-bottom: 15px;
}
.status-card .status-body p { margin: 0 0 1em 0; }
.status-card .status-body a {
  color: var(--accent);
  text-decoration: underline;
}
.status-card .status-body a:hover { color: var(--accent-2); }
.status-card .status-body img {
  border-radius: var(--r-sm);
  margin: 1em auto;
  display: block;
  max-width: 100%;
}
.status-card .timestamp {
  font-size: 0.8rem;
  color: var(--muted-2);
  text-align: right;
  margin-top: 15px;
}

/* Embeds / Videos in News & Status */
.status-card .status-body iframe,
.status-card .status-body video,
.news-card .content iframe,
.news-card .content video {
  display: block;
  margin: 1.25rem auto;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-sm);
  border: none;
}

.status-card .status-body figure.wp-block-embed,
.status-card .status-body .wp-block-embed__wrapper,
.news-card .content figure.wp-block-embed,
.news-card .content .wp-block-embed__wrapper {
  margin: 1.25rem auto;
  max-width: 100%;
}

/* Event-Karten */
.event-card {
  padding: 0;
  overflow: hidden;
}
.event-card .event-main-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px;
}
.event-card .event-details {
  flex-grow: 1;
  padding-right: 15px;
}
.event-card .event-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.event-card .event-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.event-card .date,
.event-card .location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  margin-bottom: 4px;
  font-size: 0.9rem;
}
.event-card .icon-calendar::before { content: '📅'; display: inline-block; }
.event-card .icon-pin::before      { content: '📍'; display: inline-block; }
.event-card .event-buttons {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Musik-Karten */
.music-list-container {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .music-list-container { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .music-list-container { grid-template-columns: repeat(3, 1fr); }
}

.music-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  transition:
    transform var(--ts-fast),
    box-shadow var(--ts-med),
    border-color var(--ts-med),
    background var(--ts-med);
  position: relative;
  overflow: hidden;
}
.music-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    180deg,
    rgba(139, 86, 255, .06),
    rgba(63, 35, 151, .04)
  );
  border-color: rgba(139, 86, 255, .35);
  box-shadow: var(--shadow-2), var(--shadow-glow);
}
.music-card__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(139,86,255,.35));
}
.music-card[data-service="spotify"] .music-card__icon {
  color: #1DB954;
  filter: drop-shadow(0 0 8px rgba(29,185,84,.4));
}
.music-card[data-service="youtubemusic"] .music-card__icon {
  color: #FF0000;
  filter: drop-shadow(0 0 8px rgba(255,0,0,.45));
}
.music-card[data-service="applemusic"] .music-card__icon {
  color: #FC3C44;
  filter: drop-shadow(0 0 8px rgba(252,60,68,.45));
}
.music-card__content {
  flex-grow: 1;
  margin-right: 10px;
}
.music-card__content h3 {
  margin: 0 0 3px 0;
  font-size: 1.05rem;
  line-height: 1.3;
  text-shadow: 0 0 6px rgba(139,86,255,.18);
}
.music-card__content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.music-card__action { flex-shrink: 0; }

/* Skalierung auf Smartphones */
@media (max-width: 400px) {
  .music-card {
    align-items: stretch;
    flex-direction: column;
  }
  .music-card__content {
    margin-right: 0;
  }
  .music-card__action { width: 100%; }
  .music-card__action .btn { width: 100%; }
}

/* Stream-View */
.neomulti-wrapper {
  background: linear-gradient(180deg, rgba(23,18,42,.95), rgba(12,9,24,.98));
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Header mit Titel & Live-Status */
.neomulti-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.neomulti-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.neomulti-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, #00ffc3, #0099ff);
  box-shadow: 0 0 10px rgba(0,255,195,0.8);
}

.neomulti-title-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Live-Status (rotes Lämpchen) */
.neomulti-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.05);
  font-size: 0.78rem;
}

.neomulti-status-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--r-full);
  background: #555;
  box-shadow: 0 0 0 rgba(255,0,80,0);
  transition: all var(--ts-fast);
}

.neomulti-status-label {
  white-space: nowrap;
}

/* Offline */
.neomulti-status.is-offline .neomulti-status-dot {
  background: #555;
}

/* LIVE – rotes Lämpchen */
.neomulti-status.is-live .neomulti-status-dot {
  background: #ff1744;
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.9);
}

.neomulti-status.is-live .neomulti-status-label {
  color: #ff8a9e;
}

/* Toolbar (Plattform-Auswahl) */
.neomulti-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.neomulti-toolbar label {
  font-size: 0.9rem;
  color: var(--muted);
}

.neomulti-stream-select {
  flex: 0 1 220px;
  background: var(--bg-2);
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 5px 10px;
  font-size: 0.85rem;
}

.neomulti-stream-select option[data-coming-soon="1"] {
  color: #888;
}

/* Layout Player + Chat */
.neomulti-main {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .neomulti-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Player */
.neomulti-player {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: radial-gradient(circle at top, #1b2235, #05060a);
  border: 1px solid rgba(255,255,255,0.08);
}

.neomulti-player-inner {
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.neomulti-player.ratio-169 {
  aspect-ratio: 16 / 9;
}

.neomulti-player-inner iframe,
.neomulti-player-inner video {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* Offline-Anzeige (Bild oder Text) */
.neomulti-offline {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05060a;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
  object-fit: contain;
}

.neomulti-offline-default {
  background: repeating-linear-gradient(
    45deg,
    #101318,
    #101318 6px,
    #0b0d11 6px,
    #0b0d11 12px
  );
}

/* Coming Soon Overlay für HLS */
.neomulti-comingsoon-inner {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.02) 8px,
    rgba(255,255,255,0.01) 8px,
    rgba(255,255,255,0.01) 16px
  );
}

.neomulti-comingsoon-badge {
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.75rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #ccc;
  background: rgba(0,0,0,0.6);
}

.neomulti-comingsoon-text {
  font-size: 0.9rem;
  color: #eee;
  opacity: 0.9;
  text-align: center;
}

/* Loader / Fehler im Player */
.neomulti-loading,
.neomulti-error {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #ccc;
  text-align: center;
  padding: 10px;
}

/* Chat */
.neomulti-chat {
  border-radius: var(--r-md);
  background: radial-gradient(circle at top left, #171c28 0, #05070c 55%);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.neomulti-chat-list {
  padding: 10px 12px;
  max-height: 480px;
  overflow-y: auto;
  font-size: 0.86rem;
}

/* Chat Messages */
.chat-message {
  margin-bottom: 4px;
  line-height: 1.4;
}

.chat-prefix {
  display: inline-block;
  min-width: 55px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.prefix-twitch {
  color: #9146ff;
}

.prefix-youtube {
  color: #ff4b4b;
}

/* =======================================
   5.5) Live-Show-Tab & View
   ======================================= */

/* Live-Show Tab – Status-Styles */
.nav-item[data-tab="live-show"].live-pending .dot {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 107, 122, .45);
  animation: live-pending-blink 0.9s infinite ease-in-out;
}

@keyframes live-pending-blink {
  0%, 100% { transform: scale(1);  opacity: .5; }
  50%      { transform: scale(1.6); opacity: 1;  }
}

.nav-item[data-tab="live-show"].live-ready {
  border-color: var(--success);
  box-shadow: var(--shadow-glow);
}
.nav-item[data-tab="live-show"].live-ready .dot {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(50, 211, 160, .4);
  animation: none;
}

/* Live-Show View – Iframe */
.live-show-iframe-wrap {
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.live-show-iframe {
  width: 100%;
  height: min(70vh, 720px);
  border: 0;
  display: none; /* wird per JS sichtbar, wenn ready */
}

/* =======================================
   6) Utilities
   ======================================= */
.mt-8  { margin-top: 8px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.w-100 { width: 100% !important; }

.grid-auto-fit {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.glow {
  text-shadow:
    0 0 10px rgba(139,86,255,.45),
    0 0 20px rgba(139,86,255,.25);
}

/* =======================================
   7) Dialog Styles
   ======================================= */
#map-confirmation-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 25px;
  z-index: 10001;
  box-shadow: var(--shadow-2), 0 0 30px rgba(0,0,0,0.5);
  max-width: 90vw;
  width: 400px;
  text-align: center;
  display: none;
}
#map-confirmation-dialog h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--fg);
  font-size: 1.2rem;
}
#map-confirmation-dialog p {
  margin-bottom: 15px;
  color: var(--muted);
}
#map-confirmation-dialog p.small strong {
  color: var(--warn);
}
#map-confirmation-dialog div:last-child {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* =======================================
   8) Translate-Overlay & Menü
   ======================================= */

/* Overlay während der Übersetzung */
#translate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

#translate-overlay .translate-overlay-box {
  background: var(--bg-1);
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-2);
  max-width: 90vw;
  text-align: center;
}

#translate-overlay .overlay-text {
  margin-top: 12px;
}

#translate-overlay .overlay-progress {
  margin-top: 4px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* kleines Sprach-Auswahlmenü unter dem Button */
#translate-menu-panel {
  position: fixed;
  top: 60px; /* ggf. an Appbar-Höhe anpassen */
  right: 12px;
  background: #111;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  font-size: 14px;
}

#translate-menu-panel select,
#translate-menu-panel button {
  margin-top: 6px;
  font-size: 13px;
}

#translate-menu-panel .translate-menu-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

/* ============================
   Video-Section zentrieren
   ============================ */

/* Jede Video-Karte schmaler und mittig */
.video-card {
  max-width: 480px;             /* Breite der Karte (anpassen nach Geschmack) */
  margin: 0 auto 16px auto;     /* zentriert + Abstand nach unten */
  text-align: center;           /* Text in der Mitte */
}

/* Thumbnail zentriert im Card-Layout */
.video-card .video-thumb {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.video-card .video-thumb img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
}

/* Inhalt (Titel + Datum + Button) schön mittig stapeln */
.video-card .video-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Button über die ganze Card-Breite */
.video-card .video-action .btn {
  width: 100%;
}


/* =======================================
   9) THEME ENGINE & POTTERNYZER
   ======================================= */

/* Basis für Video-Klasse (wird von JS genutzt) */
.smart-video-player {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.5s ease;
}

/* POTTER THEME OVERRIDES
   Wird aktiv via <body class="theme-potter"> */
body.theme-potter {
    /* Farben: Düsteres Pergament */
    --bg: #1a1510;
    --bg-1: #241e16;
    --bg-2: #2c241b;
    --line: #5a4a3a;
    --glass: rgba(44, 36, 27, 0.85);

    --fg: #dcd0b0;
    --muted: #a09080;
    --accent: #c5a059;  /* Gold */
    --accent-2: #e5c070;
    --accent-3: #8a7035;

    --r-sm: 2px;
    --r-md: 4px;
    --r-lg: 8px; /* Eckigerer Look */

    font-family: 'Times New Roman', serif;
    background-blend-mode: overlay;
    animation: none; /* Kein Neon-Pan */
}

body.theme-potter .appbar {
    background: rgba(26, 21, 16, 0.95);
    border-bottom: 2px solid var(--accent);
}

body.theme-potter .card {
    background: rgba(36, 30, 22, 0.9);
    border: 1px solid var(--line);
    box-shadow: none;
}

body.theme-potter .btn {
    font-family: serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    box-shadow: none;
}
body.theme-potter .btn:hover {
    background: rgba(197, 160, 89, 0.1);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

/* --- MAGIE-EFFEKT (FILTER) --- */

/* 1. Für Video-Loops (Autoplay) */
body.theme-potter .smart-video-player[autoplay] {
    filter: sepia(0.4) contrast(1.2) grayscale(0.3);
    mix-blend-mode: luminosity;
}
/* Wenn man draufklickt (Active/Full) -> Normal */
body.theme-potter .smart-video-player.neonyzer-full-video {
    filter: none;
    mix-blend-mode: normal;
}

/* 2. FÜR ALLE BILDER IN KARTEN (Aufmacher UND Inhalt) */
/* Wir zielen jetzt sehr breit auf alle Bilder in relevanten Containern */
body.theme-potter .card img,                /* Bilder in Karten allgemein */
body.theme-potter .thumb img,               /* Aufmacher-Bilder */
body.theme-potter .status-body img,         /* Bilder im Artikel-Text */
body.theme-potter .content img,             /* Bilder im Content-Bereich */
body.theme-potter .event-thumbnail img,     /* Event-Bilder */
body.theme-potter .video-thumb img,         /* Video-Thumbnails */
body.theme-potter .about-avatar img {       /* About-Avatare */
    filter: sepia(0.4) contrast(1.2) grayscale(0.3);
    mix-blend-mode: luminosity;
    transition: all 0.3s ease;
}

/* MAGISCHER HOVER-EFFEKT: Beim Drüberfahren Farbe zeigen */
/* Wir nutzen :hover auf der Karte, um alle Bilder darin "aufzuwecken" */
body.theme-potter .card:hover img,
body.theme-potter .card:hover .thumb img,
body.theme-potter .card:hover .status-body img,
body.theme-potter .card:hover .content img,
body.theme-potter .event-card:hover .event-thumbnail img,
body.theme-potter .video-card:hover .video-thumb img,
body.theme-potter .about-member:hover .about-avatar img {
    filter: none;
    mix-blend-mode: normal;
}

/* Theme Switcher in Settings */
.theme-switcher-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}