.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-deep-blue) 0%, var(--color-dark-blue) 100%);
}

.login-box {
  background: var(--bg-overlay);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 20px;
  padding: 3rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-logo {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--color-neon-blue), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-input {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s;
}

.login-input:focus {
  outline: none;
  border-color: var(--color-neon-blue);
  background: rgba(255, 255, 255, 0.15);
}

.login-input::placeholder {
  color: var(--text-secondary);
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .login-input {
  padding-right: 3rem;
  width: 100%;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  z-index: 1;
}

.password-toggle:hover {
  color: var(--color-neon-blue);
}

.password-toggle:focus {
  outline: none;
  color: var(--color-neon-blue);
}

.login-button {
  padding: 1rem;
  background: linear-gradient(135deg, var(--color-neon-blue), var(--color-accent));
  border: none;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.login-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-error {
  color: #ff6b6b;
  text-align: center;
  padding: 0.5rem;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
}

.login-toggle {
  margin-top: 1.5rem;
  background: none;
  border: none;
  color: var(--color-neon-blue);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  transition: color 0.3s;
}

.login-toggle:hover {
  color: var(--color-accent);
}

.home-container {
  min-height: calc(100vh - env(safe-area-inset-bottom));
  background: var(--bg-primary);
  padding: calc(env(safe-area-inset-top) + 1rem) 0 calc(env(safe-area-inset-bottom) + 80px);
  box-sizing: border-box;
}

.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(74, 158, 255, 0.2);
}

.home-logo {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--color-neon-blue), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.start-stream-button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ff006e, #ff4d8d);
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.start-stream-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 0, 110, 0.3);
}

.user-menu {
  position: relative;
}

.user-menu-button {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: var(--text-primary);
  cursor: pointer;
}

.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 10px;
  padding: 0.5rem;
  min-width: 150px;
  z-index: 1000;
}

.user-menu-dropdown button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: none;
  border: none;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.2s;
}

.user-menu-dropdown button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.home-main {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.home-title {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.stream-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
  border: 1px solid rgba(74, 158, 255, 0.1);
}

.stream-card:hover {
  transform: translateY(-5px);
  border-color: rgba(74, 158, 255, 0.3);
}

.stream-preview {
  width: 100%;
  aspect-ratio: 9/16;
  background: linear-gradient(135deg, var(--color-dark-blue), var(--color-medium-blue));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stream-live-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: #ff006e;
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
}

.stream-info {
  padding: 0.75rem;
}

.stream-info h3 {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.3;
}

.stream-stats {
  display: flex;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.no-streams {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.start-first-stream {
  margin-top: 1rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color-neon-blue), var(--color-accent));
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.loading {
  text-align: center;
  padding: 4rem;
  color: var(--text-secondary);
}

/**
 * Co-Host Slot Animations
 * TikTok-style animations for new co-host slots
 */

/* Slot Enter Animation */
.slot-enter {
  opacity: 0;
  transform: translateY(40px);
}

.slot-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: all 240ms ease-out;
}

/* Neon Glow Pulse */
.slot-neon {
  box-shadow: 0 0 18px rgba(0, 195, 255, 0.8);
  animation: neonPulse 1s infinite ease-in-out;
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 18px rgba(0, 195, 255, 0.8), 0 0 36px rgba(0, 195, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 28px rgba(0, 195, 255, 1), 0 0 56px rgba(0, 195, 255, 0.6);
  }
}

/* Co-Host Slot Highlight */
.cohost-slot-highlight {
  animation: cohostHighlight 2s ease-out;
}

@keyframes cohostHighlight {
  0% {
    border-color: rgba(0, 195, 255, 1);
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.8), 0 0 60px rgba(0, 195, 255, 0.4);
  }
  100% {
    border-color: rgba(0, 195, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.4), 0 0 40px rgba(0, 195, 255, 0.2);
  }
}



/* Radar Viewer Icon Animations */

.radar-viewer-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 4px rgba(30, 155, 255, 0.6));
  transition: filter 0.3s ease;
}

.radar-viewer-icon:hover {
  filter: drop-shadow(0 0 8px rgba(30, 155, 255, 1));
}

.radar-viewer-icon.radar-highlight {
  animation: radarPulse 0.5s ease-in-out;
}

.radar-svg {
  animation: radarPulse 2s ease-in-out infinite;
}

/* Radar Center Pulse */
.radar-center {
  animation: radarPulse 2s ease-in-out infinite;
}

/* Radar Waves - Expanding Rings */
.radar-wave {
  transform-origin: 12px 12px;
  animation: radarWave 2s ease-out infinite;
}

.radar-wave-1 {
  animation-delay: 0s;
}

.radar-wave-2 {
  animation-delay: 0.4s;
}

.radar-wave-3 {
  animation-delay: 0.8s;
}

/* Radar Sweep Line */
.radar-sweep {
  transform-origin: 12px 12px;
  animation: radarSweep 3s linear infinite;
}

/* Highlight Ring (when new viewer joins) */
.radar-highlight-ring {
  animation: radarHighlight 1.5s ease-out;
  opacity: 0;
}

/* Keyframe Animations */
@keyframes radarPulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes radarWave {
  0% {
    transform: scale(0.3);
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes radarSweep {
  0% {
    transform: rotate(0deg);
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(360deg);
    opacity: 0.8;
  }
}

@keyframes radarHighlight {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Count Badge Animation */
.radar-count-badge {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(30, 155, 255, 0.8);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(30, 155, 255, 1);
  }
}



/* KarmaRing Styles */

.karma-ring-container {
  position: relative;
  display: inline-block;
}

.karma-ring {
  position: relative;
  border-radius: 50%;
  border: 2px solid;
  transition: all 0.3s;
}

.karma-ring-avatar {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.karma-ring-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.karma-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 207, 255, 0.3), rgba(122, 251, 76, 0.3));
  color: white;
  font-weight: 700;
  font-size: 0.6em;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Animationen */
.karma-ring-pulse-glow {
  animation: karmaPulseGlow 2s ease-in-out infinite;
}

@keyframes karmaPulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
    box-shadow: 0 0 20px currentColor, inset 0 0 20px currentColor;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 0 30px currentColor, inset 0 0 30px currentColor;
  }
}

.karma-ring-wave {
  animation: karmaWave 6s linear infinite;
}

@keyframes karmaWave {
  0% {
    transform: rotate(0deg);
    box-shadow: 0 0 20px currentColor, inset 0 0 20px currentColor;
  }
  100% {
    transform: rotate(360deg);
    box-shadow: 0 0 20px currentColor, inset 0 0 20px currentColor;
  }
}

.karma-ring-soft-glow {
  animation: karmaSoftGlow 3s ease-in-out infinite;
}

@keyframes karmaSoftGlow {
  0%, 100% {
    opacity: 0.7;
    box-shadow: 0 0 15px currentColor, inset 0 0 15px currentColor;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 25px currentColor, inset 0 0 25px currentColor;
  }
}

.karma-ring-flicker {
  animation: karmaFlicker 1.5s ease-in-out infinite;
}

@keyframes karmaFlicker {
  0%, 100% {
    opacity: 0.3;
    box-shadow: 0 0 10px currentColor, inset 0 0 10px currentColor;
  }
  25%, 75% {
    opacity: 1;
    box-shadow: 0 0 20px currentColor, inset 0 0 20px currentColor;
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 15px currentColor, inset 0 0 15px currentColor;
  }
}

/* Tooltip */
.karma-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 207, 255, 0.3);
  pointer-events: none;
}

.karma-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 207, 255, 0.3);
}

.karma-tooltip-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #00cfff;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 10px rgba(0, 207, 255, 0.5);
}

.karma-tooltip-description {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.3rem;
}

.karma-tooltip-username {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* ViewerTopOverlay.css - Styles für ViewerTopOverlay Komponente */

/* Host Badge mit Animation */
.host-badge-animated {
  position: relative;
  display: inline-block;
  animation: hostBadgePulse 2s ease-in-out infinite;
}

.host-badge-text {
  color: #ff4444;
  font-size: 9px;
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 
    0 0 8px rgba(255, 68, 68, 0.8),
    0 0 12px rgba(255, 68, 68, 0.6),
    0 0 16px rgba(255, 68, 68, 0.4);
  position: relative;
  z-index: 1;
  animation: hostBadgeGlow 1.5s ease-in-out infinite alternate;
}

/* Pulsierende Animation für den Badge-Container */
@keyframes hostBadgePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Glühende Animation für den Text */
@keyframes hostBadgeGlow {
  0% {
    text-shadow: 
      0 0 8px rgba(255, 68, 68, 0.8),
      0 0 12px rgba(255, 68, 68, 0.6),
      0 0 16px rgba(255, 68, 68, 0.4);
    opacity: 0.9;
  }
  100% {
    text-shadow: 
      0 0 12px rgba(255, 68, 68, 1),
      0 0 18px rgba(255, 68, 68, 0.8),
      0 0 24px rgba(255, 68, 68, 0.6),
      0 0 30px rgba(255, 68, 68, 0.4);
    opacity: 1;
  }
}

/* Zusätzlicher Shimmer-Effekt */
.host-badge-animated::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: hostBadgeShimmer 2.5s infinite;
  z-index: 0;
}

@keyframes hostBadgeShimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Hover-Effekt für zusätzliche Interaktivität */
.host-badge-animated:hover .host-badge-text {
  animation: hostBadgeGlow 0.5s ease-in-out infinite alternate;
  transform: scale(1.1);
}

/* Aura Level Badge */
.aura-level-badge {
  position: relative;
  display: inline-block;
  margin-top: 0;
  animation: auraBadgeFloat 3s ease-in-out infinite;
  flex-shrink: 0;
}

.aura-level-text {
  font-size: 10px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 
    0 0 6px currentColor,
    0 0 10px currentColor,
    0 0 14px currentColor;
  opacity: 0.9;
  animation: auraLevelGlow 2s ease-in-out infinite alternate;
}

/* Schwebende Animation für Aura Badge */
@keyframes auraBadgeFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* Glühende Animation für Aura Level Text */
@keyframes auraLevelGlow {
  0% {
    opacity: 0.8;
    text-shadow: 
      0 0 6px currentColor,
      0 0 10px currentColor,
      0 0 14px currentColor;
  }
  100% {
    opacity: 1;
    text-shadow: 
      0 0 10px currentColor,
      0 0 16px currentColor,
      0 0 22px currentColor,
      0 0 28px currentColor;
  }
}

.cohost-lobby-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
}

.cohost-lobby-container {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 30px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 50px rgba(0, 227, 255, 0.3);
  border: 2px solid rgba(0, 227, 255, 0.5);
}

.cohost-lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(0, 227, 255, 0.3);
}

.cohost-lobby-header h2 {
  color: #00e3ff;
  margin: 0;
  font-size: 28px;
  text-shadow: 0 0 10px rgba(0, 227, 255, 0.5);
}

.close-btn {
  background: transparent;
  border: 2px solid #ff4444;
  color: #ff4444;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s;
}

.close-btn:hover {
  background: #ff4444;
  color: white;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.schnellpaarung-section {
  margin-bottom: 30px;
  text-align: center;
}

.schnellpaarung-btn {
  background: linear-gradient(135deg, #00e3ff 0%, #0099cc 100%);
  border: none;
  color: white;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(0, 227, 255, 0.4);
}

.schnellpaarung-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 227, 255, 0.6);
}

.schnellpaarung-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.no-hosts {
  color: #888;
  margin-top: 10px;
  font-size: 14px;
}

.hosts-section {
  margin-bottom: 30px;
}

.hosts-section h3 {
  color: #00e3ff;
  margin-bottom: 15px;
  font-size: 20px;
}

.hosts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.cohost-card {
  background: rgba(0, 227, 255, 0.1);
  border: 2px solid rgba(0, 227, 255, 0.3);
  border-radius: 15px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 15px;
}

.cohost-card:hover:not(.disabled) {
  background: rgba(0, 227, 255, 0.2);
  border-color: #00e3ff;
  box-shadow: 0 0 20px rgba(0, 227, 255, 0.4);
  transform: translateY(-2px);
}

.cohost-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(255, 68, 68, 0.3);
}

.cohost-card-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(0, 227, 255, 0.5);
}

.cohost-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00e3ff 0%, #0099cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
}

.cohost-card-info {
  flex: 1;
  min-width: 0;
}

.cohost-card-username {
  color: white;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cohost-card-status {
  color: #888;
  font-size: 12px;
}

.loading {
  text-align: center;
  color: #00e3ff;
  padding: 40px;
  font-size: 18px;
}



.colive-request-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.colive-request-popup {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 50px rgba(0, 227, 255, 0.3);
  border: 2px solid rgba(0, 227, 255, 0.5);
  animation: slideIn 0.3s;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.colive-request-popup-header {
  text-align: center;
  margin-bottom: 30px;
}

.colive-request-popup-header h2 {
  color: #00e3ff;
  margin: 0;
  font-size: 24px;
  text-shadow: 0 0 10px rgba(0, 227, 255, 0.5);
}

.colive-request-popup-content {
  text-align: center;
  margin-bottom: 30px;
}

.colive-request-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid rgba(0, 227, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 227, 255, 0.3);
}

.colive-request-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00e3ff 0%, #0099cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: bold;
}

.colive-request-message {
  color: white;
  font-size: 18px;
  line-height: 1.5;
}

.colive-request-message strong {
  color: #00e3ff;
}

.colive-request-popup-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.accept-btn,
.reject-btn {
  flex: 1;
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.neon-btn-green {
  background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
  color: white;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.neon-btn-green:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

.neon-btn-red {
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  color: white;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

.neon-btn-red:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 68, 68, 0.6);
}



/**
 * PHASE 12: DUAL LIVE VIEW STYLES
 * Mit korrektem Z-Index System
 */

/* ============================================
   Z-INDEX SYSTEM (PHASE 12)
   ============================================ */
:root {
  --z-video-slots: 10;
  --z-chat: 30;
  --z-toolbar: 40;
  --z-host-menu: 40;
  --z-pk-arena-overlay: 2000;
  --z-animations: 2500;
  --z-ai-referee: 2600;
  --z-system-alerts: 3000;
}

/* ============================================
   CONTAINER
   ============================================ */
.dual-live-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  overflow: hidden;
  /* PHASE 12: iPhone Safe-Area */
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

/* ============================================
   HEADER (Host Menu Top)
   ============================================ */
.dual-live-header {
  position: relative;
  z-index: var(--z-host-menu);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 216, 255, 0.2);
}

.dual-live-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #00D8FF;
}

.session-info {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   VIDEO SECTION (IMMER RENDERN - PHASE 12)
   ============================================ */
.dual-live-video-section {
  position: relative;
  flex: 1;
  display: flex;
  width: 100%;
  height: 100%;
  z-index: var(--z-video-slots);
  min-height: 0; /* Wichtig für Flexbox */
}

.dual-live-feed {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.left-feed {
  border-right: 2px solid rgba(0, 216, 255, 0.3);
}

.right-feed {
  border-left: 2px solid rgba(255, 0, 150, 0.3);
}

.host-feed {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.host-feed-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 11;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #00D8FF;
  font-weight: 600;
}

.host-feed-label.own-stream {
  color: #00FF7E;
  border: 1px solid #00FF7E;
}

.host-feed-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.center-beam-container {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  z-index: 12;
  pointer-events: none;
}

/* ============================================
   CHAT SECTION
   ============================================ */
.dual-live-chat-section {
  position: relative;
  z-index: var(--z-chat);
  display: flex;
  width: 100%;
  height: 200px; /* PHASE 12: Feste Höhe für Chat */
  background: rgba(10, 14, 39, 0.95);
  border-top: 1px solid rgba(0, 216, 255, 0.2);
  /* PHASE 12: iPhone Safe-Area */
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

.dual-live-chat-left,
.dual-live-chat-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.center-beam-spacer {
  width: 2px;
  background: rgba(0, 216, 255, 0.2);
}

.chat-container {
  width: 100%;
  height: calc(100% - 120px); /* BLOCK 10 FIX: Höhe minus Header */
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* BLOCK 10 FIX: Scrollbar wenn nötig */
  overflow-x: hidden;
}

.chat-header {
  padding: 8px 12px;
  background: rgba(0, 216, 255, 0.1);
  border-bottom: 1px solid rgba(0, 216, 255, 0.2);
  font-size: 0.9rem;
  color: #00D8FF;
  font-weight: 600;
}

/* ============================================
   PK ARENA OVERLAY (PHASE 12)
   ============================================ */
.pk-arena-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-pk-arena-overlay);
}

.pk-arena-overlay * {
  pointer-events: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.pk-match-btn {
  position: relative;
  z-index: calc(var(--z-host-menu) + 1);
}

.end-session-btn {
  position: relative;
  z-index: calc(var(--z-host-menu) + 1);
  padding: 8px 16px;
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.5);
  border-radius: 8px;
  color: #ff4444;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.end-session-btn:hover {
  background: rgba(255, 0, 0, 0.3);
  border-color: rgba(255, 0, 0, 0.7);
}

.end-session-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .dual-live-chat-section {
    height: 150px;
  }
  
  .dual-live-header {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .session-info {
    font-size: 0.75rem;
    gap: 8px;
  }
}
/* PK ARENA 2030 - ULTIMATIVE FUTURISTISCHE SCI-FI DESIGN */

.pk-arena-root {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: radial-gradient(circle at top, #04111f 0%, #010308 55%, #000000 100%);
  /* Plasma-Hintergrund mit subtiler Parallax-Bewegung */
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, rgba(0, 255, 255, 0.02) 0%, rgba(255, 0, 255, 0.02) 100%);
  background-size: 200% 200%;
  animation: plasmaFlow 20s ease-in-out infinite;
}

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

/* =====================================================
   GALAXY BACKGROUND (TASK 3)
   ===================================================== */
.galaxy-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 100, 200, 0.15) 0%,
    rgba(0, 200, 255, 0.12) 50%,
    rgba(0, 50, 100, 0.1) 100%
  );
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  animation: galaxyMorph 20s ease-in-out infinite;
}

@keyframes galaxyMorph {
  0%, 100% {
    background: linear-gradient(
      to bottom,
      rgba(0, 100, 200, 0.15) 0%,
      rgba(0, 200, 255, 0.12) 50%,
      rgba(0, 50, 100, 0.1) 100%
    );
  }
  50% {
    background: linear-gradient(
      to bottom,
      rgba(0, 150, 250, 0.18) 0%,
      rgba(0, 180, 220, 0.15) 50%,
      rgba(0, 80, 150, 0.12) 100%
    );
  }
}

.plasma-lines {
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 255, 0.02) 2px,
      rgba(0, 255, 255, 0.02) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 0, 255, 0.02) 2px,
      rgba(255, 0, 255, 0.02) 4px
    );
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
  animation: plasmaLinesMove 15s linear infinite;
}

@keyframes plasmaLinesMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(10px, 10px); }
}

/* Dezente vertikale Linien im Hintergrund (Hologram-Effekt) */
.pk-arena-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(0, 255, 255, 0.08) 1px,
    transparent 1px
  );
  background-size: 2px 8px;
  opacity: 0.25;
  pointer-events: none;
  animation: hologramScan 3s linear infinite;
  z-index: 1;
}

@keyframes hologramScan {
  0% { transform: translateY(0); }
  100% { transform: translateY(8px); }
}

/* =====================================================
   HOLOGRAM VIDEO PANELS (TASK 1)
   ===================================================== */
.holo-panel {
  position: relative;
  border-radius: 22px;
  padding: 0.6rem;
  /* TEIL 1: Neuer Hologram Look - exakte Werte */
  background: rgba(0, 10, 25, 0.45);
  border: 2px solid rgba(0, 255, 255, 0.35);
  box-shadow:
    0 0 30px rgba(0, 255, 255, 0.35),
    inset 0 0 55px rgba(0, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  /* Leichte 3D-Neigung nach innen */
  transform: perspective(800px) rotateY(5deg);
  transform-origin: right center;
  transition: transform 0.3s ease;
}

/* Alias für Kompatibilität */
.hologram-panel {
  background: rgba(0, 10, 25, 0.45);
  border-radius: 22px;
  border: 2px solid rgba(0, 255, 255, 0.35);
  box-shadow:
    0 0 30px rgba(0, 255, 255, 0.35),
    inset 0 0 55px rgba(0, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.holo-panel.holo-panel-right {
  transform: perspective(800px) rotateY(-5deg);
  transform-origin: left center;
}

/* Kanten-Glow */
.holo-panel.holo-panel-left {
  /* Host A: Neon-Blau */
  box-shadow: 
    0 0 25px rgba(0, 240, 255, 0.55),
    0 0 50px rgba(0, 240, 255, 0.3),
    inset 0 0 20px rgba(0, 240, 255, 0.1);
  border: 2px solid rgba(0, 240, 255, 0.4);
}

.holo-panel.holo-panel-right {
  /* Host B: Neon-Pink */
  box-shadow: 
    0 0 25px rgba(255, 75, 154, 0.55),
    0 0 50px rgba(255, 75, 154, 0.3),
    inset 0 0 20px rgba(255, 75, 154, 0.1);
  border: 2px solid rgba(255, 75, 154, 0.4);
}

/* Reflexions-Linie (diagonale Linie als pseudo-element) */
.holo-reflection {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 45%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
  animation: reflectionSweep 10s linear infinite;
}

@keyframes reflectionSweep {
  0% { transform: translate(-100%, -100%) rotate(45deg); }
  100% { transform: translate(100%, 100%) rotate(45deg); }
}

/* Scanlines (horizontale feine Streifen) */
.holo-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 255, 0.03) 2px,
    rgba(0, 255, 255, 0.03) 4px
  );
  opacity: 0.04;
  pointer-events: none;
  z-index: 3;
  animation: scanlineFade 4s ease-in-out infinite;
}

@keyframes scanlineFade {
  0%, 100% { opacity: 0.02; }
  50% { opacity: 0.04; }
}

/* Pulse-Effekt (wird aktiv, wenn ein Event passiert) */
.holo-pulse {
  animation: pulseBurst 0.6s ease-out;
}

@keyframes pulseBurst {
  0% {
    box-shadow: 
      0 0 25px rgba(0, 240, 255, 0.55),
      0 0 50px rgba(0, 240, 255, 0.3);
  }
  50% {
    box-shadow: 
      0 0 40px rgba(0, 240, 255, 0.9),
      0 0 80px rgba(0, 240, 255, 0.6),
      0 0 120px rgba(0, 240, 255, 0.3);
  }
  100% {
    box-shadow: 
      0 0 25px rgba(0, 240, 255, 0.55),
      0 0 50px rgba(0, 240, 255, 0.3);
  }
}

.holo-panel-right.holo-pulse {
  animation: pulseBurstPink 0.6s ease-out;
}

@keyframes pulseBurstPink {
  0% {
    box-shadow: 
      0 0 25px rgba(255, 75, 154, 0.55),
      0 0 50px rgba(255, 75, 154, 0.3);
  }
  50% {
    box-shadow: 
      0 0 40px rgba(255, 75, 154, 0.9),
      0 0 80px rgba(255, 75, 154, 0.6),
      0 0 120px rgba(255, 75, 154, 0.3);
  }
  100% {
    box-shadow: 
      0 0 25px rgba(255, 75, 154, 0.55),
      0 0 50px rgba(255, 75, 154, 0.3);
  }
}

/* =====================================================
   LASER SCOREBAR (ENERGY CORE) - TASK 5 + TEIL 5
   ===================================================== */
.pk-score-bar {
  position: relative;
  margin-top: 0.8rem;
  width: 92%;
  max-width: 900px;
  height: 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 
    0 0 18px rgba(0, 255, 255, 0.3) inset,
    0 0 30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

/* TEIL 5: PK Arena + Laser Scorebars */
.pk-scorebar {
  height: 10px;
  border-radius: 30px;
  background: rgba(0, 255, 255, 0.25);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
  overflow: hidden;
  position: relative;
}

.pk-scorebar-inner {
  height: 100%;
  background: linear-gradient(90deg, cyan, magenta);
  transition: width 0.4s ease;
  display: flex;
  width: 100%;
}

.pk-laser-bar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
}

.pk-laser-glow {
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(0, 255, 255, 0.4) 0%,
    rgba(0, 255, 255, 0.2) 50%,
    transparent 100%
  );
  filter: blur(4px);
  z-index: -1;
}

.pk-laser-glitch {
  animation: laserGlitch 0.25s ease-in-out;
}

@keyframes laserGlitch {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(1px); }
  50% { transform: translateX(-1px); }
  75% { transform: translateX(2px); }
}

.pk-score-bar-fill-left,
.pk-score-bar-fill-right {
  height: 100%;
  transition: width 0.4s ease-out;
  position: relative;
}

.pk-score-bar-fill-left {
  border-radius: 999px 0 0 999px;
  background: linear-gradient(to right, #00f0ff, #00ffa3);
  box-shadow: 
    0 0 20px rgba(0, 240, 255, 0.8),
    0 0 40px rgba(0, 240, 255, 0.4),
    inset 0 0 10px rgba(0, 255, 255, 0.6);
  animation: energyPulseLeft 2s ease-in-out infinite;
}

@keyframes energyPulseLeft {
  0%, 100% { 
    box-shadow: 
      0 0 20px rgba(0, 240, 255, 0.8),
      0 0 40px rgba(0, 240, 255, 0.4),
      inset 0 0 10px rgba(0, 255, 255, 0.6);
  }
  50% { 
    box-shadow: 
      0 0 30px rgba(0, 240, 255, 1),
      0 0 60px rgba(0, 240, 255, 0.6),
      inset 0 0 15px rgba(0, 255, 255, 0.9);
  }
}

.pk-score-bar-fill-right {
  border-radius: 0 999px 999px 0;
  background: linear-gradient(to left, #ff4b9a, #ffb347);
  box-shadow: 
    0 0 20px rgba(255, 75, 154, 0.8),
    0 0 40px rgba(255, 75, 154, 0.4),
    inset 0 0 10px rgba(255, 75, 154, 0.6);
  animation: energyPulseRight 2s ease-in-out infinite;
}

@keyframes energyPulseRight {
  0%, 100% { 
    box-shadow: 
      0 0 20px rgba(255, 75, 154, 0.8),
      0 0 40px rgba(255, 75, 154, 0.4),
      inset 0 0 10px rgba(255, 75, 154, 0.6);
  }
  50% { 
    box-shadow: 
      0 0 30px rgba(255, 75, 154, 1),
      0 0 60px rgba(255, 75, 154, 0.6),
      inset 0 0 15px rgba(255, 75, 154, 0.9);
  }
}

/* Dünne Mittellinie (Laser) */
.pk-score-bar-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(0, 255, 255, 0.5);
  box-shadow: 
    0 0 10px rgba(0, 255, 255, 0.7),
    0 0 20px rgba(0, 255, 255, 0.4);
  z-index: 2;
}

/* Label + Punkte */
.pk-score-bar-labels {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e8ffff;
  pointer-events: none;
  z-index: 3;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

.pk-score-value {
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: 0 0 12px currentColor;
}

/* =====================================================
   ARENA PANELS (HOLOGRAM-TAFELN)
   ===================================================== */
.pk-arena-panels {
  position: relative;
  margin-top: 1.4rem;
  width: 100%;
  max-width: 960px;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.pk-panel {
  position: relative;
  width: 46%;
  max-width: 420px;
  aspect-ratio: 9 / 14;
  border-radius: 22px;
  padding: 0.6rem;
  background: radial-gradient(circle at top, rgba(0, 255, 255, 0.12), rgba(0, 0, 0, 0.9));
  /* Glass-Blur 12-18px */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  /* Neon-Cyan/Neon-Magenta Ränder */
  border: 2px solid;
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.45),
    0 0 40px rgba(0, 255, 255, 0.35) inset,
    0 0 60px rgba(0, 255, 255, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  /* Floating Animation (2-4px Auf/Ab) */
  animation: panelFloat 3.5s ease-in-out infinite;
}

@keyframes panelFloat {
  0%, 100% { transform: translateY(0px) perspective(900px) rotateY(0deg); }
  50% { transform: translateY(-2px) perspective(900px) rotateY(0deg); }
}

/* Leichte Drehung Richtung Mitte (3D-Effekt) */
.pk-panel-left {
  border-color: rgba(0, 240, 255, 0.8);
  transform: perspective(900px) rotateY(3deg);
  transform-origin: right center;
  animation: panelFloat 3.5s ease-in-out infinite, neonSweepLeft 4s linear infinite;
}

@keyframes neonSweepLeft {
  0% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.45), 0 0 40px rgba(0, 255, 255, 0.35) inset; }
  50% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.7), 0 0 50px rgba(0, 255, 255, 0.5) inset; }
  100% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.45), 0 0 40px rgba(0, 255, 255, 0.35) inset; }
}

.pk-panel-right {
  border-color: rgba(255, 75, 154, 0.8);
  transform: perspective(900px) rotateY(-3deg);
  transform-origin: left center;
  animation: panelFloat 3.5s ease-in-out infinite, neonSweepRight 4s linear infinite;
  box-shadow:
    0 0 20px rgba(255, 75, 154, 0.45),
    0 0 40px rgba(255, 75, 154, 0.35) inset,
    0 0 60px rgba(255, 75, 154, 0.2);
}

@keyframes neonSweepRight {
  0% { box-shadow: 0 0 20px rgba(255, 75, 154, 0.45), 0 0 40px rgba(255, 75, 154, 0.35) inset; }
  50% { box-shadow: 0 0 30px rgba(255, 75, 154, 0.7), 0 0 50px rgba(255, 75, 154, 0.5) inset; }
  100% { box-shadow: 0 0 20px rgba(255, 75, 154, 0.45), 0 0 40px rgba(255, 75, 154, 0.35) inset; }
}

/* Header-Badge (Host Label Hologram Panels) */
.pk-panel-header {
  align-self: flex-start;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: radial-gradient(circle at top, #00f0ff, #006e7a);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.7);
  /* Pulsierende weiche Animation (2s repeat) */
  animation: headerPulse 2s ease-in-out infinite;
}

.pk-panel-right .pk-panel-header {
  background: radial-gradient(circle at top, #ff4b9a, #7a0030);
  box-shadow: 0 0 12px rgba(255, 75, 154, 0.7);
}

@keyframes headerPulse {
  0%, 100% { 
    opacity: 1;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.7);
  }
  50% { 
    opacity: 0.85;
    box-shadow: 0 0 20px rgba(0, 255, 255, 1);
  }
}

/* Video-Slot */
.pk-panel-video-slot {
  flex: 1;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #020812;
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.4) inset;
  /* AI Emotion Glow wird hier dynamisch gesetzt */
}

.pk-panel-video-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================================================
   TEIL 2: FLIP-INTRO FÜR HOST-SLOTS
   ===================================================== */
.slot-wrapper {
  perspective: 1000px;
  width: 100%;
  height: 100%;
}

.slot-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 15s cubic-bezier(0.4, 0.0, 0.2, 1); /* Sehr langsame, extrem sichtbare Animation */
  transform: rotateY(0deg); /* Initial: Vorderseite (Video) sichtbar */
}

.slot-inner.flipped {
  transform: rotateY(180deg) !important; /* WICHTIG: !important für sicherere Anwendung */
}

.slot-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
  transform: rotateY(0deg); /* Vorderseite: normale Ausrichtung */
}

.slot-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transform: rotateY(180deg); /* Rückseite: um 180° gedreht */
  background: radial-gradient(circle at top, #0d0f13, #050608 90%);
  border-radius: 18px;
  border: 2px solid rgba(0, 255, 255, 0.3);
  box-shadow:
    0 0 25px rgba(0, 255, 255, 0.35),
    inset 0 0 45px rgba(0, 255, 255, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laser-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, cyan, transparent);
  filter: blur(2px);
  animation: laserSweep 2.8s linear infinite;
}

@keyframes laserSweep {
  0% { top: -5%; opacity: 0; }
  10% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { top: 105%; opacity: 0; }
}

.laser-name {
  position: absolute;
  width: 100%;
  top: 40%;
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: rgba(0, 255, 255, 0.2);
  text-shadow:
    0 0 8px rgba(0, 255, 255, 0.35),
    0 0 15px rgba(0, 255, 255, 0.6);
  animation: engraveGlow 3.5s ease forwards;
  z-index: 2;
}

.laser-engrave-start .laser-name {
  animation: engraveGlow 3.5s ease forwards;
}

@keyframes engraveGlow {
  0% { opacity: 0; filter: blur(6px); }
  40% { opacity: 1; filter: blur(2px); }
  100% { opacity: 0.9; filter: blur(0.5px); }
}

/* =====================================================
   DUAL-CHAT SYSTEM (TASK 2)
   ===================================================== */
/* LEVILIVE_MATCH_REPAIR_V1: Chat-Container Höhenfix */
.chat-container,
.chat-container-hostA,
.chat-container-hostB {
  height: calc(100% - 120px); /* LEVILIVE_MATCH_REPAIR_V1: Toolleisten sichtbar, Chat deckt Video nicht zu */
  overflow-y: auto;
  overflow-x: hidden;
}

.chat-container-hostA,
.chat-container-hostB {
  position: absolute;
  bottom: 1rem;
  width: 48%;
  max-height: 200px;
  border-radius: 16px;
  padding: 0.8rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

/* TEIL 3: Twin-Chat System - UI-Upgrade */
.host-chat {
  background: rgba(0, 10, 25, 0.45);
  border-radius: 16px;
  border: 2px solid rgba(0, 255, 255, 0.3);
  padding: 10px;
  box-shadow:
    0 0 25px rgba(0, 255, 255, 0.25),
    inset 0 0 15px rgba(0, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Chat Heatmap (mehr Aktivität → stärkerer Glow) */
.host-chat.active {
  box-shadow:
    0 0 35px rgba(0, 255, 180, 0.45),
    inset 0 0 25px rgba(0, 255, 180, 0.35);
  border-color: rgba(0, 255, 180, 0.55);
  transition: box-shadow 0.4s ease;
}

.chat-container-hostA {
  left: 1rem;
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.chat-container-hostB {
  right: 1rem;
  border-color: rgba(255, 75, 154, 0.6);
  box-shadow: 0 0 15px rgba(255, 75, 154, 0.4);
}

/* Chat Heatmap (wenn viele Nachrichten kommen) */
.chat-heatmap {
  transition: box-shadow 0.3s ease;
}

.chat-container-hostA.chat-heatmap {
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

.chat-container-hostB.chat-heatmap {
  box-shadow: 0 0 25px rgba(255, 75, 154, 0.6);
}

/* Aktivitäts-Bubbles (kleine leuchtende Spots) */
.chat-activity-bubble {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(0, 255, 255, 1);
  animation: bubblePop 0.5s ease-out forwards;
  pointer-events: none;
  z-index: 10;
}

.chat-container-hostB .chat-activity-bubble {
  background: rgba(255, 75, 154, 0.8);
  box-shadow: 0 0 10px rgba(255, 75, 154, 1);
}

@keyframes bubblePop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

.pk-chat-container {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 960px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  z-index: 100; /* PHASE 14: Über Video-Slots */
  pointer-events: auto; /* PHASE 14: Ermöglicht Interaktion */
}

.pk-chat-panel {
  width: 48%;
  max-height: 280px; /* PHASE 14: Größer für bessere Sichtbarkeit */
  min-height: 150px; /* PHASE 14: Mindesthöhe */
  border-radius: 16px;
  padding: 0.8rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.75); /* PHASE 14: Dunkler für besseren Kontrast */
  border: 2px solid;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  pointer-events: auto; /* PHASE 14: Ermöglicht Interaktion */
}

.pk-chat-panel.chat-a {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.pk-chat-panel.chat-b {
  border-color: rgba(255, 75, 154, 0.6);
  box-shadow: 0 0 15px rgba(255, 75, 154, 0.4);
}

/* Chat Heatmap Glow */
.pk-chat-panel.heatmap-level-0 { box-shadow: 0 0 10px rgba(0, 255, 255, 0.2); }
.pk-chat-panel.heatmap-level-1 { box-shadow: 0 0 15px rgba(0, 255, 255, 0.4); }
.pk-chat-panel.heatmap-level-2 { box-shadow: 0 0 25px rgba(0, 255, 255, 0.6); }
.pk-chat-panel.heatmap-level-3 { box-shadow: 0 0 40px rgba(0, 255, 255, 0.8); }
.pk-chat-panel.heatmap-level-4 { box-shadow: 0 0 60px rgba(0, 255, 255, 1); }

.pk-chat-panel.chat-b.heatmap-level-0 { box-shadow: 0 0 10px rgba(255, 75, 154, 0.2); }
.pk-chat-panel.chat-b.heatmap-level-1 { box-shadow: 0 0 15px rgba(255, 75, 154, 0.4); }
.pk-chat-panel.chat-b.heatmap-level-2 { box-shadow: 0 0 25px rgba(255, 75, 154, 0.6); }
.pk-chat-panel.chat-b.heatmap-level-3 { box-shadow: 0 0 40px rgba(255, 75, 154, 0.8); }
.pk-chat-panel.chat-b.heatmap-level-4 { box-shadow: 0 0 60px rgba(255, 75, 154, 1); }

.pk-chat-header {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid;
  border-color: inherit;
  opacity: 0.8;
}

.pk-chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-right: 0.3rem;
}

.pk-chat-message {
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  animation: chatPop 0.3s ease-out;
  border-left: 2px solid;
  border-color: inherit;
}

@keyframes chatPop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Chat Input = "floating glass" */
.pk-chat-input {
  margin-top: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  /* Glass background */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Heller Rand */
  border: 1px solid;
  border-color: inherit;
  color: #e8ffff;
  font-size: 0.75rem;
  outline: none;
  transition: all 0.3s ease;
}

.pk-chat-input:focus {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.pk-chat-input::placeholder {
  color: rgba(232, 255, 255, 0.5);
}

/* =====================================================
   AI REFEREE HUD (TASK 4 + TEIL 4)
   ===================================================== */
.ai-referee-holo {
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  /* Transparent glass */
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e8ffff;
  font-size: 0.75rem;
  z-index: 15;
  border: 1px solid;
  transition: all 0.3s ease;
}

/* TEIL 4: AI Referee Overlay */
.ai-referee-tag {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  padding: 8px 16px;
  color: white;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 100, 0.35);
}

/* Rand-Farbe passt sich an */
.ai-referee-holo.neutral {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.ai-referee-holo.warning {
  border-color: rgba(255, 165, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
}

.ai-referee-holo.toxic {
  border-color: rgba(255, 0, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.ai-referee-holo.hype {
  border-color: rgba(0, 255, 200, 0.6);
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.3);
}

/* Leichte Pulsanimation bei Änderung */
.ai-referee-pulse {
  animation: refereePulse 0.5s ease-out;
}

@keyframes refereePulse {
  0% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

.pk-referee-panel {
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e8ffff;
  font-size: 0.75rem;
  z-index: 15;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  animation: refereeSlideIn 0.5s ease-out;
}

@keyframes refereeSlideIn {
  0% {
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.pk-referee-fairness {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  opacity: 0.8;
}

/* =====================================================
   COUNTDOWN RINGS
   ===================================================== */
.pk-countdown-wrapper {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.pk-countdown-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid;
  border-color: rgba(0, 255, 255, 0.8);
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.9),
    0 0 60px rgba(0, 255, 255, 0.5),
    inset 0 0 20px rgba(0, 255, 255, 0.3);
  animation: ringRotate 1s linear infinite;
}

@keyframes ringRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.pk-countdown-number {
  font-size: 3rem;
  font-weight: 800;
  color: #e8ffff;
  text-shadow: 
    0 0 18px rgba(0, 255, 255, 0.8),
    0 0 36px rgba(0, 255, 255, 0.6);
  z-index: 2;
  position: relative;
}

/* Ring zerfällt in Partikel bei "0" */
.pk-countdown-wrapper.explode {
  animation: ringExplode 0.5s ease-out forwards;
}

@keyframes ringExplode {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* Warp-Blitz um Video-Slots */
.pk-warp-blast {
  position: absolute;
  inset: -20px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.6) 0%, transparent 70%);
  animation: warpBlast 0.8s ease-out forwards;
  pointer-events: none;
  z-index: 1;
}

@keyframes warpBlast {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* =====================================================
   AI EMOTION GLOW (TEIL 4)
   ===================================================== */
.pk-panel-video-slot.emotion-happy {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6) inset, 0 0 40px rgba(255, 215, 0, 0.3);
}

.pk-panel-video-slot.emotion-excited {
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.6) inset, 0 0 40px rgba(255, 20, 147, 0.3);
}

.pk-panel-video-slot.emotion-focused {
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.6) inset, 0 0 40px rgba(0, 191, 255, 0.3);
}

.pk-panel-video-slot.emotion-angry {
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6) inset, 0 0 40px rgba(255, 0, 0, 0.3);
}

.pk-panel-video-slot.emotion-stressed {
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.6) inset, 0 0 40px rgba(138, 43, 226, 0.3);
}

/* TEIL 4: Emotion Glow - Positive/Negative */
.emotion-glow-positive {
  box-shadow: 0 0 35px rgba(0, 255, 120, 0.5) !important;
}

.emotion-glow-negative {
  box-shadow: 0 0 35px rgba(255, 0, 80, 0.5) !important;
}

/* =====================================================
   BOTTOM OVERLAY (Legacy Support)
   ===================================================== */
.pk-bottom-overlay {
  position: absolute;
  bottom: 0.8rem;
  width: 92%;
  max-width: 900px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  z-index: 5;
}

.pk-bottom-card {
  min-height: 56px;
  border-radius: 18px;
  padding: 0.6rem 1rem;
  background: linear-gradient(
    to right,
    rgba(0, 255, 255, 0.12),
    rgba(0, 0, 0, 0.9),
    rgba(255, 75, 154, 0.16)
  );
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: #e8ffff;
  font-size: 0.8rem;
}

/* =====================================================
   RESPONSIVE – MOBILE 9:16 (TASK 7)
   ===================================================== */
@media (max-width: 768px) {
  .pk-arena-root {
    justify-content: flex-start;
    /* iPhone Safe-Area Insets berücksichtigen */
    padding-bottom: max(0.8rem, env(safe-area-inset-bottom));
    padding-left: max(0.5rem, env(safe-area-inset-left));
    padding-right: max(0.5rem, env(safe-area-inset-right));
  }

  .pk-score-bar {
    margin-top: 0.6rem;
    width: 96%;
    height: 16px;
  }

  .pk-arena-panels {
    margin-top: 0.9rem;
    padding: 0 0.4rem;
    gap: 0.5rem;
    /* Panels dürfen nicht abgeschnitten werden */
    max-width: 100%;
  }

  .pk-panel {
    width: 47%;
    aspect-ratio: 9 / 13;
    border-radius: 18px;
    padding: 0.4rem;
    /* Rundungen der iPhone-Bildschirme beachten */
    border-radius: max(18px, env(safe-area-inset-bottom) * 0.5);
  }

  .pk-countdown-wrapper {
    width: 90px;
    height: 90px;
  }

  .pk-countdown-number {
    font-size: 2.2rem;
  }

  .pk-chat-container {
    flex-direction: column;
    gap: 0.5rem;
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    /* Chat Input muss immer über der Tastatur bleiben */
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom) + 0.5rem);
  }

  .pk-chat-panel {
    width: 100%;
    max-height: 150px;
  }

  .chat-container-hostA,
  .chat-container-hostB {
    width: 100%;
    max-height: 150px;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-bottom: 0.5rem;
  }

  .pk-bottom-card {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
  }

  .ai-referee-holo {
    top: max(3rem, env(safe-area-inset-top) + 1rem);
    font-size: 0.7rem;
    padding: 0.5rem 0.8rem;
  }
}

/* iPhone Safe-Area Support */
@supports (padding: max(0px)) {
  .pk-arena-root {
    padding-bottom: max(0.8rem, env(safe-area-inset-bottom));
    padding-left: max(0.5rem, env(safe-area-inset-left));
    padding-right: max(0.5rem, env(safe-area-inset-right));
  }

  .pk-chat-container {
    bottom: max(1rem, env(safe-area-inset-bottom) + 0.5rem);
  }
}

/* Samsung/Tablet Optimierungen */
@media (min-width: 769px) and (max-width: 1024px) {
  .pk-arena-panels {
    max-width: 90%;
  }

  .pk-panel {
    width: 48%;
  }
}

/* BLOCK 4 FIX: Countdown wieder sichtbar machen */
.pk-countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6rem;
  font-weight: 900;
  color: #00d0ff;
  text-shadow: 0 0 30px #00d0ff;
  z-index: 10000;
  pointer-events: none;
}
/**
 * HOLOGRAM ANIMATIONS CSS
 * PHASE 3 - Gemeinsame Animationen für Hologram-Komponenten
 */

/* Grid Move Animation */
@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, 30px);
  }
}

/* Pulse Ring Animation */
@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Light Burst Animation */
@keyframes lightBurst {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* Blink Animation */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Glow Expand Animation */
@keyframes glowExpand {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

@keyframes chromaticAberration {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(2px);
  }
}

/**
 * PK SCORE BAR CSS
 * PHASE 5 - Styles für PK Score Bars
 */

@keyframes scorebarPulse {
  0%, 100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(1.2);
    opacity: 0.9;
  }
}


/**
 * PK RESULT OVERLAY CSS
 * PHASE 5 - Styles für PK Match Endscreen
 */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/**
 * PHASE 14: Score Rails Styles
 * Laser Score Rails für PK Arena
 */

.pk-score-rails {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 18%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 6%;
  pointer-events: none;
  z-index: 100;
}

.rail {
  position: relative;
  width: 26px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.rail-track {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 255, 255, 0.3));
  opacity: 0.85;
}

.rail-right .rail-track {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(255, 0, 150, 0.3));
}

.rail-laser {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 10px;
  transform: translate(-50%, 0);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.8);
  background: radial-gradient(circle, rgba(0, 255, 255, 1) 0%, rgba(0, 255, 255, 0.1) 70%);
  transition: box-shadow 0.2s ease;
  will-change: transform;
}

.rail-right .rail-laser {
  box-shadow: 0 0 18px rgba(255, 0, 150, 0.9);
  background: radial-gradient(circle, rgba(255, 0, 150, 1) 0%, rgba(255, 0, 150, 0.1) 70%);
}

/* Pulse-Effekt bei Score-Änderungen */
.rail-laser[data-side="left"].rail-pulse {
  animation: railPulseCyan 0.3s ease-out;
}

.rail-laser[data-side="right"].rail-pulse {
  animation: railPulsePink 0.3s ease-out;
}

@keyframes railPulseCyan {
  0% {
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.8);
  }
  50% {
    box-shadow: 0 0 28px rgba(0, 255, 255, 1);
  }
  100% {
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.8);
  }
}

@keyframes railPulsePink {
  0% {
    box-shadow: 0 0 18px rgba(255, 0, 150, 0.9);
  }
  50% {
    box-shadow: 0 0 28px rgba(255, 0, 150, 1);
  }
  100% {
    box-shadow: 0 0 18px rgba(255, 0, 150, 0.9);
  }
}

/* Arena Deformation Styles */
.pk-arena-wrapper {
  transition: filter 220ms ease-out;
  will-change: transform, filter;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.pk-arena-wrapper.pk-tight {
  filter: brightness(1.08) contrast(1.05);
}

.pk-arena-wrapper.pk-very-tight {
  filter: brightness(1.12) contrast(1.08);
  animation: arenaBreathing 2s ease-in-out infinite;
}

@keyframes arenaBreathing {
  0%, 100% {
    filter: brightness(1.12) contrast(1.08);
  }
  50% {
    filter: brightness(1.15) contrast(1.1);
  }
}

/* Responsive - sehr kleine Screens */
@media (max-width: 340px) {
  .rail {
    width: 18px;
  }

  .rail-laser {
    width: 14px;
    height: 8px;
  }
}

/* Performance-Optimierungen */
.rail-laser,
.pk-arena-wrapper {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}


/**
 * PK ARENA CSS
 * PHASE 6 - Visual Upgrade 2.0: Flip, Laser, Glow
 */

/* PK Slot Container */
.pk-slot {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.pk-slot--left {
  /* Left slot specific styles */
}

.pk-slot--right {
  /* Right slot specific styles */
}

/* Slot States */
.pk-slot--back {
  transform: rotateY(180deg);
}

.pk-slot--front {
  transform: rotateY(0deg);
}

.pk-slot--active {
  /* Leader / highlighted side */
  box-shadow: 0 0 30px rgba(5, 217, 255, 0.6);
  animation: pk-slot-active-glow 2s ease-in-out infinite;
}

.pk-slot--intro {
  animation: pk-slot-flip 0.8s ease-in-out forwards;
}

/* Flip Animation */
@keyframes pk-slot-flip {
  from {
    transform: rotateY(180deg);
  }
  to {
    transform: rotateY(0deg);
  }
}

/* Active Glow Animation */
@keyframes pk-slot-active-glow {
  0%, 100% {
    box-shadow: 0 0 30px rgba(5, 217, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 50px rgba(5, 217, 255, 0.9);
  }
}

/* Slot Backside (vor Flip) */
.pk-slot-backside {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  border: 2px solid rgba(5, 217, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  transform: rotateY(180deg);
}

/* Host Name auf Rückseite */
.pk-slot-hostname {
  font-size: 24px;
  font-weight: bold;
  color: #05d9ff;
  text-shadow: 0 0 10px #05d9ff;
  position: relative;
  overflow: hidden;
}

/* Laser Scan Animation */
.pk-slot-hostname::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(5, 217, 255, 0.8),
    transparent
  );
  animation: pk-laser-scan 2s ease-in-out forwards;
}

@keyframes pk-laser-scan {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Slot Frontside (nach Flip) */
.pk-slot-frontside {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backface-visibility: hidden;
  transform: rotateY(0deg);
}

/* Arena Background Pulse */
.pk-arena--active {
  animation: pk-arena-pulse 4s ease-in-out infinite;
}

@keyframes pk-arena-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 1.05;
    transform: scale(1.01);
  }
}

/* Intensity-based Glow */
.pk-slot--intensity-low {
  box-shadow: 0 0 20px rgba(5, 217, 255, 0.4);
}

.pk-slot--intensity-medium {
  box-shadow: 0 0 30px rgba(5, 217, 255, 0.6);
  animation: pk-slot-active-glow 2s ease-in-out infinite;
}

.pk-slot--intensity-high {
  box-shadow: 0 0 40px rgba(5, 217, 255, 0.8);
  animation: pk-slot-active-glow 1.5s ease-in-out infinite;
}

/* Emotion-based Colors */
.pk-slot--emotion-happy {
  border-color: rgba(5, 217, 255, 0.6);
  box-shadow: 0 0 25px rgba(5, 217, 255, 0.5);
}

.pk-slot--emotion-angry {
  border-color: rgba(255, 0, 51, 0.6);
  box-shadow: 0 0 25px rgba(255, 0, 51, 0.5);
  animation: pk-slot-pulse-red 1s ease-in-out infinite;
}

.pk-slot--emotion-surprised {
  border-color: rgba(255, 255, 0, 0.6);
  box-shadow: 0 0 25px rgba(255, 255, 0, 0.5);
  animation: pk-slot-sparkle 0.5s ease-in-out infinite;
}

.pk-slot--emotion-sad {
  border-color: rgba(0, 153, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.4);
}

@keyframes pk-slot-pulse-red {
  0%, 100% {
    box-shadow: 0 0 25px rgba(255, 0, 51, 0.5);
  }
  50% {
    box-shadow: 0 0 35px rgba(255, 0, 51, 0.8);
  }
}

@keyframes pk-slot-sparkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* PHASE 6: Additional Arena Animations */
@keyframes dividerPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes arenaPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 1.2;
  }
}

/* scorebarPulse moved to PKScoreBar.css */

/**
 * PHASE 12: PK Slot Flip Animation Styles
 * GPU-beschleunigte 3D-Flip-Animation für Video-Slots
 */

/* Flip Container - Perspective für 3D-Effekt */
.flip-container {
  perspective: 1400px;
  width: 100%;
  height: 100%;
  position: relative;
}

.flip-container-left,
.flip-container-right {
  perspective: 1400px;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Flipper - 3D Transform Container */
.flipper {
  transition: transform 0.9s cubic-bezier(0.5, 0.01, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  height: 100%;
  will-change: transform; /* GPU-Beschleunigung */
}

.flipper.flip {
  transform: rotateY(180deg);
}

/* Front & Back Faces */
.flip-front,
.flip-back {
  position: absolute;
  backface-visibility: hidden;
  inset: 0;
  border-radius: 18px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Front: Video Slot (sichtbar nach Flip) */
.flip-front {
  transform: rotateY(0deg);
  z-index: 2;
}

/* Back: Laser Engrave Backplate (sichtbar vor Flip) */
.flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #04121e, #09263d);
  box-shadow: 0 0 22px rgba(0, 255, 255, 0.25) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Laser Engrave Wrapper */
.laser-engrave-wrapper {
  position: relative;
  width: 80%;
  max-width: 300px;
  text-align: center;
  color: #05d9ff;
}

/* Laser Line - animierte Linie */
.laser-line {
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, transparent, #05d9ff, transparent);
  box-shadow: 0 0 10px #05d9ff, 0 0 20px #05d9ff;
  animation: laserSweep 1.2s linear forwards;
  margin-bottom: 20px;
}

.laser-line.off {
  opacity: 0;
  animation: none;
}

@keyframes laserSweep {
  0% {
    width: 0%;
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 0;
  }
}

/* Engraved Name - erscheint nach Laser-Sweep */
.engraved-name {
  opacity: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 12px #05d9ff, 0 0 24px #05d9ff, 0 0 36px #05d9ff;
  transition: opacity 0.6s ease-in-out;
  color: #05d9ff;
  margin-top: 10px;
}

.engraved-name.visible {
  opacity: 1;
}

/* Engraved Glow - zusätzlicher Glow-Effekt */
.engraved-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(5, 217, 255, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
  border-radius: 18px;
}

.engraved-glow.visible {
  opacity: 1;
}

/* Slot Backplate (optional, falls separat verwendet) */
.slot-backplate {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #04121e, #09263d);
  box-shadow: 0 0 22px rgba(0, 255, 255, 0.25) inset;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Regeln - Mobile */
@media (max-width: 768px) {
  .engraved-name {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .laser-engrave-wrapper {
    width: 70%;
    max-width: 200px;
  }

  /* Animationsdauer bleibt identisch für Synchronisation */
  .flipper {
    transition: transform 0.9s cubic-bezier(0.5, 0.01, 0.2, 1);
  }
}

/* Performance-Optimierungen */
.flip-container,
.flipper,
.flip-front,
.flip-back {
  transform: translateZ(0); /* GPU-Beschleunigung */
  -webkit-transform: translateZ(0);
}

/* Verhindere Layout-Shifts */
.flip-container {
  contain: layout style paint;
}


/**
 * PHASE 13: Emotion Glow Styles
 * Dynamische Glow-Effekte für Video-Slots basierend auf Emotionen
 */

/* Happy - Cyan Glow */
.glow-happy {
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.55);
  animation: happyPulse 2s ease-in-out infinite;
}

@keyframes happyPulse {
  0% {
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.65);
  }
}

/* Stress - Yellow Pulsing */
.glow-stress {
  box-shadow: 0 0 18px rgba(255, 230, 0, 0.4);
  animation: stressPulse 1.2s ease-in-out infinite;
}

@keyframes stressPulse {
  0% {
    box-shadow: 0 0 12px rgba(255, 230, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 230, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 12px rgba(255, 230, 0, 0.3);
  }
}

/* Aggressive - Red Pulsing (sanft, nie overpowered) */
.glow-aggressive {
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.45);
  animation: aggressivePulse 0.35s ease-in-out infinite;
}

@keyframes aggressivePulse {
  0% {
    box-shadow: 0 0 14px rgba(255, 0, 0, 0.35);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 14px rgba(255, 0, 0, 0.35);
  }
}

/* Bored - Grayscale + Opacity */
.glow-bored {
  opacity: 0.7;
  filter: grayscale(0.3);
  box-shadow: 0 0 8px rgba(128, 128, 128, 0.3);
}

/* Competition / Ehrgeiz - Magenta Glow */
.glow-competition {
  box-shadow: 0 0 18px rgba(255, 0, 150, 0.5);
  animation: competitionPulse 1.5s ease-in-out infinite;
}

@keyframes competitionPulse {
  0% {
    box-shadow: 0 0 12px rgba(255, 0, 150, 0.4);
  }
  100% {
    box-shadow: 0 0 20px rgba(255, 0, 150, 0.6);
  }
}

/* Neutral - Standard Cyan */
.glow-neutral {
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.25);
}

/* Toxicity Flash - kurzer roter Flash (50ms) */
.toxic-flash {
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.9) !important;
  animation: toxicFlash 0.05s ease-out;
}

@keyframes toxicFlash {
  0% {
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.9);
  }
  100% {
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.9);
  }
}

/* Arena Slot Border mit Emotion Glow */
.arena-slot-border {
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
  will-change: box-shadow, filter, opacity; /* GPU-Beschleunigung */
}

/* Intensity-basierte Glow-Anpassung */
.arena-slot-border[data-intensity="high"] .glow-happy {
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.7);
}

.arena-slot-border[data-intensity="high"] .glow-stress {
  box-shadow: 0 0 26px rgba(255, 230, 0, 0.5);
}

.arena-slot-border[data-intensity="high"] .glow-aggressive {
  box-shadow: 0 0 22px rgba(255, 0, 0, 0.55);
}

/* Performance-Optimierungen */
.arena-slot-border,
.glow-happy,
.glow-stress,
.glow-aggressive {
  transform: translateZ(0); /* GPU-Beschleunigung */
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}

/**
 * PHASE 13: Heatmap Upgrade Styles
 * Heatmap wird beeinflusst durch Nachrichtenfrequenz, Emoji-Dichte, Gifts, Toxicity
 */

/* Heatmap Active (hoch) */
.heatmap-active {
  filter: brightness(1.35);
  box-shadow: 0 0 12px cyan;
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}

/* Heatmap Low (niedrig) */
.heatmap-low {
  filter: brightness(0.75);
  transition: filter 0.3s ease;
}

/* Heatmap Container */
.heatmap-container {
  position: relative;
  width: 100%;
  height: 100%;
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}

/* Fairness Bar Styles */
.fairness-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.fairness-bar {
  height: 100%;
  transition: width 0.5s ease, background-color 0.5s ease;
  border-radius: 2px;
}

.fairness-green {
  background: linear-gradient(90deg, #00ff00, #00cc00);
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.fairness-blue {
  background: linear-gradient(90deg, #00aaff, #0088cc);
  box-shadow: 0 0 8px rgba(0, 170, 255, 0.5);
}

.fairness-yellow {
  background: linear-gradient(90deg, #ffaa00, #ff8800);
  box-shadow: 0 0 8px rgba(255, 170, 0, 0.5);
}

.fairness-red {
  background: linear-gradient(90deg, #ff0000, #cc0000);
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

/* Performance-Optimierungen */
.heatmap-active,
.heatmap-low,
.fairness-bar {
  transform: translateZ(0); /* GPU-Beschleunigung */
  -webkit-transform: translateZ(0);
  will-change: filter, box-shadow;
}


/**
 * Hologram Theme - Sci-Fi 2030 Design
 * Glow-Effekte, Hologram-Karten, Futuristische UI
 */

/* Glow Text */
.glow-text {
  color: #00ffff;
  text-shadow: 
    0 0 10px rgba(0, 255, 255, 0.8),
    0 0 20px rgba(0, 255, 255, 0.6),
    0 0 30px rgba(0, 255, 255, 0.4);
  font-weight: 600;
}

.glow-faint {
  color: rgba(0, 255, 255, 0.7);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

/* Hologram Card */
.hologram-card {
  background: rgba(0, 40, 60, 0.25);
  border: 1px solid rgba(0, 255, 255, 0.25);
  box-shadow:
    0 0 15px rgba(0, 255, 255, 0.18),
    inset 0 0 25px rgba(0, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 20px;
  animation: holoFade 0.6s ease forwards;
  opacity: 0;
}

@keyframes holoFade {
  from {
    transform: translateY(30px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Hologram Theme Base */
.hologram-theme {
  position: relative;
}

.hologram-theme::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 3px,
    rgba(0, 255, 255, 0.03) 4px
  );
  mix-blend-mode: overlay;
  z-index: 1;
}

/* Recap Styles */
.recap-wrapper {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 15, 30, 0.95) 0%, rgba(10, 25, 45, 0.95) 100%);
  z-index: 10000;
  overflow-y: auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.recap-header {
  text-align: center;
  font-size: 28px;
  margin: 30px 0;
  padding: 20px;
}

.recap-stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.recap-block {
  position: relative;
  z-index: 2;
}

.recap-block .label {
  font-size: 14px;
  color: rgba(0, 255, 255, 0.7);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.recap-block .value {
  font-size: 32px;
  color: #00ffff;
  font-weight: bold;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.recap-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.recap-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.recap-list li:last-child {
  border-bottom: none;
}

/* Coach Panel */
.coach-panel {
  max-width: 800px;
  margin: 40px auto;
  position: relative;
  z-index: 2;
}

.coach-title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 30px;
}

.coach-section {
  margin: 25px 0;
  padding: 20px;
  background: rgba(0, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.coach-subtitle {
  font-size: 18px;
  color: #00ffff;
  margin-bottom: 15px;
  font-weight: 600;
}

.coach-tip {
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  border-left: 3px solid rgba(0, 255, 255, 0.4);
  padding-left: 15px;
  margin: 8px 0;
}

.coach-note {
  margin-top: 30px;
  padding: 15px;
  background: rgba(0, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(0, 255, 255, 0.8);
  font-size: 13px;
  text-align: center;
  font-style: italic;
}

/**
 * Match Animations - Sci-Fi 2030 Effects
 * Pulsierende Energie-Ringe, Momentum Flare, Heatwave, etc.
 */

/* Pulsierender Energie-Ring */
.energy-ring {
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 10px rgba(0, 255, 200, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
  }
  100% {
    box-shadow: 0 0 10px rgba(0, 255, 200, 0.4);
  }
}

/* Momentum Flare */
.momentum-flare {
  background: radial-gradient(circle, rgba(0, 255, 255, 0.3), transparent);
  animation: flare 1.5s infinite alternate ease-in-out;
}

@keyframes flare {
  from {
    transform: scale(1);
    opacity: 0.07;
  }
  to {
    transform: scale(1.4);
    opacity: 0.23;
  }
}

/* Heatwave */
.heatwave {
  background: linear-gradient(
    90deg,
    rgba(0, 255, 255, 0.1),
    rgba(0, 180, 255, 0.2),
    rgba(0, 255, 255, 0.1)
  );
  animation: wave 3s infinite linear;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@keyframes wave {
  0% {
    transform: translateX(-20%);
  }
  100% {
    transform: translateX(20%);
  }
}

/* Hologram Fade-In (bereits in hologram-theme.css, hier für Kompatibilität) */
.hologram-card {
  animation: holoFade 0.6s ease forwards;
}

/**
 * Warp Countdown Shader - Sci-Fi Warp Jump Effect
 */

.warp-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 15, 30, 0.75);
  backdrop-filter: blur(12px);
  z-index: 99999;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.warp-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warp-text {
  font-size: 5rem;
  text-align: center;
  color: #00ffff;
  text-shadow: 0 0 25px #00ffff;
  animation: glowText 0.8s infinite alternate;
  position: relative;
  z-index: 2;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
}

@keyframes glowText {
  0% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

.warp-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid rgba(0, 255, 255, 0.4);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: rotate 3s linear infinite;
}

/* Phase 2: Ring pulsiert */
.phase-2 {
  animation: rotate 2s linear infinite, pulse 1s infinite ease-in-out;
}

/* Phase 3: Ring wird enger */
.phase-3 {
  animation: rotate 1.2s linear infinite, shrink 0.9s infinite ease-in-out;
}

/* Final Warp Explosion */
.phase-4 {
  animation: warpExplosion 0.5s forwards;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 15px #00ffff;
  }
  100% {
    box-shadow: 0 0 45px #00ffff;
  }
}

@keyframes shrink {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.85);
  }
}

@keyframes warpExplosion {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3);
    box-shadow: 0 0 200px #00ffff;
  }
}

/**
 * Hologram 3D Rings Shader
 */

.ring-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.holo-ring {
  width: 120%;
  height: 120%;
  left: -10%;
  top: -10%;
  border-radius: 50%;
  border: 3px solid rgba(0, 255, 255, 0.25);
  box-shadow:
    0 0 25px rgba(0, 255, 255, 0.3),
    inset 0 0 45px rgba(0, 255, 255, 0.3);
  position: absolute;
  animation: ringSpin 6s linear infinite;
}

.holo-ring.ring2 {
  border-color: rgba(0, 180, 255, 0.25);
  animation: ringSpinReverse 7.5s linear infinite;
}

@keyframes ringSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes ringSpinReverse {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

/**
 * Galaxy Explosion Effect
 */

.gift-animations-wrapper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

.galaxy-explosion {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle,
    rgba(0, 200, 255, 0.9),
    rgba(0, 80, 160, 0.5),
    rgba(0, 0, 0, 0)
  );
  animation: galaxyExpand 1.6s ease-out forwards;
  filter: blur(6px);
}

@keyframes galaxyExpand {
  0% {
    transform: scale(0.2);
    opacity: 0.9;
  }
  60% {
    transform: scale(2.4);
    opacity: 0.6;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/**
 * Quantum Burst Effect
 */

.quantum-burst {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.9),
    rgba(0, 255, 255, 0.6),
    rgba(0, 0, 0, 0)
  );
  animation: quantum 1.4s ease forwards;
}

@keyframes quantum {
  0% {
    transform: scale(0.1);
    opacity: 1;
    filter: blur(3px);
  }
  80% {
    transform: scale(3.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(4.5);
    opacity: 0;
    filter: blur(25px);
  }
}

/* Singularity Effect */
.singularity-core {
  position: absolute;
  width: 180px;
  height: 180px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    #00ffff,
    #003aff,
    #000
  );
  border-radius: 50%;
  animation: singularity 1.6s ease-in-out forwards;
  filter: drop-shadow(0 0 20px #00ffff);
}

@keyframes singularity {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.6);
    opacity: 0;
  }
}

/**
 * Pulsierende KI-Aura
 */

.aura-field {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  animation: auraPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes auraPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

/**
 * Plasma Grid Shader
 */

.plasma-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(0, 255, 255, 0.15), transparent),
    radial-gradient(circle at 70% 50%, rgba(0, 255, 255, 0.15), transparent),
    repeating-linear-gradient(
      90deg,
      rgba(0, 255, 255, 0.05) 0px,
      rgba(0, 255, 255, 0.08) 3px,
      transparent 3px,
      transparent 6px
    );
  animation: plasmaMove 13s linear infinite;
  filter: blur(1px);
  z-index: 0;
}

@keyframes plasmaMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 600px 0;
  }
}

/**
 * Hologram Windows Shader - 3D geneigte Fenster
 */

.holo-window {
  position: relative;
  width: 48%;
  transform: perspective(900px) rotateY(14deg);
  border-radius: 14px;
}

.holo-window-right,
.holo-window:nth-child(2) {
  transform: perspective(900px) rotateY(-14deg);
}

.holo-video {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

/* Hologram-Linien statt Glow */
.holo-border {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(0, 255, 255, 0.25);
  border-radius: 14px;
  pointer-events: none;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 255, 0.05) 0px,
    rgba(0, 255, 255, 0.05) 2px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.7;
}

/**
 * Galaxy Morph Shader
 */

.galaxy-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 150, 255, 0.15), transparent),
    radial-gradient(circle at 70% 70%, rgba(0, 255, 180, 0.1), transparent),
    radial-gradient(circle at 40% 80%, rgba(0, 255, 255, 0.08), transparent);
  animation: galaxyMorph 18s infinite ease-in-out;
  z-index: -1;
}

@keyframes galaxyMorph {
  0% {
    filter: hue-rotate(0deg) blur(0px);
    transform: scale(1);
  }
  50% {
    filter: hue-rotate(60deg) blur(1px);
    transform: scale(1.08);
  }
  100% {
    filter: hue-rotate(0deg) blur(0px);
    transform: scale(1);
  }
}

/**
 * Teleport Shader
 */

.teleport-field {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 30;
}

.teleport-ring {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 3px solid rgba(0, 255, 255, 0.7);
  animation: teleportAnim 1.4s ease-out forwards;
  filter: drop-shadow(0 0 25px #00ffff);
}

@keyframes teleportAnim {
  0% {
    transform: scale(0.1);
    opacity: 1;
  }
  40% {
    transform: scale(1.3);
    opacity: 0.9;
  }
  80% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  100% {
    transform: scale(3.8);
    opacity: 0;
  }
}

/**
 * Energy Meter Shader
 */

.energy-meter {
  width: 90%;
  height: 12px;
  border: 1px solid rgba(0, 255, 255, 0.25);
  margin: 10px auto;
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  background: rgba(0, 15, 30, 0.4);
  position: relative;
  z-index: 10;
}

.bar {
  transition: width 0.4s ease;
}

.bar.left {
  background: #00ffff;
}

.bar.right {
  background: #00ffaa;
  margin-left: auto;
}

/**
 * Neon Path Shader
 */

.neon-path {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.neon-line {
  stroke: #00ffff;
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px #00ffff);
  animation: neonPulse 1.8s infinite ease-in-out;
}

@keyframes neonPulse {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.3;
  }
}

/**
 * Face Glow Shader
 */

.faceglow {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  transition: box-shadow 0.25s ease;
  z-index: 1;
}

/**
 * Referee Panel Shader
 */

.referee-panel {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(0, 15, 20, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  width: 260px;
  color: #00ffff;
  text-align: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  z-index: 20;
  padding-bottom: env(safe-area-inset-bottom);
}

.ref-neutral {
  border-color: rgba(0, 255, 255, 0.25);
}

.ref-warning {
  border-color: #ffee00;
  color: #ffee00;
}

.ref-critical {
  border-color: #ff0033;
  color: #ff0033;
}

.violations {
  text-align: left;
  margin-top: 8px;
  font-size: 0.8rem;
  list-style: none;
  padding: 0;
}

.violations li {
  margin: 4px 0;
}

.callout {
  margin-top: 12px;
  opacity: 0.9;
  font-size: 0.83rem;
}

.title {
  font-weight: bold;
  margin-bottom: 4px;
}

.state {
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/**
 * Hologram Arena Styles
 */

.arena-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.windows-row {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  margin-top: 20px;
  gap: 20px;
}

.hologram-arena {
  background: linear-gradient(135deg, rgba(0, 15, 30, 0.95) 0%, rgba(10, 25, 45, 0.95) 100%);
}

/**
 * Hologram Shaders - Plasma & Scanlines Effects
 * Futuristic visual effects for 2030 UI
 */

/* Hologram Scanlines */
.hologram-theme::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 255, 0.03) 3px,
    rgba(0, 255, 255, 0.03) 4px
  );
  mix-blend-mode: overlay;
  z-index: 1;
}

/* Plasma Effect (optional, für spezielle Bereiche) */
.plasma-effect {
  position: relative;
  overflow: hidden;
}

.plasma-effect::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 180, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 20%, rgba(0, 255, 200, 0.1) 0%, transparent 50%);
  animation: plasma 8s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes plasma {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  33% {
    transform: translate(10%, -10%) scale(1.1);
    opacity: 0.4;
  }
  66% {
    transform: translate(-10%, 10%) scale(0.9);
    opacity: 0.35;
  }
}

/* Subsurface Glow (erweitert) */
.hologram-card {
  position: relative;
}

.hologram-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    45deg,
    rgba(0, 255, 255, 0.1),
    rgba(0, 180, 255, 0.1),
    rgba(0, 255, 255, 0.1)
  );
  border-radius: 14px;
  z-index: -1;
  filter: blur(8px);
  opacity: 0.6;
  animation: subsurfaceGlow 3s ease-in-out infinite;
}

@keyframes subsurfaceGlow {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

/* Data Stream Effect */
.data-stream {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 255, 255, 0.6),
    transparent
  );
  animation: streamFlow 2s linear infinite;
}

@keyframes streamFlow {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

/**
 * PK Overlay CSS
 * 9:16 Aspect Ratio, Levi Neon Theme
 * V4 REPAIR: Countdown CSS hinzugefügt
 */

/* V4 REPAIR: Countdown sichtbar machen */
.pk-countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6rem;
  font-weight: 900;
  color: #00d0ff;
  text-shadow: 0 0 25px #00d0ff;
  z-index: 99999;
  pointer-events: none;
}

.pk-wrapper {
  width: 100%;
  height: 100vh;
  aspect-ratio: 9/16;
  background: #020817;
  position: relative;
  overflow: hidden;
  font-family: 'Orbitron', sans-serif;
}

/* HEADER ------------------------------------------ */

.pk-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  color: #fff;
  z-index: 10;
}

.pk-timer {
  font-size: 1.8rem;
  font-weight: 700;
  color: #00d0ff;
  text-shadow: 0 0 10px #00d0ff;
  min-width: 80px;
  text-align: center;
}

.score-side {
  display: flex;
  align-items: center;
  min-width: 80px;
}

.score-side.left {
  justify-content: flex-start;
}

.score-side.right {
  justify-content: flex-end;
}

.score-side .score-value {
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 0 0 10px #00d0ff;
  color: #fff;
}

/* BARS -------------------------------------------- */

.pk-bars {
  width: 100%;
  height: 12px;
  position: relative;
  margin: 5px 0;
  z-index: 10;
}

.pk-bar-left {
  position: absolute;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #00eaff, #005eff);
  box-shadow: 0 0 10px #00eaff;
  transform-origin: left;
  transform: scaleX(0.2);
  transition: transform 0.3s ease-out;
  border-radius: 0 6px 6px 0;
}

.pk-bar-right {
  position: absolute;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, #ff00e6, #b8007f);
  box-shadow: 0 0 10px #ff00e6;
  transform-origin: right;
  transform: scaleX(0.2);
  transition: transform 0.3s ease-out;
  border-radius: 6px 0 0 6px;
}

/* LIVE AREA ---------------------------------------- */

.pk-live-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  height: 55%;
  padding: 0 10px;
  gap: 4px;
}

.pk-host {
  width: 48%;
  height: 100%;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.pk-host video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pk-centerbeam {
  width: 4px;
  height: 100%;
  background: #00d0ff;
  animation: beamPulse 2s ease-in-out infinite;
  box-shadow: 0 0 20px #00d0ff;
  border-radius: 2px;
}

.pk-centerbeam.pk-power {
  background: linear-gradient(180deg, #00eaff, #ff00e6);
  animation: beamStorm 1s ease-in-out infinite;
  filter: drop-shadow(0 0 20px #00eaff);
}

@keyframes beamPulse {
  0% { box-shadow: 0 0 6px #00d0ff; }
  50% { box-shadow: 0 0 25px #00d0ff; }
  100% { box-shadow: 0 0 6px #00d0ff; }
}

@keyframes beamStorm {
  0% { box-shadow: 0 0 6px #00eaff; }
  25% { box-shadow: 0 0 22px #ff00e6; }
  50% { box-shadow: 0 0 32px #00eaff; }
  75% { box-shadow: 0 0 22px #ff00e6; }
  100% { box-shadow: 0 0 6px #00eaff; }
}

/* HOST INFO ---------------------------------------- */

.pk-hostinfo {
  position: absolute;
  bottom: 40px;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  z-index: 20;
}

.pk-hostinfo.left {
  left: 10px;
}

.pk-hostinfo.right {
  right: 10px;
}

.host-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 10px #00eaff;
  background-size: cover;
  background-position: center;
  background-color: #333;
}

.host-name {
  margin-left: 10px;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(0, 210, 255, 0.5);
}

/* CINEMATIC FINISH ---------------------------------- */

.pk-finish {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.87));
  animation: fadeIn 0.8s ease-out forwards;
  z-index: 1000;
}

.pk-finish.active {
  display: flex;
}

.pk-winner-label {
  font-size: 3rem;
  color: #00eaff;
  text-shadow: 0 0 20px #00eaff, 0 0 40px #008cff;
  animation: winnerPulse 1.5s ease-in-out infinite;
  font-weight: 700;
  text-align: center;
}

.pk-winner-label.tie {
  color: #00d0ff;
}

.pk-winner-label.winner-a {
  color: #00eaff;
}

.pk-winner-label.winner-b {
  color: #ff00e6;
}

@keyframes winnerPulse {
  0% { transform: scale(1); text-shadow: 0 0 20px #00eaff; }
  50% { transform: scale(1.1); text-shadow: 0 0 40px #00eaff; }
  100% { transform: scale(1); text-shadow: 0 0 20px #00eaff; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* RESPONSIVE ---------------------------------------- */

@media (max-width: 768px) {
  .pk-timer {
    font-size: 1.5rem;
  }
  
  .score-side .score-value {
    font-size: 1.5rem;
  }
  
  .pk-winner-label {
    font-size: 2.5rem;
  }
}

/* PK Arena Styles - Laser Score Bar */

.laser-bar {
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #0ff, #00f, #0ff);
  animation: pulse 2s linear infinite;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 40px rgba(0, 0, 255, 0.6);
}

@keyframes pulse {
  0% { 
    opacity: 0.3;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
  }
  50% { 
    opacity: 1;
    box-shadow: 0 0 30px rgba(0, 255, 255, 1), 0 0 60px rgba(0, 0, 255, 0.8);
  }
  100% { 
    opacity: 0.3;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
  }
}

/* Hologram Request UI */
.holo-request {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
}

.holo-frame {
  background: rgba(0, 20, 40, 0.95);
  border: 2px solid #0ff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), inset 0 0 20px rgba(0, 255, 255, 0.2);
  min-width: 400px;
  text-align: center;
}

.holo-title {
  font-size: 24px;
  font-weight: bold;
  color: #0ff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
  margin-bottom: 15px;
}

.holo-sub {
  color: #fff;
  margin-bottom: 25px;
  font-size: 16px;
}

.holo-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-accept, .btn-decline {
  padding: 12px 24px;
  border: 2px solid;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-accept {
  background: rgba(0, 255, 0, 0.2);
  border-color: #0f0;
  color: #0f0;
}

.btn-accept:hover {
  background: rgba(0, 255, 0, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

.btn-decline {
  background: rgba(255, 0, 0, 0.2);
  border-color: #f00;
  color: #f00;
}

.btn-decline:hover {
  background: rgba(255, 0, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

/* Lobby Hologram */
.lobby-hologram {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  text-align: center;
  color: #0ff;
}

.warp-grid {
  width: 300px;
  height: 300px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 255, 0.1) 2px,
    rgba(0, 255, 255, 0.1) 4px
  );
  margin: 0 auto 20px;
  animation: warp 3s linear infinite;
}

@keyframes warp {
  0% { transform: perspective(500px) rotateX(0deg); }
  100% { transform: perspective(500px) rotateX(360deg); }
}

.ready-btns button {
  padding: 12px 24px;
  background: rgba(0, 255, 255, 0.2);
  border: 2px solid #0ff;
  color: #0ff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.ready-btns button:hover {
  background: rgba(0, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

/* PK Countdown */
.pk-countdown {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  text-align: center;
}

.warp-count {
  font-size: 120px;
  font-weight: bold;
  color: #0ff;
  text-shadow: 0 0 30px rgba(0, 255, 255, 1), 0 0 60px rgba(0, 255, 255, 0.8);
  animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Arena */
.arena {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(0, 0, 20, 0.9);
}

/* AI Referee Panel */
.ai-ref {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  background: rgba(0, 20, 40, 0.95);
  border: 2px solid #0ff;
  border-radius: 12px;
  padding: 30px;
  color: #0ff;
  text-align: center;
  min-width: 400px;
}

.ai-ref h3 {
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* End Screen */
.pk-end {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  background: rgba(0, 20, 40, 0.95);
  border: 2px solid #0ff;
  border-radius: 12px;
  padding: 40px;
  color: #0ff;
  text-align: center;
  min-width: 500px;
}

.pk-end h2 {
  font-size: 32px;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(0, 255, 255, 1);
}

.pk-end p {
  font-size: 18px;
  margin: 10px 0;
}

/**
 * PHASE 15: PK END CINEMATICS STYLES
 */

/* ============================================
   IMPACT SHOCKWAVE
   ============================================ */
.pk-impact-shock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 216, 255, 0.8) 0%,
    rgba(255, 0, 150, 0.6) 30%,
    rgba(0, 216, 255, 0.4) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 5000;
  animation: impactShockwave 600ms ease-out forwards;
}

@keyframes impactShockwave {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.0);
    opacity: 0;
  }
}

/* ============================================
   VICTORY HIGHLIGHT
   ============================================ */
.pk-victory-left,
.pk-victory-right {
  position: relative;
}

.pk-victory-left .pk-slot-left,
.pk-victory-right .pk-slot-right {
  box-shadow: 
    0 0 30px rgba(0, 216, 255, 0.9),
    0 0 60px rgba(0, 216, 255, 0.6),
    0 0 90px rgba(0, 216, 255, 0.3);
  animation: victoryPulse 1.5s ease-in-out infinite;
  transform: rotateY(0.8deg);
}

@keyframes victoryPulse {
  0%, 100% {
    box-shadow: 
      0 0 30px rgba(0, 216, 255, 0.9),
      0 0 60px rgba(0, 216, 255, 0.6),
      0 0 90px rgba(0, 216, 255, 0.3);
    transform: rotateY(0.8deg);
  }
  50% {
    box-shadow: 
      0 0 50px rgba(0, 216, 255, 1),
      0 0 100px rgba(0, 216, 255, 0.8),
      0 0 150px rgba(0, 216, 255, 0.5);
    transform: rotateY(2.0deg);
  }
}

/* Laser-Puls für Victory-Side */
.pk-victory-left .rail-laser[data-side="left"],
.pk-victory-right .rail-laser[data-side="right"] {
  animation: victoryLaserPulse 0.5s ease-in-out 3;
}

@keyframes victoryLaserPulse {
  0%, 100% {
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.8);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 35px rgba(0, 255, 255, 1), 0 0 50px rgba(0, 255, 255, 0.6);
    transform: scale(1.2);
  }
}

/* ============================================
   WINNER CARD
   ============================================ */
.pk-winner-card {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.pk-winner-card.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pk-winner-card-inner {
  background: linear-gradient(135deg, rgba(10, 10, 26, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
  border: 3px solid rgba(0, 216, 255, 0.6);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 
    0 0 40px rgba(0, 216, 255, 0.4),
    0 0 80px rgba(0, 216, 255, 0.2),
    inset 0 0 20px rgba(0, 216, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.pk-winner-card-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 216, 255, 0.1) 0%,
    transparent 70%
  );
  animation: winnerCardGlow 3s ease-in-out infinite;
}

@keyframes winnerCardGlow {
  0%, 100% {
    transform: rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: rotate(180deg);
    opacity: 0.6;
  }
}

.pk-winner-title {
  font-size: 2rem;
  font-weight: 700;
  color: #00D8FF;
  text-align: center;
  margin: 0 0 1.5rem 0;
  text-shadow: 
    0 0 10px rgba(0, 216, 255, 0.8),
    0 0 20px rgba(0, 216, 255, 0.6),
    0 0 30px rgba(0, 216, 255, 0.4);
}

.pk-winner-scores {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 216, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 216, 255, 0.2);
}

.pk-winner-score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.pk-winner-score-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.pk-winner-score-value {
  font-size: 2rem;
  font-weight: 700;
  color: #00D8FF;
  text-shadow: 0 0 10px rgba(0, 216, 255, 0.6);
}

.pk-winner-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pk-winner-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background: rgba(0, 216, 255, 0.03);
  border-radius: 8px;
}

.pk-winner-stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.pk-winner-stat-value {
  color: #00D8FF;
  font-weight: 600;
}

.pk-winner-ai-comment {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 216, 255, 0.05);
  border-left: 3px solid rgba(0, 216, 255, 0.4);
  border-radius: 8px;
}

.pk-winner-ai-comment p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  font-size: 0.95rem;
}

.pk-winner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pk-winner-btn {
  padding: 0.875rem 1.5rem;
  border: 2px solid;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: #00D8FF;
  border-color: rgba(0, 216, 255, 0.6);
}

.pk-winner-btn:hover {
  background: rgba(0, 216, 255, 0.1);
  border-color: rgba(0, 216, 255, 1);
  box-shadow: 0 0 20px rgba(0, 216, 255, 0.4);
  transform: translateY(-2px);
}

.pk-winner-btn-primary {
  border-color: rgba(0, 216, 255, 0.8);
  background: rgba(0, 216, 255, 0.1);
}

.pk-winner-btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
}

.pk-winner-btn-danger {
  border-color: rgba(255, 75, 154, 0.6);
  color: rgba(255, 75, 154, 1);
}

.pk-winner-btn-danger:hover {
  background: rgba(255, 75, 154, 0.1);
  border-color: rgba(255, 75, 154, 1);
  box-shadow: 0 0 20px rgba(255, 75, 154, 0.4);
}

/* Responsive */
@media (max-width: 480px) {
  .pk-winner-card-inner {
    padding: 1.5rem;
    max-width: 95%;
  }

  .pk-winner-title {
    font-size: 1.5rem;
  }

  .pk-winner-score-value {
    font-size: 1.5rem;
  }
}


/**
 * PHASE 11: PK ARENA 2.0 STYLES
 * Alle CSS-Animationen und Styles für Arena 2.0
 */

/* ============================================
   ARENA CONTAINER
   ============================================ */
.pk-arena-2-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
}

.pk-arena-slots {
  display: flex !important; /* PHASE 14: WICHTIG - Slots IMMER nebeneinander */
  flex-direction: row !important; /* PHASE 14: Explizit nebeneinander */
  width: 100% !important;
  height: 100% !important;
  gap: 2px;
  position: relative;
  align-items: stretch; /* PHASE 14: Slots gleiche Höhe */
  justify-content: space-between; /* PHASE 14: Slots gleichmäßig verteilt */
  /* PHASE 14: Verhindere, dass Slots getrennt werden */
  flex-wrap: nowrap !important;
}

/* PHASE 15: Slot Wrapper für Victory Highlight */
.pk-slot-wrapper {
  flex: 1;
  min-width: 0;
  position: relative;
}

/* ============================================
   BOOT SEQUENCE
   ============================================ */
.arena-boot-sequence {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
}

.arena-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in;
}

.arena-grid.visible {
  opacity: 1;
}

.grid-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, #00D8FF, transparent);
  opacity: 0.3;
}

.grid-line-horizontal {
  width: 100%;
  height: 1px;
  left: 0;
}

.grid-line-horizontal:nth-child(1) { top: 25%; }
.grid-line-horizontal:nth-child(2) { top: 50%; }
.grid-line-horizontal:nth-child(3) { top: 75%; }

.grid-line-vertical {
  width: 1px;
  height: 100%;
  top: 0;
}

.grid-line-vertical:nth-child(4) { left: 25%; }
.grid-line-vertical:nth-child(5) { left: 50%; }
.grid-line-vertical:nth-child(6) { left: 75%; }

@keyframes gridFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.arena-boot-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  font-weight: 700;
  color: #00D8FF;
  text-shadow: 0 0 20px #00D8FF, 0 0 40px #00D8FF;
  letter-spacing: 0.2em;
  z-index: 1001;
}

.boot-text-trace {
  animation: textTraceIn 0.4s ease-out;
  display: inline-block;
}

@keyframes textTraceIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.electric-pulse {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #00D8FF;
  border-radius: 50%;
  box-shadow: 0 0 20px #00D8FF, 0 0 40px #00D8FF;
  animation: electricPulse 0.3s ease-out;
}

.pulse-top-left { top: 10%; left: 10%; }
.pulse-top-right { top: 10%; right: 10%; }
.pulse-bottom-left { bottom: 10%; left: 10%; }
.pulse-bottom-right { bottom: 10%; right: 10%; }

@keyframes electricPulse {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

.hologram-flicker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 216, 255, 0.1);
  animation: holoFlicker 0.2s ease-in-out;
}

@keyframes holoFlicker {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* ============================================
   SLOT FLIP ANIMATION
   ============================================ */
.pk-slot {
  flex: 1 !important; /* PHASE 14: Jeder Slot nimmt 50% der Breite ein */
  min-width: 0 !important; /* PHASE 14: Wichtig für Flexbox, verhindert Overflow */
  max-width: 50% !important; /* PHASE 14: WICHTIG - Verhindert, dass Slots die volle Breite einnehmen */
  position: relative;
  perspective: 1000px;
  will-change: transform;
  display: flex !important; /* PHASE 14: Slots als Flex-Container */
  align-items: stretch; /* PHASE 14: Volle Höhe */
  /* PHASE 14: WICHTIG - Slots bleiben IMMER nebeneinander, auch nach Flip */
}

.slot-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.pk-slot.flipped .slot-inner {
  transform: rotateY(180deg);
}

.slot-back,
.slot-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.slot-back {
  transform: rotateY(0deg);
}

.slot-front {
  transform: rotateY(180deg);
}

/* ============================================
   HOLOGRAM BACK
   ============================================ */
.hologram-back {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #0a0a1a 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hologram-back-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
}

.hologram-back-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border: 2px solid #00D8FF;
  box-shadow: 0 0 30px rgba(0, 216, 255, 0.3);
  border-radius: 8px;
}

/* ============================================
   HOLOGRAM FRONT
   ============================================ */
.hologram-front {
  width: 100%;
  height: 100%;
  position: relative;
}

.hologram-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border: 3px solid #00D8FF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 
    0 0 20px rgba(0, 216, 255, 0.5),
    inset 0 0 20px rgba(0, 216, 255, 0.1);
}

.hologram-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.hologram-frame-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(0, 216, 255, 0.1) 50%,
    transparent 70%
  );
  animation: frameGlow 3s ease-in-out infinite;
}

@keyframes frameGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.hologram-host-name {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #00D8FF;
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 0 0 10px #00D8FF;
  z-index: 10;
}

/* ============================================
   LASER ENGRAVE
   ============================================ */
.laser-engrave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.engrave-name {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  font-weight: 700;
  color: #00D8FF;
  text-shadow: 
    0 0 10px #00D8FF,
    0 0 20px #00D8FF,
    0 0 30px #00D8FF,
    0 0 40px #00D8FF;
  opacity: 0;
  transition: opacity 0.3s ease-in;
  z-index: 21;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.engrave-name.visible {
  opacity: 1;
}

.engrave-name-left {
  left: 25%;
}

.engrave-name-right {
  left: 75%;
}

.laser-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%,
    #00D8FF 20%,
    #FFFFFF 50%,
    #00D8FF 80%,
    transparent 100%
  );
  box-shadow: 0 0 20px #00D8FF, 0 0 40px #00D8FF;
  animation: laserLine 0.7s ease-out forwards;
  z-index: 22;
}

@keyframes laserLine {
  0% {
    width: 0%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

/* ============================================
   AURA GLOW
   ============================================ */
.aura-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

.aura-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  filter: drop-shadow(0 0 var(--glow-intensity, 4px) var(--glow-color, #1AA7FF));
  animation: auraPulse 2s ease-in-out infinite;
}

@keyframes auraPulse {
  0% {
    filter: drop-shadow(0 0 var(--glow-intensity, 4px) var(--glow-color, #1AA7FF));
  }
  50% {
    filter: drop-shadow(0 0 calc(var(--glow-intensity, 4px) * 1.4) var(--glow-color, #1AA7FF));
  }
  100% {
    filter: drop-shadow(0 0 var(--glow-intensity, 4px) var(--glow-color, #1AA7FF));
  }
}

.aura-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--particle-x, 50%) var(--particle-y, 50%),
    var(--glow-color, #1AA7FF) 0%,
    transparent 70%
  );
  opacity: 0.3;
  animation: particleFloat 3s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.1);
  }
}

/* ============================================
   SCORE BARS
   ============================================ */
.pk-arena-score-bars {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  display: flex;
  z-index: 30;
}

.pk-score-bar-left {
  height: 100%;
  background: linear-gradient(90deg, #00D8FF, #00FF7E);
  transition: width 0.3s ease-out;
  box-shadow: 0 0 10px rgba(0, 216, 255, 0.5);
}

.pk-score-bar-right {
  height: 100%;
  background: linear-gradient(90deg, #00FF7E, #00D8FF);
  transition: width 0.3s ease-out;
  box-shadow: 0 0 10px rgba(0, 216, 255, 0.5);
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
.pk-arena-2-container * {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* GPU-Beschleunigung für Animationen */
.pk-slot,
.slot-inner,
.aura-pulse,
.laser-line {
  transform: translateZ(0);
  will-change: transform, opacity;
}

/* PHASE 16: REPLAY SYSTEM STYLES */

/* Highlight Overlay Base */
.pk-highlight-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: highlightFadeIn 0.3s ease-out forwards;
}

@keyframes highlightFadeIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Pulse Effect */
.pk-highlight-pulse {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 216, 255, 0.4) 0%, transparent 70%);
  animation: highlightPulse 0.6s ease-out forwards;
}

@keyframes highlightPulse {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Highlight Text */
.pk-highlight-text {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00D8FF;
  text-shadow: 0 0 20px rgba(0, 216, 255, 0.8), 0 0 40px rgba(0, 216, 255, 0.4);
  margin-top: 20px;
  text-align: center;
  animation: highlightTextGlow 0.6s ease-in-out infinite alternate;
}

@keyframes highlightTextGlow {
  0% {
    text-shadow: 0 0 20px rgba(0, 216, 255, 0.8), 0 0 40px rgba(0, 216, 255, 0.4);
  }
  100% {
    text-shadow: 0 0 30px rgba(0, 216, 255, 1), 0 0 60px rgba(0, 216, 255, 0.6);
  }
}

/* Highlight Score */
.pk-highlight-score {
  font-size: 3rem;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 0 25px rgba(255, 215, 0, 0.9), 0 0 50px rgba(255, 215, 0, 0.5);
  margin-top: 10px;
  animation: highlightScoreBounce 0.6s ease-out;
}

@keyframes highlightScoreBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Highlight Subtext */
.pk-highlight-subtext {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Gift Highlight */
.pk-highlight-gift .pk-highlight-text {
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
}

.pk-highlight-gift .pk-highlight-pulse {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
}

/* Close Battle Highlight */
.pk-highlight-close .pk-highlight-text {
  color: #00D8FF;
}

.pk-highlight-close .pk-highlight-pulse {
  background: radial-gradient(circle, rgba(0, 216, 255, 0.4) 0%, transparent 70%);
}

/* Emotion Burst Highlight */
.pk-highlight-emotion .pk-highlight-text {
  color: #FF0096;
  text-shadow: 0 0 20px rgba(255, 0, 150, 0.8), 0 0 40px rgba(255, 0, 150, 0.4);
}

.pk-highlight-emotion .pk-highlight-pulse {
  background: radial-gradient(circle, rgba(255, 0, 150, 0.4) 0%, transparent 70%);
}

/* Chat Explosion Highlight */
.pk-highlight-chat .pk-highlight-text {
  color: #00FF88;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 40px rgba(0, 255, 136, 0.4);
}

.pk-highlight-chat .pk-highlight-pulse {
  background: radial-gradient(circle, rgba(0, 255, 136, 0.4) 0%, transparent 70%);
}

/* Referee Call Highlight */
.pk-highlight-referee .pk-highlight-text {
  color: #FF6B6B;
  text-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 0 0 40px rgba(255, 107, 107, 0.4);
}

.pk-highlight-referee .pk-highlight-pulse {
  background: radial-gradient(circle, rgba(255, 107, 107, 0.4) 0%, transparent 70%);
}

/* Slow-Motion Overlay (für Highlight-Momente) */
.pk-slowmo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  z-index: 1999;
  pointer-events: none;
  animation: slowmoFade 1.5s ease-out forwards;
}

@keyframes slowmoFade {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Share Composer */
.pk-share-composer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background: rgba(10, 25, 40, 0.95);
  border: 2px solid rgba(0, 216, 255, 0.6);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 0 40px rgba(0, 216, 255, 0.4);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: #fff;
}

.pk-share-composer h2 {
  margin: 0;
  font-size: 2rem;
  text-align: center;
}

.pk-share-composer-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 300px;
}

.pk-share-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(45deg, #00ff88, #05d9ff);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

.pk-share-btn:hover:not(:disabled) {
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.8);
  transform: translateY(-2px);
}

.pk-share-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pk-share-btn-close {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
  border: 1px solid rgba(255, 0, 0, 0.4);
  box-shadow: none;
}

.pk-share-btn-close:hover {
  background: rgba(255, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 600px) {
  .pk-highlight-text {
    font-size: 2rem;
  }
  
  .pk-highlight-score {
    font-size: 2.5rem;
  }
  
  .pk-share-composer {
    padding: 20px;
  }
  
  .pk-share-composer h2 {
    font-size: 1.5rem;
  }
}
/* PHASE 17: COACHING OVERLAY STYLES */

.coach-overlay {
  position: fixed;
  top: 80px;
  left: 20px;
  z-index: 2500;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  /* Safe-Area für iPhone Notch */
  padding-top: env(safe-area-inset-top, 0);
}

/* Coach Card Base */
.coach-card {
  background: rgba(10, 25, 40, 0.95);
  border: 2px solid rgba(0, 216, 255, 0.6);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 20px rgba(0, 216, 255, 0.3);
  animation: coachCardFadeIn 0.4s ease-out forwards;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@keyframes coachCardFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Holographischer Puls-Effekt */
.coach-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 12px;
  background: linear-gradient(45deg, rgba(0, 216, 255, 0.4), rgba(0, 255, 136, 0.4));
  opacity: 0;
  animation: coachPulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes coachPulse {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
}

/* Coach Card Icon */
.coach-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  animation: coachIconGlow 1.5s ease-in-out infinite alternate;
}

@keyframes coachIconGlow {
  0% {
    filter: drop-shadow(0 0 5px rgba(0, 216, 255, 0.5));
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(0, 216, 255, 0.9));
  }
}

/* Coach Card Text */
.coach-card-text {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

/* Hint Styles */
.coach-hint {
  border-color: rgba(0, 216, 255, 0.6);
}

.coach-hint.coach-priority-high {
  border-color: rgba(0, 255, 136, 0.8);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
}

.coach-hint.coach-priority-medium {
  border-color: rgba(0, 216, 255, 0.6);
}

.coach-hint.coach-priority-low {
  border-color: rgba(0, 216, 255, 0.4);
  opacity: 0.8;
}

/* Hint Type Colors */
.coach-hint.coach-type-coaching {
  border-color: rgba(0, 255, 136, 0.7);
}

.coach-hint.coach-type-timing {
  border-color: rgba(255, 215, 0, 0.7);
}

.coach-hint.coach-type-strategy {
  border-color: rgba(255, 0, 150, 0.7);
}

.coach-hint.coach-type-safety {
  border-color: rgba(255, 107, 107, 0.7);
}

/* Warning Styles */
.coach-warning {
  border-color: rgba(255, 107, 107, 0.8);
  box-shadow: 0 0 25px rgba(255, 107, 107, 0.4);
  animation: coachWarningPulse 1s ease-in-out infinite;
}

@keyframes coachWarningPulse {
  0%, 100% {
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.4);
  }
  50% {
    box-shadow: 0 0 35px rgba(255, 107, 107, 0.6);
  }
}

.coach-warning.coach-severity-critical {
  border-color: rgba(255, 0, 0, 1);
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.6);
  background: rgba(40, 10, 10, 0.95);
}

.coach-warning.coach-severity-high {
  border-color: rgba(255, 107, 107, 0.9);
  background: rgba(40, 20, 20, 0.95);
}

.coach-warning.coach-severity-medium {
  border-color: rgba(255, 165, 0, 0.8);
}

.coach-warning.coach-severity-low {
  border-color: rgba(255, 215, 0, 0.7);
}

/* Responsive */
@media (max-width: 600px) {
  .coach-overlay {
    top: 60px;
    left: 10px;
    max-width: calc(100vw - 20px);
  }

  .coach-card {
    padding: 10px 14px;
  }

  .coach-card-text {
    font-size: 0.85rem;
  }

  .coach-card-icon {
    font-size: 1.3rem;
  }
}

/* iPhone Notch Safe Area */
@supports (padding: max(0px)) {
  .coach-overlay {
    top: max(80px, env(safe-area-inset-top, 0px) + 60px);
    left: max(20px, env(safe-area-inset-left, 0px) + 10px);
  }
}


/* 5️⃣ HOST TOOLBAR UNTEN */

.host-toolbar {
  position: fixed;
  bottom: env(safe-area-inset-bottom, 0);
  left: 0;
  width: 100%;
  padding: 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(0, 15, 25, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 2px solid rgba(0, 255, 255, 0.18);
  border-radius: 22px 22px 0 0;
  z-index: 99998;
  gap: 8px;
}

.host-toolbar .toolbar-btn {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-radius: 12px;
  background: rgba(0, 255, 255, 0.1);
  color: #e8ffff;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.host-toolbar .toolbar-btn:hover:not(:disabled) {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
  transform: translateY(-2px);
}

.host-toolbar .toolbar-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.host-toolbar .toolbar-btn:active:not(:disabled) {
  transform: translateY(0);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .host-toolbar {
    padding: 10px 8px;
    gap: 6px;
  }
  
  .host-toolbar .toolbar-btn {
    padding: 8px 6px;
    font-size: 0.7rem;
  }
}

/* 6️⃣ ZUSCHAUER TOOLBAR UNTEN */

.viewer-toolbar {
  position: fixed;
  bottom: env(safe-area-inset-bottom, 0);
  left: 0;
  width: 100%;
  padding: 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(0, 15, 25, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 2px solid rgba(255, 75, 154, 0.18);
  border-radius: 22px 22px 0 0;
  z-index: 99998;
  gap: 8px;
}

.viewer-toolbar .toolbar-btn {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 75, 154, 0.1);
  color: #e8ffff;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 75, 154, 0.2);
}

.viewer-toolbar .toolbar-btn:hover {
  background: rgba(255, 75, 154, 0.2);
  box-shadow: 0 0 12px rgba(255, 75, 154, 0.4);
  transform: translateY(-2px);
}

.viewer-toolbar .toolbar-btn:active {
  transform: translateY(0);
}

.viewer-toolbar .toolbar-btn-like:hover {
  background: rgba(255, 0, 80, 0.2);
  box-shadow: 0 0 12px rgba(255, 0, 80, 0.4);
}

.viewer-toolbar .toolbar-btn-follow.following {
  background: rgba(0, 255, 120, 0.2);
  border-color: rgba(0, 255, 120, 0.4);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .viewer-toolbar {
    padding: 10px 8px;
    gap: 6px;
  }
  
  .viewer-toolbar .toolbar-btn {
    padding: 8px 6px;
    font-size: 0.7rem;
  }
}

/* 🔟 AI Referee Badge integrieren */

.ai-referee-badge {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0) + 60px);
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: rgba(0, 15, 25, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(0, 255, 255, 0.4);
  border-radius: 25px;
  color: rgba(0, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 99996;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.3),
    inset 0 0 15px rgba(0, 255, 255, 0.1);
  animation: refereePulse 2s infinite ease-in-out;
}

.ai-referee-badge::before {
  content: "⚖️";
  font-size: 1.2rem;
}

.ai-referee-badge .fairness-score {
  color: rgba(0, 255, 120, 0.9);
  font-weight: 700;
}

@keyframes refereePulse {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(0, 255, 255, 0.3),
      inset 0 0 15px rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.4);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(0, 255, 255, 0.5),
      inset 0 0 25px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.6);
  }
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .ai-referee-badge {
    top: calc(env(safe-area-inset-top, 0) + 50px);
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}


/* 1️⃣1️⃣ CHAT HEATMAP ANIMATION */

.chat-box {
  --heat: 0;
  transition: box-shadow 0.3s ease;
}

.chat-box.heatmap-active {
  box-shadow: 0 0 calc(16px * var(--heat)) rgba(0, 255, 255, 0.45);
}

/* Heatmap-Levels */
.chat-box.heatmap-level-0 {
  --heat: 0;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.chat-box.heatmap-level-1 {
  --heat: 0.25;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.chat-box.heatmap-level-2 {
  --heat: 0.5;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
}

.chat-box.heatmap-level-3 {
  --heat: 0.75;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
}

.chat-box.heatmap-level-4 {
  --heat: 1;
  box-shadow: 0 0 60px rgba(0, 255, 255, 0.6);
}

/* Animation für Heatmap-Übergänge */
@keyframes heatmapPulse {
  0%, 100% {
    box-shadow: 0 0 calc(16px * var(--heat)) rgba(0, 255, 255, 0.45);
  }
  50% {
    box-shadow: 0 0 calc(20px * var(--heat)) rgba(0, 255, 255, 0.6);
  }
}

.chat-box.heatmap-active {
  animation: heatmapPulse 2s infinite ease-in-out;
}


/* 4️⃣ Header bereinigen & neues X-Icon einbauen */

.live-exit-btn {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  right: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 300;
  color: #ff4f4f;
  z-index: 99999;
  cursor: pointer;
  text-shadow: 0 0 14px #ff1a1a;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 79, 79, 0.3);
  transition: all 0.3s ease;
}

.live-exit-btn:hover {
  background: rgba(255, 79, 79, 0.2);
  box-shadow: 0 0 20px rgba(255, 26, 26, 0.6);
  transform: scale(1.1);
}

.live-exit-btn:active {
  transform: scale(0.95);
}

/* 7️⃣ CHAT EINGABELEISTE RICHTIG PLATZIEREN */

.chat-input-wrapper {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0) + 90px);
  width: 100%;
  padding: 0 12px;
  z-index: 99997;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-input-wrapper input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  background: rgba(0, 10, 25, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e8ffff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.chat-input-wrapper input:focus {
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.chat-input-wrapper input::placeholder {
  color: rgba(232, 255, 255, 0.5);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .chat-input-wrapper {
    bottom: calc(env(safe-area-inset-bottom, 0) + 80px);
    padding: 0 10px;
  }
}

/* =============================================== */
/* 🎲 DICE ANIMATION - TRANSPARENT & KOMPAKT      */
/* =============================================== */

.dice-container {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  padding: 8px;
  background: transparent;
  border-radius: 8px;
}

.dice {
  width: 28px;
  height: 28px;
  background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
  border: 2px solid #1e9bff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.dice.active {
  border-color: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
  cursor: pointer;
}

.dice.active:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

.dice.held {
  border-color: #ffaa00;
  background: linear-gradient(145deg, #3a3a4a, #2a2a3a);
  box-shadow: 0 0 15px rgba(255, 170, 0, 0.5);
}

.dice.rolling {
  animation: roll 0.4s ease-in-out infinite;
}

@keyframes roll {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(0.9); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(0.9); }
}

.dice-face {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 3px;
  gap: 1px;
}

.dot {
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.dot.center {
  grid-column: 2;
  grid-row: 2;
}

.dot.top-left {
  grid-column: 1;
  grid-row: 1;
}

.dot.top-right {
  grid-column: 3;
  grid-row: 1;
}

.dot.middle-left {
  grid-column: 1;
  grid-row: 2;
}

.dot.middle-right {
  grid-column: 3;
  grid-row: 2;
}

.dot.bottom-left {
  grid-column: 1;
  grid-row: 3;
}

.dot.bottom-right {
  grid-column: 3;
  grid-row: 3;
}

.hold-indicator {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 10px;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* =============================================== */
/* 🎨 WÜRFEL SET FARBEN                           */
/* =============================================== */

/* Classic Red */
.dice.set-classic-red,
.dice-container.set-classic-red .dice {
  background: linear-gradient(145deg, #cc2222, #881111);
  border-color: #ff4444;
}
.dice.set-classic-red .dot,
.dice-container.set-classic-red .dot {
  background: #fff;
}

/* Levi Neon Blue (Default) */
.dice.set-levi-neon-blue,
.dice-container.set-levi-neon-blue .dice {
  background: linear-gradient(145deg, #1a4a7a, #0a2a4a);
  border-color: #1e9bff;
  box-shadow: 0 0 15px rgba(30, 155, 255, 0.4);
}
.dice.set-levi-neon-blue .dot,
.dice-container.set-levi-neon-blue .dot {
  background: #1e9bff;
  box-shadow: 0 0 5px rgba(30, 155, 255, 0.8);
}

/* Matrix Green */
.dice.set-matrix-green,
.dice-container.set-matrix-green .dice {
  background: linear-gradient(145deg, #0a3a0a, #052005);
  border-color: #00ff00;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}
.dice.set-matrix-green .dot,
.dice-container.set-matrix-green .dot {
  background: #00ff00;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
}

/* Carbon Black */
.dice.set-carbon-black,
.dice-container.set-carbon-black .dice {
  background: linear-gradient(145deg, #2a2a2a, #0a0a0a);
  border-color: #444;
}
.dice.set-carbon-black .dot,
.dice-container.set-carbon-black .dot {
  background: #888;
}

/* Gold Premium */
.dice.set-gold-premium,
.dice-container.set-gold-premium .dice {
  background: linear-gradient(145deg, #c9a227, #8b6914);
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}
.dice.set-gold-premium .dot,
.dice-container.set-gold-premium .dot {
  background: #fff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Crystal Purple */
.dice.set-crystal-purple,
.dice-container.set-crystal-purple .dice {
  background: linear-gradient(145deg, #6a2c91, #3d1a54);
  border-color: #9b59b6;
  box-shadow: 0 0 15px rgba(155, 89, 182, 0.4);
}
.dice.set-crystal-purple .dot,
.dice-container.set-crystal-purple .dot {
  background: #e8d5f2;
  box-shadow: 0 0 5px rgba(155, 89, 182, 0.8);
}

/* Ice Set */
.dice.set-ice,
.dice-container.set-ice .dice {
  background: linear-gradient(145deg, #a8d8ea, #6bb3d1);
  border-color: #e0f7fa;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
.dice.set-ice .dot,
.dice-container.set-ice .dot {
  background: #fff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
}

/* Rainbow Set */
.dice.set-rainbow,
.dice-container.set-rainbow .dice {
  background: linear-gradient(135deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #8b00ff);
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}
.dice.set-rainbow .dot,
.dice-container.set-rainbow .dot {
  background: #fff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 1);
}

/* Fire Set */
.dice.set-fire,
.dice-container.set-fire .dice {
  background: linear-gradient(145deg, #ff4500, #8b0000);
  border-color: #ff6600;
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
  animation: fire-glow 2s ease-in-out infinite;
}
.dice.set-fire .dot,
.dice-container.set-fire .dot {
  background: #ffff00;
  box-shadow: 0 0 8px rgba(255, 255, 0, 0.8);
}

@keyframes fire-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 69, 0, 0.5); }
  50% { box-shadow: 0 0 30px rgba(255, 100, 0, 0.8); }
}

/* =============================================== */
/* HELD STATE (überschreibt Set-Farben)           */
/* =============================================== */

.dice.held {
  border-color: #ffaa00 !important;
  box-shadow: 0 0 15px rgba(255, 170, 0, 0.6) !important;
}

.dice.held::after {
  content: '🔒';
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 8px;
}
/* =============================================== */
/* 📊 SCOREBOARD - KOMPAKTES DESIGN               */
/* =============================================== */

.score-board {
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(30, 155, 255, 0.4);
  border-radius: 12px;
  padding: 10px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #1e9bff;
}

.score-header h3 {
  margin: 0;
  color: #1e9bff;
  font-size: 13px;
}

.round-info {
  color: #00ff88;
  font-weight: bold;
  font-size: 11px;
}

.score-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.score-row {
  display: grid;
  grid-template-columns: 100px repeat(auto-fit, minmax(50px, 1fr));
  gap: 5px;
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 11px;
}

.score-row.header {
  background: rgba(30, 155, 255, 0.2);
  font-weight: bold;
  border-bottom: 1px solid #1e9bff;
  font-size: 10px;
}

.score-row.selectable {
  cursor: pointer;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.score-row.selectable:hover {
  background: rgba(0, 255, 136, 0.25);
  border-color: #00ff88;
}

.score-row.used {
  opacity: 0.5;
}

.score-row.total {
  background: rgba(255, 170, 0, 0.2);
  border-top: 1px solid #ffaa00;
  font-weight: bold;
  margin-top: 6px;
  font-size: 12px;
}

.score-category {
  color: #ccc;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-player {
  text-align: center;
  font-size: 10px;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-player.active {
  color: #00ff88;
  font-weight: bold;
}

.score-value {
  text-align: center;
  font-size: 12px;
  color: #fff;
}

.score-value.total-value {
  color: #ffaa00;
  font-size: 14px;
}

/* Scrollbar styling */
.score-board::-webkit-scrollbar {
  width: 4px;
}

.score-board::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
}

.score-board::-webkit-scrollbar-thumb {
  background: #1e9bff;
  border-radius: 2px;
}

/* Mobile */
@media (max-width: 500px) {
  .score-row {
    grid-template-columns: 80px repeat(auto-fit, minmax(40px, 1fr));
    padding: 4px 6px;
    font-size: 10px;
  }
  
  .score-category {
    font-size: 10px;
  }
  
  .score-value {
    font-size: 11px;
  }
}
/* =============================================== */
/* 🎯 TURN OVERLAY - KOMPAKT & TRANSPARENT        */
/* =============================================== */

.turn-overlay {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(10, 10, 26, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(30, 155, 255, 0.5);
  border-radius: 8px;
  padding: 6px 15px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-family: 'Orbitron', sans-serif;
}

.turn-overlay.my-turn {
  border-color: rgba(0, 255, 136, 0.7);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
  }
}

.turn-content {
  position: relative;
}

.turn-glow {
  display: none; /* Versteckt für kompaktes Design */
}

.turn-title {
  margin: 0;
  color: #1e9bff;
  font-size: 12px;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.turn-overlay.my-turn .turn-title {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.turn-subtitle {
  margin: 2px 0 0 0;
  color: rgba(170, 170, 170, 0.8);
  font-size: 9px;
  position: relative;
  z-index: 1;
}

.turn-overlay.my-turn .turn-subtitle {
  color: rgba(0, 255, 136, 0.8);
}
.round-summary {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.round-summary.visible {
  opacity: 1;
  pointer-events: all;
}

.round-summary-content {
  background: linear-gradient(145deg, #1a1a2a, #2a2a3a);
  border: 3px solid #1e9bff;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slide-in 0.3s ease;
}

@keyframes slide-in {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.round-summary-content h2 {
  margin: 0 0 30px 0;
  color: #1e9bff;
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  text-shadow: 0 0 20px rgba(30, 155, 255, 0.5);
}

.round-scores {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.round-player {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(30, 155, 255, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(30, 155, 255, 0.3);
}

.round-player .rank {
  font-size: 24px;
  font-weight: bold;
  color: #ffaa00;
  min-width: 40px;
}

.round-player .name {
  flex: 1;
  text-align: left;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.round-player .score {
  color: #00ff88;
  font-size: 20px;
  font-weight: bold;
  min-width: 100px;
}

.round-next {
  color: #aaa;
  font-size: 14px;
  font-style: italic;
}



/* =============================================== */
/* 🎲 KNIFFEL V2 UI - FULLSCREEN TRANSPARENT      */
/* Überlagert den Stream, Elemente frei platziert */
/* =============================================== */

.kniffel-ui {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  z-index: 9000;
  overflow: hidden;
  pointer-events: none; /* Erlaubt Klicks durch auf Video/Chat */
}

/* Interaktive Elemente bekommen pointer-events zurück */
.kniffel-ui button,
.kniffel-ui .game-controls,
.kniffel-ui .scoreboard,
.kniffel-ui .dice-container,
.kniffel-ui .layout-element,
.kniffel-ui .lobby-content,
.kniffel-ui .game-end-content,
.kniffel-ui .turn-overlay,
.kniffel-ui input,
.kniffel-ui select {
  pointer-events: auto;
}

.kniffel-ui.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loading-spinner {
  font-size: 20px;
  color: #1e9bff;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* =============================================== */
/* LOBBY STYLES - KOMPAKT                         */
/* =============================================== */

.kniffel-ui.lobby {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lobby-content {
  padding: 25px;
  text-align: center;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  border: 2px solid rgba(30, 155, 255, 0.4);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  width: 90%;
  pointer-events: auto;
}

.lobby-content h2 {
  margin: 0 0 15px 0;
  color: #1e9bff;
  font-size: 22px;
  text-shadow: 0 0 15px rgba(30, 155, 255, 0.5);
}

.lobby-players {
  margin-bottom: 15px;
}

.lobby-players h3 {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 10px;
}

.player-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(30, 155, 255, 0.1);
  border: 1px solid rgba(30, 155, 255, 0.3);
  border-radius: 8px;
}

.player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #1e9bff;
  flex-shrink: 0;
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
  font-size: 16px;
  font-weight: bold;
  color: #1e9bff;
}

.player-info {
  flex: 1;
  text-align: left;
}

.player-name {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  display: block;
}

.host-badge {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 6px;
  background: #ff0000;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  border-radius: 3px;
}

/* Buttons - kompakter */
.btn-primary, .btn-start, .btn-roll, .btn-finish {
  padding: 10px 20px;
  background: linear-gradient(145deg, #1e9bff, #0d7acc);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(30, 155, 255, 0.3);
  margin: 5px;
}

.btn-primary:hover, .btn-start:hover, .btn-roll:hover, .btn-finish:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(30, 155, 255, 0.5);
}

.btn-start {
  background: linear-gradient(145deg, #00ff88, #00cc6a);
  box-shadow: 0 3px 10px rgba(0, 255, 136, 0.3);
}

.btn-roll {
  background: linear-gradient(145deg, #ffaa00, #cc8800);
  box-shadow: 0 3px 10px rgba(255, 170, 0, 0.3);
}

.btn-roll:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-finish {
  background: linear-gradient(145deg, #ff4444, #cc0000);
  box-shadow: 0 3px 10px rgba(255, 68, 68, 0.3);
}

.waiting-message {
  margin-top: 10px;
  color: #aaa;
  font-size: 12px;
}

/* =============================================== */
/* GAME STYLES - KOMPAKT                          */
/* =============================================== */

.kniffel-ui.game {
  width: 650px;
  max-width: 95vw;
}

.game-content {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  padding: 15px;
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(30, 155, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  max-width: 95vw;
  pointer-events: auto;
}

.game-ki-sidebar {
  display: none; /* Versteckt für kompaktes Layout */
}

.game-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wait-message {
  padding: 8px 15px;
  background: rgba(170, 170, 170, 0.2);
  border: 1px solid rgba(170, 170, 170, 0.3);
  border-radius: 6px;
  color: #aaa;
  font-size: 12px;
  text-align: center;
}

.game-sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* =============================================== */
/* GAME END STYLES - KOMPAKT                      */
/* =============================================== */

.kniffel-ui.game-end {
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-end-content {
  padding: 30px;
  text-align: center;
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  border: 2px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 8px 40px rgba(255, 215, 0, 0.3);
  max-width: 450px;
  width: 90%;
  pointer-events: auto;
}

.game-end-content h2 {
  margin: 0 0 20px 0;
  color: #ffaa00;
  font-size: 26px;
  text-shadow: 0 0 15px rgba(255, 170, 0, 0.5);
}

.winner {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 170, 0, 0.1);
  border-radius: 12px;
  border: 2px solid #ffaa00;
}

.winner h3 {
  margin: 0 0 8px 0;
  color: #ffaa00;
  font-size: 18px;
}

.winner-score {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.final-scores {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.final-score-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(30, 155, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(30, 155, 255, 0.3);
}

.final-score-item .rank {
  font-size: 16px;
  font-weight: bold;
  color: #1e9bff;
  min-width: 30px;
}

.final-score-item .name {
  flex: 1;
  text-align: left;
  color: #fff;
  font-size: 14px;
}

.final-score-item .score {
  color: #00ff88;
  font-size: 16px;
  font-weight: bold;
}

/* =============================================== */
/* JOIN REQUESTS - KOMPAKT                        */
/* =============================================== */

.join-requests {
  margin-bottom: 15px;
  padding: 12px;
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid #ffaa00;
  border-radius: 10px;
}

.join-requests h3 {
  margin: 0 0 10px 0;
  color: #ffaa00;
  font-size: 14px;
  text-align: left;
}

.join-request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  margin-bottom: 6px;
}

.join-request-item:last-child {
  margin-bottom: 0;
}

.join-request-item span {
  flex: 1;
  color: #fff;
  font-size: 13px;
}

.request-actions {
  display: flex;
  gap: 6px;
}

.btn-accept, .btn-reject {
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-accept {
  background: linear-gradient(145deg, #00ff88, #00cc6a);
}

.btn-reject {
  background: linear-gradient(145deg, #ff4444, #cc0000);
}

.info-message {
  margin-top: 10px;
  padding: 10px;
  background: rgba(170, 170, 170, 0.1);
  border: 1px solid rgba(170, 170, 170, 0.3);
  border-radius: 6px;
  color: #aaa;
  font-size: 11px;
}

/* =============================================== */
/* SET-AUSWAHL - KOMPAKT                          */
/* =============================================== */

.set-selection-section {
  margin-bottom: 15px;
  padding: 12px;
  background: rgba(30, 155, 255, 0.1);
  border: 2px dashed rgba(30, 155, 255, 0.5);
  border-radius: 10px;
}

.btn-set-select {
  padding: 10px 20px;
  background: linear-gradient(145deg, #9b59b6, #8e44ad);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(155, 89, 182, 0.3);
}

.btn-set-select:hover {
  transform: translateY(-1px);
}

.btn-set-select.selected {
  background: linear-gradient(145deg, #27ae60, #229954);
}

.set-hint {
  margin-top: 8px;
  color: #ffaa00;
  font-size: 11px;
}

.set-selection-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 500px;
  max-width: 95vw;
  max-height: 80vh;
}

/* =============================================== */
/* TURN OVERLAY - KOMPAKT                         */
/* =============================================== */

.turn-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(180deg, rgba(30, 155, 255, 0.3), transparent);
  text-align: center;
  font-size: 12px;
  z-index: 10;
}

/* =============================================== */
/* KI-KOMMENTATOR - KOMPAKT UNTEN                 */
/* =============================================== */

.kniffel-ai-commentator {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #1e9bff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  z-index: 20;
}

/* =============================================== */
/* RESPONSIVE - MOBILE                            */
/* =============================================== */

@media (max-width: 700px) {
  .kniffel-ui.game {
    width: 95vw;
  }
  
  .game-content {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }
  
  .game-sidebar {
    width: 100%;
  }
  
  .game-main {
    order: -1;
  }
}

@media (max-width: 450px) {
  .kniffel-ui.lobby {
    width: 95vw;
  }
  
  .lobby-content {
    padding: 15px;
  }
  
  .lobby-content h2 {
    font-size: 18px;
  }
  
  .btn-primary, .btn-start, .btn-roll, .btn-finish {
    padding: 8px 15px;
    font-size: 12px;
  }
}

/* iPhone Safe Area */
@supports (padding-top: env(safe-area-inset-top)) {
  .kniffel-ui {
    margin-top: env(safe-area-inset-top);
  }
}

/* =============================================== */
/* 🎨 CUSTOM LAYOUT MODE - Admin-gesteuert        */
/* =============================================== */

.kniffel-ui.custom-layout {
  /* Bereits Fullscreen durch .kniffel-ui */
}

.custom-layout-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.layout-element {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(10, 10, 26, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(30, 155, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.layout-element:hover {
  border-color: rgba(30, 155, 255, 0.5);
  box-shadow: 0 4px 25px rgba(30, 155, 255, 0.2);
}

/* Turn Indicator Wrapper */
.turn-indicator-wrapper {
  z-index: 100;
}

.kniffel-ui.custom-layout .turn-indicator-wrapper {
  position: absolute;
}

/* AI Commentator Wrapper */
.ai-commentator-wrapper {
  z-index: 90;
}

.kniffel-ui.custom-layout .ai-commentator-wrapper {
  position: absolute;
}

/* Round Info */
.round-info-wrapper {
  z-index: 80;
}

.kniffel-ui.custom-layout .round-info-wrapper {
  position: absolute;
}

.round-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30, 155, 255, 0.2), rgba(30, 155, 255, 0.1));
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
}

.round-info .round-label {
  font-size: 10px;
  opacity: 0.7;
  text-transform: uppercase;
}

.round-info .round-number {
  font-size: 16px;
  font-weight: bold;
  color: #1e9bff;
}

/* Layout Element Specifics */
.dice-element {
  background: rgba(255, 170, 0, 0.1);
  border-color: rgba(255, 170, 0, 0.3);
}

.scoreboard-element {
  background: rgba(30, 155, 255, 0.1);
  border-color: rgba(30, 155, 255, 0.3);
  overflow-y: auto;
}

.controls-element {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
}

.karma-element,
.aura-element {
  flex-direction: column;
}

.audience-element {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.3);
}

.vault-element {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
}

.vault-coins-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.vault-coins-display .vault-icon {
  font-size: 20px;
}

.vault-coins-display .vault-amount {
  font-weight: bold;
  color: #ffd700;
}

/* Layout Info Badge */
.layout-info {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  opacity: 0.5;
  z-index: 1000;
}

.layout-info .layout-name {
  color: #1e9bff;
}

/* Responsive Custom Layout */
@media (max-width: 600px) {
  .kniffel-ui.custom-layout {
    width: 95vw;
    height: 85vh;
  }
}
/**
 * SetSelection.css - Set Auswahl Styles
 */

.set-selection {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 20px;
  padding: 1.5rem;
  color: white;
  max-height: 80vh;
  overflow-y: auto;
}

.set-selection.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 1rem;
}

.set-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #e94560;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Header */
.set-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.set-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.set-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.set-close:hover {
  background: rgba(233,69,96,0.3);
}

/* Categories */
.set-categories {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.set-category {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border: none;
  border-radius: 20px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.set-category:hover {
  background: rgba(255,255,255,0.1);
}

.set-category.active {
  background: linear-gradient(135deg, #e94560, #ff6b6b);
  color: white;
}

/* Sets Grid */
.sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* Set Card */
.set-card {
  background: rgba(0,0,0,0.3);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.set-card:hover {
  transform: translateY(-5px);
}

.set-card.selected {
  border: 2px solid #4CAF50;
  box-shadow: 0 0 20px rgba(76,175,80,0.3);
}

.set-card.locked {
  opacity: 0.8;
}

/* Preview */
.set-preview {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.set-dice-preview {
  display: flex;
  gap: 0.5rem;
  transform: scale(0.8);
}

.mini-die {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatDie 2s ease-in-out infinite;
}

.mini-die:nth-child(2) { animation-delay: 0.2s; }
.mini-die:nth-child(3) { animation-delay: 0.4s; }
.mini-die:nth-child(4) { animation-delay: 0.6s; }
.mini-die:nth-child(5) { animation-delay: 0.8s; }

@keyframes floatDie {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Locked Overlay */
.set-locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.lock-icon {
  font-size: 2rem;
}

/* Selected Badge */
.set-selected-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: #4CAF50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

/* Info */
.set-info {
  padding: 1rem;
}

.set-name {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.set-description {
  margin: 0 0 0.75rem 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

/* Unlock Info */
.set-unlock-info {
  margin-top: 0.5rem;
}

.unlock-progress {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.unlock-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #e94560, #ff6b6b);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.unlock-text {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
}

/* Actions */
.set-actions {
  padding: 0 1rem 1rem;
}

.set-btn {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.set-btn.select {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.set-btn.select:hover {
  transform: scale(1.02);
}

.set-btn.selected {
  background: rgba(76,175,80,0.2);
  color: #4CAF50;
  cursor: default;
}

.set-btn.unlock {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
}

.set-btn.unlock:hover:not(:disabled) {
  transform: scale(1.02);
}

.set-btn.locked {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
  .sets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .set-preview {
    height: 100px;
  }
  
  .mini-die {
    width: 24px;
    height: 24px;
  }
}


/**
 * KniffelAICommentator.css - KI-Kommentator Overlay
 */

.kniffel-ai-commentator {
  position: fixed;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(0,0,0,0.8);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(233,69,96,0.3);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 100;
  max-width: 90%;
}

.kniffel-ai-commentator.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.kniffel-ai-commentator.exiting {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
}

.kniffel-ai-commentator.high-priority {
  border-color: #e94560;
  box-shadow: 0 0 30px rgba(233,69,96,0.5);
}

.kniffel-ai-commentator.medium-priority {
  border-color: #FFD700;
  box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.ai-avatar {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-icon {
  font-size: 2rem;
  z-index: 1;
}

.ai-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e94560, #ff6b6b);
  border-radius: 50%;
  animation: aiPulse 2s infinite;
  opacity: 0.3;
}

@keyframes aiPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.3); opacity: 0.1; }
}

.ai-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ai-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ai-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .kniffel-ai-commentator {
    bottom: 15%;
    padding: 0.75rem 1rem;
    border-radius: 30px;
  }
  
  .ai-avatar {
    width: 40px;
    height: 40px;
  }
  
  .ai-icon {
    font-size: 1.5rem;
  }
  
  .ai-text {
    font-size: 0.9rem;
  }
}


/**
 * KniffelBars.css - Karma/Aura Bar Stile
 */

.kniffel-bar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 120px;
}

.bar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.bar-icon {
  font-size: 1rem;
}

.bar-label {
  color: rgba(255,255,255,0.7);
}

.bar-value {
  margin-left: auto;
  font-weight: bold;
  font-size: 0.9rem;
}

.bar-track {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease, background 0.5s ease;
}

.bar-fill.karma {
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.bar-fill.aura {
  background: linear-gradient(90deg, #9C27B0, #E91E63);
}

.bar-level {
  font-size: 0.7rem;
  text-align: right;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .kniffel-bar {
    min-width: 100px;
  }
  
  .bar-header {
    font-size: 0.7rem;
  }
  
  .bar-track {
    height: 4px;
  }
}


/**
 * KniffelPowerUps.css - Power-Up Leiste Stile
 */

.kniffel-powerups {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(0,0,0,0.3);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  max-width: 400px;
}

.kniffel-powerups.empty {
  align-items: center;
  padding: 1.5rem;
}

.powerup-hint {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  text-align: center;
}

.powerups-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.powerups-icon {
  font-size: 1.2rem;
}

.powerups-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e94560;
}

.powerups-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.powerup-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 2px solid var(--powerup-color, #e94560);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-size: 0.85rem;
}

.powerup-item.active:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--powerup-color, rgba(233,69,96,0.5));
}

.powerup-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.powerup-icon {
  font-size: 1.2rem;
}

.powerup-name {
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .kniffel-powerups {
    padding: 0.75rem;
    max-width: 100%;
  }
  
  .powerup-item {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}


/**
 * KniffelAudiencePanel.css - Zuschauer-Panel Stile
 */

.kniffel-audience-panel {
  background: rgba(0,0,0,0.3);
  border-radius: 15px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}

.panel-icon {
  font-size: 1.25rem;
}

.panel-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #e94560;
}

/* Voting Section */
.voting-section {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.voting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.vote-count {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

.voting-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.voting-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.voting-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.voting-rank {
  color: rgba(255,255,255,0.5);
  min-width: 20px;
}

.voting-option {
  flex: 1;
  text-transform: capitalize;
}

.voting-percent {
  color: #e94560;
  font-weight: bold;
}

.voting-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.voting-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #9C27B0, #E91E63);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.voting-bar-fill.winner {
  background: linear-gradient(90deg, #FFD700, #FFA500);
}

/* Commands Section */
.commands-section {
  margin-bottom: 1rem;
}

.commands-header {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.8);
}

.commands-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.command-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  font-size: 0.8rem;
}

.command-item code {
  background: rgba(233,69,96,0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  color: #e94560;
  font-family: 'Fira Code', monospace;
}

.command-item span {
  color: rgba(255,255,255,0.6);
}

/* Audience Info */
.audience-info {
  text-align: center;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(156,39,176,0.1), rgba(233,30,99,0.1));
  border-radius: 10px;
  border: 1px solid rgba(156,39,176,0.2);
}

.audience-info p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 768px) {
  .kniffel-audience-panel {
    padding: 0.75rem;
  }
  
  .command-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}


.soundfx-panel {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(2, 8, 24, 0.95);
  border: 1px solid #00d4ff55;
  border-radius: 16px;
  padding: 20px;
  min-width: 400px;
  max-width: 600px;
  z-index: 10006;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(10px);
}

.soundfx-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #00d4ff33;
}

.soundfx-header h3 {
  margin: 0;
  color: #00d4ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
}

.fx-close-btn {
  background: transparent;
  border: none;
  color: #00d4ff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.fx-close-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: rotate(90deg);
}

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

.fx-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid #00d4ff33;
  border-radius: 12px;
  color: #00d4ff;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
}

.fx-button:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.fx-button.playing {
  background: rgba(0, 255, 170, 0.3);
  border-color: #00ffaa;
  animation: fxPulse 0.5s ease;
}

@keyframes fxPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.fx-icon {
  font-size: 24px;
}

.fx-name {
  font-size: 12px;
  text-transform: capitalize;
}

/* Kachel-Filter */
.soundfx-tiles-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #00d4ff33;
}

.tile-filter-btn {
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
  display: flex;
  align-items: center;
}

.tile-filter-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

.tile-filter-btn.active {
  background: rgba(0, 212, 255, 0.3);
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Kachel-Sektionen */
.soundfx-content {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.soundfx-tile-section {
  margin-bottom: 24px;
}

.soundfx-tile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(0, 212, 255, 0.05);
  border-left: 4px solid;
  border-radius: 8px;
  border-color: #00d4ff33;
}

.soundfx-tile-header h4 {
  margin: 0;
  color: #00d4ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
}

.tile-icon-large {
  font-size: 24px;
  line-height: 1;
}

.fx-wheel-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(2, 8, 24, 0.95);
  border: 1px solid #00d4ff55;
  border-radius: 16px;
  padding: 30px;
  z-index: 10006;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(10px);
  text-align: center;
}

.fx-wheel-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 20px;
}

.fx-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #00d4ff;
  position: relative;
  overflow: hidden;
  background: conic-gradient(
    from 0deg,
    #00d4ff 0deg,
    #00ffaa 60deg,
    #ff00ff 120deg,
    #ff4444 180deg,
    #ffaa00 240deg,
    #00d4ff 300deg,
    #00d4ff 360deg
  );
  transition: transform 2s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.fx-wheel.spinning {
  transition: transform 2s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.fx-wheel-item {
  position: absolute;
  width: 50%;
  height: 50%;
  left: 50%;
  top: 0;
  transform-origin: 0 100%;
  border-right: 2px solid rgba(0, 0, 0, 0.3);
}

.fx-wheel-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  color: #000;
  font-weight: bold;
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

.fx-wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  color: #00d4ff;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.fx-wheel-spin-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #00d4ff 0%, #00ffaa 100%);
  border: none;
  border-radius: 12px;
  color: #000;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.fx-wheel-spin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 212, 255, 0.6);
}

.fx-wheel-spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fx-wheel-result {
  margin-top: 16px;
  padding: 12px;
  background: rgba(0, 255, 170, 0.2);
  border: 1px solid #00ffaa;
  border-radius: 8px;
  color: #00ffaa;
  font-family: 'Orbitron', sans-serif;
}

.audio-spectrum-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: rgba(2, 8, 24, 0.9);
  border: 1px solid #00d4ff55;
  border-radius: 12px;
  padding: 12px;
  z-index: 10006;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(10px);
}

.audio-spectrum-canvas {
  display: block;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
}

.kivfx-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10006;
}

.kivfx-controls {
  position: fixed;
  bottom: 80px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
  z-index: 10006;
}

.kivfx-button {
  padding: 10px 16px;
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid #00d4ff;
  border-radius: 8px;
  color: #00d4ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: capitalize;
}

.kivfx-button:hover {
  background: rgba(0, 212, 255, 0.3);
  transform: translateX(4px);
}

.kivfx-button.active {
  background: rgba(0, 255, 170, 0.3);
  border-color: #00ffaa;
  color: #00ffaa;
}

.kivfx-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fxmarket-wrapper {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 24, 0.98);
  padding: 20px;
  overflow-y: auto;
  z-index: 10005;
  backdrop-filter: blur(10px);
}

.fxmarket-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #00d4ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
}

.fxmarket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #00d4ff33;
}

.fxmarket-header h2 {
  margin: 0;
  color: #00d4ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
}

.fxmarket-close {
  background: transparent;
  border: none;
  color: #00d4ff;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.fxmarket-close:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: rotate(90deg);
}

.fxmarket-section {
  margin-bottom: 32px;
}

.fxmarket-section h3 {
  color: #00d4ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  margin-bottom: 16px;
}

.fxmarket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.fxmarket-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #00d4ff55;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.22);
  transition: all 0.3s;
}

.fxmarket-card:hover {
  border-color: #00d4ff;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  transform: translateY(-4px);
}

.fxmarket-card.recommended {
  border-color: #00ffaa;
  box-shadow: 0 0 25px rgba(0, 255, 170, 0.3);
}

.fxmarket-card h3 {
  margin: 0 0 8px 0;
  color: #00d4ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
}

.fxmarket-card p {
  margin: 0 0 12px 0;
  color: #aaa;
  font-size: 13px;
}

.fxmarket-progress {
  padding: 8px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 6px;
  color: #00d4ff;
  font-size: 12px;
  margin-bottom: 12px;
  text-align: center;
}

.fxmarket-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.fx-preview-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #00d4ff33;
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: capitalize;
  font-family: 'Orbitron', sans-serif;
}

.fx-preview-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  transform: scale(1.05);
}

.fx-preview-btn.owned {
  background: rgba(0, 255, 170, 0.2);
  border-color: #00ffaa;
  color: #00ffaa;
}

.fxmarket-price {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.fx-buy-btn {
  flex: 1;
  padding: 10px 16px;
  background: linear-gradient(135deg, #00d4ff 0%, #00b894 100%);
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
}

.fx-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.fx-buy-btn-diamond {
  flex: 1;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ff00ff 0%, #ff4444 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
}

.fx-buy-btn-diamond:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 255, 0.4);
}

.fx-owned-badge {
  padding: 10px;
  background: rgba(0, 255, 170, 0.2);
  border: 1px solid #00ffaa;
  border-radius: 8px;
  color: #00ffaa;
  font-weight: bold;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  margin-top: 12px;
}

.fx-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10004;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.fx-menu-container {
  background: rgba(2, 8, 24, 0.98);
  border: 2px solid #00d4ff;
  border-radius: 20px;
  padding: 30px;
  min-width: 500px;
  max-width: 700px;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
  backdrop-filter: blur(10px);
}

.fx-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #00d4ff33;
}

.fx-menu-header h2 {
  margin: 0;
  color: #00d4ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
}

.fx-menu-close {
  background: transparent;
  border: none;
  color: #00d4ff;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.fx-menu-close:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: rotate(90deg);
}

.fx-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.fx-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(0, 212, 255, 0.1);
  border: 2px solid #00d4ff33;
  border-radius: 16px;
  color: #00d4ff;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
}

.fx-menu-item:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.fx-menu-item.active {
  background: rgba(0, 255, 170, 0.2);
  border-color: #00ffaa;
  color: #00ffaa;
}

.fx-menu-icon {
  font-size: 48px;
  line-height: 1;
}

.fx-menu-label {
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.host-music-player {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  padding: 24px;
  z-index: 10000;
  overflow-y: auto;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.2);
}

.music-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.music-player-header h2 {
  color: #00d4ff;
  margin: 0;
  font-size: 24px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 68, 68, 0.2);
  border: 1px solid rgba(255, 68, 68, 0.5);
  color: #ff4444;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: rgba(255, 68, 68, 0.3);
  transform: scale(1.1);
}

.music-mini-player {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mini-player-cover {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e9bff 0%, #00a8ff 100%);
  flex-shrink: 0;
}

.waveform-visualization {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.waveform-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
}

.waveform-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1px;
  animation: waveform 1s ease-in-out infinite;
}

@keyframes waveform {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.mini-player-info {
  flex: 1;
  min-width: 0;
}

.track-name {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-artist {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  margin-bottom: 2px;
  font-weight: bold;
}

.track-genre {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.mini-player-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.play-pause-btn,
.next-btn,
.shuffle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: #00d4ff;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.play-pause-btn:hover,
.next-btn:hover,
.shuffle-btn:hover {
  background: rgba(0, 212, 255, 0.3);
  transform: scale(1.1);
}

.play-pause-btn:disabled,
.next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.play-pause-btn.playing {
  background: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.shuffle-btn.active {
  background: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* WICHTIG: 3 separate Volume-Controls für Host/Gäste/Viewer */
.volume-controls-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
}

.volume-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.volume-control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.volume-control-header span {
  color: #00d4ff;
  font-size: 14px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
}

.volume-lock-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #00d4ff;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0;
}

.volume-lock-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: scale(1.1);
}

.volume-lock-btn.locked {
  background: rgba(0, 212, 255, 0.3);
  border-color: #00d4ff;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.volume-control .volume-slider {
  width: 100%;
}

.volume-control span:last-child {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-align: right;
}

.volume-slider {
  flex: 1;
  height: 4px;
  background: rgba(0, 212, 255, 0.2);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #00d4ff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #00d4ff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.volume-hint {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

.artist-selection {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
}

.artist-selection label {
  color: #00d4ff;
  font-size: 14px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
}

.artist-select {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.artist-select:hover {
  border-color: rgba(0, 212, 255, 0.5);
}

.artist-select:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.custom-artist-input {
  display: flex;
  gap: 8px;
  align-items: center;
}

.custom-artist-input input {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  min-width: 200px;
}

.custom-artist-input input:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.custom-artist-input button {
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.5);
  border-radius: 6px;
  color: #00d4ff;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
}

.custom-artist-input button:hover {
  background: rgba(0, 212, 255, 0.3);
}

.genre-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  padding-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.genre-tab {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.genre-tab:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.5);
  color: #00d4ff;
}

.genre-tab.active {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.music-playlist {
  margin-top: 24px;
}

.music-playlist h3 {
  color: #00d4ff;
  margin: 0 0 16px 0;
  font-size: 18px;
}

.playlist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.playlist-item:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.5);
}

.playlist-item.active {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.playlist-item.current {
  border-left: 4px solid #00d4ff;
}

.playlist-item-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: #00d4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.playlist-item.active .playlist-item-number {
  background: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.playlist-item-info {
  flex: 1;
  min-width: 0;
}

.playlist-item-name {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-item-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.playlist-item-playing {
  color: #00d4ff;
  font-size: 16px;
  flex-shrink: 0;
}

.loading,
.empty-state {
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.5);
}

.minimize-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: #00d4ff;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.minimize-btn:hover {
  background: rgba(0, 212, 255, 0.3);
  transform: scale(1.1);
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Mobile Optimierungen */
@media (max-width: 768px) {
  .host-music-player {
    width: 95%;
    max-width: 100%;
    padding: 12px;
    border-radius: 12px;
    max-height: 95vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .music-player-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .music-player-header h2 {
    font-size: 18px;
  }

  .close-btn,
  .minimize-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .music-mini-player {
    flex-direction: column;
    padding: 12px;
    margin-bottom: 16px;
    gap: 12px;
  }

  .mini-player-cover {
    width: 60px;
    height: 60px;
  }

  .mini-player-info {
    width: 100%;
    text-align: center;
  }

  .track-name {
    font-size: 14px;
  }

  .track-artist {
    font-size: 11px;
  }

  .track-genre {
    font-size: 10px;
  }

  .mini-player-controls {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  .play-pause-btn,
  .next-btn,
  .shuffle-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .volume-controls-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    margin-top: 12px;
  }

  .volume-control {
    flex: 1;
    min-width: calc(50% - 6px);
    gap: 6px;
  }

  .volume-control-header span {
    font-size: 12px;
  }

  .volume-control span:last-child {
    font-size: 11px;
  }

  .volume-lock-btn {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .artist-selection {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    margin-bottom: 12px;
  }

  .artist-selection label {
    font-size: 12px;
  }

  .artist-select {
    width: 100%;
    padding: 10px;
    font-size: 13px;
  }

  .custom-artist-input {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .custom-artist-input input {
    width: 100%;
    min-width: 0;
    padding: 10px;
    font-size: 13px;
  }

  .custom-artist-input button {
    width: 100%;
    padding: 10px;
    font-size: 13px;
  }

  .genre-tabs {
    margin-bottom: 16px;
    padding-bottom: 8px;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .genre-tab {
    padding: 6px 12px;
    font-size: 12px;
  }

  .music-playlist {
    margin-top: 16px;
  }

  .music-playlist h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .playlist-items {
    max-height: 300px;
    gap: 6px;
  }

  .playlist-item {
    padding: 10px;
    gap: 8px;
  }

  .playlist-item-number {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .playlist-item-name {
    font-size: 13px;
  }

  .playlist-item-meta {
    font-size: 11px;
  }

  .playlist-item-playing {
    font-size: 14px;
  }

  .loading,
  .empty-state {
    padding: 30px 20px;
    font-size: 14px;
  }
}

/* Sehr kleine Displays (z.B. iPhone SE) */
@media (max-width: 375px) {
  .host-music-player {
    width: 98%;
    padding: 10px;
  }

  .music-player-header h2 {
    font-size: 16px;
  }

  .volume-controls-group {
    flex-direction: column;
  }

  .volume-control {
    min-width: 100%;
  }

  .mini-player-controls {
    gap: 8px;
  }

  .play-pause-btn,
  .next-btn,
  .shuffle-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
.mini-music-player {
  position: fixed;
  bottom: 60px; /* Über HostBottomMenu */
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-top: 2px solid rgba(0, 212, 255, 0.5);
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 212, 255, 0.2);
}

.mini-player-cover {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e9bff 0%, #00a8ff 100%);
  border: 1px solid rgba(0, 212, 255, 0.5);
  cursor: pointer;
  flex-shrink: 0;
}

.mini-player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.waveform-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  padding: 4px;
}

.waveform-bar-mini {
  width: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1px;
  transition: height 0.1s ease;
  animation: waveform-pulse 1s ease-in-out infinite;
}

@keyframes waveform-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.mini-player-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  overflow: hidden;
}

.mini-track-name {
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.mini-track-artist {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-family: 'Orbitron', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mini-control-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: #00d4ff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
}

.mini-control-btn:hover {
  background: rgba(0, 212, 255, 0.3);
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  transform: scale(1.1);
}

.mini-player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}

.volume-icon {
  font-size: 14px;
  color: #00d4ff;
}

.volume-slider {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #00d4ff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #00d4ff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.volume-value {
  color: #00d4ff;
  font-size: 11px;
  font-family: 'Orbitron', sans-serif;
  min-width: 35px;
  text-align: right;
}

.mini-maximize-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #00d4ff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.mini-maximize-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.live-create-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 2000;
}

.live-create-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none; /* Video blockiert keine Klicks */
}

.live-create-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.95) 0%,
    rgba(10, 22, 40, 0.85) 50%,
    rgba(10, 22, 40, 0.95) 100%
  );
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  z-index: 2; /* Über dem Video */
  pointer-events: auto; /* Klicks werden verarbeitet */
}

.live-create-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100; /* Sehr hoch für Sichtbarkeit */
  transition: all 0.2s ease;
  pointer-events: auto; /* Explizit klickbar */
}

.live-create-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.live-create-form {
  margin-top: 60px;
  max-width: 500px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: rgba(15, 30, 61, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  position: relative;
  z-index: 50; /* Über dem Overlay */
  pointer-events: auto; /* Klicks werden verarbeitet */
  isolation: isolate; /* Erstellt neuen Stacking Context */
}

.live-create-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-primary);
  text-align: center;
  pointer-events: none; /* Text blockiert keine Klicks */
}

.live-create-input-group {
  margin-bottom: 20px;
  position: relative;
  z-index: 51; /* Über dem Form */
  pointer-events: auto; /* Klicks werden verarbeitet */
}

.live-create-input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none; /* Label blockiert keine Klicks */
}

.live-create-input,
.live-create-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(26, 47, 92, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s ease;
  position: relative;
  z-index: 52; /* Sehr hoch für Sichtbarkeit */
  pointer-events: auto; /* Eingaben werden verarbeitet */
  box-sizing: border-box;
}

.live-create-input:focus,
.live-create-textarea:focus {
  outline: none;
  border-color: var(--color-neon-blue);
  background: rgba(26, 47, 92, 1);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
  z-index: 53; /* Noch höher beim Fokus */
}

.live-create-textarea {
  resize: vertical;
  min-height: 80px;
}

.live-create-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
  z-index: 51;
  pointer-events: auto;
}

.live-create-toggle input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 50px;
  height: 28px;
  background: rgba(26, 47, 92, 0.6);
  border-radius: 14px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 212, 255, 0.3);
  pointer-events: auto;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-secondary);
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
}

.live-create-toggle input[type="checkbox"]:checked + .toggle-slider {
  background: var(--color-neon-blue);
  border-color: var(--color-neon-blue);
}

.live-create-toggle input[type="checkbox"]:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: var(--text-primary);
}

.toggle-label {
  color: var(--text-primary);
  font-weight: 500;
  pointer-events: none;
}

.live-create-next {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--color-neon-blue), var(--color-accent));
  border: none;
  border-radius: 12px;
  color: var(--color-deep-blue);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  position: relative;
  z-index: 51;
  pointer-events: auto;
}

.live-create-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

.live-create-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.live-prepare-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 2000;
}

.live-prepare-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.live-prepare-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.live-prepare-back {
  align-self: flex-start;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.live-prepare-back:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: var(--color-neon-blue);
}

.live-prepare-tools {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  margin-top: auto;
  margin-bottom: 100px;
}

.live-prepare-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 70px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.live-prepare-tool:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--color-neon-blue);
  transform: scale(1.1);
}

.live-prepare-tool svg {
  width: 24px;
  height: 24px;
}

.live-prepare-tool span {
  font-size: 11px;
  font-weight: 500;
}

.live-prepare-start {
  align-self: center;
  width: 200px;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--color-neon-blue), var(--color-accent));
  border: none;
  border-radius: 50px;
  color: var(--color-deep-blue);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
  margin-bottom: 20px;
}

.live-prepare-start:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

.live-prepare-start:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* LiveEndStats - Schwarze Seite mit Kacheln */
.live-end-stats {
  min-height: 100vh;
  background: #020817;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.live-end-stats.loading {
  background: #020817;
}

.live-end-stats-container {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.live-end-stats-container h1 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #00d0ff;
  text-shadow: 0 0 20px rgba(0, 208, 255, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-item {
  background: rgba(0, 208, 255, 0.1);
  border: 2px solid #00d0ff;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.stat-item:hover {
  background: rgba(0, 208, 255, 0.2);
  border-color: #00ffff;
  box-shadow: 0 0 20px rgba(0, 208, 255, 0.3);
  transform: translateY(-5px);
}

.stat-label {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #00d0ff;
  text-shadow: 0 0 10px rgba(0, 208, 255, 0.5);
}

.live-end-stats-container .btn-primary {
  background: #00d0ff;
  color: #020817;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-end-stats-container .btn-primary:hover {
  background: #00ffff;
  box-shadow: 0 0 20px rgba(0, 208, 255, 0.5);
  transform: scale(1.05);
}

.loading-screen {
  font-size: 1.5rem;
  color: #00d0ff;
  text-shadow: 0 0 10px rgba(0, 208, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .live-end-stats-container h1 {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
}

/* VideoPlayer - Fullscreen 9:16 Video-Player (TikTok-Style) */
/* 🍎 iPhone Optimiert: Liquid Glass Design, fließende Animationen */

.video-player-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 🍎 NEUESTE METHODE: Liquid Glass Design - Transparenz & Reflexion */
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  /* 🍎 NEUESTE METHODE: Hardware-Beschleunigung für iPhone */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.video-player {
  width: 100vw;
  height: 100vh;
  /* 🍎 NEUESTE METHODE: contain statt cover für iOS (verhindert schwarzen Bildschirm) */
  object-fit: contain;
  background: #000;
  /* 🍎 iOS Safari Fixes - ERZWINGEN */
  -webkit-playsinline: true;
  playsinline: true;
  /* 🍎 iOS Fix: Keine negative margins / transitions */
  margin: 0;
  padding: 0;
  /* 🍎 iOS Fix: Verhindere Fullscreen-API */
  pointer-events: auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  /* 🍎 NEUESTE METHODE: Hardware-Beschleunigung für iOS */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: auto;
  /* 🍎 NEUESTE METHODE: Verhindere "Bewegung reduzieren" Probleme */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Loading Overlay */
.video-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10;
}

.video-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* iOS Safari Fixes - Verstecke native Controls */
video::-webkit-media-controls {
  display: none !important;
}

video::-webkit-media-controls-enclosure {
  display: none !important;
}

video::-webkit-media-controls-panel {
  display: none !important;
}

/* Touch-Area für Tap-to-Mute */
.video-player-container {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* Responsive: Desktop (wenn Viewport breiter als 9:16) */
@media (min-aspect-ratio: 9/16) {
  .video-player {
    width: auto;
    height: 100%;
    max-width: 100%;
  }
}

/* Responsive: Mobile (immer 9:16) */
@media (max-width: 768px) {
  .video-player-container {
    width: 100vw;
    height: 100vh;
    /* 🍎 NEUESTE METHODE: iPhone Safe Area Support */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  
  .video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 🍎 NEUESTE METHODE: iPhone Notch Support */
    max-width: 100vw;
    max-height: 100vh;
  }
}

/* 🍎 NEUESTE METHODE: iPhone X+ Safe Area Support */
@supports (padding: max(0px)) {
  .video-player-container {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    padding-top: max(0px, env(safe-area-inset-top));
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}

/* 🍎 NEUESTE METHODE: Liquid Glass Design - Fließende Animationen */
@keyframes liquidGlow {
  0%, 100% {
    opacity: 0.8;
    filter: blur(0px);
  }
  50% {
    opacity: 1;
    filter: blur(2px);
  }
}

/* 🍎 NEUESTE METHODE: iPhone Touch-Feedback */
.video-player-container:active {
  transform: scale(0.98);
  -webkit-transform: scale(0.98);
  transition: transform 0.1s ease-out;
}
/* VideoActionsBar - Vertikale Action-Buttons */

.video-actions-bar {
  position: absolute;
  right: 12px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 20;
}

.video-action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s ease;
}

.video-action-button:hover {
  color: var(--color-neon-blue);
  transform: scale(1.1);
}

.video-action-button.active {
  color: var(--color-accent);
}

.video-action-button svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.video-action-count {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Profilbild Button */
.profile-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0;
}

.video-profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Like Animation */
.like-button.active svg {
  animation: likePulse 0.3s ease;
}

@keyframes likePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}


/* VideoProfileButton */

.video-profile-button {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 15;
}

.video-profile-button:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: var(--color-neon-blue);
  transform: translateY(-2px);
}

.video-profile-button-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-neon-blue);
}

.video-profile-button-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.video-profile-button-username {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-neon-blue);
}

.video-profile-button-bio {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.video-profile-button-arrow {
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease;
}

.video-profile-button:hover .video-profile-button-arrow {
  transform: translateX(4px);
  color: var(--color-neon-blue);
}


.video-comment-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-medium-blue);
}

.video-comment-item.flagged {
  opacity: 0.6;
}

.video-comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.video-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.video-comment-info {
  flex: 1;
}

.video-comment-username {
  color: var(--color-neon-blue);
  font-size: 14px;
  font-weight: 600;
}

.video-comment-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.video-comment-warning {
  font-size: 16px;
  cursor: help;
}

.video-comment-message {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
  padding-left: 44px;
}

.video-comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 44px;
}

.video-comment-like,
.video-comment-reply,
.video-comment-replies-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.video-comment-like:hover,
.video-comment-reply:hover,
.video-comment-replies-toggle:hover {
  background: var(--color-medium-blue);
  color: rgba(255, 255, 255, 0.9);
}

.video-comment-like.liked {
  color: #ff6b6b;
}

.video-comment-replies {
  margin-top: 12px;
  padding-left: 24px;
  border-left: 2px solid var(--color-medium-blue);
}


.video-comments {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70vh;
  background: var(--color-dark-blue);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.video-comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--color-medium-blue);
}

.video-comments-header h3 {
  color: var(--color-neon-blue);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.video-comments-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.video-comments-close:hover {
  background: var(--color-medium-blue);
}

.video-comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.video-comments-loading,
.video-comments-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 20px;
  font-size: 14px;
}

.video-comments-form {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-top: 1px solid var(--color-medium-blue);
  gap: 8px;
}

.video-comments-replying-to {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--color-medium-blue);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.video-comments-replying-to button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
}

.video-comments-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--color-medium-blue);
  border: none;
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.video-comments-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.video-comments-submit {
  padding: 12px 24px;
  background: var(--color-neon-blue);
  border: none;
  border-radius: 24px;
  color: var(--color-deep-blue);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.video-comments-submit:hover:not(:disabled) {
  background: var(--color-accent);
}

.video-comments-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* KarmaAuraBadge - Karma & Aura Anzeige */
.karma-aura-badge {
  position: absolute;
  z-index: 10;
  background: rgba(26, 31, 39, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.karma-aura-badge-top-right {
  top: 16px;
  right: 16px;
}

.karma-aura-badge-top-left {
  top: 16px;
  left: 16px;
}

.karma-aura-badge-bottom-right {
  bottom: 16px;
  right: 16px;
}

.karma-aura-badge-bottom-left {
  bottom: 16px;
  left: 16px;
}

.karma-aura-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.karma-badge {
  color: #00E5FF;
  font-weight: 500;
}

.aura-badge {
  font-weight: 600;
  text-shadow: 0 0 8px currentColor;
}

/* AuraMagnet - Aura-Kompatibilität Anzeige */
.aura-magnet {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 10;
  background: rgba(9, 46, 64, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  animation: auraMagnetPulse 2s ease-in-out infinite;
}

@keyframes auraMagnetPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
  }
}

.aura-magnet-content {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.aura-magnet-icon {
  font-size: 20px;
}

.aura-magnet-text {
  flex: 1;
  color: #00E5FF;
  font-size: 14px;
  font-weight: 500;
}

.aura-magnet-resonance {
  color: #00E5FF;
  font-size: 12px;
  font-weight: bold;
  background: rgba(0, 240, 255, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
}

.aura-magnet-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.aura-magnet-bar-fill {
  height: 100%;
  transition: width 0.5s ease;
  border-radius: 2px;
}

/* LiveIndicator - LIVE Badge */
.live-indicator {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.9);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
  }
  50% {
    box-shadow: 0 2px 16px rgba(220, 38, 38, 0.8);
  }
}

.live-indicator-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: liveDotPulse 1.5s ease-in-out infinite;
}

@keyframes liveDotPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.8);
  }
}

.live-indicator-text {
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.live-indicator-viewers {
  color: #fff;
  font-size: 10px;
  opacity: 0.9;
  margin-left: 4px;
}

/* Feed Explain Sheet - Bottom Sheet für KI-Erklärungen */

.feed-explain-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.feed-explain-sheet {
  background: #1a1a1a;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.feed-explain-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  background: #1a1a1a;
  z-index: 1;
}

.feed-explain-sheet-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.feed-explain-sheet-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.feed-explain-sheet-close:hover {
  background: #333;
}

.feed-explain-sheet-content {
  padding: 20px;
  color: #fff;
}

.feed-explain-loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

/* Hauptgrund */
.feed-explain-primary {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #252525;
  border-radius: 12px;
  margin-bottom: 20px;
}

.feed-explain-primary-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.feed-explain-primary-text {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

/* Sekundäre Gründe */
.feed-explain-secondary {
  margin-bottom: 20px;
}

.feed-explain-secondary h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feed-explain-secondary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feed-explain-secondary li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  color: #ccc;
  font-size: 14px;
  line-height: 1.5;
}

.feed-explain-secondary li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #00d4ff;
  font-size: 20px;
  line-height: 1;
}

/* Stimmungsabgleich */
.feed-explain-mood {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #252525;
  border-radius: 12px;
  margin-bottom: 20px;
}

.feed-explain-mood-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.feed-explain-mood-text {
  font-size: 14px;
  color: #ccc;
}

/* Kategorie */
.feed-explain-category {
  margin-bottom: 20px;
}

.feed-explain-category h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feed-explain-category-badge {
  display: inline-block;
  padding: 8px 16px;
  background: #00d4ff;
  color: #000;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Creator-Affinität */
.feed-explain-creator {
  margin-bottom: 20px;
}

.feed-explain-creator h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feed-explain-creator-bar {
  position: relative;
  height: 32px;
  background: #333;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.feed-explain-creator-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #00a8cc);
  border-radius: 16px;
  transition: width 0.3s ease-out;
}

.feed-explain-creator-text {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* Positive Faktor */
.feed-explain-positive {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #252525;
  border-radius: 12px;
  margin-bottom: 20px;
}

.feed-explain-positive-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.feed-explain-positive-text {
  font-size: 14px;
  color: #ccc;
}

/* Cluster */
.feed-explain-cluster {
  margin-bottom: 20px;
  padding: 15px;
  background: #252525;
  border-radius: 12px;
}

.feed-explain-cluster h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feed-explain-cluster-badge {
  display: inline-block;
  padding: 8px 16px;
  background: #333;
  color: #00d4ff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feed-explain-cluster-score {
  font-size: 12px;
  color: #999;
}

/* FeedItem - Neues robustes TikTok-Style Feed-Item */
/* ⚛️ Levi KI-System: Mit Karma, Aura & Magnetismus */

.feed-item {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Performance-Optimierung */
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Video Wrapper */
.feed-item-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

/* Video Player Container - 9:16 Aspect Ratio */
.feed-item .video-player-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

/* Video Element - 9:16 Fullscreen */
/* 🍎 NEUESTE METHODE: contain statt cover für iOS (verhindert schwarzen Bildschirm) */
.feed-item .video-player {
  width: 100vw;
  height: 100vh;
  object-fit: contain; /* 🍎 FIX: contain verhindert schwarzen Bildschirm auf iOS */
  background: #000;
  /* 🍎 iOS Fix: Keine negative margins / transitions */
  margin: 0;
  padding: 0;
  /* 🍎 iOS Fix: Verhindere Fullscreen-API */
  pointer-events: auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  /* 🍎 NEUESTE METHODE: Hardware-Beschleunigung für iOS */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: auto;
  /* 🍎 NEUESTE METHODE: Verhindere "Bewegung reduzieren" Probleme */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Sound Toggle Button (unten links) */
.feed-item-sound-toggle {
  position: absolute;
  left: 12px;
  bottom: 20px;
  z-index: 25;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  /* Glassmorphism */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.feed-item-sound-toggle:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.feed-item-sound-toggle svg {
  width: 24px;
  height: 24px;
}

/* Actions Bar - Rechts vertikal */
.feed-item .video-actions-bar {
  position: absolute;
  right: 12px;
  bottom: 80px;
  z-index: 20;
}

/* Profile Button - Unten links über Sound */
.feed-item .video-profile-button {
  position: absolute;
  left: 12px;
  bottom: 80px;
  z-index: 20;
}

/* Video Info Overlay (unten auf Video) */
.feed-item-info {
  position: absolute;
  bottom: 80px; /* Über Profile Button, aber auf Video */
  left: 12px;
  right: 80px; /* Platz für Actions Bar rechts */
  z-index: 15;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  padding: 16px 12px 12px;
  border-radius: 0 0 0 0;
}

.feed-item-owner {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}

.feed-item-description {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
  max-height: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.feed-item-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.feed-item-hashtag {
  font-size: 12px;
  color: #00E5FF;
  background: rgba(0, 229, 255, 0.2);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  /* Neon-Glow-Effekt */
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

/* Aura-Resonanz Anzeige */
.feed-item-aura-resonance {
  color: #00E5FF;
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
  padding: 4px 8px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 6px;
  display: inline-block;
  /* Neon-Glow-Effekt */
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* Video-Länge-Indikator (unten rechts) */
.feed-item-duration {
  position: absolute;
  bottom: 20px;
  right: 12px;
  z-index: 20;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 8px;
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Duett/Stitch/Repost Buttons (unten) */
.feed-item-actions-bottom {
  position: absolute;
  bottom: 20px;
  left: 70px; /* Rechts vom Sound-Button */
  z-index: 20;
  display: flex;
  gap: 8px;
}

.feed-item-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  /* Glassmorphism */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.feed-item-action-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.feed-item-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Live Placeholder */
.feed-item-live-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.feed-item-live-placeholder a {
  margin-top: 20px;
  padding: 12px 24px;
  background: var(--color-neon-blue, #00d4ff);
  color: #000;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
}

.feed-item-live-placeholder a:hover {
  background: var(--color-neon-blue-hover, #00b8e6);
  transform: scale(1.05);
}

/* Responsive: Für Desktop (wenn Viewport breiter als 9:16) */
@media (min-aspect-ratio: 9/16) {
  .feed-item .video-player {
    width: auto;
    height: 100vh;
    max-width: 100vw;
  }
}

/* Responsive: Für Mobile (immer 9:16) */
@media (max-width: 768px) {
  .feed-item {
    width: 100vw;
    height: 100vh;
  }
  
  .feed-item .video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Größere Touch-Targets auf Mobile */
  .feed-item-sound-toggle {
    width: 48px;
    height: 48px;
  }

  .feed-item-action-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}
/* FeedScroller - Neues robustes TikTok-Style Feed-System */
/* ⚛️ Levi KI-System: Mit präzisem Visibility-Tracking */
/* 🍎 iPhone Optimiert: Liquid Glass Design, fließende Animationen */

.feed-scroller {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  /* 🍎 iOS Scroll-Fix: -webkit-overflow-scrolling: touch ERZWINGEN */
  -webkit-overflow-scrolling: touch;
  background: #000;
  /* Verstecke Scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  /* Performance-Optimierung */
  will-change: scroll-position;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* 🍎 iOS Fix: Keine negative margins / transitions die iOS playback verhindern */
  margin: 0;
  padding: 0;
  /* 🍎 NEUESTE METHODE: Liquid Glass Design - Hardware-Beschleunigung */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* 🍎 NEUESTE METHODE: Smooth Scrolling für iPhone */
  overscroll-behavior-y: contain;
  -webkit-overscroll-behavior-y: contain;
}

.feed-scroller::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Feed Item Wrapper - Fullscreen 9:16 */
.feed-item-wrapper {
  width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  flex-shrink: 0;
  position: relative;
  /* Performance-Optimierung */
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Smooth Scrolling für bessere Performance */
@media (prefers-reduced-motion: no-preference) {
  .feed-scroller {
    scroll-behavior: smooth;
  }
}

/* Für Geräte mit reduzierter Bewegung */
@media (prefers-reduced-motion: reduce) {
  .feed-scroller {
    scroll-behavior: auto;
  }
}

/* Thumbnail-Platzhalter für nicht-gerenderte Videos */
.feed-item-placeholder {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Performance-Optimierung */
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
/* TopAuraMatches - Top-Vorschläge nach Aura-Kompatibilität */
.top-aura-matches {
  padding: 20px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  margin: 20px 0;
}

.top-aura-matches-title {
  color: #00E5FF;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
  text-align: center;
}

.top-aura-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.top-aura-match-card {
  background: rgba(26, 31, 39, 0.9);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.top-aura-match-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.3);
  border-color: rgba(0, 240, 255, 0.5);
}

.top-aura-match-avatar {
  margin-bottom: 12px;
}

.top-aura-match-avatar-border {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.top-aura-match-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 32px;
  font-weight: bold;
}

.top-aura-match-username {
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  margin: 8px 0 4px 0;
  text-align: center;
}

.top-aura-match-resonance {
  color: #00E5FF;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
  text-align: center;
}

.top-aura-match-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin-bottom: 12px;
}

.top-aura-match-karma {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  text-align: center;
}

.top-aura-match-aura {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 0 8px currentColor;
}

.top-aura-match-button {
  width: 100%;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.top-aura-match-button:hover {
  opacity: 0.9;
}

.top-aura-matches-loading {
  padding: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* Feed - Neues robustes TikTok-Style Feed-System */
/* ⚛️ Levi KI-System: Mit Karma, Aura & Magnetismus */

.feed-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
  /* Darkmode Standard */
  color: #fff;
}

/* Pull-to-Refresh Indicator */
.feed-pull-refresh {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  /* Glassmorphism */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.2);
}

.feed-pull-refresh-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(0, 229, 255, 0.3);
  border-top-color: #00E5FF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.feed-pull-refresh p {
  font-size: 12px;
  color: #00E5FF;
  margin: 0;
  font-weight: 500;
}

/* Error State */
.feed-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  color: #fff;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #000 0%, #1a0033 100%);
}

.feed-error p {
  font-size: 16px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.feed-error button {
  margin-top: 20px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  color: #000;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  /* Neon-Glow-Effekt */
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.feed-error button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.feed-error button:active {
  transform: scale(0.98);
}

/* Loading State */
.feed-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #000 0%, #1a0033 100%);
  gap: 16px;
}

.feed-loading p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 0;
}

.feed-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(0, 229, 255, 0.2);
  border-top-color: #00E5FF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  /* Neon-Glow-Effekt */
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Loading More Indicator */
.feed-loading-more {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  /* Glassmorphism */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.feed-loading-more-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 229, 255, 0.3);
  border-top-color: #00E5FF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.feed-loading-more p {
  font-size: 12px;
  color: #00E5FF;
  margin: 0;
  font-weight: 500;
}

/* AI Indicator ("Für dich") */
.feed-ai-indicator {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  /* Glassmorphism mit violettem Glow */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(124, 58, 237, 0.2);
  pointer-events: none;
}

.feed-ai-icon {
  font-size: 18px;
  animation: pulse 2s ease-in-out infinite;
}

.feed-ai-text {
  font-size: 13px;
  font-weight: 600;
  color: #a78bfa;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .feed-ai-indicator {
    top: 12px;
    left: 12px;
    padding: 6px 12px;
  }

  .feed-ai-text {
    font-size: 12px;
  }

  .feed-pull-refresh {
    top: 12px;
    padding: 10px 20px;
  }

  .feed-loading-more {
    bottom: 80px;
    padding: 10px 20px;
  }
}
.preview-card {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #0a0f1c;
}

.preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2f5c 0%, #0f1e3d 100%);
}

.preview-avatar,
.preview-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #8ecaff;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(142, 202, 255, 0.5);
}

.preview-avatar-placeholder {
  background: #8ecaff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: #0a0f1c;
}

.preview-blur-loader {
  position: absolute;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(25px);
  background: rgba(0,0,0,0.4);
  animation: pulse 1.5s infinite;
  z-index: 2;
}

@keyframes pulse {
  0% { opacity: 0.8; }
  50% { opacity: 0.4; }
  100% { opacity: 0.8; }
}

.preview-neon-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #8ecaff;
  text-shadow: 0 0 12px #55bfff;
  font-family: 'Orbitron', sans-serif;
}

.preview-live-tag {
  background: rgba(255,0,80,0.8);
  padding: 6px 14px;
  font-weight: bold;
  color: white;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}

.preview-host {
  font-size: 22px;
  margin-bottom: 6px;
}

.preview-viewers {
  font-size: 18px;
  opacity: 0.9;
}
/* LiveStreamSidebar.css - Vertikale Sidebar für Live-Streams */

.live-stream-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0.5rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-stream-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 12px;
  transition: background 0.2s, transform 0.1s;
  position: relative;
}

.sidebar-stream-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
}

.sidebar-stream-item:active {
  transform: scale(0.98);
}

/* Viewer Count oben */
.sidebar-viewer-count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.viewer-icon {
  font-size: 0.875rem;
}

.viewer-number {
  font-weight: 700;
}

/* Avatar Container */
.sidebar-avatar-container {
  position: relative;
  width: 60px;
  height: 60px;
}

.sidebar-avatar,
.sidebar-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
}

.sidebar-avatar-placeholder {
  background: linear-gradient(135deg, #1a2f5c 0%, #0f1e3d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

/* Live Indicator (roter Punkt) */
.sidebar-live-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: #ff004f;
  border: 2px solid #0a1628;
  border-radius: 50%;
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Username unten */
.sidebar-username {
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

/* Scrollbar Styling */
.live-stream-sidebar::-webkit-scrollbar {
  width: 4px;
}

.live-stream-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.live-stream-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.live-stream-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sidebar-avatar-container {
    width: 50px;
    height: 50px;
  }
  
  .sidebar-avatar,
  .sidebar-avatar-placeholder {
    width: 50px;
    height: 50px;
  }
  
  .sidebar-username {
    font-size: 0.7rem;
    max-width: 70px;
  }
}



/* LiveStreamsFeed.css - TikTok-Style Layout */

.live-streams-feed {
  width: 100%;
  min-height: 100vh;
  background: #000;
  padding: 0;
  padding-bottom: 5rem;
  overflow-x: hidden;
}

.live-streams-main-layout {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
}

.live-streams-main-video {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #000;
  width: calc(100% - 100px);
}

.live-streams-sidebar {
  width: 100px;
  flex-shrink: 0;
  background: transparent;
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  padding-top: 1rem;
}

.live-streams-bottom-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
  padding: 1.5rem 2rem;
  z-index: 20;
}

.hint-text {
  color: white;
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.hint-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.btn-live-now {
  background: #ff69b4; /* Pink wie im Bild */
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-live-now:hover {
  background: #ff4da6;
}

.btn-friend {
  background: #ff69b4; /* Pink wie im Bild */
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-friend:hover {
  background: #ff4da6;
}

.live-streams-loading,
.live-streams-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  color: var(--text-secondary, #b0b8c4);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.live-streams-empty h3 {
  font-size: 1.5rem;
  color: var(--text-primary, #ffffff);
  margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .live-streams-container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }
}

/* Feed4You.css - Styles für 4YOU Feed (TikTok-Style Layout) */

.feed4you-container {
  width: 100%;
  min-height: 100vh;
  background: #000; /* Schwarzer Hintergrund wie im Bild */
  padding: 0;
  padding-bottom: 5rem; /* Platz für Bottom Nav */
  overflow-x: hidden;
  position: relative;
}

/* Hauptlayout: Hauptvideo + Sidebar */
.feed4you-main-layout {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
}

/* Hauptvideo Bereich (groß, zentral) */
.feed4you-main-video {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #000;
  border-radius: 0;
  width: calc(100% - 100px); /* Platz für Sidebar */
}

/* Sidebar rechts */
.feed4you-sidebar {
  width: 100px;
  flex-shrink: 0;
  background: transparent;
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  padding-top: 1rem;
}

/* Bottom Hint Section */
.feed4you-bottom-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100px; /* Platz für Sidebar */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
  padding: 1.5rem 2rem;
  z-index: 20;
}

.hint-text {
  color: white;
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.hint-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.btn-live-now {
  background: #ff004f;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-live-now:hover {
  background: #e0003f;
  transform: scale(1.05);
}

.btn-live-now:active {
  transform: scale(0.98);
}

.btn-friend {
  background: white;
  color: #0a1628;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-friend:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

.btn-friend:active {
  transform: scale(0.98);
}

/* Loading State */
.feed4you-loading,
.feed4you-error,
.feed4you-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  color: var(--text-secondary, #b0b8c4);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-medium-blue, #1a2f5c);
  border-top-color: var(--color-neon-blue, #00d4ff);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.feed4you-error button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-neon-blue, #00d4ff);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.feed4you-empty .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.feed4you-empty h3 {
  font-size: 1.5rem;
  color: var(--text-primary, #ffffff);
  margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .feed4you-main-layout {
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .feed4you-main-video {
    min-height: 500px;
    width: 100%;
  }
  
  .feed4you-sidebar {
    width: 100%;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 0.75rem;
    padding: 0.5rem;
  }
  
  .feed4you-bottom-hint {
    padding: 1rem;
  }
  
  .hint-buttons {
    flex-direction: column;
  }
  
  .btn-live-now,
  .btn-friend {
    width: 100%;
  }
}

/* FeedPage - Haupt-Feed-Seite */

.feed-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: hidden;
}

/* Tab Bar - Oben */
.feed-tab-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: 0 20px;
}

.feed-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

.feed-tab:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

.feed-tab.active {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
}

/* Feed Container - Unter Tab Bar */
.feed-page > .feed-container,
.feed-page > div:last-child {
  position: fixed;
  top: 50px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 50px);
  overflow: hidden;
}
.swipe-container {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.swipe-wrapper {
  width: 100%;
  transition: transform 0.28s ease-out;
}

.touch-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 99;
}



/* VideoUploadPage */

.video-upload-page {
  min-height: 100vh;
  background: var(--color-deep-blue);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-upload-container {
  max-width: 600px;
  width: 100%;
  background: var(--color-dark-blue);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-upload-title {
  color: var(--color-neon-blue);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.video-upload-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-upload-button.primary {
  background: var(--color-neon-blue);
  color: var(--color-deep-blue);
}

.video-upload-button.primary:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.video-upload-button.secondary {
  background: var(--color-medium-blue);
  color: rgba(255, 255, 255, 0.9);
}

.video-upload-button.secondary:hover {
  background: var(--color-bright-blue);
}

.video-upload-preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-upload-preview-video {
  width: 100%;
  max-height: 400px;
  border-radius: 12px;
  background: #000;
}

.video-upload-info {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.video-upload-filename {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.video-upload-size {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.video-upload-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-upload-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--color-medium-blue);
  border-radius: 4px;
  overflow: hidden;
}

.video-upload-progress-fill {
  height: 100%;
  background: var(--color-neon-blue);
  transition: width 0.3s ease;
}

.video-upload-progress-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.video-upload-actions {
  display: flex;
  gap: 12px;
}

.video-upload-actions .video-upload-button {
  flex: 1;
}

/* Kamera-Aufnahme */
.video-upload-recording {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-upload-camera-preview {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.video-upload-recording-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-upload-recording-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.video-upload-recording-dot {
  width: 12px;
  height: 12px;
  background: #ff0000;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.video-upload-stop-button,
.video-upload-cancel-button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-upload-stop-button {
  background: var(--color-neon-blue);
  color: var(--color-deep-blue);
}

.video-upload-stop-button:hover {
  background: var(--color-accent);
}

.video-upload-cancel-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.video-upload-cancel-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Vollbild-Kamera-Vorschau */
.video-upload-fullscreen-camera {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-upload-fullscreen-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Zeitlimit-Auswahl */
.video-upload-time-limit-selector {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 2rem;
  border-radius: 1rem;
  z-index: 10000;
}

.video-upload-time-limit-selector h3 {
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.video-upload-time-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.video-upload-time-option {
  padding: 1rem 2rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.video-upload-time-option:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

/* Aufnahme-Controls */
.video-upload-recording-controls {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.video-upload-record-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #ff0000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.video-upload-record-button:hover {
  transform: scale(1.1);
}

.video-upload-record-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
}

.video-upload-recording-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.video-upload-pause-button,
.video-upload-resume-button,
.video-upload-stop-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.video-upload-pause-button:hover,
.video-upload-resume-button:hover,
.video-upload-stop-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.video-upload-stop-button {
  background: rgba(255, 0, 0, 0.8);
}

/* Timer-Anzeige */
.video-upload-timer {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem 2rem;
  border-radius: 2rem;
  color: #fff;
}

.video-upload-timer-text {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.video-upload-timer-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.video-upload-timer-progress-bar {
  height: 100%;
  background: #ff0000;
  transition: width 0.1s linear;
}

/* Schließen-Button */
.video-upload-close-button {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all 0.2s;
}

.video-upload-close-button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Face Mesh & AR-Masken Integration */
.video-upload-camera-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-upload-filter-bar-wrapper {
  position: absolute;
  bottom: 120px;
  left: 0;
  right: 0;
  z-index: 10001;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.video-upload-face-indicator {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10002;
  backdrop-filter: blur(10px);
}
/* Sticker Layer Styles */
.sticker-layer {
  padding: 1rem;
}

.sticker-layer h3 {
  color: #00eaff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sticker-item {
  aspect-ratio: 1;
  background: rgba(0, 234, 255, 0.1);
  border: 1px solid rgba(0, 234, 255, 0.3);
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.sticker-item:hover {
  background: rgba(0, 234, 255, 0.2);
  transform: scale(1.1);
}

.sticker-emoji {
  font-size: 2rem;
}

.sticker-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sticker-item-active {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(0, 234, 255, 0.1);
  border-radius: 0.5rem;
  color: white;
}

.sticker-item-active button {
  padding: 0.25rem 0.5rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 0.25rem;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.75rem;
}

/* Text Layer Styles */
.text-layer {
  padding: 1rem;
}

.text-layer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.text-layer h3 {
  color: #00eaff;
  font-size: 1.25rem;
  margin: 0;
}

.add-text-btn {
  padding: 0.5rem 1rem;
  background: rgba(0, 234, 255, 0.2);
  border: 1px solid rgba(0, 234, 255, 0.4);
  border-radius: 0.5rem;
  color: #00eaff;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-text-btn:hover {
  background: rgba(0, 234, 255, 0.3);
}

.text-editor {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(0, 234, 255, 0.05);
  border-radius: 0.5rem;
}

.text-editor input {
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 234, 255, 0.3);
  border-radius: 0.375rem;
  color: white;
  font-size: 0.875rem;
}

.text-editor input:focus {
  outline: none;
  border-color: #00eaff;
}

.text-editor button {
  padding: 0.5rem 1rem;
  background: rgba(0, 234, 255, 0.3);
  border: 1px solid rgba(0, 234, 255, 0.5);
  border-radius: 0.375rem;
  color: #00eaff;
  cursor: pointer;
  font-weight: 600;
}

.text-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.text-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(0, 234, 255, 0.1);
  border-radius: 0.5rem;
  color: white;
}

.text-item span {
  flex: 1;
}

.text-item button {
  padding: 0.25rem 0.5rem;
  background: rgba(0, 234, 255, 0.2);
  border: 1px solid rgba(0, 234, 255, 0.4);
  border-radius: 0.25rem;
  color: #00eaff;
  cursor: pointer;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.text-item button:last-child {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

/* Filter Panel Styles */
.filter-panel {
  padding: 1rem;
}

.filter-panel h3 {
  color: #00eaff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filter-item {
  padding: 0.75rem;
  background: rgba(0, 234, 255, 0.1);
  border: 1px solid rgba(0, 234, 255, 0.3);
  border-radius: 0.5rem;
  color: #00eaff;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.filter-item:hover {
  background: rgba(0, 234, 255, 0.2);
}

.filter-item.active {
  background: rgba(0, 234, 255, 0.3);
  border-color: #00eaff;
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.3);
}

.filter-controls {
  margin-top: 1rem;
}

.filter-intensity {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(0, 234, 255, 0.05);
  border-radius: 0.5rem;
}

.filter-intensity label {
  color: #00eaff;
  font-size: 0.875rem;
  font-weight: 600;
}

.filter-intensity input[type="range"] {
  accent-color: #00eaff;
}

/* VideoEditorPage - TikTok-Style (NEU) */

.video-editor-page {
  min-height: 100vh;
  background: #000;
}

.editor-container-new {
  width: 100%;
  height: 100vh;
  background: #000;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.editor-loading,
.editor-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}

/* Video Editor Modal (für Text-Editor) */
.video-editor-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.video-editor-modal-content {
  background: var(--color-dark-blue);
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
}

.video-editor-modal-content h3 {
  color: var(--color-neon-blue);
  margin-bottom: 16px;
}

.video-editor-modal-content input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  background: var(--color-medium-blue);
  border: none;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.video-editor-modal-content button {
  padding: 10px 20px;
  background: var(--color-neon-blue);
  border: none;
  border-radius: 6px;
  color: var(--color-deep-blue);
  font-weight: 600;
  cursor: pointer;
}

/* Alte Styles bleiben für Kompatibilität (werden aber nicht mehr verwendet) */
.video-editor-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-dark-blue);
  border-radius: 20px;
  padding: 30px;
}
/* Editor - TikTok-Style Neu Design */

.editor-container-new {
  width: 100%;
  height: 100vh;
  background: #000;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.editor-header-new {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 234, 255, 0.2);
}

.editor-header-new h1 {
  color: #00eaff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.editor-close-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.editor-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.hidden {
  display: none;
}

/* Video Preview - 70% Höhe, zentriert */
.editor-preview-wrapper {
  width: 100%;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
  margin-top: 4rem;
  overflow: hidden;
}

.editor-preview-new {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 14px;
  max-width: 100%;
  max-height: 100%;
}

/* Right Floating Toolbar - Effects */
.effect-panel {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 50;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 234, 255, 0.3);
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.3);
}

.effect-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(0, 234, 255, 0.1);
  border: 1px solid rgba(0, 234, 255, 0.3);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 70px;
}

.effect-item:hover {
  background: rgba(0, 234, 255, 0.2);
  transform: scale(1.05);
}

.effect-item.active {
  background: rgba(0, 234, 255, 0.3);
  border-color: #00eaff;
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.5);
}

.effect-item span {
  color: #00eaff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bottom Tools - Text, Sticker, Sound, Cover */
.editor-tools-new {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 1rem;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  border: 1px solid rgba(0, 234, 255, 0.3);
}

.tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 234, 255, 0.1);
  border: 1px solid rgba(0, 234, 255, 0.3);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 70px;
}

.tool-btn:hover {
  background: rgba(0, 234, 255, 0.2);
  transform: translateY(-2px);
}

.tool-btn.active {
  background: rgba(0, 234, 255, 0.3);
  border-color: #00eaff;
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.5);
}

.tool-icon {
  font-size: 1.5rem;
  color: #00eaff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-btn svg {
  color: #00eaff;
}

.tool-label {
  color: #00eaff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tool Panel */
.tool-panel-new {
  position: absolute;
  bottom: 280px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 234, 255, 0.4);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 90%;
  max-height: 200px;
  overflow-y: auto;
  z-index: 60;
}

.sound-panel h3,
.cover-panel h3 {
  color: #00eaff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.sound-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sound-item {
  padding: 0.75rem;
  background: rgba(0, 234, 255, 0.1);
  border: 1px solid rgba(0, 234, 255, 0.3);
  border-radius: 0.5rem;
  color: #00eaff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sound-item:hover {
  background: rgba(0, 234, 255, 0.2);
}

.sound-item.active {
  background: rgba(0, 234, 255, 0.3);
  border-color: #00eaff;
}

.sound-placeholder {
  padding: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.cover-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(0, 234, 255, 0.2);
  border: 1px solid rgba(0, 234, 255, 0.4);
  border-radius: 0.5rem;
  color: #00eaff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cover-btn:hover {
  background: rgba(0, 234, 255, 0.3);
}

/* Timeline Container - Fix am unteren Rand */
.timeline-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 120px;
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(0, 234, 255, 0.33);
  backdrop-filter: blur(10px);
  z-index: 40;
  padding: 0.75rem;
}

/* Export Button */
.editor-actions-new {
  position: absolute;
  bottom: 130px;
  right: 1.5rem;
  z-index: 50;
}

.export-btn-new {
  padding: 0.875rem 2rem;
  background: #00eaff;
  border: none;
  border-radius: 0.75rem;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 234, 255, 0.4);
  transition: all 0.2s ease;
}

.export-btn-new:hover {
  background: #00d4e6;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 234, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .effect-panel {
    right: 0.75rem;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .effect-item {
    min-width: 60px;
    padding: 0.5rem;
  }

  .editor-tools-new {
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .tool-btn {
    min-width: 60px;
    padding: 0.5rem 0.75rem;
  }

  .editor-actions-new {
    bottom: 130px;
    right: 0.75rem;
  }
}
/* Timeline - TikTok-Style */
.timeline-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 120px;
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(0, 234, 255, 0.33);
  backdrop-filter: blur(10px);
  z-index: 40;
  padding: 0.75rem;
}

.timeline-zoom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #00eaff;
  font-size: 0.875rem;
}

.timeline-zoom input[type="range"] {
  flex: 1;
  accent-color: #00eaff;
}

.timeline {
  position: relative;
  width: 100%;
  height: 5rem;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 234, 255, 0.3);
  border-radius: 0.75rem;
  cursor: pointer;
}

.timeline-cursor {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: #00eaff;
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.8);
  pointer-events: none;
  z-index: 10;
}

.timeline-frames {
  display: flex;
  height: 100%;
  transform-origin: left;
}

.timeline-frame {
  display: inline-block;
  width: 5rem;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.timeline-layers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.timeline-layer {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 0.25rem;
  background: rgba(0, 255, 255, 0.5);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #000;
  font-weight: 600;
  pointer-events: auto;
  cursor: move;
}

/* Trim Markers */
.timeline-trim-marker {
  position: absolute;
  top: 0;
  width: 4px;
  height: 100%;
  z-index: 20;
  cursor: ew-resize;
}

.timeline-trim-start {
  background: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.timeline-trim-end {
  background: #ff4444;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
}

.trim-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: inherit;
  border: 2px solid white;
  cursor: grab;
}

.trim-handle:active {
  cursor: grabbing;
}

.trim-label {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  color: white;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
}

/* VideoPublishPage */

.video-publish-page {
  min-height: 100vh;
  background: var(--color-deep-blue);
  padding: 20px;
}

.video-publish-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-dark-blue);
  border-radius: 20px;
  padding: 30px;
}

.video-publish-title {
  color: var(--color-neon-blue);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.video-publish-preview {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-publish-preview-video {
  width: 100%;
  max-height: 300px;
  display: block;
}

.video-publish-field {
  margin-bottom: 20px;
}

.video-publish-label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.video-publish-textarea,
.video-publish-input,
.video-publish-select {
  width: 100%;
  padding: 12px;
  background: var(--color-medium-blue);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-family: inherit;
}

.video-publish-textarea {
  resize: vertical;
  min-height: 100px;
}

.video-publish-textarea:focus,
.video-publish-input:focus,
.video-publish-select:focus {
  outline: none;
  border-color: var(--color-neon-blue);
}

.video-publish-char-count {
  text-align: right;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-top: 4px;
}

.video-publish-hashtags-input {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.video-publish-hashtags-input .video-publish-input {
  flex: 1;
}

.video-publish-hashtags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-publish-hashtag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--color-medium-blue);
  border-radius: 16px;
  color: var(--color-neon-blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-publish-hashtag:hover {
  background: var(--color-bright-blue);
}

.video-publish-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-publish-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  cursor: pointer;
}

.video-publish-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.video-publish-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 30px;
}

.video-publish-button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-publish-button.primary {
  background: var(--color-neon-blue);
  color: var(--color-deep-blue);
}

.video-publish-button.primary:hover:not(:disabled) {
  background: var(--color-accent);
}

.video-publish-button.secondary {
  background: var(--color-medium-blue);
  color: rgba(255, 255, 255, 0.9);
}

.video-publish-button.secondary:hover:not(:disabled) {
  background: var(--color-bright-blue);
}

.video-publish-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.video-publish-button.small {
  padding: 8px 16px;
  font-size: 14px;
}


/* Recorder - Fullscreen TikTok-Style */
.recorder-container {
  position: fixed;
  inset: 0;
  background: #000 !important;
  overflow: hidden;
  z-index: 10000;
}

.camera-feed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

.camera-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  z-index: 1;
}

.right-toolbar {
  position: absolute;
  top: 2.5rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 50;
}

.right-toolbar button {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 234, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00eaff;
}

.right-toolbar button:hover {
  transform: scale(1.1);
  background: rgba(0, 234, 255, 0.2);
  border-color: rgba(0, 234, 255, 0.6);
}

.right-toolbar button.active {
  background: rgba(0, 234, 255, 0.3);
  border-color: #00eaff;
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.5);
}

.bottom-controls {
  position: absolute;
  bottom: 2.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 50;
}

.record-btn {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 4px solid white;
  background: #ef4444;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.record-btn:hover {
  transform: scale(1.05);
}

.record-btn.recording {
  animation: pulse 1.5s ease-in-out infinite;
  background: #dc2626;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
  }
  50% {
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.8);
  }
}

.zoom-slider {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  width: 10rem;
  accent-color: #00eaff;
}

.recorder-close-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: all 0.2s ease;
}

.recorder-close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.beauty-controls {
  position: absolute;
  bottom: 10rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 234, 255, 0.4);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

.beauty-controls label {
  color: #00eaff;
  font-size: 0.875rem;
  font-weight: 600;
}

.beauty-controls input[type="range"] {
  accent-color: #00eaff;
}

.speed-menu,
.timer-menu,
.filter-menu {
  position: absolute;
  bottom: 10rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 234, 255, 0.4);
  z-index: 60;
  min-width: 250px;
}

.speed-menu h3,
.timer-menu h3,
.filter-menu h3 {
  color: #00eaff;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.speed-menu button,
.filter-menu button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(0, 234, 255, 0.1);
  border: 1px solid rgba(0, 234, 255, 0.3);
  border-radius: 0.5rem;
  color: #00eaff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.speed-menu button:hover,
.filter-menu button:hover {
  background: rgba(0, 234, 255, 0.2);
}

.speed-menu button.active,
.filter-menu button.active {
  background: rgba(0, 234, 255, 0.3);
  border-color: #00eaff;
}

.timer-display {
  text-align: center;
}

.timer-countdown {
  font-size: 3rem;
  color: #00eaff;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(0, 234, 255, 0.8);
}

.timer-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.timer-options button {
  padding: 0.75rem;
  background: rgba(0, 234, 255, 0.1);
  border: 1px solid rgba(0, 234, 255, 0.3);
  border-radius: 0.5rem;
  color: #00eaff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.timer-options button:hover {
  background: rgba(0, 234, 255, 0.2);
}

/* ProfileVideosPage */

.profile-videos-page {
  min-height: 100vh;
  background: var(--color-deep-blue);
  padding: 20px;
}

.profile-videos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.profile-videos-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-medium-blue);
}

.profile-videos-tab {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.profile-videos-tab:hover {
  color: rgba(255, 255, 255, 0.9);
}

.profile-videos-tab.active {
  color: var(--color-neon-blue);
  border-bottom-color: var(--color-neon-blue);
}

.profile-videos-content {
  min-height: 400px;
}

.profile-videos-stub {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.profile-videos-header h2 {
  color: var(--color-neon-blue);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.profile-videos-count {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.profile-videos-loading,
.profile-videos-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
}

.profile-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.profile-video-item {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.profile-video-item:hover {
  transform: scale(1.05);
}

.profile-video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-medium-blue);
}

.profile-video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0, 0, 0, 0.6) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
}

.profile-video-stats {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.profile-video-duration {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
  align-self: flex-end;
}

.profile-video-description {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.4;
}

.user-video-feed-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 1000;
  overflow: hidden;
}

.user-video-feed-back-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(10px);
}

.user-video-feed-back-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.user-video-feed-loading,
.user-video-feed-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  color: white;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Profil-Bearbeitungs-Modal - Levi-Style */

.profile-edit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: fadeIn 0.3s ease-out;
}

.profile-edit-modal {
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(0, 207, 255, 0.4);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.profile-edit-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 10px rgba(0, 207, 255, 0.5);
}

.profile-edit-close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.profile-edit-close:hover {
  background: rgba(255, 68, 68, 0.3);
  border-color: rgba(255, 68, 68, 0.5);
  transform: rotate(90deg);
}

.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-edit-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-edit-field label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
}

.profile-edit-field input,
.profile-edit-field textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: white;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
}

.profile-edit-field input:focus,
.profile-edit-field textarea:focus {
  outline: none;
  border-color: rgba(0, 207, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 207, 255, 0.3);
}

.profile-edit-field textarea {
  resize: vertical;
  min-height: 100px;
}

.profile-edit-hint {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.profile-edit-avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(0, 207, 255, 0.5);
  object-fit: cover;
  margin-top: 0.5rem;
}

.profile-edit-error {
  background: rgba(255, 68, 68, 0.2);
  border: 1px solid rgba(255, 68, 68, 0.4);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: #ff4444;
  font-size: 0.9rem;
}

.profile-edit-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.profile-edit-cancel,
.profile-edit-save {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.profile-edit-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-edit-cancel:hover {
  background: rgba(255, 255, 255, 0.2);
}

.profile-edit-save {
  background: linear-gradient(135deg, #00cfff, #0066ff);
  color: white;
  box-shadow: 0 0 15px rgba(0, 207, 255, 0.4);
}

.profile-edit-save:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.6);
}

.profile-edit-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Creator Dashboard - Mobile Optimized */

.creator-dashboard-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  overflow-y: auto;
}

.creator-dashboard-content {
  background: #0d1117;
  border-radius: 0;
  max-width: 100%;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.creator-dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem;
  background: #0d1117;
  color: #e0f2ff;
  min-height: 100vh;
}

/* Header */
.creator-dashboard-header {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  margin-bottom: 1rem;
}

.creator-dashboard-close {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  color: #e0f2ff;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.creator-dashboard-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.creator-dashboard-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  margin: 0;
}

.creator-dashboard-subtitle {
  font-size: 0.8rem;
  color: #a0c4ff;
  margin: 0;
}

/* Tabs */
.creator-dashboard-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.creator-dashboard-tabs::-webkit-scrollbar {
  display: none;
}

.creator-tab-btn {
  flex-shrink: 0;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(26, 31, 39, 0.6);
  color: #a0c4ff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.creator-tab-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.4);
}

.creator-tab-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.5);
  color: #00f0ff;
}

/* Tab Content */
.creator-tab-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Compact Stats Grid */
.creator-stats-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.creator-stat-card-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(26, 31, 39, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 240, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.creator-stat-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.creator-stat-content {
  flex: 1;
  min-width: 0;
}

.creator-stat-label-compact {
  font-size: 0.75rem;
  color: #a0c4ff;
  margin: 0 0 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-stat-value-compact {
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-show-more-btn {
  width: 100%;
  padding: 0.75rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  color: #00f0ff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.creator-show-more-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.5);
}

/* Overview Content */
.creator-overview-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Details Content */
.creator-details-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.creator-chart-section-compact {
  background: rgba(26, 31, 39, 0.8);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.creator-section-title-compact {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #00f0ff;
}

.creator-chart-placeholder-compact {
  height: 150px;
  background: #111827;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.85rem;
}

/* Export Content */
.creator-export-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.creator-export-card-compact {
  background: rgba(26, 31, 39, 0.8);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.creator-export-card-title-compact {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #e0f2ff;
}

.creator-export-card-description-compact {
  font-size: 0.8rem;
  color: #a0c4ff;
  margin-bottom: 0.75rem;
}

.creator-export-buttons-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.creator-export-btn-compact {
  width: 100%;
  padding: 0.6rem;
  background: linear-gradient(to right, #a855f7, #3b82f6);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  font-size: 0.85rem;
}

.creator-export-btn-compact:hover {
  background: linear-gradient(to right, #2563eb, #9333ea);
}

.creator-export-btn-compact.secondary {
  background: #1a1f27;
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
}

.creator-export-btn-compact.secondary:hover {
  background: rgba(0, 240, 255, 0.1);
}

.creator-report-section-compact {
  background: rgba(26, 31, 39, 0.8);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.creator-report-description-compact {
  font-size: 0.8rem;
  color: #a0c4ff;
  margin-bottom: 0.75rem;
}

.creator-report-btn-compact {
  width: 100%;
  padding: 0.6rem;
  background: linear-gradient(to right, #10b981, #14b8a6);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  font-size: 0.85rem;
}

.creator-report-btn-compact:hover {
  background: linear-gradient(to right, #059669, #0d9488);
}

/* Ranking Content */
.creator-ranking-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.creator-ranking-card-compact,
.creator-karma-card-compact {
  background: rgba(26, 31, 39, 0.8);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.creator-ranking-list-compact {
  font-size: 0.85rem;
  color: #e0f2ff;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.creator-ranking-list-compact li {
  padding: 0.5rem;
  background: rgba(13, 17, 23, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.creator-karma-graph-placeholder-compact {
  height: 120px;
  background: #111827;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.85rem;
}

/* Responsive - Tablet */
@media (min-width: 640px) {
  .creator-dashboard-main {
    padding: 1.5rem;
  }

  .creator-stats-grid-compact {
    grid-template-columns: repeat(3, 1fr);
  }

  .creator-dashboard-modal {
    align-items: center;
    padding: 1rem;
  }

  .creator-dashboard-content {
    border-radius: 1rem;
    max-width: 800px;
    max-height: 90vh;
  }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
  .creator-stats-grid-compact {
    grid-template-columns: repeat(4, 1fr);
  }

  .creator-export-buttons-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* KarmaRankBadge Styles */

.karma-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  border: 1px solid;
  font-weight: 600;
  transition: all 0.3s;
  white-space: nowrap;
}

.karma-rank-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px currentColor !important;
}

.karma-badge-small {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  gap: 0.2rem;
}

.karma-badge-medium {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
}

.karma-badge-large {
  font-size: 0.9rem;
  padding: 0.35rem 0.8rem;
}

.karma-rank-icon {
  font-size: 1em;
  line-height: 1;
}

.karma-rank-name {
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* LevelChip Styles */

.level-chip {
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s;
  cursor: help;
}

.level-chip:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px currentColor;
}

/* TrustBadge Styles */

.trust-badge-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trust-badge-main {
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: rgba(0, 207, 255, 0.15);
  border: 1px solid rgba(0, 207, 255, 0.3);
  color: #00cfff;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 0 10px rgba(0, 207, 255, 0.2);
  transition: all 0.3s;
}

.trust-badge-main:hover {
  background: rgba(0, 207, 255, 0.25);
  box-shadow: 0 0 15px rgba(0, 207, 255, 0.4);
  transform: translateY(-2px);
}

.trust-badge-chips {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.trust-badge-chip {
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 207, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;
}

.trust-badge-chip:hover {
  background: rgba(0, 207, 255, 0.1);
  border-color: rgba(0, 207, 255, 0.4);
  transform: scale(1.05);
}

/* Team Hologram Styling - Levi Style */

/* Aura Ring Animation */
@keyframes aura-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@keyframes aura-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes power-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 207, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 207, 255, 0.6), 0 0 60px rgba(122, 251, 76, 0.4);
  }
}

/* Team Card Hologram Effect */
.team-card-hologram {
  position: relative;
  overflow: hidden;
}

.team-card-hologram::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(0, 207, 255, 0.1) 50%,
    transparent 70%
  );
  animation: aura-rotate 10s linear infinite;
  pointer-events: none;
}

.team-card-hologram::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 207, 255, 0.1) 0%,
    transparent 70%
  );
  animation: aura-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

/* Team Aura Ring */
.team-aura-ring {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid;
  animation: power-pulse 2s ease-in-out infinite;
}

.team-aura-ring::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid;
  opacity: 0.5;
  animation: aura-rotate 8s linear infinite;
}

.team-aura-ring::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0.3;
  animation: aura-rotate 12s linear infinite reverse;
}

/* Team Power Bar */
.team-power-bar {
  position: relative;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: hidden;
}

.team-power-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes spin {
  from {
    transform: rotate(45deg);
  }
  to {
    transform: rotate(405deg);
  }
}

/* Team Badge Glow */
.team-badge-glow {
  position: relative;
  transition: all 0.3s ease;
}

.team-badge-glow:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px currentColor);
}

.team-badge-glow::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background: inherit;
  opacity: 0.5;
  filter: blur(10px);
  z-index: -1;
}

/* Team Stats Card */
.team-stats-card {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 207, 255, 0.3);
  transition: all 0.3s ease;
}

.team-stats-card:hover {
  border-color: rgba(0, 207, 255, 0.6);
  box-shadow: 0 0 30px rgba(0, 207, 255, 0.3);
  transform: translateY(-2px);
}

.team-stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 207, 255, 0.8),
    transparent
  );
  animation: shimmer 3s linear infinite;
}

/* Team Member Card */
.team-member-card {
  position: relative;
  transition: all 0.3s ease;
}

.team-member-card:hover {
  transform: translateY(-4px);
}

.team-member-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at center,
    rgba(0, 207, 255, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.team-member-card:hover::after {
  opacity: 1;
}

/* Team Mission Card */
.team-mission-card {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  border: 1px solid rgba(122, 251, 76, 0.3);
  transition: all 0.3s ease;
}

.team-mission-card:hover {
  border-color: rgba(122, 251, 76, 0.6);
  box-shadow: 0 0 20px rgba(122, 251, 76, 0.2);
}

/* Team Challenge Badge */
.team-challenge-badge {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(0, 207, 255, 0.2), rgba(122, 251, 76, 0.2));
  border: 1px solid rgba(0, 207, 255, 0.5);
  border-radius: 9999px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  animation: power-pulse 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .team-aura-ring {
    width: 80px;
    height: 80px;
  }
}

/**
 * PROFILE TEAM CARD CSS
 * Styles für Profile Team Card Component
 */

.team-create-card {
  position: relative;
  overflow: hidden;
}

.team-create-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(0, 207, 255, 0.1) 50%, transparent 70%);
  animation: aura-rotate 10s linear infinite;
  pointer-events: none;
}

.team-create-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 207, 255, 0.1) 0%, transparent 70%);
  animation: aura-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.team-create-button {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f59e0b 100%);
  transition: all 0.3s ease;
}

.team-create-button:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

@keyframes aura-rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes aura-pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.schedule-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.schedule-modal {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.schedule-modal h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover:not(:disabled) {
  background: #e0e0e0;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-btn:hover {
  background: #f0f0f0;
}


.scheduled-streams-section {
  margin: 1rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.95) 100%);
  border-radius: 16px;
  border: 1px solid rgba(0, 207, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}

.btn-schedule {
  background: linear-gradient(135deg, #00cfff 0%, #7afb4c 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(0, 207, 255, 0.3);
}

.btn-schedule:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 207, 255, 0.5);
}

.loading {
  text-align: center;
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.empty-state {
  text-align: center;
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.empty-state p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.btn-primary-small {
  background: linear-gradient(135deg, #00cfff 0%, #7afb4c 100%);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(0, 207, 255, 0.3);
}

.btn-primary-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 207, 255, 0.5);
}

.streams-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scheduled-stream-card {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(31, 41, 55, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(0, 207, 255, 0.2);
  transition: all 0.2s;
}

.scheduled-stream-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 207, 255, 0.4);
  box-shadow: 0 4px 15px rgba(0, 207, 255, 0.2);
  background: rgba(31, 41, 55, 0.8);
}

.stream-thumbnail-small {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #00cfff 0%, #7afb4c 100%);
  flex-shrink: 0;
  border: 1px solid rgba(0, 207, 255, 0.3);
}

.stream-thumbnail-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-placeholder-small {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.stream-details {
  flex: 1;
}

.stream-details h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}

.stream-meta-small {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.time-badge {
  background: linear-gradient(135deg, #00cfff 0%, #7afb4c 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.theme-badge {
  background: rgba(0, 207, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 207, 255, 0.3);
}

.stream-stats-small {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.stream-status {
  display: flex;
  align-items: center;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.scheduled {
  background: rgba(0, 207, 255, 0.2);
  color: #00cfff;
  border: 1px solid rgba(0, 207, 255, 0.4);
}

.status-badge.live {
  background: rgba(255, 45, 85, 0.2);
  color: #ff2d55;
  border: 1px solid rgba(255, 45, 85, 0.4);
}

.status-badge.cancelled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}


.streaming-settings {
  padding: 1.5rem;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  color: white;
  margin-top: 1rem;
}

.streaming-settings-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #00E5FF;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.streaming-info-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.streaming-info-item {
  margin-bottom: 1.25rem;
}

.streaming-info-item:last-child {
  margin-bottom: 0;
}

.streaming-info-item label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.streaming-value-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.1);
}

.streaming-value {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #00E5FF;
  word-break: break-all;
  padding: 0.25rem;
}

.stream-key-value {
  font-size: 0.8rem;
  color: #00ff88;
}

.rtmp-url-value {
  font-size: 0.8rem;
  color: #ffaa00;
}

.streaming-copy-btn {
  background: rgba(0, 229, 255, 0.2);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00E5FF;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.streaming-copy-btn:hover {
  background: rgba(0, 229, 255, 0.3);
  border-color: rgba(0, 229, 255, 0.5);
}

.streaming-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.streaming-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.streaming-btn-primary {
  background: linear-gradient(135deg, #00E5FF 0%, #0099cc 100%);
  color: white;
}

.streaming-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.4);
}

.streaming-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.streaming-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.streaming-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.streaming-instructions {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.streaming-instructions h4 {
  color: #00E5FF;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.instruction-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.instruction-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.instruction-section h5 {
  color: #00E5FF;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.instruction-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.instruction-section ol,
.instruction-section ul {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  padding-left: 1.5rem;
}

.instruction-section li {
  margin-bottom: 0.5rem;
}

.instruction-section code {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.instruction-section a {
  color: #00E5FF;
  text-decoration: none;
}

.instruction-section a:hover {
  text-decoration: underline;
}

.instruction-note {
  background: rgba(0, 229, 255, 0.1);
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 3px solid #00E5FF;
  margin-top: 0.75rem;
}

.instruction-tips {
  background: rgba(255, 170, 0, 0.1);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid #ffaa00;
  margin-top: 1rem;
}

.instruction-tips h5 {
  color: #ffaa00;
  margin-bottom: 0.75rem;
}

.instruction-tips ul {
  list-style: none;
  padding-left: 0;
}

.instruction-tips li {
  padding-left: 1.5rem;
  position: relative;
}

.instruction-tips li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffaa00;
}

.streaming-overlay-info {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.streaming-overlay-info h4 {
  color: #00E5FF;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.streaming-overlay-info > p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.overlay-url-item {
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 229, 255, 0.1);
}

.overlay-url-item:last-child {
  margin-bottom: 0;
}

.overlay-url-item label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.overlay-url {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #00ff88;
  word-break: break-all;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  margin-bottom: 0.5rem;
}

.streaming-settings-loading {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .streaming-actions {
    flex-direction: column;
  }

  .streaming-btn {
    width: 100%;
    justify-content: center;
  }

  .streaming-value-container {
    flex-direction: column;
    align-items: stretch;
  }

  .streaming-copy-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Guestbook Component Styles */
.guestbook-component {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guestbook-textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.375rem;
  background: #111827;
  color: white;
  border: 1px solid rgba(0, 240, 255, 0.2);
  font-family: inherit;
  font-size: 0.875rem;
  resize: vertical;
}

.guestbook-textarea::placeholder {
  color: #a0c4ff;
}

.guestbook-textarea:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.4);
}

.guestbook-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.guestbook-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #e0f2ff;
  cursor: pointer;
}

.guestbook-checkbox input[type="checkbox"] {
  accent-color: #00f0ff;
  cursor: pointer;
}

.guestbook-send-btn {
  margin-left: auto;
  padding: 0.5rem 1rem;
  background: #00f0ff;
  color: #0d1117;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: filter 0.2s;
}

.guestbook-send-btn:hover:not(:disabled) {
  filter: brightness(1.1);
}

.guestbook-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.guestbook-pending {
  background: rgba(26, 31, 39, 0.5);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.guestbook-pending-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffc107;
  margin-bottom: 0.75rem;
}

.guestbook-entries {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guestbook-entries-title {
  font-size: 1rem;
  font-weight: 600;
  color: #e0f2ff;
  margin-bottom: 0.5rem;
}

.guestbook-empty {
  text-align: center;
  color: #a0a0a0;
  padding: 2rem;
  font-style: italic;
}

.guestbook-entry {
  padding: 0.75rem;
  background: rgba(13, 17, 23, 0.6);
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 240, 255, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.guestbook-entry.pending {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
}

.guestbook-entry-message {
  font-size: 0.875rem;
  color: white;
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.guestbook-entry-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guestbook-entry-author {
  font-size: 0.75rem;
  color: #a0c4ff;
  font-style: italic;
}

.guestbook-entry-actions {
  display: flex;
  gap: 0.5rem;
}

.guestbook-approve-btn {
  padding: 0.25rem 0.5rem;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.2s;
}

.guestbook-approve-btn:hover {
  background: #059669;
}

.guestbook-delete-btn {
  padding: 0.25rem 0.5rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.2s;
}

.guestbook-delete-btn:hover {
  background: #dc2626;
}

.guestbook-delete-btn-small {
  padding: 0.25rem 0.5rem;
  background: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.guestbook-delete-btn-small:hover {
  background: #ef4444;
  color: white;
}

/* Responsive */
@media (max-width: 640px) {
  .guestbook-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .guestbook-send-btn {
    margin-left: 0;
    width: 100%;
  }
}
.follower-following-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  padding-top: 2rem;
  overflow-y: auto;
}

.follower-following-modal-content {
  background: #0d1117;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: calc(100vh - 4rem);
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.follower-following-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.follower-following-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00f0ff;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.follower-following-close {
  background: transparent;
  border: none;
  color: #e0f2ff;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.follower-following-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.follower-following-search {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.follower-following-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(26, 31, 39, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  color: #e0f2ff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}

.follower-following-search-input:focus {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.follower-following-search-input::placeholder {
  color: #a0c4ff;
}

.follower-following-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.follower-following-list-container::-webkit-scrollbar {
  width: 8px;
}

.follower-following-list-container::-webkit-scrollbar-track {
  background: rgba(13, 17, 23, 0.5);
}

.follower-following-list-container::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 4px;
}

.follower-following-list-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.5);
}

.follower-following-loading,
.follower-following-error,
.follower-following-empty {
  padding: 2rem;
  text-align: center;
  color: #a0c4ff;
  font-size: 0.9rem;
}

.follower-following-error {
  color: #ff6b6b;
}

.follower-following-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.follower-following-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(26, 31, 39, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.follower-following-item:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateX(4px);
}

.follower-following-avatar {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(0, 240, 255, 0.3);
}

.follower-following-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.follower-following-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00eaff, #7300ff);
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.follower-following-live-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: rgba(255, 68, 68, 0.95);
  color: white;
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

.live-dot-small {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.follower-following-info {
  flex: 1;
  min-width: 0;
}

.follower-following-username {
  font-size: 1rem;
  font-weight: 600;
  color: #e0f2ff;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.follower-following-display-name {
  font-size: 0.85rem;
  color: #a0c4ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.follower-following-badge {
  padding: 0.3rem 0.6rem;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  font-size: 0.75rem;
  color: #00f0ff;
  font-weight: 600;
  flex-shrink: 0;
}

.follower-following-arrow {
  color: #a0c4ff;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.follower-following-item:hover .follower-following-arrow {
  transform: translateX(4px);
  color: #00f0ff;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .follower-following-modal-content {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 0;
  }

  .follower-following-header {
    padding: 1rem;
  }

  .follower-following-title {
    font-size: 1.25rem;
  }
}

/* ============================================
   CREATOR PROFIL V4 - LEVI HOLOGRAM DESIGN
   ============================================ */

:root {
  --cyan: #00eaff;
  --neon-pink: #ff3dfc;
  --deep-violet: #7300ff;
  --carbon-dark: #0d0f12;
  --auraRGB: 0, 234, 255;
}

/* ============================================
   CONTAINER
   ============================================ */

.profile-v4-container {
  min-height: 100vh;
  background: linear-gradient(180deg, #0d0f12 0%, #1a1a2e 100%);
  color: white;
  padding: 2rem 1rem;
  position: relative;
  overflow-x: hidden;
}

.profile-v4-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 234, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 61, 252, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.profile-v4-container > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */

.profile-v4-hero {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.profile-v4-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.profile-v4-avatar-aura {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 3px solid var(--auraColor, var(--cyan));
  animation: auraPulse 3s ease-in-out infinite;
  background: color-mix(in srgb, var(--auraColor, var(--cyan)) 10%, transparent);
}

.profile-v4-avatar-aura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder-holo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--cyan), var(--deep-violet));
  color: white;
}

/* ============================================
   AI AURA PULSE RING ANIMATION
   ============================================ */

@keyframes auraPulse {
  0% {
    box-shadow: 0 0 8px color-mix(in srgb, var(--auraColor, var(--cyan)) 40%, transparent);
  }
  50% {
    box-shadow: 0 0 22px color-mix(in srgb, var(--auraColor, var(--cyan)) 85%, transparent);
  }
  100% {
    box-shadow: 0 0 8px color-mix(in srgb, var(--auraColor, var(--cyan)) 40%, transparent);
  }
}

.profile-v4-name-section {
  margin-top: 1rem;
}

.profile-v4-username {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
  background: linear-gradient(135deg, var(--cyan), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-v4-badges-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.profile-v4-creator-badge,
.profile-v4-verified-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(0, 234, 255, 0.15);
  border: 1px solid rgba(0, 234, 255, 0.3);
  color: var(--cyan);
  backdrop-filter: blur(10px);
}

.profile-v4-aura-sentence {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 1rem 0 0.5rem;
  font-style: italic;
}

.profile-v4-disclaimer {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
}

.profile-live-badge-v4 {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(255, 68, 68, 0.95);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   CREATOR OVERVIEW CARDS (HOLOGRAPHIC)
   ============================================ */

.profile-v4-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 0 1rem;
}

.stat-card-holo {
  background: rgba(13, 15, 18, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 234, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: popIn 0.5s ease-out;
  transition: all 0.3s ease;
}

.stat-card-holo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(0, 234, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: holoShine 3s linear infinite;
}

@keyframes holoShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.stat-card-holo:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 234, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 234, 255, 0.2);
}

.stat-card-clickable {
  cursor: pointer;
}

.stat-card-clickable:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 234, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 234, 255, 0.2);
}

.stat-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}

.stat-card-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   KARMA & AURA BAR
   ============================================ */

.profile-v4-karma-section {
  margin: 2rem 0;
  padding: 0 1rem;
}

.karma-aura-bar-container {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.karma-aura-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(13, 15, 18, 0.8);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 234, 255, 0.2);
}

.karma-aura-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, 
    var(--auraColor, var(--cyan)) 0%,
    var(--neon-pink) 50%,
    var(--deep-violet) 100%);
  background-size: 200% 100%;
  animation: auraFlow 8s linear infinite;
  border-radius: 4px;
  position: relative;
}

.karma-aura-pointer {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--auraColor, var(--cyan));
  filter: drop-shadow(0 0 8px var(--auraColor, var(--cyan)));
  transition: transform 0.8s cubic-bezier(0.15, 0.75, 0.5, 1);
  z-index: 10;
}

/* ============================================
   KARMA/AURA FLOW ANIMATION
   ============================================ */

@keyframes auraFlow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

.karma-aura-sentence {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ============================================
   CREATOR BADGES
   ============================================ */

.profile-v4-badges-section {
  margin: 2rem 0;
  padding: 0 1rem;
}

.badges-holo-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.badge-holo-item {
  position: relative;
  transition: all 0.3s ease;
  animation: popIn 0.5s ease-out;
}

.badge-holo-item:hover {
  transform: translateY(-4px) scale(1.05);
  filter: brightness(1.3);
}

/* ============================================
   ACTION BUTTONS (HOLO DESIGN)
   ============================================ */

.profile-v4-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 0 1rem;
}

.action-btn-holo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(0, 234, 255, 0.3);
  background: rgba(13, 15, 18, 0.6);
  backdrop-filter: blur(20px);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.action-btn-holo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 234, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.action-btn-holo:hover::before {
  left: 100%;
}

.action-btn-holo:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 234, 255, 0.6);
  box-shadow: 0 8px 24px rgba(0, 234, 255, 0.3);
  animation: holoLift 0.3s ease;
}

.action-btn-holo.following {
  background: rgba(0, 234, 255, 0.15);
  border-color: rgba(0, 234, 255, 0.5);
}

.action-btn-holo.danger {
  border-color: rgba(255, 68, 68, 0.3);
}

.action-btn-holo.danger:hover {
  border-color: rgba(255, 68, 68, 0.6);
  box-shadow: 0 8px 24px rgba(255, 68, 68, 0.3);
}

.action-btn-icon {
  font-size: 1.2rem;
}

/* ============================================
   FLOATING HOLO BUTTONS ANIMATION
   ============================================ */

@keyframes holoLift {
  from {
    transform: translateY(0px);
    filter: brightness(1);
  }
  to {
    transform: translateY(-4px);
    filter: brightness(1.3);
  }
}

/* ============================================
   FEATURED CONTENT (REELS STYLE)
   ============================================ */

.profile-v4-featured {
  margin: 2rem 0;
  padding: 0 1rem;
}

.section-title-holo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--cyan), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reels-scroll-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.reels-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.reels-scroll-container::-webkit-scrollbar-track {
  background: rgba(13, 15, 18, 0.5);
  border-radius: 4px;
}

.reels-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(0, 234, 255, 0.5);
  border-radius: 4px;
}

.reel-item {
  flex-shrink: 0;
  width: 120px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: rgba(13, 15, 18, 0.6);
  border: 1px solid rgba(0, 234, 255, 0.2);
  animation: reelSlide 0.5s ease-out;
  scroll-snap-align: start;
}

.reel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: rgba(13, 15, 18, 0.8);
}

.reel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 0.5rem;
  color: white;
  font-size: 0.75rem;
}

/* ============================================
   REEL SLIDE IN ANIMATION
   ============================================ */

@keyframes reelSlide {
  from {
    opacity: 0;
    transform: translateX(25px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

/* ============================================
   STREAM SCHEDULE
   ============================================ */

.profile-v4-schedule {
  margin: 2rem 0;
  padding: 0 1rem;
  text-align: center;
}

.schedule-info-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.cta-btn-holo {
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 24px;
  border: 1px solid rgba(0, 234, 255, 0.3);
  background: rgba(0, 234, 255, 0.1);
  backdrop-filter: blur(20px);
  color: var(--cyan);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn-holo:hover {
  background: rgba(0, 234, 255, 0.2);
  border-color: rgba(0, 234, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 234, 255, 0.3);
}

/* ============================================
   AI INSIGHTS PANEL (OWNER ONLY)
   ============================================ */

.profile-v4-insights {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(13, 15, 18, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 234, 255, 0.2);
  border-radius: 16px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.insight-card {
  padding: 1rem;
  background: rgba(0, 234, 255, 0.05);
  border: 1px solid rgba(0, 234, 255, 0.1);
  border-radius: 12px;
}

.insight-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.insight-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
}

.insight-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ============================================
   ABOUT/STORY BLOCK
   ============================================ */

.profile-v4-about {
  margin: 2rem 0;
  padding: 0 1rem;
}

.bio-holo-box {
  padding: 1.5rem;
  background: rgba(13, 15, 18, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 234, 255, 0.2);
  border-radius: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.bio-holo-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(0, 234, 255, 0.05) 0%, transparent 50%),
    linear-gradient(225deg, rgba(255, 61, 252, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.bio-holo-box p {
  position: relative;
  z-index: 1;
}

/* ============================================
   TABS
   ============================================ */

.profile-v4-tabs {
  margin: 2rem 0;
  padding: 0 1rem;
}

.tabs-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 234, 255, 0.2);
  background: rgba(13, 15, 18, 0.6);
  backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  border-color: rgba(0, 234, 255, 0.4);
  color: white;
}

.tab-btn.active {
  background: rgba(0, 234, 255, 0.15);
  border-color: rgba(0, 234, 255, 0.5);
  color: var(--cyan);
}

.tab-content {
  min-height: 200px;
}

/* ============================================
   VIDEOS GRID
   ============================================ */

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.video-card {
  aspect-ratio: 9/16;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(13, 15, 18, 0.6);
  border: 1px solid rgba(0, 234, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 234, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 234, 255, 0.3);
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: rgba(13, 15, 18, 0.8);
}

/* ============================================
   INSIGHTS CONTENT
   ============================================ */

.insights-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.insight-stat {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(13, 15, 18, 0.6);
  border: 1px solid rgba(0, 234, 255, 0.2);
  border-radius: 12px;
}

.insight-stat span:first-child {
  color: rgba(255, 255, 255, 0.7);
}

.insight-stat span:last-child {
  color: var(--cyan);
  font-weight: 700;
}

/* ============================================
   ABOUT CONTENT
   ============================================ */

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-stat {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(13, 15, 18, 0.6);
  border: 1px solid rgba(0, 234, 255, 0.2);
  border-radius: 12px;
}

.about-bio {
  padding: 1.5rem;
  background: rgba(13, 15, 18, 0.6);
  border: 1px solid rgba(0, 234, 255, 0.2);
  border-radius: 12px;
  line-height: 1.6;
}

/* ============================================
   MODALS
   ============================================ */

.dashboard-modal-overlay,
.gift-picker-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.dashboard-modal-content,
.gift-picker-modal-content {
  background: rgba(13, 15, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 234, 255, 0.3);
  border-radius: 16px;
  padding: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

/* ============================================
   STATS POP-IN ANIMATION
   ============================================ */

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   AVATAR UPLOAD OVERLAY
   ============================================ */

.avatar-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  z-index: 10;
  border-radius: 50%;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .profile-v4-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .profile-v4-actions {
    flex-direction: column;
  }

  .action-btn-holo {
    width: 100%;
    justify-content: center;
  }

  .tabs-nav {
    flex-wrap: nowrap;
  }
}

/* Geschenk-Picker - Levi-Style */

.gift-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end; /* WICHTIG: Am unteren Rand */
  justify-content: center;
  z-index: 10002;
  animation: fadeIn 0.3s ease-out;
}

.gift-picker-modal {
  background: linear-gradient(180deg, rgba(20, 20, 25, 0.98) 0%, rgba(15, 15, 20, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-top: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 24px 24px 0 0; /* WICHTIG: Nur oben abgerundet */
  padding: 1rem 1rem 1.5rem 1rem;
  max-width: 100%;
  width: 100%;
  max-height: 50vh; /* WICHTIG: Mehr Platz für Geschenke */
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  animation: slideUpFromBottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gift-picker-header {
  display: flex;
  flex-direction: row; /* WICHTIG: Horizontal */
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.gift-picker-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gift-picker-target {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

.gift-picker-close {
  position: static; /* WICHTIG: Nicht absolut */
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  margin-left: auto;
}

.gift-picker-close:hover {
  background: rgba(255, 68, 68, 0.3);
  border-color: rgba(255, 68, 68, 0.5);
  transform: rotate(90deg);
}

.gift-picker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* WICHTIG: 5 Spalten wie TikTok */
  gap: 0.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(50vh - 120px); /* WICHTIG: Mehr Platz */
  padding-right: 0.5rem;
  padding-bottom: 0.5rem;
  /* WICHTIG: Modern Scrollbar */
  scrollbar-width: thin;
  /* scrollbar-color: rgba(0, 207, 255, 0.6) rgba(0, 0, 0, 0.1); */ /* FIX: Kommentiert, da CSS-Minifier Probleme verursacht */
}

.gift-picker-grid::-webkit-scrollbar {
  width: 4px;
}

.gift-picker-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.gift-picker-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 207, 255, 0.6);
  border-radius: 10px;
}

.gift-picker-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 207, 255, 0.8);
}

.gift-picker-grid::-webkit-scrollbar {
  width: 6px;
}

.gift-picker-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.gift-picker-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 207, 255, 0.5);
  border-radius: 10px;
}

.gift-picker-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 207, 255, 0.7);
}

.gift-picker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.25rem; /* WICHTIG: Kompakt */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: auto;
  position: relative;
}

.gift-picker-item:hover {
  background: rgba(0, 207, 255, 0.2);
  border-color: rgba(0, 207, 255, 0.6);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.4);
}

.gift-picker-item.selected {
  background: rgba(0, 207, 255, 0.3);
  border-color: rgba(0, 207, 255, 0.8);
  box-shadow: 0 0 25px rgba(0, 207, 255, 0.6);
  transform: scale(1.1);
}

.gift-emoji {
  font-size: 1.8rem; /* WICHTIG: Etwas größer für bessere Sichtbarkeit */
  filter: drop-shadow(0 0 8px rgba(0, 207, 255, 0.5));
  transition: all 0.3s;
}

.gift-picker-item:hover .gift-emoji {
  transform: scale(1.2) rotate(10deg);
}

.gift-picker-video {
  width: 100%;
  height: 50px; /* WICHTIG: Etwas größer für bessere Sichtbarkeit */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.25rem;
  background: rgba(0, 0, 0, 0.3);
}

.gift-picker-item.has-video {
  border: 2px solid #FF006E;
  box-shadow: 0 0 15px rgba(255, 0, 110, 0.5);
}

.gift-price {
  font-size: 0.65rem;
  color: #FFD700; /* WICHTIG: Gold für Coins */
  font-weight: 700;
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.gift-video-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.7rem;
  background: rgba(255, 0, 110, 0.9);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gift-icon {
  font-size: 2rem;
}

.gift-name {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .gift-picker-modal {
    max-height: 60vh; /* WICHTIG: Mehr Platz auf Mobile */
    padding: 1rem;
  }
  
  .gift-picker-grid {
    grid-template-columns: repeat(4, 1fr); /* WICHTIG: 4 Spalten auf Mobile */
    gap: 0.5rem;
    max-height: calc(60vh - 100px);
  }
  
  .gift-emoji {
    font-size: 1.5rem;
  }
  
  .gift-picker-video {
    height: 45px;
  }
  
  .gift-picker-header h3 {
    font-size: 1rem;
  }
}
  
  .gift-emoji {
    font-size: 1.2rem; /* WICHTIG: Kleiner */
  }
  
  .gift-picker-video {
    height: 35px; /* WICHTIG: Noch kleiner auf Mobile */
  }
}
  
  .gift-emoji {
    font-size: 2rem;
  }
}

/* BotBadge Styles */

.bot-badge {
  display: inline-flex;
  align-items: center;
  color: #00E5FF;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
  margin-left: 0.25rem;
  vertical-align: middle;
  transition: all 0.3s;
}

.bot-badge:hover {
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.8));
  transform: scale(1.1);
}

.bot-icon {
  display: block;
}

/* Mini-Profil (QuickView) - Levi-Style */

.mini-profile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mini-profile-card {
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 20px;
  padding: 1.5rem;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0, 207, 255, 0.3);
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mini-profile-loading {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

/* Header */
.mini-profile-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mini-profile-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.mini-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(0, 207, 255, 0.5);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.4);
  transition: all 0.3s;
}

.mini-profile-avatar-live {
  border-color: #ff4444;
  box-shadow: 0 0 25px rgba(255, 68, 68, 0.6);
  animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% {
    box-shadow: 0 0 25px rgba(255, 68, 68, 0.6);
  }
  50% {
    box-shadow: 0 0 35px rgba(255, 68, 68, 0.9);
  }
}

.mini-profile-live-indicator {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 68, 68, 0.9);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.mini-profile-live-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.mini-profile-info {
  flex: 1;
  min-width: 0;
}

.mini-profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.mini-profile-username {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 10px rgba(0, 207, 255, 0.5);
}

.mini-profile-verified {
  color: #00cfff;
  font-size: 1rem;
  filter: drop-shadow(0 0 5px rgba(0, 207, 255, 0.8));
}

.mini-profile-handle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
}

.mini-profile-bio {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin: 0.5rem 0 0 0;
  line-height: 1.4;
}

/* Stats */
.mini-profile-stats {
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
  margin: 1rem 0;
  border-top: 1px solid rgba(0, 207, 255, 0.2);
  border-bottom: 1px solid rgba(0, 207, 255, 0.2);
}

.mini-profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.mini-profile-stat-icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 5px rgba(0, 207, 255, 0.5));
}

.mini-profile-stat-value {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Actions */
.mini-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.mini-profile-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mini-profile-button-primary {
  background: linear-gradient(135deg, #00cfff, #0066ff);
  color: white;
  box-shadow: 0 0 15px rgba(0, 207, 255, 0.4);
}

.mini-profile-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.6);
}

.mini-profile-button-secondary {
  background: rgba(0, 207, 255, 0.15);
  color: #00cfff;
  border: 1px solid rgba(0, 207, 255, 0.3);
}

.mini-profile-button-secondary:hover {
  background: rgba(0, 207, 255, 0.25);
  border-color: rgba(0, 207, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 207, 255, 0.3);
}

.mini-profile-button-follow {
  background: rgba(255, 68, 68, 0.15);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.3);
}

.mini-profile-button-follow:hover {
  background: rgba(255, 68, 68, 0.25);
  border-color: rgba(255, 68, 68, 0.5);
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.mini-profile-button-following {
  background: rgba(0, 207, 255, 0.15);
  color: #00cfff;
  border: 1px solid rgba(0, 207, 255, 0.3);
}

.mini-profile-button-following:hover {
  background: rgba(0, 207, 255, 0.25);
}

.mini-profile-button-live {
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

.mini-profile-button-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
}

/* Close Button */
.mini-profile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.mini-profile-close:hover {
  background: rgba(255, 68, 68, 0.3);
  border-color: rgba(255, 68, 68, 0.5);
  transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
  .mini-profile-card {
    max-width: 95%;
    padding: 1.25rem;
  }
  
  .mini-profile-avatar {
    width: 60px;
    height: 60px;
  }
  
  .mini-profile-username {
    font-size: 1.1rem;
  }
}

/**
 * NOTIFICATION BELL CSS
 * Styles für Notification Bell Component
 */

@keyframes glow {
  from {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6), 0 0 30px rgba(0, 255, 136, 0.4);
  }
  to {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 40px rgba(0, 255, 136, 0.6);
  }
}


/* Neue Profil-Struktur - Kompakt & Tab-basiert */

.profile-container {
  min-height: 100vh !important;
  background: linear-gradient(180deg, #0a0a0f 0%, #151520 100%) !important;
  padding: 0;
  max-width: 100%;
  margin: 0;
  color: white !important;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  width: 100% !important;
  display: block !important;
}

/* ===== KOMPAKTER HEADER ===== */
.profile-header-compact {
  padding: 1.5rem 2rem;
  background: rgba(15, 15, 20, 0.4);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 207, 255, 0.2);
}

.profile-header-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

/* Avatar kompakt */
.profile-avatar-wrapper-compact {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-compact {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(0, 207, 255, 0.5);
  overflow: hidden;
  background: rgba(15, 15, 20, 0.9);
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.3);
  position: relative;
  transition: all 0.3s;
}

.profile-avatar-compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-compact.profile-avatar-clickable {
  cursor: pointer;
}

.profile-avatar-compact.profile-avatar-clickable:hover {
  border-color: rgba(0, 207, 255, 0.8);
  box-shadow: 0 0 30px rgba(0, 207, 255, 0.6);
  transform: scale(1.05);
}

.profile-avatar-compact.profile-avatar-live {
  border-color: #ff4444;
  box-shadow: 0 0 25px rgba(255, 68, 68, 0.6);
  animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 25px rgba(255, 68, 68, 0.6); }
  50% { box-shadow: 0 0 35px rgba(255, 68, 68, 0.9); }
}

.profile-live-badge-compact {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 68, 68, 0.95);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00cfff, #0066ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
}

.avatar-upload-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 10;
  font-size: 0.9rem;
}

.avatar-camera-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 207, 255, 0.9);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.profile-verified-badge-compact {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #00cfff;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(0, 207, 255, 0.6);
}

/* Name & Handle */
.profile-name-section-compact {
  flex: 1;
  min-width: 0;
}

.profile-username-compact {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.25rem 0;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 10px rgba(0, 207, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-handle-compact {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  display: block;
}

/* Drei-Punkte-Menü */
.profile-more-menu-wrapper {
  position: relative;
  margin-left: auto;
}

.profile-more-btn {
  background: rgba(0, 207, 255, 0.15);
  border: 1px solid rgba(0, 207, 255, 0.3);
  color: #00cfff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.profile-more-btn:hover {
  background: rgba(0, 207, 255, 0.25);
  border-color: rgba(0, 207, 255, 0.5);
}

.profile-more-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 180px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.profile-more-menu-item {
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.profile-more-menu-item:hover {
  background: rgba(0, 207, 255, 0.15);
  color: #00cfff;
}

/* Action Buttons kompakt */
.profile-actions-compact {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.profile-action-btn-compact {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.profile-action-btn-compact.profile-edit-btn {
  background: rgba(255, 20, 147, 0.9);
  color: white;
}

.profile-action-btn-compact.profile-edit-btn:hover {
  background: rgba(255, 20, 147, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

.profile-action-btn-compact.profile-dashboard-btn {
  background: rgba(0, 207, 255, 0.15);
  color: #00cfff;
  border: 1px solid rgba(0, 207, 255, 0.3);
}

.profile-action-btn-compact.profile-dashboard-btn:hover {
  background: rgba(0, 207, 255, 0.25);
  border-color: rgba(0, 207, 255, 0.5);
}

.profile-action-btn-compact.profile-follow-btn {
  background: rgba(255, 68, 68, 0.15);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.3);
}

.profile-action-btn-compact.profile-follow-btn.following {
  background: rgba(0, 207, 255, 0.15);
  color: #00cfff;
  border-color: rgba(0, 207, 255, 0.3);
}

.profile-action-btn-compact.profile-message-btn,
.profile-action-btn-compact.profile-gift-btn {
  background: rgba(0, 207, 255, 0.15);
  color: #00cfff;
  border: 1px solid rgba(0, 207, 255, 0.3);
}

.profile-action-btn-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 207, 255, 0.3);
}

/* Kleine Stat-Leiste */
.profile-stats-compact {
  display: flex;
  gap: 2rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(0, 207, 255, 0.1);
  border-bottom: 1px solid rgba(0, 207, 255, 0.1);
  margin-bottom: 1rem;
}

.stat-item-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.stat-icon-compact {
  font-size: 1.1rem;
}

.stat-value-compact {
  font-weight: 700;
  color: white;
  font-family: 'Orbitron', sans-serif;
}

.stat-label-compact {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Kurz-Bio */
.profile-bio-compact {
  margin-top: 0.75rem;
}

.profile-bio-text-compact {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-bio-toggle-compact {
  background: none;
  border: none;
  color: #00cfff;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  margin-top: 0.25rem;
  text-decoration: underline;
}

.profile-bio-toggle-compact:hover {
  color: #00aaff;
}

/* ===== TAB-LEISTE ===== */
.profile-tabs-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0 2rem;
  background: rgba(15, 15, 20, 0.3);
  border-bottom: 2px solid rgba(0, 207, 255, 0.2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.profile-tab-new {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.profile-tab-new:hover {
  color: rgba(255, 255, 255, 0.9);
}

.profile-tab-new.active {
  color: #00cfff;
  border-bottom-color: #00cfff;
  text-shadow: 0 0 8px rgba(0, 207, 255, 0.4);
}

.tab-icon {
  font-size: 1.1rem;
}

.tab-label {
  font-size: 0.95rem;
}

/* ===== TAB CONTENT ===== */
.profile-tab-content-wrapper {
  padding: 2rem;
  min-height: 400px;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-tab-panel {
  width: 100%;
}

/* Untermenü */
.profile-submenu {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 207, 255, 0.1);
}

.profile-submenu-btn {
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 207, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.profile-submenu-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 207, 255, 0.4);
}

.profile-submenu-btn.active {
  background: rgba(0, 207, 255, 0.2);
  color: #00cfff;
  border-color: rgba(0, 207, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 207, 255, 0.3);
}

/* Sortier-Bar */
.profile-sort-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: flex-end;
}

.profile-sort-btn-new {
  padding: 0.4rem 0.9rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 207, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.profile-sort-btn-new:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 207, 255, 0.4);
}

.profile-sort-btn-new.active {
  background: rgba(0, 207, 255, 0.2);
  color: #00cfff;
  border-color: rgba(0, 207, 255, 0.5);
}

/* Content Grid */
.profile-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* About Section */
.profile-about-section {
  max-width: 800px;
}

.profile-ai-refresh-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(0, 207, 255, 0.1);
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 20px;
  text-align: center;
}

.profile-ai-refresh-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(0, 207, 255, 0.8);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 0.5rem;
}

.profile-ai-refresh-btn:hover {
  background: rgba(0, 207, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 207, 255, 0.4);
}

.profile-ai-refresh-hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.profile-aura-section {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  border: 1px solid rgba(0, 207, 255, 0.1);
}

.profile-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #00cfff;
  margin: 2rem 0 1rem 0;
  text-shadow: 0 0 10px rgba(0, 207, 255, 0.4);
}

.profile-section-title:first-child {
  margin-top: 0;
}

.profile-bio-full {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.profile-bio-empty {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.profile-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.profile-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 207, 255, 0.15);
  border: 1px solid rgba(0, 207, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.badge-icon {
  font-size: 1.2rem;
}

.badge-name {
  color: #00cfff;
  font-weight: 600;
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-link-item {
  color: #00cfff;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: all 0.3s;
}

.profile-link-item:hover {
  color: #00aaff;
  text-shadow: 0 0 10px rgba(0, 207, 255, 0.5);
}

/* Stats Grid */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.profile-stat-card {
  background: rgba(15, 15, 20, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 207, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-card-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.stat-card-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 10px rgba(0, 207, 255, 0.4);
}

/* Badges Section */
.profile-badges-section {
  max-width: 1000px;
}

.profile-gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.profile-badges-leaderboard {
  background: rgba(15, 15, 20, 0.4);
  border: 1px solid rgba(0, 207, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
}

/* Empty State */
.profile-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.profile-empty-state p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.profile-empty-hint {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Creator Dashboard Modal */
.profile-creator-dashboard-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease-in;
}

.profile-creator-dashboard-content {
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 20px;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.profile-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 207, 255, 0.2);
}

.profile-dashboard-header h2 {
  font-size: 1.8rem;
  color: #00cfff;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 207, 255, 0.5);
}

.profile-dashboard-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.profile-dashboard-close:hover {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
}

.profile-dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.dashboard-stat-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 207, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.dashboard-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 10px rgba(0, 207, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .profile-header-compact {
    padding: 1rem;
  }

  .profile-header-top {
    flex-wrap: wrap;
  }

  .profile-avatar-compact {
    width: 80px;
    height: 80px;
  }

  .profile-username-compact {
    font-size: 1.4rem;
  }

  .profile-stats-compact {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .profile-tabs-bar {
    padding: 0 1rem;
  }

  .profile-tab-new {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .tab-label {
    display: none;
  }

  .profile-tab-content-wrapper {
    padding: 1rem;
  }

  .profile-content-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .profile-creator-dashboard-content {
    padding: 1.5rem;
    margin: 1rem;
  }
}

/* ===== NEUES GLASSMORPHISM-DESIGN FÜR EIGENES PROFIL ===== */
.profile-view-glass {
  min-height: 100vh;
  background: #0d1117;
  color: #e0f2ff;
}

.profile-view-glass section {
  margin-bottom: 1.5rem;
}

.profile-avatar-glass-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.profile-avatar-glass,
.profile-avatar-glass-karma {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder-glass {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #e0f2ff;
}

/* Responsive Design */
@media (max-width: 640px) {
  .profile-view-glass {
    padding: 1rem;
  }
  
  .profile-view-glass section {
    margin-bottom: 1rem;
  }
}

/* ===== NEUES GLASSMORPHISM-DESIGN FÜR EIGENES PROFIL ===== */
.profile-view-glass {
  min-height: 100vh;
  background: #0d1117;
  color: #e0f2ff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 1rem;
}

/* Header Section */
.profile-header-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-avatar-glass-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.profile-avatar-glass,
.profile-avatar-glass-karma {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid rgba(0, 240, 255, 0.3);
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder-glass {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #e0f2ff;
}

.profile-username-main {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  color: #e0f2ff;
}

.profile-karma-text {
  font-size: 0.875rem;
  color: #ff6666;
  margin: 0;
}

.profile-badges-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

.profile-badge-item {
  padding: 0.25rem 0.5rem;
  background: #1a1f27;
  border-radius: 0.375rem;
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #e0f2ff;
}

.profile-badge-creator {
  padding: 0.25rem 0.5rem;
  background: linear-gradient(to right, #a855f7, #3b82f6);
  color: white;
  border-radius: 0.375rem;
}

.profile-actions-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.profile-btn-edit {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #00f0ff;
  background: transparent;
  color: #e0f2ff;
  cursor: pointer;
  transition: background 0.2s;
}

.profile-btn-edit:hover {
  background: rgba(0, 240, 255, 0.1);
}

.profile-btn-dashboard {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: rgba(0, 240, 255, 0.2);
  color: #00f0ff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.profile-btn-dashboard:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.3);
}

.profile-btn-logout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 12px;
  color: #ff6b6b;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-btn-logout:hover {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.5);
  transform: translateY(-1px);
}

.profile-btn-logout svg {
  flex-shrink: 0;
}

/* Stats Grid */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: center;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .profile-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.profile-stat-value {
  font-size: 1.125rem;
  font-weight: bold;
  margin: 0;
  color: #e0f2ff;
}

.profile-stat-label {
  margin: 0;
  color: #a0a0a0;
  font-size: 0.875rem;
}

/* Tabs Container */
.profile-tabs-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.profile-tab-btn {
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  background: #1a1f27;
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #e0f2ff;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-tab-btn:hover {
  background: rgba(0, 240, 255, 0.1);
}

.profile-tab-btn.active {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
}

/* Scheduled Section */
.profile-scheduled-section {
  background: rgba(26, 31, 39, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.profile-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #e0f2ff;
}

.profile-section-hint {
  font-size: 0.875rem;
  color: #a0c4ff;
  margin-bottom: 1rem;
}

.profile-btn-create-stream {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: linear-gradient(to right, #a855f7, #3b82f6);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-btn-create-stream:hover {
  background: linear-gradient(to right, #2563eb, #9333ea);
}

/* Content Sections */
.profile-content-title {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #e0f2ff;
}

.profile-empty-content {
  text-align: center;
  color: #a0a0a0;
}

/* Insights Section */
.profile-insights-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(26, 31, 39, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.profile-insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .profile-insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.profile-insight-card {
  background: #111827;
  border-radius: 0.5rem;
  padding: 1rem;
}

.profile-insight-label {
  color: #a0c4ff;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.profile-insight-value {
  font-size: 1.25rem;
  font-weight: bold;
  color: #e0f2ff;
  margin: 0;
}

.profile-insight-text {
  font-size: 0.75rem;
  color: #e0f2ff;
  margin: 0;
}

/* Karma Section */
.profile-karma-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(26, 31, 39, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.profile-karma-description {
  font-size: 0.875rem;
  color: #a0c4ff;
  margin-bottom: 0.5rem;
}

.profile-karma-graph {
  background: #111827;
  border-radius: 0.5rem;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a0a0;
}

/* Ranking Section */
.profile-ranking-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(26, 31, 39, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.profile-ranking-list {
  font-size: 0.875rem;
  color: #e0f2ff;
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-ranking-item {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 640px) {
  .profile-view-glass {
    padding: 1rem 0.5rem;
    gap: 1rem;
  }
  
  .profile-header-section {
    gap: 0.5rem;
  }
  
  .profile-avatar-glass,
  .profile-avatar-glass-karma {
    width: 80px;
    height: 80px;
  }
  
  .profile-username-main {
    font-size: 1.25rem;
  }
  
  .profile-tabs-container {
    gap: 0.5rem;
    font-size: 0.75rem;
  }
  
  .profile-tab-btn {
    padding: 0.2rem 0.5rem;
  }
}

/* Guestbook Section */
.profile-guestbook-section {
  margin-top: 1.5rem;
}
/* RankingBoard Styles */

.ranking-board {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.ranking-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.ranking-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00cfff;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 15px rgba(0, 207, 255, 0.5);
}

.ranking-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* WICHTIG: DM-Button im Ranking */
.ranking-dm-btn {
  background: rgba(0, 229, 255, 0.2);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ranking-dm-btn:hover {
  background: rgba(0, 229, 255, 0.3);
  border-color: rgba(0, 229, 255, 0.6);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.ranking-entry {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 207, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s;
}

.ranking-entry:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 207, 255, 0.3);
  transform: translateX(4px);
}

.ranking-entry.top-three {
  background: rgba(0, 207, 255, 0.1);
  border-color: rgba(0, 207, 255, 0.4);
}

.ranking-entry.current-user {
  background: rgba(122, 251, 76, 0.1);
  border-color: rgba(122, 251, 76, 0.4);
}

.ranking-position {
  min-width: 40px;
  text-align: center;
  font-weight: 700;
  color: #00cfff;
}

.medal {
  font-size: 1.5rem;
}

.rank-number {
  font-size: 1rem;
}

.ranking-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.ranking-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.ranking-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 207, 255, 0.3), rgba(122, 251, 76, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.ranking-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ranking-username-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ranking-username {
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

.ranking-you-badge {
  background: rgba(122, 251, 76, 0.2);
  color: #7AFB4C;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(122, 251, 76, 0.3);
}

.ranking-stats {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.ranking-score {
  color: #00cfff;
}

.ranking-level {
  color: rgba(255, 255, 255, 0.5);
}

.ranking-badge-wrapper {
  display: flex;
  align-items: center;
}

.ranking-loading,
.ranking-error,
.ranking-empty {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.6);
}

.ranking-error {
  color: #ff4444;
}

/* Ranking-Seite Styles */

.ranking-container {
  min-height: calc(100vh - env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #0a0a0f 0%, #151520 100%);
  padding: calc(2rem + env(safe-area-inset-top)) 2rem calc(2rem + env(safe-area-inset-bottom) + 80px);
  color: white;
  box-sizing: border-box;
}

.ranking-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ranking-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00cfff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0, 207, 255, 0.5);
  font-family: 'Orbitron', sans-serif;
}

.ranking-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.ranking-updated {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* User Card */
.ranking-user-card {
  background: rgba(0, 207, 255, 0.1);
  border: 2px solid rgba(0, 207, 255, 0.3);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.ranking-user-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ranking-user-position {
  font-size: 2rem;
  font-weight: 700;
  color: #00cfff;
}

.ranking-user-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.ranking-user-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ranking-stat {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  font-family: 'Orbitron', sans-serif;
}

.stat-value.highlight {
  color: #00cfff;
  text-shadow: 0 0 10px rgba(0, 207, 255, 0.5);
}

/* Ranking List */
.ranking-list {
  background: rgba(15, 15, 20, 0.6);
  border-radius: 20px;
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.ranking-list-header {
  display: grid;
  grid-template-columns: 60px 2fr 120px 150px 100px;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 2px solid rgba(0, 207, 255, 0.2);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ranking-entry {
  display: grid;
  grid-template-columns: 60px 2fr 120px 150px 100px;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.ranking-entry:hover {
  background: rgba(0, 207, 255, 0.1);
  transform: translateX(5px);
}

.ranking-entry.top-three {
  background: rgba(0, 207, 255, 0.15);
  border: 1px solid rgba(0, 207, 255, 0.3);
}

.ranking-entry.current-user {
  background: rgba(255, 20, 147, 0.2);
  border: 2px solid rgba(255, 20, 147, 0.4);
}

.rank-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.medal {
  font-size: 2rem;
}

.rank-number {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.user-col {
  display: flex;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(0, 207, 255, 0.3);
  object-fit: cover;
}

.user-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00cfff, #0066ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
  border: 2px solid rgba(0, 207, 255, 0.3);
}

.user-name {
  font-weight: 600;
  font-size: 1rem;
}

.user-badge {
  background: rgba(255, 20, 147, 0.3);
  color: #ff1493;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.aura-col {
  display: flex;
  align-items: center;
}

.aura-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.aura-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.aura-level {
  font-weight: 600;
  font-size: 1rem;
}

.stability-col {
  display: flex;
  align-items: center;
}

.stability-bar-container {
  position: relative;
  width: 100%;
  height: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
}

.stability-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 12px;
  transition: width 0.3s;
}

.stability-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.score-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.score-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #00cfff;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 10px rgba(0, 207, 255, 0.5);
}

.ranking-loading,
.ranking-error,
.ranking-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255, 255, 255, 0.7);
}

.ranking-loading h1,
.ranking-error h1 {
  color: #00cfff;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .ranking-container {
    padding: calc(1rem + env(safe-area-inset-top)) 1rem calc(1rem + env(safe-area-inset-bottom) + 80px);
  }

  .ranking-title {
    font-size: 2rem;
  }

  .ranking-list-header,
  .ranking-entry {
    grid-template-columns: 40px 1fr 80px;
    gap: 0.5rem;
  }

  .stability-col,
  .score-col {
    display: none;
  }

  .user-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* DM List - Neon Messenger Style */

.dm-list-neon {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(15, 15, 25, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: none;
  box-shadow: 0 0 30px rgba(0, 207, 255, 0.1);
}

/* Top-Bar mit Glaseffekt */
.dm-list-topbar {
  padding: 1.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 207, 255, 0.3);
  box-shadow: 0 2px 20px rgba(0, 207, 255, 0.1);
}

.dm-list-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #00cfff;
  text-shadow: 0 0 20px rgba(0, 207, 255, 0.5), 0 0 40px rgba(0, 207, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Orbitron', sans-serif;
}

.dm-list-count-badge {
  background: linear-gradient(135deg, #ff006e, #ff4444);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 0, 110, 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.6);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 0, 110, 0.9);
  }
}

/* Floating Search mit Glow */
.dm-list-search-wrapper {
  margin: 1rem 1.25rem;
  position: relative;
  transition: all 0.3s ease;
}

.dm-list-search-wrapper.focused {
  transform: scale(1.02);
}

.dm-list-search-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(0, 207, 255, 0.5), rgba(122, 251, 76, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.dm-list-search-wrapper.focused::before {
  opacity: 1;
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.dm-list-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 207, 255, 0.6);
  z-index: 1;
  transition: all 0.3s;
}

.dm-list-search-wrapper.focused .dm-list-search-icon {
  color: #00cfff;
  animation: icon-pulse 1.5s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.1);
  }
}

.dm-list-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 12px;
  color: #e0f2f7;
  font-size: 0.9rem;
  transition: all 0.3s;
  outline: none;
}

.dm-list-search-input:focus {
  border-color: rgba(0, 207, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.4);
  background: rgba(0, 0, 0, 0.6);
}

.dm-list-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Neon-Tabs als Bubble-Stil */
.dm-list-categories-neon {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.25rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dm-list-categories-neon::-webkit-scrollbar {
  display: none;
}

.dm-list-category-bubble {
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 207, 255, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.dm-list-category-bubble::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--neon-color, #00cfff), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.dm-list-category-bubble:hover {
  border-color: var(--neon-color, #00cfff);
  box-shadow: 0 0 15px rgba(0, 207, 255, 0.3);
}

.dm-list-category-bubble.active {
  background: rgba(0, 0, 0, 0.6);
  border-color: var(--neon-color, #00cfff);
  box-shadow: 0 0 20px var(--neon-color, #00cfff);
  color: white;
  font-weight: 600;
}

.dm-list-category-bubble.active::before {
  opacity: 0.2;
}

.category-icon {
  position: relative;
  z-index: 1;
}

.category-label {
  position: relative;
  z-index: 1;
}

/* Filter-Checkboxes */
.dm-list-filters-neon {
  display: flex;
  gap: 1rem;
  padding: 0 1.25rem 1rem;
  border-bottom: 1px solid rgba(0, 207, 255, 0.2);
}

.dm-list-filter-checkbox-neon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.3s;
}

.dm-list-filter-checkbox-neon:hover {
  color: #00cfff;
}

.dm-list-filter-checkbox-neon input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #00cfff;
  filter: drop-shadow(0 0 5px rgba(0, 207, 255, 0.5));
}

/* Nachrichtenliste - Große Cards */
.dm-list-items-neon {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  scrollbar-width: thin;
  /* scrollbar-color: rgba(0, 207, 255, 0.3) transparent; */ /* FIX: Kommentiert, da CSS-Minifier Probleme verursacht */
}

.dm-list-items-neon::-webkit-scrollbar {
  width: 6px;
}

.dm-list-items-neon::-webkit-scrollbar-track {
  background: transparent;
}

.dm-list-items-neon::-webkit-scrollbar-thumb {
  background: rgba(0, 207, 255, 0.3);
  border-radius: 3px;
}

.dm-list-items-neon::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 207, 255, 0.5);
}

.dm-list-card-neon {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 207, 255, 0.1);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.dm-list-card-neon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 207, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.dm-list-card-neon:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 207, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.2);
  transform: translateX(4px);
}

.dm-list-card-neon:hover::before {
  opacity: 1;
}

.dm-list-card-neon.selected {
  background: rgba(0, 207, 255, 0.15);
  border-color: rgba(0, 207, 255, 0.6);
  box-shadow: 0 0 30px rgba(0, 207, 255, 0.3);
}

.dm-list-card-neon.unread {
  border-left: 3px solid #ff006e;
  animation: unread-glow 2s ease-in-out infinite;
}

@keyframes unread-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
  }
}

.dm-list-card-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.dm-list-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(0, 207, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 207, 255, 0.2);
}

.dm-list-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00cfff, #7afb4c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #7afb4c;
  border: 2px solid rgba(10, 10, 15, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(122, 251, 76, 0.8);
  animation: online-pulse 2s ease-in-out infinite;
}

@keyframes online-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(122, 251, 76, 0.8);
  }
  50% {
    box-shadow: 0 0 20px rgba(122, 251, 76, 1);
  }
}

.bot-badge-neon,
.ghost-badge-neon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(0, 207, 255, 0.5);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  box-shadow: 0 0 10px rgba(0, 207, 255, 0.5);
}

.dm-list-card-content {
  flex: 1;
  min-width: 0;
}

.dm-list-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.dm-list-card-username {
  font-weight: 600;
  color: #e0f2f7;
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(0, 207, 255, 0.3);
}

.dm-list-card-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.dm-list-card-preview {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-badge-small {
  font-size: 0.7rem;
  opacity: 0.8;
}

.dm-list-card-unread-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #ff006e, #ff4444);
  color: white;
  border-radius: 12px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 0.5rem;
  box-shadow: 0 0 15px rgba(255, 0, 110, 0.6);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.6);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 0, 110, 0.9);
  }
}

/* Empty State */
.dm-list-empty-neon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.empty-illustration {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(0, 207, 255, 0.5));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.dm-list-empty-neon p {
  margin: 0;
  font-size: 0.9rem;
}

.dm-list-loading,
.dm-list-error {
  padding: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}
.ai-dm-assistant {
  padding: 1rem;
  border-top: 1px solid rgba(74, 158, 255, 0.2);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  bottom: 280px; /* WICHTIG: Viel höher, damit Buttons nicht unter Eingabefeld sind */
  left: 0;
  right: 0;
  z-index: 9998; /* Direkt unter Eingabefeld (9999) */
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 -2px 20px rgba(0, 207, 255, 0.3);
  border-bottom: 1px solid rgba(0, 207, 255, 0.3);
  width: 100%;
}

.ai-dm-assistant-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary, #e0f2f7);
  font-size: 0.9rem;
  font-weight: 600;
}

.ai-dm-assistant-icon {
  font-size: 1rem;
}

.ai-dm-assistant-title {
  color: rgba(0, 207, 255, 0.9);
}

.ai-dm-assistant-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ai-dm-assistant-btn {
  flex: 1;
  padding: 0.5rem;
  background: rgba(74, 158, 255, 0.2);
  border: 1px solid rgba(74, 158, 255, 0.3);
  border-radius: 6px;
  color: var(--text-primary, #e0f2f7);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.ai-dm-assistant-btn:hover:not(:disabled) {
  background: rgba(74, 158, 255, 0.3);
  border-color: rgba(74, 158, 255, 0.5);
}

.ai-dm-assistant-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-dm-assistant-loading {
  padding: 0.5rem;
  text-align: center;
  color: rgba(0, 207, 255, 0.8);
  font-size: 0.85rem;
  font-style: italic;
}

.ai-dm-assistant-suggestion,
.ai-dm-assistant-summary {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 207, 255, 0.1);
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 8px;
}

.ai-dm-assistant-suggestion-header,
.ai-dm-assistant-summary-header {
  font-weight: 600;
  color: rgba(0, 207, 255, 0.9);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.ai-dm-assistant-suggestion-text,
.ai-dm-assistant-summary-text {
  color: var(--text-primary, #e0f2f7);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.ai-dm-assistant-use-btn,
.ai-dm-assistant-close-btn {
  padding: 0.4rem 0.8rem;
  background: rgba(0, 207, 255, 0.3);
  border: 1px solid rgba(0, 207, 255, 0.5);
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.ai-dm-assistant-use-btn:hover,
.ai-dm-assistant-close-btn:hover {
  background: rgba(0, 207, 255, 0.4);
}

.ai-dm-assistant-privacy {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(74, 158, 255, 0.1);
  text-align: center;
  color: var(--text-secondary, rgba(255, 255, 255, 0.5));
  font-size: 0.75rem;
}

/* DM Window - Neon Messenger Style mit Sprechblasen */

/* WICHTIG: DM Window Container - Fixed Layout für mobile Sichtbarkeit */
.dm-window {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(15, 15, 25, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden !important; /* WICHTIG: Verhindere Body-Scroll */
  z-index: 1;
}

/* Header mit Glaseffekt */
.dm-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 207, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 207, 255, 0.1);
}

.dm-window-header-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dm-window-header-avatar,
.dm-window-header-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  border: 2px solid rgba(0, 207, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.3);
}

/* Aura-Ring um Avatar */
.dm-window-header-avatar::before,
.dm-window-header-avatar-placeholder::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(0, 207, 255, 0.3);
  animation: aura-pulse 3s ease-in-out infinite;
}

@keyframes aura-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.dm-window-header-avatar {
  object-fit: cover;
}

.dm-window-header-avatar-placeholder {
  background: linear-gradient(135deg, #00cfff, #7afb4c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.dm-window-header-username {
  font-weight: 700;
  color: #e0f2f7;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 207, 255, 0.3);
}

.dm-window-header-bot-badge {
  font-size: 0.9rem;
  filter: drop-shadow(0 0 5px rgba(0, 207, 255, 0.5));
}

.dm-window-header-bot-status,
/* WICHTIG: Live-Status Styles */
.dm-window-status-live {
  color: #ff4444;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.dm-window-status-online {
  color: #7afb4c;
  font-weight: 500;
}

.dm-window-status-ghost {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.dm-window-header-status {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

.dm-window-header-actions {
  display: flex;
  gap: 0.75rem;
}

.dm-window-header-action-btn {
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 8px;
  color: #e0f2f7;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.dm-window-header-action-btn:hover {
  background: rgba(0, 207, 255, 0.2);
  border-color: rgba(0, 207, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 207, 255, 0.3);
}

/* Messages Container */
/* WICHTIG: Messages Container - scrollbar mit Platz für fixierte Eingabeleiste + iOS-Extra */
.dm-window-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  /* WICHTIG: Platz für fixierte Inputbar + iOS-Extra-Abstand (2 Zeilen) */
  padding-bottom: calc(120px + var(--ios-extra-bottom, 0px)) !important;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  /* scrollbar-color: rgba(0, 207, 255, 0.3) transparent; */ /* FIX: Kommentiert, da CSS-Minifier Probleme verursacht */
  min-height: 0; /* WICHTIG: Ermöglicht Scrolling */
  -webkit-overflow-scrolling: touch; /* WICHTIG: Smooth Scrolling auf iOS */
}

.dm-window-messages::-webkit-scrollbar {
  width: 6px;
}

.dm-window-messages::-webkit-scrollbar-track {
  background: transparent;
}

.dm-window-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 207, 255, 0.3);
  border-radius: 3px;
}

.dm-window-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem;
  font-size: 0.9rem;
}

/* Sprechblasen-Design */
.dm-window-message {
  display: flex;
  max-width: 75%;
  animation: messageSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dm-window-message.own {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.dm-window-message.other {
  align-self: flex-start;
}

.dm-window-message-content {
  padding: 0.875rem 1.125rem;
  border-radius: 18px;
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

/* WICHTIG: Eigene Nachrichten - Neonblau-Blasen (wie Discord/Telegram) */
.dm-window-message.own .dm-window-message-content {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.95), rgba(74, 158, 255, 0.95));
  border: 1px solid rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.5), 0 2px 15px rgba(0, 0, 0, 0.3);
  color: white;
  border-radius: 18px 18px 4px 18px; /* Abgerundete Ecken, unten rechts scharf */
}

/* WICHTIG: Andere Nachrichten - Dunkelgrau + leuchtender Rahmen */
.dm-window-message.other .dm-window-message-content {
  background: rgba(30, 30, 40, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.3), 0 2px 15px rgba(0, 0, 0, 0.3);
  color: #e0f2f7;
  border-radius: 18px 18px 18px 4px; /* Abgerundete Ecken, unten links scharf */
}

/* Systemnachrichten - Verlaufsschimmer */
.dm-window-message.system .dm-window-message-content {
  background: linear-gradient(135deg, rgba(183, 148, 246, 0.2), rgba(0, 207, 255, 0.2));
  border: 1px solid rgba(183, 148, 246, 0.4);
  box-shadow: 0 0 30px rgba(183, 148, 246, 0.3);
  color: #e0f2f7;
  max-width: 90%;
  align-self: center;
}

.dm-window-message-sender {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dm-window-message-text {
  color: inherit;
  word-wrap: break-word;
  line-height: 1.6;
  font-size: 0.95rem;
}

.dm-window-message-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.375rem;
}

.dm-window-message-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
}

.dm-window-message.own .dm-window-message-time {
  text-align: left;
}

/* WICHTIG: Lesebestätigung */
/* Status-Icons (WhatsApp-Style) */
.dm-window-message-status {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.dm-window-message-status svg {
  width: 16px;
  height: 16px;
}

.dm-window-message-status-sent {
  color: rgba(255, 255, 255, 0.5);
}

.dm-window-message-status-sent svg {
  stroke: rgba(255, 255, 255, 0.5);
}

.dm-window-message-status-delivered {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
}

.dm-window-message-status-delivered svg {
  stroke: rgba(255, 255, 255, 0.7);
}

.dm-window-message-status-read {
  color: #4fc3f7;
  display: flex;
  align-items: center;
}

.dm-window-message-status-read svg {
  stroke: #4fc3f7;
}

.dm-window-message-status-blocked {
  color: #ff4444;
  display: flex;
  align-items: center;
}

.dm-window-message-status-blocked svg {
  stroke: #ff4444;
}

/* Legacy Support */
.dm-window-message-read {
  font-size: 0.7rem;
  color: rgba(0, 229, 255, 0.8);
  margin-left: auto;
}

.dm-window-message-unread {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  margin-left: auto;
}

.dm-window-message.own .dm-window-message-footer {
  justify-content: flex-start;
}

/* Warnung & Unsafe */
.dm-window-message-warning {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid rgba(255, 193, 7, 0.4);
  border-radius: 8px;
  font-size: 0.75rem;
  color: #ffc107;
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.dm-window-message-unsafe {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 45, 85, 0.2);
  border: 1px solid rgba(255, 45, 85, 0.4);
  border-radius: 8px;
  font-size: 0.75rem;
  color: #ff2d55;
  box-shadow: 0 0 15px rgba(255, 45, 85, 0.3);
}

/* System Buttons */
.dm-window-system-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.dm-window-system-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dm-window-system-btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.dm-window-system-btn-success:hover {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
  transform: translateY(-2px);
}

.dm-window-system-btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.dm-window-system-btn-danger:hover {
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
  transform: translateY(-2px);
}

.dm-window-system-btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.dm-window-system-btn-warning:hover {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
}

/* WICHTIG: Live-Tipperkennung */
.dm-window-typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-style: italic;
}

.dm-window-typing-dots {
  display: flex;
  gap: 0.25rem;
}

.dm-window-typing-dots span {
  width: 6px;
  height: 6px;
  background: rgba(0, 229, 255, 0.8);
  border-radius: 50%;
  animation: typingDot 1.4s ease-in-out infinite;
}

.dm-window-typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.dm-window-typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* WICHTIG: AI Assistant - wird in AiDmAssistant.css definiert mit position: fixed */

/* WICHTIG: Input Form - IMMER sichtbar, niemals versteckt! */
.dm-window-input-form {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem;
  padding: 12px 14px;
  /* WICHTIG: Safe-Area-Padding für iOS/Android + iOS-Extra-Abstand */
  padding-bottom: calc(12px + var(--safe-bottom)) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 -2px 20px rgba(0, 207, 255, 0.3);
  /* WICHTIG: Fixed positionierung - iOS 2 Zeilen höher, Android bündig */
  position: fixed !important;
  bottom: calc(var(--safe-bottom) + var(--ios-extra-bottom, 0px)) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

.dm-window-input,
.dm-window-textarea {
  flex: 1;
  padding: 0.875rem 1.125rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 12px;
  color: #e0f2f7;
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
  font-family: inherit;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  overflow-y: auto;
}

.dm-window-textarea {
  line-height: 1.5;
}
  border-color: rgba(0, 207, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.4);
  background: rgba(0, 0, 0, 0.6);
}

.dm-window-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.dm-window-send-btn {
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #00cfff, #7afb4c);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.dm-window-send-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 207, 255, 0.6);
}

.dm-window-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.dm-window-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.6);
}

/* Animation: Slide-in von rechts */
.dm-window-enter {
  animation: slideInFromRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Header Status Row */
.dm-window-header-status-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.dm-window-header-live-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 45, 85, 0.3);
  border: 1px solid rgba(255, 45, 85, 0.6);
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ff2d55;
  text-shadow: 0 0 10px rgba(255, 45, 85, 0.8);
  box-shadow: 0 0 15px rgba(255, 45, 85, 0.4);
  margin-left: 0.5rem;
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 45, 85, 0.4);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 25px rgba(255, 45, 85, 0.6);
  }
}

.dm-window-header-aura {
  font-size: 0.75rem;
  color: rgba(183, 148, 246, 0.9);
  text-shadow: 0 0 10px rgba(183, 148, 246, 0.5);
}

.dm-window-back-btn {
  display: none; /* Versteckt auf Desktop */
}

/* Empty State */
.dm-window-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem;
}

/* WICHTIG: Empty State wie im Mockup */
.dm-window-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 2rem;
}

.dm-window-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(0, 207, 255, 0.5));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.dm-window-empty-text {
  font-size: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* KI-Vorschlag */
.dm-window-ai-suggestion {
  background: linear-gradient(135deg, rgba(183, 148, 246, 0.2), rgba(0, 207, 255, 0.2));
  border: 1px solid rgba(183, 148, 246, 0.4);
  border-radius: 12px;
  padding: 1rem;
  margin: 0 1.5rem 1rem 1.5rem;
  box-shadow: 0 0 20px rgba(183, 148, 246, 0.3);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dm-window-ai-suggestion-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.dm-window-ai-suggestion-icon {
  font-size: 1.2rem;
}

.dm-window-ai-suggestion-text {
  flex: 1;
  color: #e0f2f7;
  font-size: 0.9rem;
}

.dm-window-ai-suggestion-btn {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.dm-window-ai-suggestion-btn:hover {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
  transform: translateY(-2px);
}

.dm-window-ai-suggestion-btn-close {
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s;
}

.dm-window-ai-suggestion-btn-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.dm-window-ai-suggestion-preview {
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  font-size: 0.85rem;
  border-left: 3px solid rgba(183, 148, 246, 0.6);
}

/* Erweiterte Eingabeleiste */
.dm-window-input-form {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(0, 207, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -2px 20px rgba(0, 207, 255, 0.1);
  position: sticky;
  bottom: 0;
  z-index: 10;
  animation: inputPulse 3s ease-in-out infinite;
}

@keyframes inputPulse {
  0%, 100% {
    box-shadow: 0 -2px 20px rgba(0, 207, 255, 0.1);
  }
  50% {
    box-shadow: 0 -2px 30px rgba(0, 207, 255, 0.2);
  }
}

.dm-window-input-btn {
  padding: 0.875rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 12px;
  color: #e0f2f7;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
}

.dm-window-input-btn:hover {
  background: rgba(0, 207, 255, 0.2);
  border-color: rgba(0, 207, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 207, 255, 0.3);
  transform: scale(1.05);
}

.dm-window-input-btn-voice.recording {
  background: rgba(255, 45, 85, 0.3);
  border-color: rgba(255, 45, 85, 0.6);
  animation: recordingPulse 1s ease-in-out infinite;
}

@keyframes recordingPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 45, 85, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 45, 85, 0.8);
  }
}

.dm-window-input {
  flex: 1;
  padding: 0.875rem 1.125rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 12px;
  color: #e0f2f7;
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
}

.dm-window-input:focus {
  border-color: rgba(0, 207, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.4);
  background: rgba(0, 0, 0, 0.6);
}

.dm-window-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.dm-window-send-btn {
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #00cfff, #7afb4c);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.4);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
}

.dm-window-send-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 30px rgba(0, 207, 255, 0.6);
}

.dm-window-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Mobile View - WICHTIG: Eingabeleiste MUSS sichtbar sein */
@media (max-width: 768px), (max-height: 900px) {
  .dm-window-back-btn {
    display: block !important;
  }
  
  .dm-window-header-actions {
    flex-direction: row-reverse;
  }
  
  /* WICHTIG: Mobile - Eingabe mit iOS-Extra-Abstand (2 Zeilen höher auf iOS) */
  .dm-window-input-form {
    padding: 12px 14px !important;
    /* WICHTIG: Safe-Area-Padding für iOS/Android */
    padding-bottom: calc(12px + var(--safe-bottom)) !important;
    gap: 0.5rem;
    /* WICHTIG: iOS 2 Zeilen höher, Android bündig */
    bottom: calc(var(--safe-bottom) + var(--ios-extra-bottom, 0px)) !important;
    /* WICHTIG: Sicherstellen dass Eingabe IMMER sichtbar ist */
    position: fixed !important;
    z-index: 9999 !important;
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    margin: 0 !important;
  }
  
  .dm-window-input-btn,
  .dm-window-send-btn {
    min-width: 44px;
    height: 44px;
    padding: 0.75rem;
    /* WICHTIG: Größere Touch-Targets für mobile */
    min-height: 44px;
  }
  
  .dm-window-input,
  .dm-window-textarea {
    /* WICHTIG: Größere Touch-Targets für mobile */
    min-height: 44px;
    padding: 0.75rem 1rem;
    font-size: 16px; /* WICHTIG: Verhindert Zoom auf iOS */
  }
  
  .dm-window-header-status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  /* WICHTIG: Mobile - Messages Container muss Platz für fixierte Eingabe + iOS-Extra lassen */
  .dm-window-messages {
    padding-bottom: calc(120px + var(--safe-bottom) + var(--ios-extra-bottom, 0px)) !important;
  }
  
  /* WICHTIG: Mobile - Sicherstellen dass Eingabe immer sichtbar ist */
  .dm-window {
    padding-bottom: 0;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: visible !important;
  }
  
  /* WICHTIG: Mobile - Eingabeleiste MUSS sichtbar sein */
  .dm-window-input-form {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    z-index: 99999 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}


/* Anhang-Vorschau */
.dm-window-attachment-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 8px;
  position: relative;
}

.dm-window-attachment-preview-image {
  max-width: 150px;
  max-height: 150px;
  border-radius: 4px;
  object-fit: cover;
}

.dm-window-attachment-preview-audio {
  padding: 8px 16px;
  background: #e3f2fd;
  border-radius: 4px;
  font-size: 14px;
}

.dm-window-attachment-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.dm-window-attachment-preview-remove:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Nachrichten-Anhänge */
.dm-window-message-attachment {
  margin: 8px 0;
}

.dm-window-message-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
}

.dm-window-message-image:hover {
  opacity: 0.9;
}

.dm-window-message-audio {
  width: 100%;
  max-width: 300px;
  margin: 8px 0;
}

/* Recording-Status */
.dm-window-input-btn-voice.recording {
  background: #f44336;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}


/* Anhang-Vorschau */
.dm-window-attachment-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 8px;
  position: relative;
}

.dm-window-attachment-preview-image {
  max-width: 150px;
  max-height: 150px;
  border-radius: 4px;
  object-fit: cover;
}

.dm-window-attachment-preview-audio {
  padding: 8px 16px;
  background: #e3f2fd;
  border-radius: 4px;
  font-size: 14px;
}

.dm-window-attachment-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.dm-window-attachment-preview-remove:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Nachrichten-Anhänge */
.dm-window-message-attachment {
  margin: 8px 0;
}

.dm-window-message-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
}

.dm-window-message-image:hover {
  opacity: 0.9;
}

.dm-window-message-audio {
  width: 100%;
  max-width: 300px;
  margin: 8px 0;
}

/* Recording-Status */
.dm-window-input-btn-voice.recording {
  background: #f44336;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.user-list {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary, rgba(15, 23, 42, 0.8));
  border-right: 1px solid rgba(74, 158, 255, 0.2);
}

.user-list-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(74, 158, 255, 0.2);
}

.user-list-header h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  color: var(--text-primary, #e0f2f7);
}

.user-list-search {
  width: 100%;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(74, 158, 255, 0.3);
  border-radius: 8px;
  color: var(--text-primary, #e0f2f7);
  font-size: 0.9rem;
}

.user-list-search:focus {
  outline: none;
  border-color: rgba(74, 158, 255, 0.6);
}

.user-list-filters {
  display: flex;
  border-bottom: 1px solid rgba(74, 158, 255, 0.2);
  overflow-x: auto;
  scrollbar-width: thin;
}

.user-list-filter-tab {
  flex: 1;
  padding: 0.75rem 0.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-width: fit-content;
}

.user-list-filter-tab:hover {
  background: rgba(74, 158, 255, 0.1);
  color: var(--text-primary, #e0f2f7);
}

.user-list-filter-tab.active {
  border-bottom-color: rgba(74, 158, 255, 0.8);
  color: var(--text-primary, #e0f2f7);
  font-weight: 600;
}

.user-list-sort {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(74, 158, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.user-list-sort label {
  font-size: 0.85rem;
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

.user-list-sort-select {
  flex: 1;
  padding: 0.4rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(74, 158, 255, 0.3);
  border-radius: 6px;
  color: var(--text-primary, #e0f2f7);
  font-size: 0.85rem;
  cursor: pointer;
}

.user-list-sort-select:focus {
  outline: none;
  border-color: rgba(74, 158, 255, 0.6);
}

.user-list-items {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}

.user-list-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(74, 158, 255, 0.1);
  gap: 0.75rem;
}

.user-list-item:hover {
  background: rgba(74, 158, 255, 0.1);
}

.user-list-item-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.user-list-item-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-list-item-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #00cfff, #7afb4c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}

.user-list-status-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-secondary, rgba(15, 23, 42, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  border: 2px solid var(--bg-secondary, rgba(15, 23, 42, 0.9));
}

.user-list-status-icon.live {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.user-list-item-content {
  flex: 1;
  min-width: 0;
}

.user-list-item-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-list-item-name {
  font-weight: 600;
  color: var(--text-primary, #e0f2f7);
  font-size: 0.95rem;
}

.user-list-item-username {
  font-size: 0.8rem;
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

.user-list-item-subscription {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: rgba(255, 215, 0, 0.8);
}

.user-list-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.user-list-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(74, 158, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary, #e0f2f7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.user-list-action-btn:hover {
  background: rgba(74, 158, 255, 0.2);
  border-color: rgba(74, 158, 255, 0.6);
  transform: scale(1.1);
}

.user-list-action-btn.primary {
  background: rgba(74, 158, 255, 0.2);
  border-color: rgba(74, 158, 255, 0.5);
}

.user-list-action-btn.primary:hover {
  background: rgba(74, 158, 255, 0.3);
}

.user-list-loading,
.user-list-error,
.user-list-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

/* Responsive Design */
@media (max-width: 768px) {
  .user-list-filter-tab {
    font-size: 0.75rem;
    padding: 0.6rem 0.4rem;
  }

  .user-list-item {
    padding: 0.75rem;
  }

  .user-list-item-avatar {
    width: 40px;
    height: 40px;
  }

  .user-list-action-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}


.messages-page {
  width: 100%;
  background: var(--bg-primary, #0a0a0f);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - env(safe-area-inset-bottom));
  padding: calc(env(safe-area-inset-top) + 0.5rem) env(safe-area-inset-left) calc(env(safe-area-inset-bottom) + 80px)
    env(safe-area-inset-right);
  box-sizing: border-box;
}

.messages-page-container {
  display: flex;
  min-height: calc(100vh - env(safe-area-inset-bottom));
  overflow: hidden;
}

.messages-page-sidebar {
  width: 350px;
  flex-shrink: 0;
  border-right: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.messages-page-sidebar-tabs {
  display: flex;
  border-bottom: none;
  background: rgba(0, 0, 0, 0.2);
}

.messages-page-sidebar-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.messages-page-sidebar-tab:hover {
  background: rgba(74, 158, 255, 0.1);
  color: var(--text-primary, #e0f2f7);
}

.messages-page-sidebar-tab.active {
  border-bottom-color: rgba(74, 158, 255, 0.8);
  color: var(--text-primary, #e0f2f7);
  font-weight: 600;
}

.messages-page-sidebar-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

/* WICHTIG: Main Chat-Panel - IMMER sichtbar wenn Chat geöffnet */
.messages-page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-width: 0;
  position: relative;
  background: linear-gradient(135deg, rgba(10, 10, 20, 0.95), rgba(15, 15, 25, 0.95));
  -webkit-overflow-scrolling: touch;
  border-radius: 24px;
}

.messages-page-main.active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.messages-page-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
  text-align: center;
  padding: 2rem;
}

.messages-page-empty h2 {
  margin-bottom: 0.5rem;
  color: var(--text-primary, #e0f2f7);
}

.messages-page-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
  text-align: center;
  padding: 2rem;
}

/* Empty State mit Illustration */
.messages-page-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), rgba(122, 95, 255, 0.05));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.messages-page-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.4));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.messages-page-empty-text {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.messages-page-empty-hint {
  font-size: 0.9rem;
  color: rgba(0, 229, 255, 0.7);
  margin-top: 0.5rem;
}

.empty-illustration-large {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px rgba(0, 207, 255, 0.6));
  animation: float-large 3s ease-in-out infinite;
}

@keyframes float-large {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

.messages-page-empty h2 {
  margin: 0 0 0.5rem 0;
  color: #e0f2f7;
  font-size: 1.5rem;
  text-shadow: 0 0 20px rgba(0, 207, 255, 0.5);
}

.messages-page-empty p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Floating Button */
.messages-floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00cfff, #7afb4c);
  border: 2px solid rgba(0, 207, 255, 0.5);
  box-shadow: 0 0 30px rgba(0, 207, 255, 0.6), 0 4px 20px rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.messages-floating-btn:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 0 40px rgba(0, 207, 255, 0.8), 0 6px 30px rgba(0, 0, 0, 0.5);
}

.messages-floating-btn:active {
  transform: scale(0.95);
}

.floating-btn-icon {
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}


/* WICHTIG: Mobile View - Chat-Fenster als Vollbild-Overlay */
@media (max-width: 768px) {
  .messages-page-container {
    flex-direction: column;
    position: relative;
  }
  
  .messages-page-sidebar {
    width: 100%;
    height: auto;
    max-height: 50vh;
  }
  
  /* WICHTIG: Auf Mobile: Chat-Fenster als Vollbild-Overlay */
  .messages-page-main {
    position: fixed !important;
    top: env(safe-area-inset-top) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: env(safe-area-inset-bottom) !important;
    width: 100% !important;
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    z-index: 10000 !important;
    display: none; /* Versteckt standardmäßig */
    border-radius: 0;
  }
  
  .messages-page-main.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Chat auf voller Breite auf Mobile */
  .dm-window {
    width: 100%;
    height: 100%;
  }
  
  /* WICHTIG: Eingabefeld muss auf Mobile auch fixiert sein */
  .dm-window-input-form {
    position: fixed !important;
    bottom: env(safe-area-inset-bottom) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10001 !important;
  }
}
.reminder-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.reminder-modal {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.reminder-modal h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.5rem;
}

.stream-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.stream-time {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.reminder-options {
  margin-bottom: 1.5rem;
}

.reminder-options label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #333;
}

.option-buttons {
  display: flex;
  gap: 0.75rem;
}

.option-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  color: #333;
}

.option-btn:hover:not(.disabled) {
  border-color: #667eea;
  background: #f8f9ff;
}

.option-btn.active {
  border-color: #667eea;
  background: #667eea;
  color: white;
}

.option-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover:not(:disabled) {
  background: #e0e0e0;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-btn:hover {
  background: #f0f0f0;
}


.boost-button-container {
  position: relative;
}

.boost-btn {
  background: #f0f0f0;
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
  flex: 1;
}

.boost-btn:hover {
  background: #e0e0e0;
  transform: scale(1.1);
}

.boost-btn.boosted {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.boost-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  min-width: 200px;
  z-index: 100;
}

.boost-balance {
  padding: 0.75rem;
  background: #f8f9ff;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #666;
}

.boost-balance div {
  margin-bottom: 0.25rem;
}

.boost-option {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  color: #333;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.boost-option:hover:not(:disabled) {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateX(4px);
}

.boost-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.boost-option.karma {
  border-left: 4px solid #9b59b6;
}

.boost-option.aura {
  border-left: 4px solid #3498db;
}


/* Glassmorphism Stream Card - Neonblau Design */
.stream-card-glass {
  position: relative;
  width: 100%;
  min-width: 140px;
  max-width: 140px;
  height: 220px;
  border-radius: 1rem;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

/* Hover-Effekt */
.stream-card-glass:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.3);
  border-color: rgba(0, 240, 255, 0.3);
}

/* Fokussierter Zustand */
.stream-card-glass.focused {
  min-width: 180px;
  max-width: 180px;
  transform: scale(1.15);
  z-index: 10;
  box-shadow: 0 12px 48px rgba(0, 240, 255, 0.4);
  border-color: rgba(0, 240, 255, 0.5);
}

.stream-card-glass.focused:hover {
  transform: scale(1.2);
}

/* Boosted State */
.stream-card-glass.boosted {
  border-color: rgba(250, 204, 21, 0.4);
  box-shadow: 0 4px 24px rgba(250, 204, 21, 0.2);
}

.stream-card-glass.boosted:hover {
  box-shadow: 0 8px 32px rgba(250, 204, 21, 0.4);
}

/* Live State */
.stream-card-glass.live {
  border-color: rgba(255, 77, 0, 0.4);
  box-shadow: 0 4px 24px rgba(255, 77, 0, 0.3);
  animation: pulse-live-glass 2s infinite;
}

@keyframes pulse-live-glass {
  0%, 100% {
    box-shadow: 0 4px 24px rgba(255, 77, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 32px rgba(255, 77, 0, 0.6);
  }
}

/* Glow-Border unten */
.glow-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #00f0ff;
  opacity: 0.6;
  filter: blur(8px);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Badges (AI/Trend) */
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 9999px;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-ai {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.badge-trend {
  color: #ff4d00;
  background: rgba(255, 77, 0, 0.1);
  border: 1px solid rgba(255, 77, 0, 0.3);
}

/* Content Container */
.stream-card-content {
  padding: 12px;
  margin-top: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Titel */
.stream-title-glass {
  color: #e0f2ff;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: font-size 0.3s ease;
}

.stream-card-glass.focused .stream-title-glass {
  font-size: 1rem;
  font-weight: 700;
}

/* Zeit */
.stream-time-glass {
  color: #7dd3fc;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.live-indicator {
  color: #ff4d00;
  font-weight: 600;
  animation: blink-live 1s infinite;
}

@keyframes blink-live {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.viewers-count {
  font-size: 0.7rem;
  color: #7dd3fc;
}

/* Badges Container */
.stream-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.badge-category {
  font-size: 0.75rem;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  padding: 4px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.badge-boost {
  font-size: 0.75rem;
  color: #facc15;
  background: rgba(250, 204, 21, 0.1);
  padding: 4px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(250, 204, 21, 0.2);
}

/* Stats */
.stream-stats-glass {
  display: flex;
  gap: 8px;
  font-size: 0.7rem;
  color: #7dd3fc;
  margin-top: 4px;
}

.stat-item-glass {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Actions */
.stream-actions-glass {
  display: flex;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
}

.reminder-btn-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reminder-btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.reminder-btn-glass.active {
  background: rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.4);
  color: #00f0ff;
}

.live-watch-btn-glass {
  width: 100%;
  background: linear-gradient(135deg, #ff4d00 0%, #cc3d00 100%);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.live-watch-btn-glass:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 77, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 640px) {
  .stream-card-glass {
    min-width: 140px;
    max-width: 140px;
    height: 220px;
  }

  .stream-card-glass.focused {
    min-width: 160px;
    max-width: 160px;
  }

  .stream-title-glass {
    font-size: 0.8rem;
  }

  .stream-card-content {
    padding: 10px;
  }
}

/* Live-Feed Anpassungen (kleinere Karten) */
.horizontal-row.live-feed .stream-card-glass {
  min-width: 47px;
  max-width: 47px;
  height: 60px;
}

.horizontal-row.live-feed .stream-card-glass.focused {
  min-width: 60px;
  max-width: 60px;
  height: 75px;
}

.horizontal-row.live-feed .stream-card-content {
  padding: 4px;
  margin-top: 16px;
}

.horizontal-row.live-feed .stream-title-glass {
  font-size: 0.5rem;
  line-height: 1.1;
  -webkit-line-clamp: 1;
}

.horizontal-row.live-feed .stream-time-glass {
  font-size: 0.4rem;
}

.horizontal-row.live-feed .stream-badges {
  display: none;
}

.horizontal-row.live-feed .stream-stats-glass {
  display: none;
}

.horizontal-row.live-feed .stream-actions-glass {
  display: none;
}

.horizontal-row.live-feed .badge {
  font-size: 0.5rem;
  padding: 2px 4px;
  top: 2px;
  left: 2px;
}
.horizontal-row {
  margin-bottom: 2rem;
}

.row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.row-header h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.row-controls {
  display: flex;
  gap: 0.5rem;
}

.scroll-btn {
  background: #f0f0f0;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: #333;
}

.scroll-btn:hover {
  background: #e0e0e0;
}

.scroll-btn:active {
  transform: scale(0.95);
}

.row-content {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.row-content::-webkit-scrollbar {
  height: 8px;
}

.row-content::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.row-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.row-content::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Scroll-Snap für StreamCards */
.row-content > * {
  scroll-snap-align: start;
}

/* Wrapper für StreamCards */
.stream-card-wrapper {
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* Zentriere fokussierte Kachel */
.stream-card-wrapper:has(.stream-card-glass.focused) {
  transform: translateX(0);
}

/* Live-Feed: Kacheln 3x kleiner - Angepasst für neue Glassmorphism-Karten */
.horizontal-row.live-feed .stream-card-wrapper .stream-card-glass {
  min-width: 47px;
  max-width: 47px;
  height: 60px;
}

.horizontal-row.live-feed .stream-card-wrapper .stream-card-glass.focused {
  min-width: 60px;
  max-width: 60px;
  height: 75px;
  transform: scale(1.1);
}

.program-overview {
  padding: calc(1rem + env(safe-area-inset-top)) 1rem calc(1rem + env(safe-area-inset-bottom) + 80px);
  max-width: 100%;
  overflow-x: hidden;
  min-height: calc(100vh - env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.program-header {
  margin-bottom: 2rem;
  text-align: center;
}

.program-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.program-header p {
  color: #666;
  font-size: 1rem;
}

.program-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.empty-state p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}

.loading-spinner {
  font-size: 1.2rem;
  color: #667eea;
}


.obs-overlay {
  width: 100vw;
  height: 100vh;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  z-index: 9999;
}

.obs-overlay-error {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 1.5rem;
}

/* Chat-Bereich (unten links) */
.obs-overlay-chat {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 400px;
  max-height: 300px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  pointer-events: auto;
}

.obs-overlay-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: rgba(0, 229, 255, 0.2);
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  font-weight: 600;
  color: #00E5FF;
  font-size: 0.9rem;
}

.obs-overlay-likes {
  color: #ff6b9d;
  font-size: 0.85rem;
}

.obs-overlay-chat-messages {
  max-height: 250px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.obs-overlay-chat-messages::-webkit-scrollbar {
  width: 4px;
}

.obs-overlay-chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.obs-overlay-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.5);
  border-radius: 2px;
}

.obs-overlay-message {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.obs-overlay-username {
  color: #00E5FF;
  font-weight: 600;
  flex-shrink: 0;
}

.obs-overlay-message-text {
  color: rgba(255, 255, 255, 0.9);
  word-wrap: break-word;
}

/* Geschenke-Bereich (unten rechts) */
.obs-overlay-gifts {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
  pointer-events: auto;
}

.obs-overlay-gift {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 170, 0, 0.9) 0%, rgba(255, 100, 0, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(255, 170, 0, 0.4);
  animation: giftSlideIn 0.5s ease-out, giftPulse 2s ease-in-out infinite;
  min-width: 250px;
}

@keyframes giftSlideIn {
  from {
    opacity: 0;
    transform: translateX(50px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes giftPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(255, 170, 0, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(255, 170, 0, 0.6);
  }
}

.obs-overlay-gift-icon {
  font-size: 2rem;
  animation: giftBounce 1s ease-in-out infinite;
}

@keyframes giftBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.obs-overlay-gift-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.obs-overlay-gift-username {
  font-weight: 700;
  color: white;
  font-size: 0.95rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.obs-overlay-gift-type {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

.obs-overlay-gift-amount {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Responsive für verschiedene Auflösungen */
@media (max-width: 1920px) {
  .obs-overlay-chat {
    width: 350px;
    max-height: 250px;
  }
  
  .obs-overlay-gift {
    min-width: 200px;
  }
}

@media (max-width: 1280px) {
  .obs-overlay-chat {
    width: 300px;
    max-height: 200px;
  }
  
  .obs-overlay-message {
    font-size: 0.75rem;
  }
}

.obs-guest-requests {
  width: 100vw;
  height: 100vh;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
}

.obs-guest-requests-error,
.obs-guest-requests-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 1.5rem;
}

.obs-guest-requests-empty {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
}

.obs-guest-requests-empty-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

.obs-guest-requests-empty-text {
  font-size: 1rem;
  opacity: 0.7;
}

.obs-guest-requests-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  margin-bottom: 12px;
  min-width: 280px;
  pointer-events: auto;
}

.obs-guest-requests-title {
  color: #00E5FF;
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
}

.obs-guest-requests-count {
  background: rgba(0, 229, 255, 0.2);
  color: #00E5FF;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.obs-guest-requests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  pointer-events: auto;
}

.obs-guest-request-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  animation: guestRequestSlideIn 0.4s ease-out;
  transition: all 0.3s;
}

.obs-guest-request-item:hover {
  border-color: rgba(0, 229, 255, 0.5);
  background: rgba(0, 0, 0, 0.9);
  transform: translateX(-5px);
}

@keyframes guestRequestSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.obs-guest-request-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(0, 229, 255, 0.3);
}

.obs-guest-request-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.obs-guest-request-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00E5FF 0%, #0099cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.obs-guest-request-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.obs-guest-request-username {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.obs-guest-request-status {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.obs-guest-request-indicator {
  position: relative;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.obs-guest-request-pulse {
  width: 100%;
  height: 100%;
  background: #00E5FF;
  border-radius: 50%;
  animation: guestRequestPulse 2s ease-in-out infinite;
}

@keyframes guestRequestPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(0, 229, 255, 0);
  }
}

/* Responsive */
@media (max-width: 1920px) {
  .obs-guest-requests-header,
  .obs-guest-requests-list {
    max-width: 260px;
  }
}

@media (max-width: 1280px) {
  .obs-guest-request-item {
    padding: 12px 16px;
  }
  
  .obs-guest-request-avatar {
    width: 40px;
    height: 40px;
  }
  
  .obs-guest-request-username {
    font-size: 0.85rem;
  }
}

.sound-management {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  font-family: 'Orbitron', sans-serif;
}

.sound-management-header {
  margin-bottom: 32px;
  text-align: center;
}

.sound-management-header h1 {
  color: #00d4ff;
  font-size: 32px;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.sound-management-header p {
  color: #aaa;
  font-size: 14px;
}

.discover-btn {
  margin-top: 16px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #ff00e6 0%, #b8007f 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 10px rgba(255, 0, 230, 0.5);
}

.discover-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 0, 230, 0.8);
}

.discover-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Upload-Bereich */
.upload-area {
  border: 2px dashed #00d4ff55;
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  background: rgba(0, 212, 255, 0.05);
  transition: all 0.3s;
  margin-bottom: 32px;
}

.upload-area.drag-active {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.upload-icon {
  font-size: 64px;
  opacity: 0.7;
}

.upload-content p {
  color: #00d4ff;
  font-size: 16px;
  margin: 0;
}

.upload-hint {
  font-size: 12px !important;
  color: #888 !important;
}

.upload-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #00d4ff 0%, #00ffaa 100%);
  border: none;
  border-radius: 12px;
  color: #000;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
}

.upload-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Sounds-Liste */
.sounds-list h2 {
  color: #00d4ff;
  font-size: 24px;
  margin-bottom: 20px;
}

.sounds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.sound-card {
  background: rgba(2, 8, 24, 0.8);
  border: 2px solid #00d4ff33;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s;
}

.sound-card:hover {
  border-color: #00d4ff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
}

.sound-card.published {
  border-color: #00ffaa33;
}

.sound-card.published:hover {
  border-color: #00ffaa;
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
}

.sound-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sound-status {
  display: flex;
  gap: 8px;
  align-items: center;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-badge.published {
  background: rgba(0, 255, 170, 0.2);
  color: #00ffaa;
  border: 1px solid #00ffaa;
}

.status-badge.draft {
  background: rgba(255, 200, 0, 0.2);
  color: #ffc800;
  border: 1px solid #ffc800;
}

.ai-badge {
  padding: 4px 8px;
  background: rgba(255, 0, 230, 0.2);
  color: #ff00e6;
  border: 1px solid #ff00e6;
  border-radius: 8px;
  font-size: 10px;
}

.sound-actions {
  display: flex;
  gap: 8px;
}

.sound-actions button {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  border: 1px solid #00d4ff33;
}

.sound-actions button:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: scale(1.05);
}

.btn-publish {
  background: rgba(0, 255, 170, 0.1) !important;
  color: #00ffaa !important;
  border-color: #00ffaa33 !important;
}

.btn-delete {
  background: rgba(255, 68, 68, 0.1) !important;
  color: #ff4444 !important;
  border-color: #ff444433 !important;
}

.sound-card-body h3 {
  color: #00d4ff;
  font-size: 18px;
  margin: 0 0 8px 0;
}

.sound-description {
  color: #aaa;
  font-size: 13px;
  margin: 0 0 12px 0;
  min-height: 20px;
}

.sound-info {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #888;
}

.sound-dates {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #666;
  margin-bottom: 12px;
}

.sound-preview {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #00d4ff33;
}

.sound-preview audio {
  width: 100%;
  height: 32px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(2, 8, 24, 0.98);
  border: 2px solid #00d4ff;
  border-radius: 20px;
  padding: 32px;
  min-width: 500px;
  max-width: 600px;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

.modal-content h2 {
  color: #00d4ff;
  margin: 0 0 24px 0;
  font-size: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #00d4ff;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #00d4ff33;
  border-radius: 8px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.btn-save,
.btn-cancel {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
}

.btn-save {
  background: linear-gradient(135deg, #00d4ff 0%, #00ffaa 100%);
  color: #000;
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.btn-cancel {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
  border: 1px solid #ff444433;
}

.btn-cancel:hover {
  background: rgba(255, 68, 68, 0.3);
}

.loading,
.empty-state {
  text-align: center;
  padding: 48px;
  color: #888;
  font-size: 16px;
}

.music-library {
  padding: 24px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
}

.music-library-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.music-library-header h1 {
  color: #00d4ff;
  font-size: 32px;
  margin: 0 0 8px 0;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.music-library-header p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.music-library-layout {
  display: flex;
  gap: 24px;
}

.genre-sidebar {
  width: 250px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: 24px;
}

.genre-sidebar h3 {
  color: #00d4ff;
  margin: 0 0 16px 0;
  font-size: 18px;
}

.genre-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.genre-item {
  padding: 10px 12px;
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
  font-family: 'Orbitron', sans-serif;
}

.genre-item:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.5);
  color: #00d4ff;
}

.genre-item.active {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.add-genre-btn {
  width: 100%;
  padding: 10px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px dashed rgba(0, 212, 255, 0.5);
  border-radius: 8px;
  color: #00d4ff;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
}

.add-genre-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
}

.new-genre-input {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.new-genre-input input {
  flex: 1;
  padding: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
}

.new-genre-input button {
  padding: 8px 12px;
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.5);
  border-radius: 6px;
  color: #00d4ff;
  cursor: pointer;
  transition: all 0.3s;
}

.new-genre-input button:hover {
  background: rgba(0, 212, 255, 0.3);
}

.music-content {
  flex: 1;
}

.upload-area {
  background: rgba(0, 0, 0, 0.6);
  border: 2px dashed rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-bottom: 24px;
  transition: all 0.3s;
}

.upload-area.drag-active {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.upload-area p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.upload-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.upload-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.upload-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.upload-artist-selection {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.upload-artist-selection label {
  color: #00d4ff;
  font-size: 14px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
}

.upload-artist-selection .artist-select {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.upload-artist-selection .custom-artist-input {
  display: flex;
  gap: 8px;
  align-items: center;
}

.upload-artist-selection .custom-artist-input input {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  min-width: 200px;
}

.upload-artist-selection .custom-artist-input button {
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.5);
  border-radius: 6px;
  color: #00d4ff;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
}

.import-url-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.5);
  border-radius: 8px;
  color: #00d4ff;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
}

.import-url-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: #00d4ff;
}

.import-url-form {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.import-url-form h4 {
  color: #00d4ff;
  margin: 0 0 16px 0;
}

.import-url-form input,
.import-url-form select {
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  margin-bottom: 12px;
  font-family: 'Orbitron', sans-serif;
}

.import-url-actions {
  display: flex;
  gap: 12px;
}

.import-url-actions button {
  flex: 1;
  padding: 10px;
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.5);
  border-radius: 8px;
  color: #00d4ff;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Orbitron', sans-serif;
}

.import-url-actions button:hover {
  background: rgba(0, 212, 255, 0.3);
}

.tracks-list {
  margin-top: 24px;
}

.tracks-list h2 {
  color: #00d4ff;
  margin: 0 0 20px 0;
  font-size: 24px;
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.track-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s;
  position: relative;
}

.track-card:hover {
  border-color: #00d4ff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.track-cover {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #1e9bff 0%, #00a8ff 100%);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}

.waveform-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.waveform-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 100%;
}

.waveform-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  animation: waveform 1s ease-in-out infinite;
}

@keyframes waveform {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.track-info {
  margin-bottom: 12px;
}

.track-info h4 {
  color: #fff;
  margin: 0 0 4px 0;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-artist {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-bottom: 6px;
  font-weight: bold;
}

.track-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
}

.track-genre {
  color: #00d4ff;
  font-weight: bold;
}

.track-duration {
  color: rgba(255, 255, 255, 0.7);
}

.track-details {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.track-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.preview-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: #00d4ff;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.preview-btn:hover {
  background: rgba(0, 212, 255, 0.3);
  transform: scale(1.1);
}

.preview-btn.active {
  background: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.track-menu {
  position: relative;
  margin-left: auto;
}

.menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-btn:hover {
  border-color: #00d4ff;
  color: #00d4ff;
}

.menu-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  padding: 8px;
  min-width: 160px;
  display: none;
  z-index: 1000;
}

.track-menu:hover .menu-dropdown {
  display: block;
}

.menu-dropdown button {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
}

.menu-dropdown button:hover {
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
}

.menu-dropdown .delete-btn:hover {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
}

.loading,
.empty-state {
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.5);
}

.notification-sounds {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.notification-sounds-header {
  margin-bottom: 2rem;
}

.notification-sounds-header h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #00cfff 0%, #4a9eff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.notification-sounds-description {
  color: #a0a0a0;
  margin: 0;
}

.notification-sounds-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.notification-sounds-message.success {
  background: rgba(74, 251, 76, 0.1);
  border: 1px solid rgba(74, 251, 76, 0.3);
  color: #4afb4c;
}

.notification-sounds-message.error {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff4444;
}

.notification-sounds-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(0, 207, 255, 0.2);
}

.notification-sounds-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #a0a0a0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: -2px;
}

.notification-sounds-tab:hover {
  color: #00cfff;
}

.notification-sounds-tab.active {
  color: #00cfff;
  border-bottom-color: #00cfff;
}

.notification-sounds-category {
  display: none;
}

.notification-sounds-category.active {
  display: block;
}

.notification-sounds-category-header {
  margin-bottom: 1.5rem;
}

.notification-sounds-category-header h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
}

.notification-sounds-category-description {
  color: #a0a0a0;
  margin: 0;
}

.notification-sounds-empty {
  padding: 3rem;
  text-align: center;
  background: rgba(0, 207, 255, 0.05);
  border: 1px dashed rgba(0, 207, 255, 0.3);
  border-radius: 8px;
  color: #a0a0a0;
}

.notification-sounds-empty-hint {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.notification-sounds-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.notification-sounds-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(0, 207, 255, 0.05);
  border: 1px solid rgba(0, 207, 255, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.notification-sounds-item:hover {
  background: rgba(0, 207, 255, 0.08);
  border-color: rgba(0, 207, 255, 0.4);
}

.notification-sounds-item-info {
  flex: 1;
}

.notification-sounds-item-info h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
}

.notification-sounds-item-description {
  color: #a0a0a0;
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
}

.notification-sounds-item-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notification-sounds-item-filename {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #7afb4c;
}

.notification-sounds-item-status {
  font-size: 0.9rem;
  font-weight: 500;
}

.notification-sounds-item-status.exists {
  color: #4afb4c;
}

.notification-sounds-item-status.missing {
  color: #ff4444;
}

.notification-sounds-item-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.notification-sounds-upload-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #00cfff 0%, #4a9eff 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notification-sounds-upload-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 207, 255, 0.4);
}

.notification-sounds-upload-button input[type="file"] {
  display: none;
}

.notification-sounds-upload-button:has(input:disabled) {
  opacity: 0.6;
  cursor: not-allowed;
}

.notification-sounds-test-button {
  padding: 0.75rem 1.5rem;
  background: rgba(74, 251, 76, 0.1);
  color: #4afb4c;
  border: 1px solid rgba(74, 251, 76, 0.3);
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notification-sounds-test-button:hover {
  background: rgba(74, 251, 76, 0.2);
  border-color: rgba(74, 251, 76, 0.5);
}

@media (max-width: 768px) {
  .notification-sounds-item {
    flex-direction: column;
    gap: 1rem;
  }

  .notification-sounds-item-actions {
    width: 100%;
    justify-content: stretch;
  }

  .notification-sounds-upload-button,
  .notification-sounds-test-button {
    flex: 1;
  }
}

.match-sounds-container {
  padding: 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.match-sounds-header {
  margin-bottom: 30px;
}

.match-sounds-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}

.match-sounds-header p {
  color: #aaa;
  font-size: 0.9rem;
}

.match-sounds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.match-sounds-left,
.match-sounds-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.match-sounds-section {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #333;
}

.match-sounds-section h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #fff;
  border-bottom: 2px solid #444;
  padding-bottom: 10px;
}

.match-sounds-section h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #ddd;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-input,
.form-select {
  padding: 10px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #2a2a2a;
  color: #fff;
  font-size: 0.9rem;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #0ff;
}

.form-file-input {
  display: none;
}

.btn-upload,
.btn-search {
  padding: 10px 20px;
  background: linear-gradient(135deg, #0ff, #00f);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-upload:hover,
.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

.btn-upload:disabled,
.btn-search:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sounds-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sound-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #2a2a2a;
  border-radius: 8px;
  border: 1px solid #444;
}

.sound-info {
  flex: 1;
}

.sound-name {
  font-weight: bold;
  color: #fff;
  margin-bottom: 5px;
}

.sound-event {
  display: flex;
  gap: 5px;
}

.event-badge {
  padding: 4px 8px;
  background: linear-gradient(135deg, #0ff, #00f);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #fff;
}

.sound-actions {
  display: flex;
  gap: 8px;
}

.btn-play,
.btn-stop,
.btn-delete,
.btn-add,
.btn-remove {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.btn-play {
  background: #0a0;
  color: #fff;
}

.btn-stop {
  background: #a00;
  color: #fff;
}

.btn-delete {
  background: #a00;
  color: #fff;
}

.btn-add {
  background: #0a0;
  color: #fff;
}

.btn-remove {
  background: #a00;
  color: #fff;
}

.btn-play:hover,
.btn-stop:hover,
.btn-delete:hover,
.btn-add:hover,
.btn-remove:hover {
  transform: scale(1.1);
}

.freesound-search {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.freesound-results {
  margin-top: 20px;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
}

.freesound-result-item {
  padding: 12px;
  background: #2a2a2a;
  border-radius: 8px;
  border: 1px solid #444;
  cursor: move;
  transition: all 0.2s;
}

.freesound-result-item:hover {
  border-color: #0ff;
  transform: translateX(5px);
}

.result-info {
  margin-bottom: 10px;
}

.result-name {
  font-weight: bold;
  color: #fff;
  margin-bottom: 8px;
}

.result-meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 8px;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  padding: 3px 8px;
  background: #333;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #ddd;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-audio {
  flex: 1;
  height: 30px;
}

.selected-sounds-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selected-sound-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #2a2a2a;
  border-radius: 6px;
  border: 1px solid #444;
}

.selected-sound-name {
  color: #fff;
  font-size: 0.9rem;
}

.help-text {
  color: #aaa;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.match-events-dropzones {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.dropzone {
  min-height: 120px;
  padding: 15px;
  background: #2a2a2a;
  border: 2px dashed #444;
  border-radius: 8px;
  transition: all 0.3s;
}

.dropzone.drag-over {
  border-color: #0ff;
  background: #2a3a3a;
  transform: scale(1.05);
}

.dropzone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dropzone-label {
  font-weight: bold;
  color: #fff;
  font-size: 0.9rem;
}

.dropzone-count {
  color: #aaa;
  font-size: 0.8rem;
}

.dropzone-sounds {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dropzone-sound-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #333;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #ddd;
}

.btn-remove-small {
  padding: 2px 6px;
  background: #a00;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 0.7rem;
}

.btn-remove-small:hover {
  background: #c00;
}

.loading,
.empty-state {
  text-align: center;
  padding: 40px;
  color: #aaa;
}

@media (max-width: 1200px) {
  .match-sounds-grid {
    grid-template-columns: 1fr;
  }
}

.admin-dashboard {
  display: flex;
  min-height: 100vh;
  background: #020817;
  font-family: 'Orbitron', sans-serif;
}

.admin-sidebar {
  width: 250px;
  background: rgba(0, 0, 0, 0.8);
  border-right: 2px solid #00d4ff33;
  padding: 24px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.admin-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #00d4ff33;
}

.admin-header h1 {
  color: #00d4ff;
  font-size: 24px;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav-item {
  padding: 12px 16px;
  color: #aaa;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.admin-nav-item:hover {
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  border-color: #00d4ff33;
}

.admin-nav-item.active {
  background: rgba(0, 212, 255, 0.2);
  color: #00d4ff;
  border-color: #00d4ff;
}

.admin-nav-section {
  margin-bottom: 16px;
}

.admin-nav-section-title {
  color: #00d4ff;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  padding: 8px 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.admin-nav-subitem {
  padding-left: 32px !important;
  font-size: 13px;
}

.admin-content {
  flex: 1;
  margin-left: 250px;
  padding: 24px;
  overflow-y: auto;
  min-height: 100vh;
  background: #020817;
  color: #fff;
}

.hls-diagnostic {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #fff;
}

.diagnostic-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.diagnostic-header h1 {
  margin: 0 0 10px 0;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.diagnostic-header p {
  margin: 0 0 20px 0;
  opacity: 0.9;
  font-size: 1.1em;
}

.run-button {
  background: #00ff00;
  color: #000;
  border: none;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.run-button:hover:not(:disabled) {
  background: #00cc00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 0, 0.4);
}

.run-button:disabled {
  background: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.header-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.copy-button {
  background: #00aaff;
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3);
}

.copy-button:hover {
  background: #0088cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 170, 255, 0.4);
}

.copy-button:active {
  transform: translateY(0);
}

.error-box {
  background: rgba(255, 0, 0, 0.2);
  border: 2px solid #ff0000;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.error-box h3 {
  margin: 0 0 10px 0;
  color: #ff0000;
}

.loading-box {
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 20px;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.summary-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.summary-box h2 {
  margin: 0 0 20px 0;
  font-size: 1.8em;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.9em;
  opacity: 0.8;
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  font-size: 2em;
  font-weight: bold;
}

.video-info {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.video-info p {
  margin: 10px 0;
  word-break: break-all;
}

.video-info a {
  color: #00ffff;
  text-decoration: underline;
}

.root-cause {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.root-cause h3 {
  margin: 0 0 10px 0;
}

.results-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.results-box h2 {
  margin: 0 0 20px 0;
  font-size: 1.8em;
}

.result-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s;
}

.result-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.result-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.result-icon {
  font-size: 1.5em;
}

.result-part {
  flex: 1;
  font-weight: bold;
  font-size: 1.1em;
}

.result-status {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9em;
}

.result-message {
  margin-top: 10px;
  opacity: 0.9;
  line-height: 1.6;
}

.result-details {
  margin-top: 15px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  overflow-x: auto;
}

.result-details pre {
  margin: 0;
  font-size: 0.85em;
  color: #00ffff;
  white-space: pre-wrap;
  word-break: break-word;
}

.recommendations-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.recommendations-box h2 {
  margin: 0 0 20px 0;
  font-size: 1.8em;
}

.recommendations-box ul {
  list-style: none;
  padding: 0;
}

.recommendations-box li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
}

.recommendations-box li:before {
  content: '💡';
  position: absolute;
  left: 0;
}

.info-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.info-box h3 {
  margin: 0 0 15px 0;
  font-size: 1.5em;
}

.info-box ol {
  margin: 0;
  padding-left: 20px;
}

.info-box li {
  margin: 15px 0;
  line-height: 1.8;
}

.info-box ul {
  margin: 10px 0;
  padding-left: 20px;
}

.info-box code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.mobile-report-box {
  background: rgba(255, 170, 0, 0.1);
  border: 2px solid #ffaa00;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.mobile-report-box h2 {
  margin: 0 0 20px 0;
  color: #ffaa00;
}

.mobile-issues {
  margin-bottom: 20px;
}

.mobile-issue {
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border-left: 4px solid;
}

.mobile-issue-critical {
  background: rgba(255, 0, 0, 0.1);
  border-color: #ff0000;
}

.mobile-issue-high {
  background: rgba(255, 100, 0, 0.1);
  border-color: #ff6400;
}

.mobile-issue-medium {
  background: rgba(255, 170, 0, 0.1);
  border-color: #ffaa00;
}

.mobile-solutions {
  margin-top: 20px;
}

.solution-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
}

.solution-item strong {
  display: block;
  margin-bottom: 5px;
  color: #00ffff;
}

.solution-item code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
  .hls-diagnostic {
    padding: 10px;
  }

  .diagnostic-header h1 {
    font-size: 1.8em;
  }

  .summary-stats {
    grid-template-columns: 1fr;
  }
}

.create-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.create-modal-overlay.closing {
  animation: fadeOut 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.create-modal-content {
  background: #1a1a1a;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  padding: 1.5rem;
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.create-modal-overlay.closing .create-modal-content {
  animation: slideDown 0.2s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

.create-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.create-modal-header h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.create-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.create-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.create-modal-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.create-modal-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.create-modal-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.create-modal-option-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.create-modal-option-icon.video {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.create-modal-option-icon.live {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
}

.create-modal-option-content {
  flex: 1;
}

.create-modal-option-content h3 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.create-modal-option-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--color-dark-blue);
  border-top: 1px solid var(--color-medium-blue);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.nav-item.create-button {
  background: var(--color-neon-blue);
  color: var(--color-deep-blue);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -10px;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
  transition: all 0.2s ease;
}

.nav-item.create-button:hover {
  background: var(--color-accent);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 212, 255, 0.6);
}

.nav-item.create-button span {
  display: none;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.2s ease;
  min-width: 50px;
  flex: 1;
  max-width: 80px;
}

.nav-item span {
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.nav-item svg {
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item.active {
  color: var(--color-neon-blue);
}

.nav-item.active svg {
  transform: scale(1.1);
}

.nav-item-live {
  position: relative;
  margin: -20px 0;
}

.live-button-inner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-neon-blue), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
  transition: all 0.3s ease;
}

.nav-item-live:hover .live-button-inner {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
}

.live-button-inner svg {
  color: var(--color-deep-blue);
}

/* Safe area für iOS */
@supports (padding: max(0px)) {
  .bottom-nav {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
}

:root {
  /* Dunkles Blau Farbschema - von tief zu hell */
  --color-deep-blue: #0a1628;
  --color-dark-blue: #0f1e3d;
  --color-medium-blue: #1a2f5c;
  --color-bright-blue: #2a4a7a;
  --color-light-blue: #3d6ba3;
  --color-neon-blue: #00d4ff;
  --color-accent: #4a9eff;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #b0b8c4;
  --text-muted: #6b7280;
  
  /* Background */
  --bg-primary: var(--color-deep-blue);
  --bg-secondary: var(--color-dark-blue);
  --bg-overlay: rgba(10, 22, 40, 0.9);
  
  /* Transparent Overlays */
  --overlay-dark: rgba(0, 0, 0, 0.6);
  --overlay-medium: rgba(0, 0, 0, 0.4);
  --overlay-light: rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  /* 🔥 PWA Mobile Härtung: Verhindere ungewollte Touch-Gesten */
  touch-action: pan-y pan-x;
  /* Verhindere Text-Selektion beim Ziehen */
  -webkit-user-select: none;
  user-select: none;
  /* Verhindere Zoom durch Doppel-Tap */
  -webkit-tap-highlight-color: transparent;
  /* Fix für iOS Safari: Verhindere Bounce-Scroll */
  overscroll-behavior: none;
  /* Verhindere Pull-to-Refresh */
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
}

.loading-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-dark-blue);
}

::-webkit-scrollbar-thumb {
  background: var(--color-medium-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-bright-blue);
}

/* 🔥 PWA Mobile Härtung: Globale Touch-Gesten-Verhinderung */
* {
  /* Verhindere Text-Selektion beim Ziehen (außer Input-Felder) */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Erlaube Text-Selektion in Input-Feldern */
input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

/* Verhindere Zoom durch Doppel-Tap */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Verhindere Pull-to-Refresh und Bounce-Scroll, aber erlaube normales Scrolling */
html,
body {
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
  overscroll-behavior: none;
  /* Erlaube Scrolling */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Verhindere ungewollte Touch-Gesten auf Buttons und Links */
button,
a,
[role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Verhindere horizontales Scrollen durch Ziehen */
img,
video {
  touch-action: pan-y;
  -webkit-user-drag: none;
  user-drag: none;
}

/* Fix für iOS Safari: Verhindere 300ms Tap-Delay */
a,
button,
[role="button"] {
  touch-action: manipulation;
}
/* Import Levi Holo Styles */
/* Levi Holo Style - Hologramm-Look mit Blau/Türkis Glow */
.holo {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 100, 255, 0.1));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}
.holo-glow {
  box-shadow: 0 0 30px rgba(0, 234, 255, 0.5),
              0 0 60px rgba(0, 234, 255, 0.3),
              0 0 90px rgba(0, 234, 255, 0.1);
}
.holo-border {
  border: 2px solid rgba(0, 234, 255, 0.5);
  box-shadow: inset 0 0 20px rgba(0, 234, 255, 0.2),
              0 0 20px rgba(0, 234, 255, 0.3);
}
/* Glass Panels */
.glass-panel {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 234, 255, 0.3);
  border-radius: 1rem;
}
.glass-panel-light {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 234, 255, 0.2);
}
/* Floating Buttons */
.floating-btn {
  background: rgba(0, 234, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 234, 255, 0.4);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 234, 255, 0.3);
  transition: all 0.3s ease;
}
.floating-btn:hover {
  background: rgba(0, 234, 255, 0.4);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 234, 255, 0.5);
}
/* Neon Text */
.neon-text {
  color: #00eaff;
  text-shadow: 0 0 10px rgba(0, 234, 255, 0.8),
               0 0 20px rgba(0, 234, 255, 0.6),
               0 0 30px rgba(0, 234, 255, 0.4);
}
.neon-text-pink {
  color: #ff66cc;
  text-shadow: 0 0 10px rgba(255, 102, 204, 0.8),
               0 0 20px rgba(255, 102, 204, 0.6);
}
/* Animations */
@keyframes holo-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 234, 255, 0.6);
  }
}
.holo-pulse {
  animation: holo-pulse 2s ease-in-out infinite;
}
@keyframes holo-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.holo-shimmer {
  background: linear-gradient(
    90deg,
    rgba(0, 234, 255, 0.1) 0%,
    rgba(0, 234, 255, 0.3) 50%,
    rgba(0, 234, 255, 0.1) 100%
  );
  background-size: 200% 100%;
  animation: holo-shimmer 3s ease-in-out infinite;
}
/* Dark Neon Theme Variables */
:root {
  --color-deep-blue: #0a0e27;
  --color-dark-blue: #0d1117;
  --color-medium-blue: #1a1f27;
  --color-bright-blue: #2a3441;
  --color-neon-blue: #00eaff;
  --color-accent: #00d4e6;
  --color-pink: #ff66cc;
  --color-gold: #ffd700;
}
/* Utility Classes */
.bg-holo {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 100, 255, 0.05));
}
.border-holo {
  border: 1px solid rgba(0, 234, 255, 0.4);
}
.text-holo {
  color: #00eaff;
}
.shadow-holo {
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.3);
}
/* Global Styles - Import aller Komponenten-Styles */
/* Recorder Styles werden in Recorder.css definiert */
/* Editor Styles werden in Editor.css definiert */
/* Timeline Styles werden in Timeline.css definiert */
/* Global Overrides */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--color-deep-blue);
  color: white;
}
/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-dark-blue);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 234, 255, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 234, 255, 0.5);
}
/* Selection */
::selection {
  background: rgba(0, 234, 255, 0.3);
  color: white;
}
:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #0a1628;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Levi Holo Variables */
  --color-deep-blue: #0a0e27;
  --color-dark-blue: #0d1117;
  --color-medium-blue: #1a1f27;
  --color-bright-blue: #2a3441;
  --color-neon-blue: #00eaff;
  --color-accent: #00d4e6;
  --color-pink: #ff66cc;
  --color-gold: #ffd700;
  
  /* WICHTIG: Safe-Area-Variablen für iOS/Android */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  /* WICHTIG: iOS-Extra-Abstand (Standard: 0 für Android) */
  --ios-extra-bottom: 0px;
}
/* WICHTIG: iOS-Erkennung über WebKit-Marker - 4 Zeilen höher (2 + 2 zusätzlich) */
.ios-device {
  --ios-extra-bottom: 68px; /* ≈ 4 Textzeilen (2 ursprünglich + 2 zusätzlich) */
}
/* WICHTIG: Safe-Bottom-Klasse für alle Geräte */
.safe-bottom {
  padding-bottom: calc(var(--safe-bottom) + 8px) !important;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
}
.safe-area-top {
  padding-top: env(safe-area-inset-top);
}
.page-wrapper {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  min-height: calc(100vh - env(safe-area-inset-bottom));
  box-sizing: border-box;
}
html {
  /* 🔥 PWA Mobile Härtung: Verhindere Pull-to-Refresh und Bounce-Scroll */
  overflow-y: auto;
  overflow-x: hidden;
  /* Smooth Scrolling */
  -webkit-overflow-scrolling: touch;
}
body {
  display: block;
  min-width: 320px;
  min-height: 100vh;
  /* 🍎 iOS Scroll-Fix: -webkit-overflow-scrolling: touch ERZWINGEN */
  -webkit-overflow-scrolling: touch;
  /* 🍎 iOS Fix: Verhindere Fullscreen-API im Feed */
  overscroll-behavior: none;
  /* 🍎 iOS Fix: Keine negative margins / transitions die iOS playback verhindern */
  overflow-x: hidden;
  /* 🔥 PWA Mobile Härtung: Verhindere ungewollte Touch-Gesten, aber erlaube Scrolling */
  touch-action: pan-y pan-x;
  /* Verhindere Text-Selektion beim Ziehen */
  -webkit-user-select: none;
  user-select: none;
  /* Verhindere Zoom durch Doppel-Tap */
  -webkit-tap-highlight-color: transparent;
}
#root {
  width: 100%;
  min-height: 100vh;
  /* 🔥 PWA Mobile Härtung: Erlaube Scrolling, verhindere aber Größenänderung durch Ziehen */
  touch-action: pan-y pan-x;
  /* Verhindere Text-Selektion */
  -webkit-user-select: none;
  user-select: none;
  /* Fix für iOS: Verhindere Bounce */
  overscroll-behavior-y: none;
  /* Fix für Android: Verhindere Pull-to-Refresh */
  overscroll-behavior-x: none;
  /* Verhindere Zoom */
  -webkit-tap-highlight-color: transparent;
  /* Stabile Position */
  position: relative;
  /* Smooth Scrolling */
  -webkit-overflow-scrolling: touch;
}
