
:root {
  /* Nova/Galaxy Color Palette */
  --bg-space: #0a0a0f;
  --bg-nebula: #1a0d2e;
  --bg-star: #2d1b3d;
  --panel-dark: #1e1034;
  --panel-glow: #2a1852;
  --text-cosmic: #e8e3ff;
  --text-star: #d6c8f0;
  --text-nebula: #b48cff;
  --text-muted: #7d5bd3;
  --accent-nova: #f83bb4;
  --accent-galaxy: #7c3cff;
  --accent-cosmic: #67e8f9;
  --accent-supernova: #ffe66d;
  --success: #67e8f9;
  --warning: #ffd166;
  --danger: #ff4d8d;
  --live-pulse: #ff2fa7;
  --border-cosmic: rgba(124, 60, 255, 0.34);
  --border-glow: rgba(248, 59, 180, 0.5);

  /* Galaxy Glassmorphism */
  --glass-space: rgba(42, 18, 82, 0.16);
  --glass-nebula: rgba(124, 60, 255, 0.11);
  --glass-border: rgba(232, 227, 255, 0.2);
}

.modal-confirm {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-cosmic);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-confirm:hover {
  border-color: var(--accent-galaxy);
  background: rgba(124, 60, 255, 0.15);
  color: var(--text-cosmic);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 80%,
      rgba(168, 85, 247, 0.3) 0%,
      transparent 50%),
    radial-gradient(circle at 80% 20%,
      rgba(255, 107, 157, 0.3) 0%,
      transparent 50%),
    radial-gradient(circle at 40% 40%,
      rgba(6, 255, 165, 0.2) 0%,
      transparent 50%),
    linear-gradient(135deg,
      var(--bg-space) 0%,
      var(--bg-nebula) 50%,
      var(--bg-star) 100%);
  color: var(--text-cosmic);
  font-family: "SF Pro Display", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated Starfield Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(2px 2px at 20px 30px,
      var(--accent-cosmic),
      transparent),
    radial-gradient(2px 2px at 40px 70px, var(--accent-supernova), transparent),
    radial-gradient(1px 1px at 90px 40px, var(--accent-galaxy), transparent),
    radial-gradient(1px 1px at 130px 80px, var(--text-star), transparent),
    radial-gradient(2px 2px at 160px 30px, var(--accent-nova), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 20s linear infinite;
  pointer-events: none;
  opacity: 0.6;
  z-index: -1;
}

@keyframes sparkle {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(200px);
  }
}

#app {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--glass-space);
  /* backdrop-filter: blur(20px); */
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s ease, opacity 0.2s ease; /* hinzugefügt */
}

/* hinzugefügt: Header im Stream-Tab automatisch ausblenden */
body.stream-mode header {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* eingeblendet, wenn Maus oben ist (via .show-header) oder direkte Hover (wenn sichtbar) */
body.stream-mode.show-header header,
body.stream-mode header:hover {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg,
      var(--accent-nova) 0%,
      var(--accent-galaxy) 50%,
      var(--accent-cosmic) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(248, 59, 180, 0.5);
  animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from {
    filter: drop-shadow(0 0 5px rgba(248, 59, 180, 0.3));
  }

  to {
    filter: drop-shadow(0 0 15px rgba(124, 60, 255, 0.6));
  }
}

nav {
  display: flex;
  gap: 12px;
}

nav button {
  background: var(--glass-nebula);
  /* backdrop-filter: blur(15px); */
  border: 1px solid var(--border-cosmic);
  color: var(--text-cosmic);
  padding: 12px 20px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

nav button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.6s;
}

nav button:hover::before {
  left: 100%;
}

nav button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(124, 60, 255, 0.4);
  border-color: var(--accent-galaxy);
  background: var(--glass-space);
}

nav button.active {
  background: linear-gradient(135deg,
      var(--accent-nova) 0%,
      var(--accent-galaxy) 100%);
  border-color: var(--accent-nova);
  color: white;
  box-shadow: 0 8px 25px rgba(248, 59, 180, 0.5);
  animation: activeGlow 2s ease-in-out infinite alternate;
}

@keyframes activeGlow {
  from {
    box-shadow: 0 8px 25px rgba(248, 59, 180, 0.5);
  }

  to {
    box-shadow: 0 8px 25px rgba(124, 60, 255, 0.7);
  }
}

main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  /* hinzugefügt: damit Tab-Content den verfügbaren Platz füllen kann */
  flex-direction: column;
  /* hinzugefügt */
}

main section.tab {
  padding: 20px 24px;
}

.tab {
  display: none;
  animation: cosmicFadeIn 0.5s ease-out;
}

.tab.active {
  display: block;
}

html.preload {
  overflow: hidden;
}

#stream.tab {
  overflow: hidden;
  height: 100%;
  padding: unset;
  margin: unset;
}

/* hinzugefügt: Stream-Tab füllt den verfügbaren Platz und das Iframe ist abgerundet */
#stream.tab.active {
  flex-direction: column;
  min-height: 0;
  /* wichtig für Flex-Layout in Kombination mit overflow */
}

#stream.tab.active iframe {
  width: 100%;
  height: 100%;
  border-radius: 0px;
  border: none;
  overflow: hidden;
}
nav button i,
nav button span,
.stats-tab-btn i,
.stats-tab-btn span {
  pointer-events: none;
}

nav button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Fix icon and text alignment in nav buttons */
nav button .fa-solid,
nav button .fa-regular,
nav button .fa-brands {
  font-size: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

nav button span {
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
}

/* Ensure consistent icon sizing in heading elements */
.icon-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.icon-heading i,
.icon-heading .fa-solid,
.icon-heading .fa-regular,
.icon-heading .fa-brands {
  font-size: 1.25rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.icon-heading span {
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}

.referral-notice {
  background: linear-gradient(135deg, rgba(162, 155, 254, 0.15), rgba(108, 92, 231, 0.25));
  border: 1px solid rgba(162, 155, 254, 0.35);
  border-radius: 16px;
  padding: 20px;
  margin: 16px;
  box-shadow: 0 0 25px rgba(108, 92, 231, 0.25);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}

.referral-notice .referral-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.referral-notice .referral-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.referral-notice .referral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.referral-modal .modal-content {
  max-width: 520px;
}

.stats-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stats-tab-btn i {
  font-size: 1rem;
  flex-shrink: 0;
}

.stats-tab-btn span {
  white-space: nowrap;
  font-size: inherit;
  line-height: 1;
}

.streamer-controls {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(180px, 210px) minmax(140px, 160px) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: rgba(42, 24, 82, 0.28);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
  align-items: flex-end;
}

.streamer-controls .control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.streamer-controls label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
}

.streamer-controls input[type="search"],
.streamer-controls select {
  min-height: 42px;
  background: rgba(30, 16, 52, 0.78);
  border: 1px solid var(--border-cosmic);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-cosmic);
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.streamer-controls input[type="search"]:focus,
.streamer-controls select:focus {
  outline: none;
  border-color: var(--accent-galaxy);
  box-shadow: 0 8px 24px rgba(124, 60, 255, 0.35);
}

.streamer-controls .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.streamer-controls .filter-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 7px;
  border-radius: 10px;
  border: 1px solid var(--border-cosmic);
  background: rgba(30, 16, 52, 0.72);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  font-size: 0.68rem;
  font-weight: 800;
}

