:root {
  --roster-card-bg: rgba(255, 255, 255, 0.03);
  --roster-card-border: rgba(255, 255, 255, 0.08);
  --roster-accent: #818cf8;
  --roster-accent-2: #22d3ee;
  --roster-accent-glow: rgba(129, 140, 248, 0.4);
}

/* ── Container Overrides ── */
#ow-premium-roster {
  margin: 60px auto;
  max-width: 1300px;
  padding: 0 24px;
  font-family: 'Inter', sans-serif;
  color: #fff;
}

.roster-header {
  text-align: center;
  margin-bottom: 48px;
}

.roster-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 30%, var(--roster-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roster-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ── Animated Tabs ── */
.roster-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.roster-tab {
  padding: 10px 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.roster-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.roster-tab.active {
  background: var(--roster-accent);
  border-color: var(--roster-accent);
  color: #fff;
  box-shadow: 0 8px 24px var(--roster-accent-glow);
}

.roster-tab-count {
  font-size: 12px;
  opacity: 0.7;
}

/* ── Cards Grid ── */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.player-card {
  background: var(--roster-card-bg);
  border: 1px solid var(--roster-card-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(12px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.player-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.player-card:hover {
  transform: scale(1.03) translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(129, 140, 248, 0.05));
  pointer-events: none;
}

/* ── Avatar Section ── */
.player-avatar-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.player-avatar {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.player-phase-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #3b82f6;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  border: 2px solid #000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* ── Player Info ── */
.player-info {
  flex-grow: 1;
}

.player-name {
  font-size: 18px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.player-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.player-rank {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.3;
}

.player-stats {
  margin-top: 12px;
  display: flex;
  gap: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

.stat-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--roster-accent);
}

/* ── Empty State ── */
.roster-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

/* ── View Toggle ── */
.hub-view-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.hub-toggle-group {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--roster-card-border);
  padding: 4px;
  border-radius: 14px;
  gap: 4px;
  backdrop-filter: blur(10px);
}

.hub-toggle-btn {
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ow-nav-spring);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-toggle-btn.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ── Dynamic Board Sections ── */
.ranking-hub {
  display: flex;
  flex-direction: column;
  gap: 48px;
  animation: ow-fadeIn 0.6s ease forwards;
}

.ranking-board {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--roster-card-border);
  border-radius: 28px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.ranking-board::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at top right, var(--roster-accent-glow), transparent 70%);
  opacity: 0.1;
  pointer-events: none;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.board-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.board-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.board-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.board-type-badge {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  background: var(--roster-accent);
  color: #fff;
  text-transform: uppercase;
}

.board-region {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

@keyframes ow-fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .roster-grid {
    grid-template-columns: 1fr;
  }
  .board-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
