* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 100%);
  color: #f1f1f3;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.blobs-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.blob {
  position: absolute;
  filter: blur(40px);
  animation: float 20s ease-in-out infinite;
}

.blob1 {
  top: 10%;
  left: 10%;
  width: 200px;
  height: 200px;
  animation-delay: 0s;
}

.blob2 {
  top: 50%;
  right: 10%;
  width: 150px;
  height: 150px;
  animation-delay: -5s;
}

.blob3 {
  bottom: 20%;
  left: 20%;
  width: 180px;
  height: 180px;
  animation-delay: -10s;
}

.blob4 {
  top: 20%;
  right: 30%;
  width: 120px;
  height: 120px;
  animation-delay: -15s;
}

.blob5 {
  bottom: 40%;
  right: 40%;
  width: 160px;
  height: 160px;
  animation-delay: -20s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(20px) rotate(240deg); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

header {
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #2a2a2a;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.nav a {
  color: #bdbdbd;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: #222;
}

.gang-header {
  text-align: center;
  padding: 32px 0 24px;
  background: rgba(40, 20, 40, 0.6);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  margin: 20px 0 32px;
  border: 1px solid #3a2a3a;
  box-shadow: 0 6px 24px rgba(255, 182, 193, 0.08);
}

.gang-logo {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin: 0 auto 16px;
  background: linear-gradient(45deg, #FFB6C1, #FFD6A5);
  border: 2px solid #FFB6C1;
  box-shadow: 0 3px 12px rgba(255, 182, 193, 0.3);
}

.gang-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.territory {
  color: #bdbdbd;
  font-size: 1rem;
  margin-bottom: 24px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.stats > div {
  text-align: center;
  position: relative;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(30, 20, 30, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid #4a3a4a;
  transition: background 0.2s, box-shadow 0.2s;
  min-width: 100px;
}

.stats > div:hover {
  background: rgba(40, 30, 40, 0.9);
  box-shadow: 0 3px 12px rgba(255, 182, 193, 0.15);
}

.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-num.live {
  color: #00E071;
  text-shadow: 0 0 8px rgba(152, 251, 152, 0.5);
}

.stat-label {
  font-size: 0.8rem;
  color: #bdbdbd;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.streamers-container {
  margin: 40px 0;
}

.section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #232323;
  color: #fff;
}

.section-title.live-gta {
  color: #00E071;
  border-bottom-color: #98FB98;
  text-shadow: 0 0 10px rgba(152, 251, 152, 0.3);
}

.section-title.live-other {
  color: #FFD6A5;
  border-bottom-color: #FFD6A5;
  text-shadow: 0 0 10px rgba(255, 214, 165, 0.3);
}

.section-title.offline {
  color: #DDA0DD;
  border-bottom-color: #DDA0DD;
  text-shadow: 0 0 10px rgba(221, 160, 221, 0.2);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.member-panel {
  background: rgba(30, 20, 30, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #4a3a4a;
  transition: box-shadow 0.2s, border 0.2s, transform 0.2s;
  position: relative;
  min-height: 0;
}

.member-panel:hover {
  transform: translateY(-2px);
  border-color: #98FB98;
  box-shadow: 0 4px 16px rgba(0, 224, 113, 0.12);
}

.member-panel.live {
  border-color: #98FB98;
  box-shadow: 0 0 12px rgba(0, 224, 113, 0.15);
}

.member-panel.live.gta {
  border-color: #98FB98;
}

.member-panel.live.other {
  border-color: #FFD6A5;
}

.member-panel .panel-header.offline-header {
  display: none !important;
}

.panel-header {
  position: relative;
  height: 140px;
  background: #111827;
  overflow: hidden;
}

.panel-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.member-panel:hover .panel-thumbnail {
  transform: scale(1.03);
}

.live-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ef4444;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #b91c1c;
}

.live-indicator.gta {
  background: #00E071;
  border-color: #00E071;
  box-shadow: 0 0 8px rgba(152, 251, 152, 0.3);
}

.live-indicator.other {
  background: #FFD6A5;
  border-color: #FFC07F;
  box-shadow: 0 0 8px rgba(255, 214, 165, 0.3);
}

.live-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  margin-right: 4px;
}

.viewer-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.panel-content {
  padding: 16px;
}

.panel-content {
  padding-top: 36px;
  padding-bottom: 10px;
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-avatar {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  border: 2.5px solid #374151;
  object-fit: cover;
  transition: border 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.member-panel.live .panel-avatar {
  border-color: #98FB98;
  box-shadow: 0 0 8px rgba(152, 251, 152, 0.3);
}

.member-panel.live-other .panel-avatar {
  border-color: #FFD6A5;
  box-shadow: 0 0 8px rgba(255, 214, 165, 0.3);
}

.panel-initials {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: linear-gradient(45deg, #DDA0DD, #FFB6C1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #2a1a2a;
  text-shadow: none;
}

.panel-info h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}

.panel-nickname {
  color: #bdbdbd;
  font-size: 0.9rem;
  margin-bottom: 2px;
  font-style: italic;
}

.panel-role {
  color: #6b7280;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
}

.stream-title {
  color: #e5e7eb;
  font-size: 0.8rem;
  margin: 10px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.panel-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.platform-btn {
  width: 100%;
  padding: 10px 0 10px 0;
  border: none;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
}

.platform-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.platform-btn .platform-icon,
.platform-btn svg.platform-icon,
.platform-btn img.platform-icon {
  vertical-align: middle;
  fill: #bdbdbd !important;
  color: #bdbdbd !important;
  opacity: 1 !important;
  transition: fill 0.2s, color 0.2s;
}

.platform-btn.offline-btn .platform-icon,
.platform-btn.twitch-btn.offline-btn .platform-icon {
  fill: #bdbdbd !important;
  color: #bdbdbd !important;
}

.platform-btn.offline-btn:hover .platform-icon,
.platform-btn.twitch-btn.offline-btn:hover .platform-icon {
  fill: #fff !important;
  color: #fff !important;
}

.twitch-btn {
  background: #9146ff;
  color: white;
}

.twitch-btn.live {
  background: #9146ff;
  box-shadow: 0 0 15px rgba(145, 70, 255, 0.4);
}

.twitch-btn:hover:not(:disabled) {
  background: #7c3aed;
  transform: translateY(-2px);
}

.kick-btn {
  background: #22c55e;
  color: white;
}

.kick-btn.live {
  background: #22c55e;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.kick-btn:hover:not(:disabled) {
  background: #16a34a;
  transform: translateY(-2px);
}

.offline-btn {
  background: rgba(60, 40, 60, 0.6) !important;
  color: #bdbdbd !important;
  box-shadow: none !important;
}

.offline-btn:hover {
  background: rgba(70, 50, 70, 0.8) !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .gang-header {
    padding: 32px 12px 20px;
    margin: 10px 0 30px;
  }
  .gang-header h1 {
    font-size: 1.5rem;
  }
  .stats {
    gap: 20px;
  }
  .members-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .nav {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .stats {
    flex-direction: column;
    gap: 16px;
  }
  .panel-actions {
    flex-direction: column;
  }
  .platform-btn {
    flex: none;
  }
}

.multipov-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #8b5cf6;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  z-index: 1000;
}

.multipov-btn:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 20px;
  color: #DDA0DD;
  font-size: 1.1rem;
  background: rgba(30, 20, 30, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid #4a3a4a;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #4a3a4a;
  border-top: 4px solid #DDA0DD;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error {
  background: #2d1515;
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 32px;
  border-radius: 12px;
  margin: 40px 0;
  text-align: center;
}

.error h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.retry-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  margin-top: 16px;
}

.retry-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.offline-thumbnail {
  background: linear-gradient(45deg, #4a3a4a, #6a5a6a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #DDA0DD;
  font-size: 3rem;
  font-weight: bold;
  position: relative;
  height: 180px;
  border-radius: 12px;
  margin: 12px;
  text-shadow: 0 0 10px rgba(221, 160, 221, 0.3);
}

.member-panel {
  will-change: transform;
}

.panel-thumbnail {
  will-change: transform;
}

@media (max-width: 768px) {
  .platform-btn {
    min-height: 44px;
  }
  .member-panel {
    transition: none;
  }
}

.offline-header {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  height: 180px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1.2rem;
  font-weight: 500;
}

#multipov-panel {
  background: rgba(255, 246, 165, 0.85);
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(255, 165, 216, 0.10), 0 1.5px 0 0 #FFD6A5;
  padding: 18px 20px 14px 20px;
  margin: 18px auto 0 auto;
  max-width: 600px;
  font-family: inherit;
  color: #2a1a2a;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

#multipov-panel strong {
  color: #D72660;
  font-size: 1.1em;
  margin-right: 10px;
}

#multipov-form label {
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px 6px 8px;
  margin: 0 6px 6px 0;
  display: inline-flex;
  align-items: center;
  font-size: 1em;
  box-shadow: 0 1px 4px 0 #ffd6a540;
  cursor: pointer;
  transition: background 0.2s;
}

#multipov-form label:hover {
  background: #FFD6A5;
}

#multipov-form input[type=checkbox] {
  accent-color: #A3F7B5;
  margin-right: 6px;
  width: 1.1em;
  height: 1.1em;
}

#multipov-go {
  background: linear-gradient(90deg, #FFA5D8 0%, #A3F7B5 100%);
  color: #2a1a2a;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1em;
  font-weight: bold;
  box-shadow: 0 2px 8px 0 #ffa5a540;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  margin-left: 10px;
}

#multipov-go:hover {
  background: linear-gradient(90deg, #FFD6A5 0%, #FFA5A5 100%);
  box-shadow: 0 4px 16px 0 #ffa5a560;
}

#multipov-panel em {
  color: #888;
  font-size: 0.98em;
  margin-left: 10px;
}

#multipov-modal-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,20,20,0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#multipov-modal {
  background: #18181b;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 #0005;
  padding: 28px 28px 18px 28px;
  min-width: 320px;
  max-width: 98vw;
  color: #fff;
  font-family: inherit;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1.5px solid #232323;
}
#multipov-modal h2 {
  color: #fff;
  font-size: 1.15em;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