.streamer-controls .filter-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.streamer-controls .filter-toggle span {
  pointer-events: none;
}

.streamer-controls .filter-toggle .track {
  display: none;
}

.streamer-controls .filter-toggle.active {
  background: linear-gradient(135deg,
      rgba(248, 59, 180, 0.24),
      rgba(124, 60, 255, 0.26));
  border-color: var(--border-glow);
  color: var(--text-cosmic);
  box-shadow: 0 0 20px rgba(248, 59, 180, 0.18);
}

.streamer-actions .fa-solid,
.modal .fa-solid {
  pointer-events: none;
}

.points-explanation .points {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.monthly-rewards .reward,
.special-events .special {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.special-events .special i,
.monthly-rewards .reward i {
  color: var(--accent-galaxy);
}
.streamers-list,
.streamers-list.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.streamer-card {
  position: relative;
  border-radius: 14px;
  background: var(--glass-space);
  border: 1px solid var(--border-cosmic);
  padding: 14px;
  display: flex;
  flex-direction: column;
  /*justify-content: space-between;*/
  gap: 10px;
  min-height: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.35s ease;
}

.streamer-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-galaxy);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.streamer-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.streamer-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  overflow: hidden;
  border: 2px solid var(--accent-galaxy);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-galaxy);
}

.streamer-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 0;
  object-fit: cover;
}

.streamer-meta {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
}

.streamer-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.streamer-meta .name {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.streamer-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
  line-height: 1.25;
}

.streamer-title-game,
.streamer-title-time,
.streamer-game-line,
.streamer-meta-line .last-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.streamer-title-game,
.streamer-title-time,
.streamer-meta-line .last-live {
  font-size: 0.84rem;
  color: var(--text-star);
  line-height: 1.2;
}

.streamer-meta .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(124, 60, 255, 0.15);
  color: var(--accent-galaxy);
}

.streamer-meta .level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  width: fit-content;
}

.streamer-meta .status-badge.offline {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.streamer-description {
  color: var(--text-cosmic);
  font-size: 0.9rem;
  line-height: 1.35;
  min-height: 38px;
  display: -webkit-box;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: 0;
  text-align: left;
  max-height: none;
  overflow: hidden;
  position: relative;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.streamer-description.full {
  max-height: none;
  overflow: visible;
}

.streamer-description::after {
  content: none;
}

.streamer-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 24px;
}

.platform-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-cosmic);
  background: rgba(30, 16, 52, 0.68);
  color: var(--text-star);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.platform-indicator.twitch {
  border-color: rgba(124, 60, 255, 0.48);
  color: var(--accent-galaxy);
}

.platform-indicator.twitch.is-live {
  border-color: rgba(248, 59, 180, 0.58);
  color: var(--accent-nova);
  box-shadow: 0 0 16px rgba(248, 59, 180, 0.2);
}

.platform-indicator.soundcloud {
  border-color: rgba(251, 146, 60, 0.52);
  color: var(--accent-supernova);
}

.platform-indicator.none {
  opacity: 0.72;
}

.streamer-actions {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.streamer-actions button {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 8px;
}

.streamer-modal-body {
  display: grid;
  gap: 18px;
}

.streamer-modal-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.streamer-modal-tab {
  border: 1px solid var(--border-cosmic);
  background: var(--glass-nebula);
  color: var(--text-cosmic);
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.streamer-modal-tab.active,
.streamer-modal-tab:hover {
  background: var(--glass-space);
  border-color: var(--accent-galaxy);
  color: var(--accent-galaxy);
}

.modal.streamer-modal {
  background:
    radial-gradient(circle at 20% 18%, rgba(248, 59, 180, 0.18), transparent 28%),
    radial-gradient(circle at 80% 78%, rgba(124, 60, 255, 0.2), transparent 32%),
    linear-gradient(rgba(3, 1, 12, 0.74), rgba(3, 1, 12, 0.86)),
    url("../modal/stream-modal-overlay-bg.webp") center / cover no-repeat,
    rgba(3, 1, 12, 0.9);
  overflow: hidden;
}

.modal.streamer-modal::after {
  content: "";
  position: absolute;
  top: calc(clamp(112px, 15.8vh, 150px) - 20px);
  left: 50%;
  width: min(89vw, 1030px);
  height: min(78vh, 750px);
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 7% 22%, rgba(248, 59, 180, 0.46), transparent 26%),
    radial-gradient(circle at 94% 72%, rgba(124, 60, 255, 0.46), transparent 28%),
    radial-gradient(circle at 50% 98%, rgba(248, 59, 180, 0.26), transparent 36%),
    radial-gradient(circle at 50% 0%, rgba(124, 60, 255, 0.22), transparent 30%);
  filter: blur(24px);
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

.modal.streamer-modal .modal-content {
  position: relative;
  z-index: 2;
  width: min(92vw, 920px);
  max-width: 920px;
  max-height: 90vh;
  padding: 28px 30px;
  text-align: left;
  border-radius: 20px;
  border-color: rgba(248, 59, 180, 0.9);
  background:
    radial-gradient(circle at 50% 16%, rgba(124, 60, 255, 0.12), transparent 42%),
    linear-gradient(rgba(11, 6, 29, 0.4), rgba(11, 6, 29, 0.72)),
    url("../modal/stream-modal-content-bg.webp") center / cover no-repeat,
    rgba(11, 6, 29, 0.96);
  box-shadow:
    0 0 0 1px rgba(80, 214, 255, 0.35),
    0 0 42px rgba(248, 59, 180, 0.35),
    0 28px 90px rgba(0, 0, 0, 0.72);
}

.modal.streamer-modal .modal-content > h3,
.modal.streamer-modal .modal-buttons {
  display: none !important;
}

.creator-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.creator-detail-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--text-cosmic);
}

.creator-detail-title-row strong {
  font-size: 1.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-detail-spark {
  color: var(--accent-nova);
  font-size: 1.2rem;
}

.creator-detail-role,
.creator-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(248, 59, 180, 0.45);
  border-radius: 8px;
  background: rgba(248, 59, 180, 0.16);
  color: var(--accent-nova);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.creator-detail-close {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(232, 227, 255, 0.6);
  background: rgba(12, 8, 32, 0.76);
  color: var(--text-cosmic);
  cursor: pointer;
}

.creator-detail-profile {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border-cosmic);
  border-radius: 14px;
  background:
    radial-gradient(circle at 75% 18%, rgba(124, 60, 255, 0.2), transparent 38%),
    rgba(27, 16, 61, 0.58);
}

.creator-detail-avatar {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid var(--accent-nova);
  box-shadow: 0 0 0 3px rgba(80, 214, 255, 0.35), 0 0 30px rgba(248, 59, 180, 0.35);
  background: linear-gradient(135deg, var(--accent-galaxy), var(--accent-cosmic));
  color: white;
  font-size: 2rem;
  font-weight: 900;
}

