/* ========================================
   PROFIL BUTTON - Rechts, 150px von oben, 200px rechts von Mitte
   Text UNTER dem Logo
   ======================================== */

#profile-button {
  position: absolute;
  top: 450px;
  left: calc(50% + 180px); /* Bildschirmmitte + 200px nach rechts */
  z-index: 10; /* Über dem Video */
  
  /* Flexbox für vertikale Anordnung */
  display: flex;
  flex-direction: column; /* Vertikal statt horizontal */
  align-items: center;
  gap: 0; /* Kein Gap, da wir präzises spacing wollen */
  
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  padding: 10px;
  border-radius: 20px;
  
  text-decoration: none;
  transition: all 0.3s ease;
  
  /* Touch Feedback */
  -webkit-tap-highlight-color: rgba(59, 130, 246, 0.3);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#profile-button:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

#profile-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Avatar Container */
.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #3b82f6; /* Blauer Rand */
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text UNTER dem Logo */
.profile-text {
  color: white;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  margin-top: 5px; /* 5px Abstand von unten des Logos */
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablets */
@media (max-width: 1024px) {
  #profile-button {
    left: calc(50% + 150px);
    top: 320px;
  }
  
  .profile-avatar {
    width: 55px;
    height: 55px;
  }
  
  .profile-text {
    font-size: 13px;
    margin-top: 4px;
  }
}

/* Kleinere Tablets / Große Handys */
@media (max-width: 768px) {
  #profile-button {
    left: calc(50% + 100px);
    top: 300px;
    padding: 8px;
  }
  
  .profile-avatar {
    width: 50px;
    height: 50px;
    border: 2px solid #3b82f6;
  }
  
  .profile-text {
    font-size: 12px;
    margin-top: 4px;
  }
}

/* Handys - Hochformat */
@media (max-width: 480px) {
  #profile-button {
    /* Auf Handys: Rechts oben, fester Abstand vom Rand */
    left: auto;
    right: 15px;
    top: 300px;
    padding: 8px;
  }
  
  .profile-avatar {
    width: 50px;
    height: 50px;
    border: 2px solid #3b82f6;
  }
  
  .profile-text {
    font-size: 12px;
    margin-top: 4px;
  }
}

/* Landscape Mode */
@media (max-width: 896px) and (orientation: landscape) {
  #profile-button {
    left: auto;
    right: 15px;
    top: 70px;
    padding: 6px;
  }
  
  .profile-avatar {
    width: 45px;
    height: 45px;
    border: 2px solid #3b82f6;
  }
  
  .profile-text {
    font-size: 11px;
    margin-top: 3px;
  }
}

/* Nur sichtbar wenn no-stream-overlay aktiv ist */
#no-stream-overlay[style*="display: none"] #profile-button,
#no-stream-overlay[style*="display:none"] #profile-button {
  display: none !important;
}