/* =========================
   MichiGaming.de – Custom CSS (clean)
   ========================= */

:root{
  --sidebar-width: 320px;
  --glass-bg: rgba(15, 18, 35, 0.55);
  --panel-bg: rgba(18, 22, 45, 0.92);
  --panel-bg-2: rgba(10, 13, 25, 0.92);
  --border: rgba(255,255,255,0.10);
  --text: #e9ecff;
  --muted: rgba(233,236,255,.60);
  --neonA: rgba(120,80,255,.85);
  --neonB: rgba(0,255,200,.35);
  --hover: rgba(0,255,200,.10);
}

/* App Background */
.app{
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(120,80,255,.25), transparent 55%),
    radial-gradient(900px 500px at 90% 30%, rgba(0,255,200,.18), transparent 55%),
    #0b0f19;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Topbar (glass) */
.mytop-bar{
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(199, 0, 173, 1);
}

/* Title */
.brand-title{
  letter-spacing: .5px;
  text-shadow: 0 0 18px rgba(120,80,255,.35);
}

/* Neon Button */
.btn-neon{
  border: 1px solid rgba(130,110,255,.45);
  background: linear-gradient(135deg, var(--neonA), var(--neonB));
  color: #fff;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-neon:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(120,80,255,.25);
  filter: brightness(1.08);
}

/* Logo */
.main-logo{
  height: 500px;
  width: auto;
  display: block;
  margin: 0 auto;
}
@media (max-width: 768px){
  .main-logo{ height: 200px; }
}

/* -------------------------
   Sidebar + Overlay (stable)
   Uses your JS classes:
   - activeSidebar
   - hiddenSidebar
   ------------------------- */

/* Overlay */
#sidebarOverlay{
  position: fixed;
  inset: 0;
  z-index: 1990;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .18s ease, visibility .18s ease;
}
#sidebarOverlay.activeSidebar{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#sidebarOverlay.hiddenSidebar{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Sidebar shell */
#menuElm{
  position: fixed;
  top: 0;
  left: 0;

  height: 100vh;
  width: var(--sidebar-width);
  max-width: 85vw;

  z-index: 2000;

  background: linear-gradient(180deg, var(--panel-bg), var(--panel-bg-2));
  border-right: 1px solid var(--border);
  box-shadow: 0 20px 70px rgba(0,0,0,.55);

  transform: translateX(-105%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: transform .22s ease, opacity .18s ease, visibility .18s ease;

  display: flex;
  flex-direction: column;
}

/* open/close states */
#menuElm.activeSidebar{
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#menuElm.hiddenSidebar{
  transform: translateX(-105%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Sidebar header */
#menuElm .sidebar-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

#menuElm .sidebar-title{
  font-weight: 800;
  letter-spacing: .3px;
}

/* Close button (use your existing btn-neon or plain button) */
#menuElm .sidebar-close{
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar body spacing */
#menuElm .sidebar-body{
  padding: 14px;
  overflow: auto;
}

/* Search input in sidebar */
#menuElm .form-control{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
}
#menuElm .form-control::placeholder{
  color: rgba(233,236,255,.55);
}
#menuElm .form-control:focus{
  border-color: rgba(0,255,200,.25);
  box-shadow: 0 0 0 .2rem rgba(0,255,200,.12);
}

/* Nav links (custom, clean) */
#menuElm .sidebar-nav{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin-top: 12px;
}

#menuElm .sidebar-link{
  display:flex;
  align-items:center;
  gap: 10px;

  padding: 11px 12px;
  border-radius: 14px;

  color: var(--text);
  text-decoration:none;

  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);

  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

#menuElm .sidebar-link .ico{
  width: 22px;
  display:inline-flex;
  justify-content:center;
  opacity: .95;
}

#menuElm .sidebar-link:hover{
  transform: translateY(-1px);
  background: var(--hover);
  border-color: rgba(0,255,200,.25);
  box-shadow: 0 0 0 1px rgba(0,255,200,.10), 0 14px 35px rgba(0,0,0,.35);
}

/* Separator */
#menuElm .sidebar-sep{
  height: 1px;
  margin: 10px 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}

/* Sidebar footer */
#menuElm .sidebar-footer{
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  font-size: 13px;
}

#menuElm .sidebar-footer a{
  color: var(--muted);
  text-decoration: none;
}
#menuElm .sidebar-footer a:hover{
  color: var(--text);
}

/* Mobile: full width */
@media (max-width: 768px){
  #menuElm{
    width: 100vw;
    max-width: 100vw;
  }
}

#menuElm{
  border-right: 2px solid rgba(200, 0, 255, 0.9);
  animation: neonPulse 3s infinite ease-in-out;
}