.creator-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-detail-profile-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.creator-detail-profile-copy h2 {
  margin: 0;
  color: var(--text-cosmic);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.creator-detail-profile-copy p {
  margin: 0;
  color: var(--text-cosmic);
}

.creator-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.creator-detail-badge.connected {
  border-color: rgba(103, 232, 249, 0.35);
  background: rgba(103, 232, 249, 0.1);
  color: var(--accent-cosmic);
}

.creator-detail-badge.live {
  color: var(--accent-nova);
  border-color: rgba(248, 59, 180, 0.5);
}

.creator-detail-badge.offline,
.creator-detail-badge.muted {
  color: var(--text-star);
  border-color: var(--border-cosmic);
  background: rgba(232, 227, 255, 0.08);
}

.creator-detail-section {
  display: grid;
  gap: 12px;
}

.creator-detail-heading {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-cosmic) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 1.15rem;
}

.creator-detail-heading i {
  color: var(--accent-nova);
}

.creator-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.creator-detail-stat {
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-cosmic);
  border-radius: 8px;
  background: rgba(31, 20, 70, 0.64);
}

.creator-detail-stat.highlight {
  min-height: 96px;
  border-color: rgba(248, 59, 180, 0.72);
  background: linear-gradient(135deg, rgba(248, 59, 180, 0.16), rgba(124, 60, 255, 0.12));
}

.creator-detail-stat-icon {
  color: var(--accent-galaxy);
  font-size: 1.25rem;
}

.creator-detail-stat-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.creator-detail-stat-label {
  color: var(--text-star);
  font-size: 0.85rem;
}

.creator-detail-stat-value {
  color: var(--text-cosmic);
  font-size: 1.15rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.creator-detail-stat-detail {
  color: var(--accent-supernova);
  font-size: 0.78rem;
}

.creator-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 8px;
}

.creator-detail-actions .stream-action-btn,
.creator-detail-actions .modal-close {
  min-height: 56px;
  justify-content: center;
  border-radius: 8px;
}

.creator-detail-actions .modal-close {
  background: linear-gradient(135deg, var(--accent-galaxy), var(--accent-nova));
}


.streamer-stats {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: 0;
  text-align: left;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.streamer-stats .streamer-stat {
  font-weight: 600;
  color: var(--text-cosmic);
}

.streamer-stats.empty {
  font-style: italic;
  opacity: 0.7;
}

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

.streamer-stat {
  min-width: 0;
  min-height: 52px;
  padding: 9px;
  border-radius: 8px;
  border: 1px solid rgba(232, 227, 255, 0.12);
  background: rgba(159, 122, 234, 0.11);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 8px;
}

.streamer-stat .stat-icon {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(124, 60, 255, 0.18);
  color: var(--accent-galaxy);
}

.streamer-stat .label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-cosmic);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streamer-stat .value {
  font-size: 1rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}

.streamer-stat .detail {
  font-size: 0.75rem;
  color: var(--text-star);
  float:right;
}

.stats-pagination {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.stats-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-cosmic);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.stats-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stats-page-btn:not(:disabled):hover {
  background: rgba(124, 60, 255, 0.2);
  border-color: var(--accent-galaxy);
}

.stats-page-indicator {
  font-size: 0.85rem;
  color: var(--text-muted);
}


.module-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.module-card-body {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: grid;
  gap: 2px;
}

.module-card-error {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #f87171;
}


.bot-log-entry {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.bot-log-entry .time {
  color: var(--text-muted);
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

.bot-log-entry.type-success {
  background: rgba(16, 185, 129, 0.12);
}

.bot-log-entry.type-error {
  background: rgba(248, 113, 113, 0.15);
}

.manual-copy-input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px dashed var(--border-cosmic);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-star);
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.stats-tab-content .card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stats-tab-content .card ul {
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

.friend-invite-button {
      background: var(--glass-nebula);
    /* backdrop-filter: blur(15px); */
    border: 1px solid var(--border-cosmic);
    color: var(--text-cosmic);
    padding: 12px 20px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.friend-invite-button span {
  margin-top: 0.4rem;
    margin-left: 0.5rem;
}

@keyframes cosmicFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    /* filter: blur(10px); */
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    /* filter: blur(0); */
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.card {
  background: var(--glass-space);
  /* backdrop-filter: blur(20px); */
  border: 1px solid var(--border-cosmic);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      var(--accent-nova),
      var(--accent-galaxy),
      var(--accent-cosmic));
  opacity: 0;
  transition: opacity 0.4s;
}

.card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
      rgba(248, 59, 180, 0.1) 0%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  animation: rotate 20s linear infinite;
  z-index: -1;
  pointer-events: none;
}

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

  to {
    transform: rotate(360deg);
  }
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-galaxy);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-glow),
    0 0 50px rgba(124, 60, 255, 0.3);
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 1rem;
}

.live-card .title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-cosmic);
}

.live-overview {
  display: grid;
  gap: 14px;
}

.live-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) repeat(5, minmax(150px, 1fr)) 54px;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(42, 24, 82, 0.28);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
}

.live-control-group {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.live-control-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-star);
  font-size: 0.75rem;
}

.live-controls input,
.live-controls select,
.live-filter-button {
  min-height: 54px;
  width: 100%;
  border: 1px solid var(--border-cosmic);
  border-radius: 10px;
  background: rgba(30, 16, 52, 0.78);
  color: var(--text-cosmic);
  font: inherit;
}

.live-controls input,
.live-controls select {
  padding: 10px 14px;
  font-weight: 700;
}

.live-filter-button {
  display: grid;
  place-items: center;
  cursor: pointer;
}

.live-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.live-overview-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(320px, 1.35fr);
  gap: 18px;
  min-height: 308px;
  padding: 22px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--glass-space);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.live-overview-card:first-child {
  border-color: var(--accent-galaxy);
  box-shadow: 0 0 0 1px rgba(124, 60, 255, 0.4), 0 18px 48px rgba(124, 60, 255, 0.18);
}

.live-creator-panel,
.live-preview-panel {
  min-width: 0;
}

.live-creator-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.live-creator-header {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.live-avatar {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--accent-galaxy);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-galaxy);
  font-size: 1.7rem;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(124, 60, 255, 0.22);
}

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

.live-creator-title {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.live-name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.live-name-row h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.25rem;
  line-height: 1.15;
}

.live-role-chip {
  width: fit-content;
  padding: 5px 12px;
  border: 1px solid var(--border-cosmic);
  border-radius: 10px;
  background: rgba(124, 60, 255, 0.14);
  color: var(--text-nebula);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.live-meta-line,
.live-stat-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-star);
}

.live-stream-title {
  margin: 0;
  color: var(--text-cosmic);
  line-height: 1.45;
}

.live-preview-panel {
  display: grid;
  gap: 12px;
  align-content: end;
}

.live-overview-card .stream-preview {
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}

.live-overview-card .stream-thumbnail {
  height: 100%;
}

.live-overview-card .stream-info,
.live-overview-card .stream-overlay {
  display: none;
}

.live-card-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
}

.live-card-actions button {
  min-height: 42px;
  border-radius: 8px;
}

.live-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.live-page-number {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--border-cosmic);
  border-radius: 10px;
  background: rgba(30, 16, 52, 0.72);
  color: var(--text-cosmic);
  font-weight: 800;
}

.live-page-number.active {
  border-color: var(--border-glow);
  background: linear-gradient(135deg,
      rgba(248, 59, 180, 0.7),
      rgba(124, 60, 255, 0.78));
  box-shadow: 0 0 22px rgba(248, 59, 180, 0.28);
}