#multipov-modal .multipov-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  margin-bottom: 16px;
}
#multipov-modal label {
  background: #232323;
  border-radius: 8px;
  padding: 7px 14px 7px 8px;
  display: flex;
  align-items: center;
  min-width: 120px;
  box-shadow: none;
  cursor: pointer;
  font-size: 1em;
  border: 1.5px solid transparent;
  transition: border 0.15s, background 0.15s;
  font-weight: 500;
}
#multipov-modal label.selected {
  border-color: #22c55e;
  background: #232323;
}
#multipov-modal input[type=checkbox] {
  accent-color: #22c55e;
  margin-right: 8px;
  width: 1.1em;
  height: 1.1em;
}
#multipov-modal .multipov-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  border: 1.5px solid #232323;
  background: #fff;
}
#multipov-modal .multipov-platform {
  font-size: 0.93em;
  margin-left: 7px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  color: #fff;
  background: #9147ff;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
#multipov-modal .multipov-platform.kick {
  background: #22c55e;
}
#multipov-modal .multipov-btns {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}
#multipov-modal .multipov-go {
  background: #22c55e;
  color: #18181b;
  border: none;
  border-radius: 7px;
  padding: 10px 32px;
  font-size: 1.08em;
  font-weight: 600;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.15s;
  min-width: 120px;
}
#multipov-modal .multipov-go:hover {
  background: #16a34a;
}
#multipov-modal .multipov-cancel {
  background: #ef4444;
  color: #fff;
  border: none;
  font-size: 1.08em;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 32px;
  border-radius: 7px;
  min-width: 120px;
  transition: background 0.15s;
  box-shadow: none;
}
#multipov-modal .multipov-cancel:hover {
  background: #b91c1c;
}
#multipov-modal em {
  color: #aaa;
  font-size: 0.98em;
  margin-left: 10px;
}