@keyframes neonPulse {
  0%   { box-shadow: 0 0 10px rgba(200,0,255,.6), 0 0 30px rgba(200,0,255,.3); }
  50%  { box-shadow: 0 0 20px rgba(200,0,255,.9), 0 0 60px rgba(200,0,255,.6); }
  100% { box-shadow: 0 0 10px rgba(200,0,255,.6), 0 0 30px rgba(200,0,255,.3); }

  
  
  .sidebar-link.active-link{
  background: rgba(180, 0, 255, 0.15);
  border-color: rgba(200, 0, 255, 0.6);

  box-shadow:
    0 0 8px rgba(200,0,255,.7),
    0 0 25px rgba(200,0,255,.4);

  position: relative;
}

/* kleine Neon-Leiste links */
.sidebar-link.active-link::before{
  content: "";
  position: absolute;
  left: -1px;
  top: 20%;
  height: 60%;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #d000ff, #6a00ff);
  box-shadow: 0 0 10px #c800ff;
}

  
  .movie-card{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.movie-poster{
  height: 180px;
  background:
    radial-gradient(700px 240px at 15% 20%, rgba(120,80,255,.35), transparent 60%),
    radial-gradient(500px 220px at 80% 30%, rgba(0,255,200,.20), transparent 65%),
    rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.active-link{
  background: rgba(180, 0, 255, 0.15) !important;
  border-color: rgba(200, 0, 255, 0.6) !important;
  box-shadow: 0 0 8px rgba(200,0,255,.7), 0 0 25px rgba(200,0,255,.4);
  position: relative;
}
.active-link::before{
  content:"";
  position:absolute;
  left:-1px; top:20%;
  width:4px; height:60%;
  border-radius:4px;
  background: linear-gradient(180deg, #d000ff, #6a00ff);
  box-shadow: 0 0 10px #c800ff;
}

  
  .active-link{
  background: rgba(180, 0, 255, 0.15) !important;
  border-color: rgba(200, 0, 255, 0.6) !important;
  box-shadow: 0 0 8px rgba(200,0,255,.7), 0 0 25px rgba(200,0,255,.4);
  position: relative;
}
.active-link::before{
  content:"";
  position:absolute;
  left:-1px; top:20%;
  width:4px; height:60%;
  border-radius:4px;
  background: linear-gradient(180deg, #d000ff, #6a00ff);
  box-shadow: 0 0 10px #c800ff;
}
  
  
  .sidebar-link.active-link{
  background: rgba(180, 0, 255, 0.15) !important;
  border-color: rgba(200, 0, 255, 0.6) !important;
  box-shadow: 0 0 8px rgba(200,0,255,.7), 0 0 25px rgba(200,0,255,.4);
  position: relative;
}

.sidebar-link.active-link::before{
  content:"";
  position:absolute;
  left:-1px; top:20%;
  width:4px; height:60%;
  border-radius:4px;
  background: linear-gradient(180deg, #d000ff, #6a00ff);
  box-shadow: 0 0 10px #c800ff;
}
  
  .jellyfin-btn{
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 14px 24px;
  border-radius: 16px;

  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: white;

  background: linear-gradient(135deg, #8b2cff, #00d4ff);
  border: 1px solid rgba(255,255,255,.15);

  box-shadow:
    0 0 15px rgba(140,0,255,.5),
    0 0 40px rgba(0,200,255,.3);

  transition: all .2s ease;
}

.jellyfin-btn:hover{
  transform: translateY(-3px) scale(1.02);

  box-shadow:
    0 0 25px rgba(140,0,255,.8),
    0 0 70px rgba(0,200,255,.5);
}

.jellyfin-btn .arrow{
  margin-left: 8px;
  transition: transform .2s ease;
}

.jellyfin-btn:hover .arrow{
  transform: translateX(6px);
}
  
  .movie-hero{
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 30px 35px;
  border-radius: 20px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  margin-bottom: 30px;
}

.movie-hero h2{
  margin: 0;
  font-weight: 700;
}

.movie-hero p{
  margin: 5px 0 0 0;
  color: rgba(255,255,255,.6);
}

.movie-btn{
  padding: 10px 22px;
  border-radius: 12px;

  font-weight: 600;
  text-decoration: none;
  color: white;

  border: 1px solid rgba(180, 0, 255, 0.6);
  background: rgba(180, 0, 255, 0.12);

  transition: all .2s ease;
}

.movie-btn:hover{
  background: rgba(180, 0, 255, 0.25);
  box-shadow: 0 0 15px rgba(180, 0, 255, 0.4);
}

.movie-hero{
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 30px 35px;
  border-radius: 20px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  margin-bottom: 30px;
}

.movie-hero h2{
  margin: 0;
  font-weight: 700;
}

.movie-hero p{
  margin: 5px 0 0 0;
  color: rgba(255,255,255,.6);
}

.movie-btn{
  padding: 10px 22px;
  border-radius: 12px;

  font-weight: 600;
  text-decoration: none;
  color: white;

  border: 1px solid rgba(180, 0, 255, 0.6);
  background: rgba(180, 0, 255, 0.15);

  transition: all .2s ease;
}

.movie-btn:hover{
  background: rgba(180, 0, 255, 0.25);
  box-shadow: 0 0 15px rgba(180, 0, 255, 0.4);
}