.live-pagination .disabled {
  opacity: 0.45;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--glass-nebula);
  border: 1px solid var(--border-cosmic);
  color: var(--text-star);
  /* backdrop-filter: blur(10px); */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(124, 60, 255, 0.2);
}

.live-chip {
  font-size: 10px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg,
      var(--live-pulse) 0%,
      var(--accent-nova) 100%);
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 0 20px rgba(255, 0, 128, 0.6),
    0 4px 15px rgba(248, 59, 180, 0.4);
  animation: livePulse 1.5s ease-in-out infinite alternate;
  position: relative;
}

.live-chip::before {
  content: "●";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 8px;
  animation: blink 1s ease-in-out infinite;
}

@keyframes livePulse {
  from {
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.6),
      0 4px 15px rgba(248, 59, 180, 0.4);
  }

  to {
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.9),
      0 6px 25px rgba(248, 59, 180, 0.7);
  }
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0.3;
  }
}

.muted {
  color: var(--text-nebula);
  font-size: 14px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Custom Modal for Discord Activity */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  /* backdrop-filter: blur(10px); */
  z-index: 1000;
  animation: modalFadeIn 0.3s ease-out;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--glass-space);
  /* backdrop-filter: blur(20px); */
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 30px;
  width: min(92vw, 760px);
  max-width: 760px;
  max-height: 85vh;
  height: auto;
  display: flex; /* geändert: Flex für Container/Buttons */
  flex-direction: column; /* geändert */
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.modal-size-sm .modal-content {
  width: min(92vw, 440px);
  max-width: 440px;
  max-height: 70vh;
}

.modal.modal-size-md .modal-content {
  width: min(92vw, 760px);
  max-width: 760px;
  max-height: 85vh;
}

.modal.modal-size-lg .modal-content {
  width: min(92vw, 980px);
  max-width: 980px;
  max-height: 88vh;
}

.modal.modal-size-xl .modal-content {
  width: min(96vw, 1280px);
  max-width: 1280px;
  height: 90vh;
  max-height: 90vh;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.8) translateY(50px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal h3 {
  margin: 0 0 15px 0;
  color: var(--text-cosmic);
  background: linear-gradient(135deg,
      var(--accent-nova) 0%,
      var(--accent-galaxy) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal p {
  margin: 0 0 20px 0;
  color: var(--text-nebula);
  line-height: 1.6;
}

.modal-close {
  background: linear-gradient(135deg,
      var(--accent-galaxy) 0%,
      var(--accent-nova) 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 60, 255, 0.4);
}

.modal.stream-watch-modal-shell {
  padding: 18px;
  background:
    radial-gradient(circle at 20% 18%, rgba(248, 59, 180, 0.18), transparent 28%),
    radial-gradient(circle at 80% 78%, rgba(124, 60, 255, 0.2), transparent 32%),
    linear-gradient(rgba(3, 1, 12, 0.74), rgba(3, 1, 12, 0.86)),
    url("../modal/stream-modal-overlay-bg.webp") center / cover no-repeat,
    rgba(3, 1, 12, 0.9);
  overflow: hidden;
}

.modal.stream-watch-modal-shell::after {
  content: "";
  position: absolute;
  top: calc(clamp(112px, 15.8vh, 150px) - 20px);
  left: 50%;
  width: min(89vw, 1030px);
  height: min(78vh, 750px);
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 7% 22%, rgba(248, 59, 180, 0.46), transparent 26%),
    radial-gradient(circle at 94% 72%, rgba(124, 60, 255, 0.46), transparent 28%),
    radial-gradient(circle at 50% 98%, rgba(248, 59, 180, 0.26), transparent 36%),
    radial-gradient(circle at 50% 0%, rgba(124, 60, 255, 0.22), transparent 30%);
  filter: blur(24px);
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

.modal.stream-watch-modal-shell.show {
  align-items: flex-start;
  padding-top: clamp(112px, 15.8vh, 150px);
  padding-bottom: 40px;
}

.modal.stream-watch-modal-shell .modal-content {
  position: relative;
  z-index: 2;
  width: min(86vw, 990px);
  max-width: 990px;
  max-height: min(88vh, 712px);
  padding: 20px 24px 24px;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid rgba(248, 59, 180, 0.9);
  background:
    radial-gradient(circle at 50% 16%, rgba(124, 60, 255, 0.12), transparent 42%),
    linear-gradient(rgba(11, 6, 29, 0.34), rgba(11, 6, 29, 0.62)),
    url("../modal/stream-modal-content-bg.webp") center / cover no-repeat,
    rgba(11, 6, 29, 0.96);
  box-shadow:
    0 0 0 1px rgba(80, 214, 255, 0.34),
    0 0 52px rgba(248, 59, 180, 0.46),
    0 30px 100px rgba(0, 0, 0, 0.75);
}

.modal.stream-watch-modal-shell .modal-content > h3,
.modal.stream-watch-modal-shell .modal-buttons {
  display: none !important;
}

.stream-watch-modal {
  display: grid;
  gap: 14px;
  color: var(--text-cosmic);
}

.stream-watch-header {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 48px;
  align-items: start;
  gap: 16px;
  padding: 2px 2px 0;
}

.stream-watch-avatar {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--accent-galaxy);
  background: linear-gradient(135deg, var(--accent-galaxy), var(--accent-nova));
  box-shadow: 0 0 24px rgba(248, 59, 180, 0.46);
  color: white;
  font-size: 1.25rem;
  font-weight: 900;
}

.stream-watch-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stream-watch-title {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.stream-watch-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.stream-watch-name-row h2 {
  margin: 0;
  color: var(--text-cosmic);
  font-size: clamp(1.5rem, 2.1vw, 1.9rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.stream-watch-live-badge,
.stream-watch-player-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--live-pulse), var(--accent-nova));
  color: white;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 0 22px rgba(255, 0, 128, 0.45);
}

.stream-watch-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  color: var(--text-cosmic);
  font-size: clamp(0.92rem, 1.35vw, 1.04rem);
  line-height: 1.25;
}

.stream-watch-meta span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: rgba(232, 227, 255, 0.96);
  text-shadow: 0 0 16px rgba(124, 60, 255, 0.28);
}

.stream-watch-close {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(232, 227, 255, 0.45);
  border-radius: 50%;
  background: rgba(22, 14, 58, 0.74);
  color: var(--text-cosmic);
  cursor: pointer;
  font-size: 1.2rem;
}

.stream-watch-player {
  position: relative;
  width: calc(100% - 96px);
  justify-self: center;
  height: clamp(318px, 43vh, 430px);
  min-height: 318px;
  overflow: hidden;
  border: 1px solid rgba(248, 59, 180, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(rgba(6, 3, 16, 0.2), rgba(6, 3, 16, 0.2)),
    url("../modal/stream-modal-content-bg.webp") center / cover no-repeat;
    #05020e;
  box-shadow: inset 0 0 0 1px rgba(80, 214, 255, 0.18);
}

.stream-watch-player .twitch-embed-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  background: #000;
}

.stream-watch-discord-thumb,
.stream-watch-discord-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.stream-watch-discord-poster {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.stream-watch-poster-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.stream-watch-poster-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1557 100%);
  color: rgba(255,255,255,0.6);
  font-size: 1.4rem;
  font-weight: 600;
}

