body {
    font-family: 'Orbitron', sans-serif;
    background: radial-gradient(circle at top, #0a0014, #06000c);
    color: #eaeaea;
    text-align: center;
  }
  
  .banner {
    background: url('/static/banner.jpg') center/cover;
    padding: 120px 20px;
    color: #fff;
    text-shadow: 0 0 20px #ff00ff;
  }
  
  nav {
    margin: 20px;
  }
  nav .tab {
    background: #220033;
    border: none;
    color: #fff;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s;
  }
  nav .tab.active {
    background: #7d00b5;
    box-shadow: 0 0 10px #ff00ff;
  }
  
  .tab-content {
    display: none;
    animation: fadeIn 0.5s;
  }
  .tab-content.active {
    display: block;
  }
  
  table {
    margin: 0 auto;
    border-collapse: collapse;
    color: #fff;
  }
  th, td {
    border: 1px solid #555;
    padding: 8px 15px;
  }
  
  .video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .video-item {
    background: #1a0028;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 15px #550066;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px auto;
  padding: 10px;
  max-width: 1000px;
}

.member-card {
  background: rgba(30, 0, 60, 0.8);
  border: 1px solid #7d00b5;
  box-shadow: 0 0 15px #a200ff60;
  border-radius: 15px;
  padding: 20px;
  color: #fff;
  text-shadow: 0 0 8px #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px #ff00ff;
}

.member-card .nick {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
  letter-spacing: 1px;
}

.member-card .role {
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
}

.role.admin {
  background: #ff0044;
  box-shadow: 0 0 10px #ff0044;
}

.role.deputy {
  background: #a200ff;
  box-shadow: 0 0 10px #a200ff;
}

.role.member {
  background: #00ffff;
  color: #000;
  box-shadow: 0 0 10px #00ffff;
}

.role {
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 8px;
}

.role.admin {
  background: #ff0044;
  box-shadow: 0 0 12px #ff0044;
}

.role.deputy {
  background: #a200ff;
  box-shadow: 0 0 12px #a200ff;
}

.role.watcher {
  background: #00b8ff;
  box-shadow: 0 0 12px #00b8ff;
}

.role.shooter {
  background: #ffae00;
  box-shadow: 0 0 12px #ffae00;
}

.role.newbie {
  background: #00ff7f;
  box-shadow: 0 0 12px #00ff7f;
  color: #000;
}

.role.unknown {
  background: #555;
  box-shadow: 0 0 12px #444;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-content: center;
}

.member-card {
  background: rgba(30, 0, 60, 0.8);
  border: 1px solid #7d00b5;
  box-shadow: 0 0 15px #a200ff60;
  border-radius: 15px;
  padding: 18px;
  color: #fff;
  text-shadow: 0 0 8px #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px; /* высота под самый длинный ник */
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px #ff00ff;
}

.member-card .nick {
  font-size: 1.2em;
  text-align: center;
  word-break: break-word;
  white-space: normal;
  max-width: 90%;
  line-height: 1.2;
}