.stream-watch-poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.stream-watch-discord-poster:hover .stream-watch-poster-overlay {
  background: rgba(0, 0, 0, 0.25);
}

.stream-watch-poster-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(145, 71, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 4px 24px rgba(145, 71, 255, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stream-watch-discord-poster:hover .stream-watch-poster-play {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(145, 71, 255, 0.7);
}

.stream-watch-poster-hint {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.stream-watch-dev-poster {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(8, 3, 22, 0.12), rgba(8, 3, 22, 0.26)),
    url("../modal/stream-modal-content-bg.webp") center / cover no-repeat;
}

.stream-watch-dev-category {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 28px rgba(248, 59, 180, 0.58);
}

.stream-watch-player-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  pointer-events: none;
}

.stream-watch-copy {
  display: grid;
  gap: 6px;
  padding: 0 44px;
}

.stream-watch-copy h3 {
  margin: 0 !important;
  color: var(--text-cosmic) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: clamp(1.18rem, 1.8vw, 1.4rem);
}

.stream-watch-copy p {
  margin: 0 !important;
  max-width: 780px;
  color: var(--text-cosmic) !important;
  font-size: 1rem;
}

.stream-watch-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 2px 44px 2px;
}

.stream-watch-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-cosmic);
  color: var(--text-cosmic);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
}

.stream-watch-action.secondary {
  background: rgba(16, 9, 42, 0.68);
  border-color: rgba(232, 227, 255, 0.26);
}

.stream-watch-action.primary {
  background: linear-gradient(135deg, var(--accent-galaxy), var(--accent-nova));
  border-color: rgba(248, 59, 180, 0.78);
  color: white;
  box-shadow: 0 14px 32px rgba(248, 59, 180, 0.28);
}

/* Twitch modal embed layout */
.twitch-embed-container {
  width: 100%;
  height: 100%;
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
}

.twitch-embed-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  background: #000;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.actions button {
  border: 1px solid var(--border-cosmic);
  background: var(--glass-nebula);
  /* backdrop-filter: blur(15px); */
  color: var(--text-cosmic);
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  text-align: center;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.actions button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transition: left 0.6s;
}

.actions button:hover::before {
  left: 100%;
}

.actions button:hover {
  background: var(--glass-space);
  border-color: var(--accent-galaxy);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 60, 255, 0.3);
}

.actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.actions button:disabled:hover {
  background: var(--glass-nebula);
  border-color: var(--border-cosmic);
  box-shadow: none;
}

.range {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.range button {
  padding: 10px 20px;
  border-radius: 16px;
  border: 1px solid var(--border-cosmic);
  background: var(--glass-nebula);
  /* backdrop-filter: blur(15px); */
  color: var(--text-cosmic);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 80px;
  position: relative;
  overflow: hidden;
}

.range button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--accent-galaxy) 0%, transparent 70%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%);
  opacity: 0;
}

.range button:hover::after {
  width: 200%;
  height: 200%;
  opacity: 0.3;
}

.range button:hover {
  background: var(--glass-space);
  border-color: var(--accent-galaxy);
  transform: translateY(-2px);
  color: var(--text-cosmic);
}

.range button.active {
  background: linear-gradient(135deg,
      var(--accent-galaxy) 0%,
      var(--accent-nova) 100%);
  border-color: var(--accent-nova);
  color: white;
  box-shadow: 0 8px 25px rgba(124, 60, 255, 0.4);
  animation: rangeGlow 2s ease-in-out infinite alternate;
}

@keyframes rangeGlow {
  from {
    box-shadow: 0 8px 25px rgba(124, 60, 255, 0.4);
  }

  to {
    box-shadow: 0 8px 25px rgba(248, 59, 180, 0.6);
  }
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-cosmic);
  transition: all 0.3s;
  border-radius: 12px;
  margin-bottom: 6px;
  position: relative;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: linear-gradient(135deg,
      var(--accent-nova) 0%,
      var(--accent-galaxy) 100%);
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-50%);
  border-radius: 0 2px 2px 0;
}

li:hover {
  background: var(--glass-nebula);
  padding-left: 16px;
  color: var(--text-cosmic);
}

li:hover::before {
  height: 60%;
}

li:last-child {
  border-bottom: none;
}

li a {
  color: var(--accent-cosmic);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
}

li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,
      var(--accent-cosmic) 0%,
      var(--accent-galaxy) 100%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

li a:hover {
  color: var(--accent-supernova);
  text-shadow: 0 0 10px rgba(255, 210, 63, 0.5);
}

li a:hover::after {
  width: 100%;
}

/* Cosmic Loading Animation */
.loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border);
  border-top: 3px solid var(--accent-galaxy);
  border-radius: 50%;
  animation: cosmicSpin 1s linear infinite;
}

@keyframes cosmicSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design for Galaxy */
@media (max-width: 768px) {
  header {
    padding: 16px 20px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  h1 {
    font-size: 20px;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  nav button {
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
  }

  main {
    padding: 20px 16px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .streamer-controls {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .live-controls {
    grid-template-columns: 1fr;
  }

  .live-overview-grid {
    grid-template-columns: 1fr;
  }

  .live-overview-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .live-creator-header {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .live-avatar {
    width: 72px;
    height: 72px;
  }

  .live-card-actions {
    grid-template-columns: 1fr;
  }

  .live-pagination {
    flex-wrap: wrap;
  }

  .streamer-controls .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .streamer-controls .filter-toggle {
    justify-content: center;
    min-width: 0;
    padding-inline: 10px;
  }

  .streamers-list.cards {
    grid-template-columns: 1fr;
  }

  .streamer-header {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .streamer-avatar,
  .streamer-avatar img {
    width: 64px;
    height: 64px;
  }

  .streamer-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .row {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

  .actions {
    flex-direction: column;
  }

  .actions button {
    min-width: auto;
  }

  .modal-content {
    margin: 20px;
    padding: 24px;
  }
}

@media (min-width: 769px) and (max-width: 1280px) {
  .streamer-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .streamer-controls .control-group:last-child {
    grid-column: 1 / -1;
  }

  .streamers-list.cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-filter-button {
    grid-column: span 2;
  }

  .live-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  main section.tab {
    padding: 14px;
  }

  .streamer-controls .filters {
    grid-template-columns: 1fr;
  }

  .streamer-stat {
    grid-template-columns: 1fr;
    padding: 8px 6px;
    text-align: center;
  }

  .streamer-stat .stat-icon {
    display: none;
  }

  .streamer-stat .label {
    font-size: 0.55rem;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .streamer-stat .detail {
    display: none;
  }
}

/* Stream Preview Gallery */
.stream-preview {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--glass-space);
  /* backdrop-filter: blur(20px); */
  border: 1px solid var(--border-cosmic);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.stream-preview:hover {
  transform: scale(1.025) translateY(-8px);
  border-color: var(--accent-galaxy);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(124, 60, 255, 0.4);
}

.stream-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: all 0.4s;
  border-radius: 12px 12px 0 0;
}

.stream-preview:hover .stream-thumbnail {
  transform: scale(1.1);
  filter: brightness(1.2) saturate(1.3);
}

.stream-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(124, 60, 255, 0) 0%,
      rgba(248, 59, 180, 0.1) 50%,
      rgba(103, 232, 249, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
}

.stream-preview:hover .stream-overlay {
  opacity: 1;
  background: linear-gradient(135deg,
      rgba(124, 60, 255, 0.3) 0%,
      rgba(248, 59, 180, 0.3) 50%,
      rgba(103, 232, 249, 0.3) 100%);
}

.stream-play-button {
  background: linear-gradient(135deg,
      var(--accent-galaxy) 0%,
      var(--accent-nova) 100%);
  border: none;
  color: white;
  padding: 10px 20px;
  top: -25px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(124, 60, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.stream-play-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transition: left 0.6s;
}

.stream-play-button:hover::before {
  left: 100%;
}

.stream-play-button:hover {
  transform: scale(1.15);
  box-shadow: 0 12px 35px rgba(248, 59, 180, 0.6);
  position: relative;
  z-index: 100;
}

/* Card Blur Effect when Play Button is Hovered - CSS fallback */
.stream-preview:hover:has(.stream-play-button:hover) .stream-thumbnail {
  /* filter: blur(6px); */
  transition: filter 0.3s ease;
}

.stream-preview:hover:has(.stream-play-button:hover) .stream-info {
  /* filter: blur(4px); */
  transition: filter 0.3s ease;
}

.stream-preview:hover:has(.stream-play-button:hover) .stream-play-button {
  filter: none;
}

.stream-preview:hover:has(.stream-play-button:hover) .stream-play-button {
  filter: none;
}

/* Stream Info Overlay */
.stream-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px 16px 16px;
  color: white;
}

.stream-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--live-pulse);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: livePulse 1.5s ease-in-out infinite alternate;
}

.live-indicator::before {
  content: "●";
  font-size: 8px;
  animation: blink 1s ease-in-out infinite;
}

.viewer-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stream-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-category {
  font-size: 12px;
  color: var(--text-nebula);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* QR Code Modal */
.qr-code,
.qr-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.qr-code canvas,
.qr-code-container canvas,
.qr-code-container img {
  border: 4px solid var(--accent-galaxy);
  border-radius: 16px;
  background: white;
  padding: 10px;
  box-shadow: 0 8px 25px rgba(124, 60, 255, 0.3);
  transition: transform 0.3s ease;
}

.qr-code canvas:hover,
.qr-code-container canvas:hover,
.qr-code-container img:hover {
  transform: scale(1.05);
}

.qr-instructions {
  text-align: center;
  color: var(--text-nebula);
  font-size: 14px;
  line-height: 1.5;
  margin: 10px 0;
}

/* Stream Actions */
.stream-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.stream-action-btn {
  flex: 1;
  min-width: 120px;
  padding: 10px 16px;
  border: 1px solid var(--border-cosmic);
  background: var(--glass-nebula);
  /* backdrop-filter: blur(15px); */
  color: var(--text-cosmic);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stream-action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transition: left 0.6s;
}

.stream-action-btn:hover::before {
  left: 100%;
}

.stream-action-btn:hover {
  background: var(--glass-space);
  border-color: var(--accent-galaxy);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 60, 255, 0.3);
}

.stream-action-btn.primary {
  background: linear-gradient(135deg,
      var(--accent-galaxy) 0%,
      var(--accent-nova) 100%);
  border-color: var(--accent-nova);
  color: white;
}

.stream-action-btn.primary:hover {
  box-shadow: 0 8px 25px rgba(248, 59, 180, 0.5);
}

/* Offline Stream Styling */
.stream-preview.offline {
  opacity: 0.7;
}

.stream-preview.offline .stream-thumbnail {
  filter: grayscale(0.5);
}

.stream-preview.offline .stream-info {
  background: linear-gradient(transparent, rgba(30, 16, 52, 0.9));
}

.offline-indicator {
  background: var(--text-muted);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Custom Scrollbar for Galaxy Theme */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-space);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg,
      var(--accent-galaxy) 0%,
      var(--accent-nova) 100%);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(124, 60, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg,
      var(--accent-nova) 0%,
      var(--accent-cosmic) 100%);
  box-shadow: 0 0 15px rgba(248, 59, 180, 0.5);
}

/* Nova Events Specific Styles */
.nova-explanation {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.nova-hero {
  min-height: 146px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  padding: 22px 54px;
  border: 1px solid rgba(248, 59, 180, 0.76);
  border-radius: 8px;
  background:
    radial-gradient(circle at 6% 48%, rgba(248, 59, 180, 0.32), transparent 16%),
    radial-gradient(circle at 92% 48%, rgba(248, 59, 180, 0.34), transparent 11%),
    linear-gradient(135deg, rgba(34, 17, 68, 0.82), rgba(18, 10, 38, 0.58));
  box-shadow: 0 0 34px rgba(248, 59, 180, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.nova-hero::after {
  content: "";
  position: absolute;
  inset: auto 7% 20px auto;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(248, 59, 180, 0.36) 28%, transparent 62%);
  filter: blur(0.3px);
}

.nova-hero-orbit {
  width: 118px;
  height: 118px;
  justify-self: center;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 59, 180, 0.68);
  border-radius: 50%;
  color: var(--accent-nova);
  font-size: 4.2rem;
  box-shadow: 0 0 38px rgba(248, 59, 180, 0.26), inset 0 0 22px rgba(124, 60, 255, 0.18);
}

.nova-hero-copy {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.nova-hero h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.05;
  color: var(--text-cosmic);
}

.nova-hero p {
  margin: 0;
  color: var(--text-cosmic);
  font-size: 1.05rem;
}

.nova-hero span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-star);
}

.nova-hero span i {
  color: var(--accent-galaxy);
}

.nova-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.nova-info-card {
  min-height: 280px;
  border-radius: 8px;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 14px;
  background: var(--glass-space);
  border-color: var(--border-cosmic);
}

.nova-info-card h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-cosmic);
  font-size: 1.15rem;
}

.nova-info-card h3 i {
  color: var(--accent-galaxy);
  font-size: 1.35rem;
}

.nova-info-card p {
  margin: 0;
  color: var(--text-star);
  line-height: 1.45;
}

.points-explanation {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.point-rule {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(30, 16, 52, 0.72);
  border-radius: 8px;
  border: 1px solid var(--border-cosmic);
}

.point-rule .points {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe68a, var(--accent-supernova));
  color: #3b2100;
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(255, 210, 63, 0.35);
}

.point-rule .description {
  color: var(--text-star);
  display: grid;
  gap: 2px;
}

.point-rule .description strong {
  color: var(--accent-supernova);
}

.sunday-info p {
  margin-bottom: 0;
  text-align: left;
}

.multipliers {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.multiplier {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(30, 16, 52, 0.72);
  border-radius: 8px;
  border: 1px solid var(--border-glow);
}

.multiplier .mult {
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--accent-nova);
  text-shadow: 0 0 8px var(--accent-nova);
}

.multiplier .desc {
  color: var(--text-star);
  font-size: 1rem;
}

.monthly-rewards {
  margin-top: 0;
  display: grid;
  gap: 10px;
}

.reward {
  padding: 10px 12px;
  margin: 0;
  background: rgba(30, 16, 52, 0.72);
  border-radius: 8px;
  border: 1px solid var(--border-cosmic);
  font-weight: 700;
  color: var(--text-cosmic);
}

.special-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.special {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px;
  margin: 0;
  text-align: center;
  background: rgba(30, 16, 52, 0.72);
  border-radius: 8px;
  border: 1px solid var(--border-glow);
  color: var(--text-cosmic);
  font-weight: 800;
}

.special.halloween {
  border-color: rgba(251, 146, 60, 0.65);
}

.special.christmas {
  border-color: rgba(103, 232, 249, 0.55);
}

.special.valentine {
  border-color: rgba(248, 59, 180, 0.72);
}

.special.free {
  border-color: rgba(56, 189, 248, 0.62);
}

.current-standings {
  margin-top: 0;
  background: var(--glass-space);
  border: 1px solid var(--border-cosmic);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 28px rgba(124, 60, 255, 0.12);
}

.nova-standings-panel {
  padding: 22px;
}

.nova-standings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.nova-standings-header h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-cosmic);
  font-size: 1.3rem;
}

.nova-standings-header h3 i {
  color: var(--accent-galaxy);
}

.nova-standings-header span {
  color: var(--accent-cosmic);
  font-weight: 900;
}

#current-nova-leaderboard {
  display: grid;
  gap: 6px;
}

.nova-leaderboard-entry {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 34px;
  padding: 7px 16px;
  background: rgba(159, 122, 234, 0.12);
  border-radius: 6px;
  border: 1px solid rgba(232, 227, 255, 0.14);
  transition: all 0.3s ease;
}

.nova-leaderboard-entry:nth-child(-n + 3) {
  border-color: rgba(255, 210, 63, 0.45);
  background: rgba(255, 210, 63, 0.08);
}

.nova-leaderboard-entry:hover {
  border-color: var(--border-glow);
  background: rgba(124, 60, 255, 0.18);
}

.nova-leaderboard-entry .rank {
  font-weight: 900;
  color: var(--accent-supernova);
}

.nova-leaderboard-entry .name {
  min-width: 0;
  font-weight: 800;
  color: var(--text-cosmic);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nova-leaderboard-entry .points {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: var(--accent-cosmic);
  text-shadow: 0 0 8px var(--accent-cosmic);
}

@media (max-width: 768px) {
  .nova-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 24px 18px;
  }

  .nova-info-grid {
    grid-template-columns: 1fr;
  }

  .nova-leaderboard-entry {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .nova-leaderboard-entry .points {
    grid-column: 2;
  }
}

/* Stats Header Styles */
.stats-header {
  text-align: center;
  margin-bottom: 1rem;
  padding: 1.5rem;
  background: var(--glass-nebula);
  border: 1px solid var(--border-cosmic);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.stats-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(45deg,
      var(--accent-galaxy),
      var(--accent-cosmic));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(124, 60, 255, 0.3));
}

.period-display {
  margin: 0;
  color: var(--text-star);
  font-size: 1rem;
  font-weight: 500;
}

/* Stats Tabs */
.stats-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 1rem 0;
}

.stats-tab-btn {
  background: var(--glass-space);
  border: 1px solid var(--border-cosmic);
  border-radius: 12px;
  padding: 8px 16px;
  color: var(--text-star);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stats-tab-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(124, 60, 255, 0.2),
      transparent);
  transition: left 0.5s;
}

.stats-tab-btn:hover::before {
  left: 100%;
}

.stats-tab-btn:hover {
  border-color: var(--accent-galaxy);
  color: var(--text-cosmic);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 60, 255, 0.3);
}

.stats-tab-btn.active {
  background: linear-gradient(135deg, var(--accent-galaxy), var(--accent-nova));
  border-color: var(--accent-galaxy);
  color: white;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(124, 60, 255, 0.4);
}

.stats-tab-content {
  display: none;
  animation: cosmicFadeIn 0.4s ease-out;
}

.stats-tab-content.active {
  display: block;
}

#stats.active {
  display: grid;
  gap: 12px;
}

.stats-header {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 24px;
  border: 1px solid var(--border-cosmic);
  border-radius: 8px;
  background: rgba(42, 24, 82, 0.26);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.stats-header h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.stats-header h2 i {
  font-size: 1.05rem;
}

.stats-tabs {
  margin: 0;
}

.stats-tab-btn {
  min-height: 36px;
  padding: 8px 18px;
  border-radius: 8px;
}

.period-display {
  font-size: 0.9rem;
  color: var(--text-star);
}

.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.stats-kpi-card {
  min-height: 102px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border-cosmic);
  border-radius: 8px;
  background: var(--glass-space);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.stats-kpi-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent-nova);
  background: rgba(124, 60, 255, 0.18);
  border: 1px solid rgba(248, 59, 180, 0.35);
  box-shadow: 0 0 26px rgba(248, 59, 180, 0.2);
  font-size: 1.5rem;
}

.stats-kpi-card > div:last-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.stats-kpi-label {
  color: var(--text-cosmic);
  font-weight: 800;
  font-size: 0.92rem;
}

.stats-kpi-card strong {
  color: var(--accent-nova);
  font-size: 1.65rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.stats-kpi-card small {
  color: var(--text-star);
  font-size: 0.82rem;
}

.stats-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.stats-dashboard-left,
.stats-dashboard-right {
  display: grid;
  height: 100%;
  gap: 12px;
  min-width: 0;
}

.stats-mini-grid,
.stats-ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.stats-panel {
  height: 100%;
  display: grid;
  align-content: start;
  border-radius: 8px;
  background: var(--glass-space);
  border-color: var(--border-cosmic);
  padding: 16px;
  gap: 10px;
}

.stats-panel-wide {
  grid-column: auto;
}

.stats-highlights-panel {
  grid-column: auto;
}

.stats-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.stats-panel-header > span {
  color: var(--text-star);
  font-size: 0.82rem;
  border: 1px solid var(--border-cosmic);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(30, 16, 52, 0.6);
}

.stats-panel h3 {
  margin: 0;
  font-size: 1.02rem;
}

.stats-panel h3 i {
  font-size: 1rem;
}

.stats-bar-chart {
  min-height: 218px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
  padding: 16px 10px 0;
  border-top: 1px solid rgba(232, 227, 255, 0.1);
  background:
    linear-gradient(to top, rgba(232, 227, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 25%;
}

.stats-bar-item {
  height: 198px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.stats-bar-value,
.stats-bar-label {
  color: var(--text-star);
  font-size: 0.78rem;
  white-space: nowrap;
}

.stats-bar {
  width: min(42px, 80%);
  align-self: end;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--accent-nova), var(--accent-galaxy));
  box-shadow: 0 0 18px rgba(248, 59, 180, 0.22);
}

.stats-tab-content .card ul {
  list-style: none;
  display: grid;
  gap: 0;
}

.stats-ranking-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(232, 227, 255, 0.1);
  color: var(--text-cosmic);
}

.stats-ranking-item:last-child {
  border-bottom: 0;
}

.stats-ranking-item.is-clickable,
.nova-leaderboard-entry.is-clickable,
.streamer-card,
.live-overview-card {
  cursor: pointer;
}

.stats-ranking-item.is-clickable:hover,
.nova-leaderboard-entry.is-clickable:hover {
  border-color: var(--border-glow);
  background: rgba(124, 60, 255, 0.16);
}

.stats-rank-medal {
  color: var(--accent-nova);
  font-weight: 800;
  text-align: center;
}

.stats-rank-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-star);
}

.stats-rank-value {
  color: var(--accent-nova);
  font-size: 0.95rem;
  white-space: nowrap;
}

.stats-share-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  height: 100%;
}

.stats-donut {
  width: 138px;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(232, 227, 255, 0.1), 0 0 24px rgba(124, 60, 255, 0.2);
}

.stats-donut::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: rgb(24, 13, 44);
}

.stats-share-legend {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.stats-share-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--text-star);
  font-size: 0.82rem;
}

.stats-share-row span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-share-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.stats-line-chart {
  min-height: 174px;
  display: block;
  padding: 8px 4px 0;
  border-top: 1px solid rgba(232, 227, 255, 0.1);
}

.stats-line-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.stats-line-grid {
  stroke: rgba(232, 227, 255, 0.14);
  stroke-width: 1;
}

.stats-line-path {
  fill: none;
  stroke: var(--accent-nova);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(248, 59, 180, 0.45));
}

.stats-line-dot {
  fill: var(--accent-nova);
  stroke: rgba(255, 222, 240, 0.95);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(248, 59, 180, 0.55));
}

.stats-line-axis-label,
.stats-line-x-label {
  fill: var(--text-star);
  font-size: 0.72rem;
}

.stats-line-x-label {
  text-anchor: middle;
}

.stats-highlights-panel ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 12px;
  border: 1px solid rgba(232, 227, 255, 0.12);
  border-radius: 8px;
  background: rgba(159, 122, 234, 0.08);
}

.stats-highlights-panel li {
  min-height: 84px;
  padding: 10px 18px;
  list-style: none;
}

.stats-highlight-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: var(--text-star);
  border-right: 1px solid rgba(232, 227, 255, 0.14);
}

.stats-highlight-card:last-child {
  border-right: 0;
}

.stats-highlight-card.is-clickable {
  cursor: pointer;
}

.stats-highlight-card.is-clickable:hover strong {
  color: var(--accent-cosmic);
}

.stats-highlight-icon {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-nova);
  background: rgba(124, 60, 255, 0.16);
  border: 1px solid rgba(248, 59, 180, 0.32);
  box-shadow: 0 0 22px rgba(248, 59, 180, 0.18);
  font-size: 1.1rem;
}

.stats-highlight-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.stats-highlight-copy small {
  color: var(--text-star);
  font-size: 0.78rem;
}

.stats-highlight-copy strong {
  color: var(--accent-nova);
  font-size: 1rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.stats-highlight-copy span {
  color: var(--text-cosmic);
  font-size: 0.84rem;
}

.stats-empty-chart {
  color: var(--text-star);
  align-self: center;
  justify-self: center;
}

@media (max-width: 1180px) {
  .stats-kpi-grid,
  .stats-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-dashboard-left,
  .stats-dashboard-right {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .stats-header {
    padding: 18px 14px;
  }

  .stats-kpi-grid,
  .stats-dashboard-grid,
  .stats-mini-grid,
  .stats-ranking-grid,
  .stats-share-panel,
  .stats-highlights-panel ul {
    grid-template-columns: 1fr;
  }

  .stats-kpi-card {
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: 96px;
    padding: 14px;
  }

  .stats-kpi-icon {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  .stats-bar-chart,
  .stats-line-chart {
    overflow-x: auto;
  }

  .stats-bar-item,
  .stats-line-svg {
    min-width: 46px;
  }

  .modal.streamer-modal .modal-content {
    width: min(94vw, 390px);
    padding: 20px;
  }

  .modal.streamer-modal::after {
    top: 20px;
    width: min(94vw, 410px);
    height: calc(100vh - 42px);
    filter: blur(12px);
  }

  .modal.stream-watch-modal-shell {
    padding: 10px;
  }

  .modal.stream-watch-modal-shell::after {
    top: 20px;
    width: min(94vw, 410px);
    height: calc(100vh - 42px);
    filter: blur(12px);
  }

  .modal.stream-watch-modal-shell.show {
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .modal.stream-watch-modal-shell .modal-content {
    width: min(96vw, 430px);
    max-height: 92vh;
    padding: 16px;
  }

  .stream-watch-header {
    grid-template-columns: 54px minmax(0, 1fr) 42px;
    gap: 12px;
  }

  .stream-watch-avatar {
    width: 54px;
    height: 54px;
    font-size: 1rem;
  }

  .stream-watch-close {
    width: 42px;
    height: 42px;
  }

  .stream-watch-meta {
    gap: 8px 12px;
    font-size: 0.88rem;
  }

  .stream-watch-player {
    width: 100%;
    height: 180px;
    min-height: 180px;
  }

  .stream-watch-player-badge {
    top: 10px;
    right: 10px;
  }

  .stream-watch-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 4px 2px;
  }

  .stream-watch-copy {
    padding: 0 4px;
  }

  .stream-watch-action {
    min-height: 50px;
  }

  .creator-detail-topbar {
    align-items: flex-start;
  }

  .creator-detail-title-row {
    flex-wrap: wrap;
  }

  .creator-detail-profile {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .creator-detail-badges {
    justify-content: center;
  }

  .creator-detail-grid,
  .creator-detail-actions {
    grid-template-columns: 1fr;
  }

  .stats-highlights-panel ul {
    gap: 8px;
  }

  .stats-highlight-card {
    border-right: 0;
    border-bottom: 1px solid rgba(232, 227, 255, 0.12);
    padding-bottom: 12px;
  }

  .stats-highlight-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

/* Global Loading Overlay */
#global-loading-indicator {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(4, 4, 12, 0.72);
  backdrop-filter: blur(18px);
  z-index: 9999;
  color: #fff;
  text-align: center;
  padding: 2rem;
  transition: opacity 0.25s ease;
}

#global-loading-indicator[hidden] {
  display: none !important;
}

.loading-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-galaxy, #7c3cff);
  border-radius: 50%;
  animation: loading-spin 1s linear infinite;
}

.loading-text {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-star, #f1f5f9);
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Discord toast notification */
.discord-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--panel-dark, #1e1b2e);
  border: 1px solid var(--border-cosmic, rgba(168,85,247,0.3));
  color: var(--text-cosmic, #e2d9f3);
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 10000;
  font-size: 0.9rem;
  animation: discordToastIn 0.25s ease;
  pointer-events: none;
}
.discord-toast.success { border-color: var(--accent-galaxy, #7c3cff); }
.discord-toast.error   { border-color: #f87171; }
.discord-toast.hide    { animation: discordToastOut 0.25s ease forwards; }
@keyframes discordToastIn  { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }
@keyframes discordToastOut { from { opacity:1; } to { opacity:0; transform: translateY(6px); } }

/* Discord live participants widget */
.discord-participants {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
}
.discord-participants .dp-avatars {
  display: flex;
  align-items: center;
}
.discord-participants .dp-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-cosmic, rgba(168,85,247,0.3));
  background: var(--panel-dark, #1e1b2e);
  overflow: hidden;
  margin-left: -6px;
  flex-shrink: 0;
}
.discord-participants .dp-avatar:first-child { margin-left: 0; }
.discord-participants .dp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.discord-participants .dp-avatar-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--accent-galaxy, #7c3cff);
  background: rgba(168,85,247,0.15);
}
.discord-participants .dp-count {
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  margin-left: 6px;
  white-space: nowrap;
}
