/* ==================== RESET & BASE ==================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #0f1115;
  color: #e4e6eb;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==================== LOGIN PAGE ==================== */

.login-page {
  height: 100vh;
  overflow: hidden;
}

.login-background {
  height: 100%;
  background: linear-gradient(135deg, #0a0b0e 0%, #0f1115 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L100 100M100 0L0 100" stroke="rgba(255,255,255,0.02)" stroke-width="1"/></svg>');
  opacity: 0.3;
}

.login-container {
  position: relative;
  z-index: 1;
}

.login-box {
  background: rgba(42, 45, 60, 0.95);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-image {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.login-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #ffffff;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #b8bcc8;
}

.form-group input {
  padding: 0.875rem 1rem;
  background: rgba(26, 29, 41, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #5b7fff;
  box-shadow: 0 0 0 3px rgba(91, 127, 255, 0.1);
}

.btn-login {
  padding: 1rem;
  background: #5b7fff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.btn-login:hover {
  background: #4a6ae8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 127, 255, 0.3);
}

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

.error-message {
  padding: 0.75rem 1rem;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 6px;
  color: #fca5a5;
  font-size: 0.875rem;
  text-align: center;
}

/* ==================== DASHBOARD PAGE ==================== */

.dashboard-page {
  height: 100vh;
  overflow: hidden;
}

.dashboard-container {
  display: flex;
  height: 100%;
}

/* ==================== SIDEBAR ==================== */

.sidebar {
  width: 250px;
  background: #0a0b0e;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo-image {
  width: 100px;
  height: auto;
}

.sidebar-search {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: rgba(15, 17, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.875rem;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(15, 17, 21, 1);
}

.sidebar-nav {
  flex: 1;
  padding: 0.5rem 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  color: #b8bcc8;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-left-color: #ffffff;
}

.nav-text {
  font-size: 0.9375rem;
  font-weight: 500;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-logout {
  width: 100%;
  padding: 0.75rem;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 6px;
  color: #fca5a5;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(220, 38, 38, 0.3);
  border-color: rgba(220, 38, 38, 0.5);
  transform: translateY(-1px);
}

/* ==================== MAIN CONTENT ==================== */

.main-content {
  flex: 1;
  background: #0f1115;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.content-header {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 11, 14, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content-header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.content-date {
  font-size: 0.8125rem;
  color: #9ca3af;
}

.content-body {
  flex: 1;
  padding: 2.5rem;
}

.welcome-message {
  text-align: center;
  padding: 4rem 2rem;
}

.welcome-message h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.welcome-message p {
  font-size: 1.125rem;
  color: #9ca3af;
}

/* ==================== SCROLLBAR ==================== */

.sidebar::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==================== MATCH HISTORY ==================== */

.match-history-container {
  max-width: 100%;
  margin: 0 auto;
}

.filters-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(10, 11, 14, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.drafts-header-filters {
  padding: 0.5rem 1.5rem;
  background: rgba(10, 11, 14, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0;
}

.filters-section-inline {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  max-width: 100%;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #b8bcc8;
  text-transform: uppercase;
}

.filter-group select {
  padding: 0.5rem 0.75rem;
  background: rgba(15, 17, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-group select:focus {
  outline: none;
  border-color: #5b7fff;
  background: rgba(15, 17, 21, 1);
}

.filter-group input[type="text"] {
  padding: 0.5rem 0.75rem;
  background: rgba(15, 17, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.filter-group input[type="text"]:focus {
  outline: none;
  border-color: #5b7fff;
  background: rgba(15, 17, 21, 1);
}

.filter-group input[type="text"]::placeholder {
  color: rgba(184, 188, 200, 0.5);
}

/* Champion Autocomplete Styles */
.champion-autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.champion-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: rgba(15, 17, 21, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: none;
  border-radius: 0 0 4px 4px;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.champion-autocomplete-dropdown.active {
  display: block;
}

.champion-autocomplete-option {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: #ffffff;
  font-size: 0.875rem;
  transition: background 0.15s ease;
}

.champion-autocomplete-option:hover,
.champion-autocomplete-option.highlighted {
  background: rgba(91, 127, 255, 0.2);
}

.champion-autocomplete-option:active {
  background: rgba(91, 127, 255, 0.3);
}

/* Multi-Select Styles */
.multi-select-wrapper {
  position: relative;
  width: 100%;
}

.multi-select-display {
  min-height: 38px;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 17, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}

.multi-select-display:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(15, 17, 21, 1);
}

.multi-select-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.multi-select-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  background: #5b7fff;
  color: white;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
}

.multi-select-tag-remove {
  background: none;
  border: none;
  color: white;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 0.125rem;
  transition: all 0.2s ease;
}

.multi-select-tag-remove:hover {
  color: #fca5a5;
}

.multi-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(20, 22, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.multi-select-dropdown.active {
  display: block;
}

.multi-select-search {
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  background: rgba(20, 22, 28, 0.98);
}

.multi-select-search-input {
  width: 100%;
  padding: 0.5rem;
  background: rgba(15, 17, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: #ffffff;
  font-size: 0.875rem;
}

.multi-select-search-input:focus {
  outline: none;
  border-color: #5b7fff;
  background: rgba(15, 17, 21, 1);
}

.multi-select-options {
  max-height: 240px;
  overflow-y: auto;
}

.multi-select-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #e4e6eb;
  font-size: 0.875rem;
}

.multi-select-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.multi-select-option input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: #5b7fff;
}

.champion-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 17, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.champion-search-input:focus {
  outline: none;
  border-color: #5b7fff;
  background: rgba(15, 17, 21, 1);
}

.champion-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.btn-primary,
.btn-secondary {
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  align-self: flex-end;
}

.btn-primary {
  background: #5b7fff;
  color: white;
}

.btn-primary:hover {
  background: #4a6ae8;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #b8bcc8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.loading-message {
  text-align: center;
  padding: 3rem;
  font-size: 1rem;
  color: #9ca3af;
}

.matches-table-container {
  width: 100%;
  overflow-x: auto;
}

.matches-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: rgba(15, 17, 21, 0.6);
}

.matches-table thead {
  background: rgba(20, 22, 28, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.matches-table th {
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-weight: 600;
  color: #9ca3af;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
}

.matches-table th.centered-header {
  text-align: center;
}

.matches-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  background: rgba(18, 20, 26, 0.4);
}

.matches-table tbody tr:nth-child(even) {
  background: rgba(22, 24, 30, 0.5);
}

.matches-table tbody tr:hover {
  background: rgba(74, 124, 255, 0.08);
  border-bottom-color: rgba(74, 124, 255, 0.2);
}

.matches-table tbody tr.series-game-hidden {
  background: rgba(15, 17, 21, 0.5);
  border-left: 3px solid rgba(74, 124, 255, 0.3);
}

.matches-table tbody tr.series-game-hidden:hover {
  background: rgba(74, 124, 255, 0.06);
  border-left-color: rgba(74, 124, 255, 0.5);
}

.matches-table tbody tr.series-game-hidden td:first-child {
  padding-left: 1.5rem;
}

.matches-table tbody tr.series-game-hidden .match-number {
  color: #9ca3af;
  font-size: 0.75rem;
}

.matches-table td {
  padding: 0.5rem 0.4rem;
  vertical-align: middle;
  color: #e4e6eb;
  font-size: 0.8125rem;
}

.match-number {
  color: #6b7280;
  font-weight: 500;
  width: 35px;
  text-align: center;
  padding: 0.5rem 0.25rem;
}

.match-tournament {
  color: #e4e6eb;
  font-weight: 500;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-game-number {
  color: #e4e6eb;
  font-weight: 600;
  text-align: center;
  width: 40px;
  padding: 0.5rem 0.25rem;
}

.expand-cell {
  width: 25px;
  text-align: center;
  padding: 0.5rem 0.25rem;
}

.expand-arrow {
  cursor: pointer;
  color: #9ca3af;
  font-size: 0.75rem;
  display: inline-block;
  user-select: none;
  transition: all 0.2s ease;
}

.expand-arrow:hover {
  color: #4a7cff;
  transform: scale(1.2);
}

.expand-arrow.expanded {
  color: #4a7cff;
}

.match-duration {
  color: #e4e6eb;
  font-weight: 500;
  text-align: center;
  width: 60px;
  font-size: 0.75rem;
  padding: 0.5rem 0.25rem;
}

.match-date-cell {
  font-size: 0.75rem;
  width: 80px;
  padding: 0.5rem 0.25rem;
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-width: 80px;
  max-width: 100px;
}

.series-expandable-row {
  cursor: pointer;
}

.team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}

.team-name {
  flex: 1;
}

.win-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #00d084;
  color: #0a0b0e;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
}

.blue-team {
  color: #3b9eff;
}

.red-team {
  color: #ff4757;
}

.blue-team.winner {
  color: #5db9ff;
  font-weight: 800;
}

.red-team.winner {
  color: #ff6b7a;
  font-weight: 800;
}

.match-result {
  text-align: center;
  min-width: 70px;
  width: 70px;
  padding: 0.5rem 0.25rem;
}

.result-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: rgba(42, 45, 60, 0.8);
  border-radius: 3px;
  font-size: 0.7rem;
  color: #b8bcc8;
  font-weight: 500;
}

.champions-cell {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.champion-icon-small {
  width: 26px;
  height: 26px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.15s ease;
  display: block;
}

.champion-icon-small:hover {
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.actions-cell {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.btn-action-small {
  padding: 0.3rem 0.6rem;
  background: transparent;
  border: 1.5px solid #4a7cff;
  border-radius: 3px;
  color: #4a7cff;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.btn-action-small:hover {
  background: rgba(74, 124, 255, 0.15);
  border-color: #5b8dff;
  color: #5b8dff;
}

.no-vod {
  color: #6b7280;
  font-size: 0.7rem;
  width: 45px;
  text-align: center;
}

.no-matches {
  text-align: center;
  padding: 2rem;
  color: #9ca3af;
}

/* ==================== SKILL ORDER TOOLTIP ==================== */

.champion-icon-small {
  cursor: pointer;
  position: relative;
}

.skill-order-tooltip {
  position: fixed;
  background: rgba(20, 22, 28, 0.98);
  border: 1px solid rgba(74, 124, 255, 0.3);
  border-radius: 8px;
  padding: 1rem;
  z-index: 10000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.skill-order-header {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-order-player-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

.skill-order-champion-name {
  font-size: 0.75rem;
  color: #9ca3af;
}

.skill-order-grid {
  display: grid;
  grid-template-columns: 30px repeat(18, 22px);
  grid-template-rows: 20px repeat(4, 22px);
  gap: 2px;
}

.skill-order-grid-header {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: #9ca3af;
}

.skill-order-grid-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.skill-order-grid-cell {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.skill-order-grid-cell.skilled {
  background: #4a7cff;
  border-color: #5b8dff;
  box-shadow: 0 0 8px rgba(74, 124, 255, 0.4);
}

.skill-order-loading {
  padding: 1rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.8rem;
}

.skill-order-error {
  padding: 1rem;
  text-align: center;
  color: #ef4444;
  font-size: 0.8rem;
}

/* Item Timeline */
.item-timeline {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 800px;
}

.item-timeline-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.item-timeline-time {
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 600;
  white-space: nowrap;
}

.item-timeline-items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
}

.item-timeline-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

.item-timeline-icon.item-sold {
  opacity: 0.5;
  border-color: rgba(239, 68, 68, 0.5);
  filter: grayscale(0.5);
}

/* ==================== DRAFT TOOLTIP ==================== */

.draft-hover-trigger {
  cursor: help;
}

.draft-tooltip {
  position: fixed;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 0.3rem;
  z-index: 10000;
  max-width: 300px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.draft-tooltip-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.draft-loading,
.draft-error {
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
}

.draft-loading {
  color: #9ca3af;
}

.draft-error {
  color: #ef4444;
}

/* ==================== EVENTS PAGE STYLES ==================== */

.events-page-container {
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* Events Search Bar */
.events-search-bar-container {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.events-search-bar-wrapper {
  flex: 1;
  position: relative;
}

.events-search-bar {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.events-search-bar::placeholder {
  color: #666;
}

.events-search-bar:hover {
  border-color: #444;
}

.events-search-bar:focus {
  outline: none;
  border-color: #d5d5d5;
  box-shadow: 0 0 0 3px rgba(213, 213, 213, 0.1);
}

.events-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #2a2a2a;
  border: 2px solid #d5d5d5;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-top: -2px;
  display: none;
}

.events-suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.events-suggestion-item:hover {
  background: rgba(213, 213, 213, 0.1);
}

.events-suggestion-type {
  font-weight: 700;
  font-size: 0.75rem;
  color: #d5d5d5;
  text-transform: uppercase;
}

.events-suggestion-value {
  color: #e0e0e0;
  font-size: 0.875rem;
}

.events-search-btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  white-space: nowrap;
}

/* Events Filters */
.events-filters-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.events-filter-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Time Range Filter */
.events-time-range-container {
  padding: 1rem 1.5rem;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.time-range-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #999;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.events-time-range-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.time-input-group {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.time-input-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #666;
  min-width: 35px;
}

.time-input {
  width: 60px;
  padding: 0.375rem 0.5rem;
  background: #0f0f0f;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  text-align: center;
  font-weight: 600;
}

.time-input-short {
  width: 45px;
  padding: 0.375rem 0.4rem;
  background: #0f0f0f;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  text-align: center;
  font-weight: 600;
}

.time-input:focus,
.time-input-short:focus {
  outline: none;
  border-color: #d5d5d5;
  box-shadow: 0 0 0 2px rgba(213, 213, 213, 0.15);
}

.time-input-group span {
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
}

/* Time Range Sliders */
.events-time-range-slider-container {
  position: relative;
  height: 30px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 2px;
  margin-top: 0.75rem;
}

.slider-value-display {
  font-size: 0.75rem;
  color: #999;
  text-align: center;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.events-time-range-slider-container::before {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  height: 6px;
  background: rgba(71, 85, 105, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 4px;
  z-index: 0;
}

.events-time-range-slider {
  position: absolute;
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}

.events-time-range-slider::-webkit-slider-track {
  width: 100%;
  height: 6px;
  background: transparent;
  border: none;
  border-radius: 4px;
}

.events-time-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  background: #d5d5d5;
  border: 3px solid #1e293b;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
  z-index: 2;
}

.events-time-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.events-time-range-slider::-webkit-slider-thumb:active {
  transform: scale(1.05);
}

.events-time-range-slider::-moz-range-track {
  width: 100%;
  height: 6px;
  background: transparent;
  border: none;
  border-radius: 4px;
}

.events-time-range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #d5d5d5;
  border: 3px solid #1e293b;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
}

.events-time-range-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.events-time-range-slider::-moz-range-thumb:active {
  transform: scale(1.05);
}

#eventsMaxTimeSlider {
  z-index: 3;
}

#eventsMinTimeSlider {
  z-index: 2;
}

/* Quick Filters Container */
.events-quick-filters-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Ward Numbers Container */
.events-ward-numbers-container {
  max-width: 1400px;
  margin: 0 auto 2rem auto;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: #1a1a1a;
  border-radius: 12px;
  border: 2px solid #d5d5d5;
}

.events-ward-number-btn {
  width: 50px;
  height: 50px;
  border: 2px solid #333;
  border-radius: 8px;
  background: #0f0f0f;
  color: #d5d5d5;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.events-ward-number-btn:hover {
  border-color: #d5d5d5;
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.events-ward-number-btn.active {
  border-color: #d5d5d5;
  background: #d5d5d5;
  color: #000;
  box-shadow: 0 0 0 3px rgba(213, 213, 213, 0.2);
}

.events-ward-number-btn:active {
  transform: translateY(0);
}

.events-quick-filter-btn {
  width: 60px !important;
  height: 60px !important;
  border: 2px solid #333 !important;
  border-radius: 12px !important;
  background: #1a1a1a !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.events-quick-filter-btn img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.events-quick-filter-btn:hover {
  border-color: #d5d5d5 !important;
  background: #222 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.events-quick-filter-btn.active {
  border-color: #d5d5d5 !important;
  background: #d5d5d5 !important;
  box-shadow: 0 0 0 3px rgba(213, 213, 213, 0.2);
}

.events-quick-filter-btn:active {
  transform: translateY(0);
}

/* Events Table */
.events-container {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1.5rem;
}

.events-table {
  width: 100%;
  border-collapse: collapse;
}

.events-table thead {
  background: #0f0f0f;
}

.events-table th {
  padding: 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #333;
}

.events-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.events-table th.sortable:hover {
  color: #d5d5d5;
}

.events-table tbody tr {
  border-bottom: 1px solid #222;
  transition: background 0.2s ease;
}

.events-table tbody tr:hover {
  background: #222;
}

.events-table td {
  padding: 1rem;
  font-size: 0.875rem;
  color: #e0e0e0;
}

/* Event Type Badge */
.event-type-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  color: #d5d5d5;
  font-size: 12px;
  font-weight: 500;
  text-transform: lowercase;
}

/* Loading/Empty States */
.loading {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 4px solid #333;
  border-top-color: #d5d5d5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 3rem;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.empty-state-message {
  font-size: 1rem;
  color: #666;
}

/* ==================== DRAFTS PAGE ==================== */

.drafts-container {
  padding: 0.5rem;
}

.drafts-grid-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.draft-series-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.draft-card {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.draft-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: #3a3a3a;
}

/* New layout for picks with roles */
.draft-picks-section-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.draft-picks-team1-new,
.draft-picks-team2-new {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.draft-pick-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.4rem;
  background: rgba(20, 22, 28, 0.6);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
}

.draft-pick-row:hover {
  background: rgba(30, 32, 38, 0.8);
  border-color: rgba(74, 124, 255, 0.3);
}

.draft-ban-row {
  background: rgba(139, 0, 0, 0.15);
  border-left: 2px solid rgba(220, 38, 38, 0.4);
}

.draft-bans-inline {
  margin: 0.3rem 0;
  opacity: 0.85;
}

.draft-pick-row.winner-pick {
  background: rgba(26, 77, 26, 0.4);
  border-color: rgba(76, 175, 80, 0.5);
}

.draft-role-icon {
  width: 20px;
  height: 20px;
  opacity: 0.85;
  filter: brightness(1.1);
}

.draft-champ-icon-small {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s;
}

.draft-champ-icon-small:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.draft-champ-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e4e6eb;
  text-transform: capitalize;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.draft-vs-new {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.5rem;
}

.draft-game-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #666;
  text-align: center;
  letter-spacing: 0.5px;
}

.draft-score {
  font-size: 1rem;
  font-weight: 700;
  color: #888;
  text-align: center;
}

.draft-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #2a2a2a;
}

.draft-team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.3rem;
  border-radius: 4px;
  background: #1a1a1a;
}

.draft-team-header.winner {
  background: linear-gradient(90deg, #1a4d1a 0%, #0d260d 100%);
  border: 1px solid #2d7a2d;
}

.draft-team-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
  text-transform: uppercase;
}

.draft-team-score {
  font-weight: 700;
  font-size: 0.9rem;
  color: #888;
}

.draft-team-header.winner .draft-team-score {
  color: #4CAF50;
}

.draft-previous-game {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.3rem;
  align-items: center;
  margin-bottom: 0.2rem;
  padding: 0.2rem;
  background: #0d0d0d;
  border-radius: 4px;
  border: 1px solid #1a1a1a;
}

.draft-previous-picks-team1,
.draft-previous-picks-team2 {
  display: flex;
  gap: 0.15rem;
  justify-content: center;
}

.draft-previous-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: #555;
  text-align: center;
  letter-spacing: 0.5px;
}

.draft-previous-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid #2a2a2a;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.2s;
  cursor: pointer;
}

.draft-previous-icon:hover {
  opacity: 1;
}

.draft-previous-icon.highlighted {
  opacity: 1;
  border: 2px solid #FFD700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.draft-bans-section {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.3rem;
  align-items: center;
  margin-top: auto;
  margin-bottom: 0.2rem;
  padding: 0.2rem;
  background: #0a0a0a;
  border-radius: 4px;
}

.draft-bans-team1,
.draft-bans-team2 {
  display: flex;
  gap: 0.15rem;
  justify-content: center;
}

.draft-bans-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #666;
  text-align: center;
  letter-spacing: 0.5px;
}

.draft-ban-icon {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  border: 1px solid #3a3a3a;
  object-fit: cover;
  opacity: 0.6;
  transition: all 0.2s;
  cursor: pointer;
}

.draft-ban-icon:hover {
  opacity: 1;
}

.draft-ban-icon.highlighted {
  opacity: 1;
  border: 2px solid #FFD700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.draft-ban-icon.ban-space-after {
  margin-right: 0.4rem;
}

.draft-picks-section {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.3rem;
  align-items: flex-start;
  margin-bottom: 0;
  position: relative;
}

.draft-picks-team1,
.draft-picks-team2 {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.draft-pick-icon {
  width: 100%;
  height: 32px;
  border-radius: 4px;
  border: 1px solid #2a2a2a;
  object-fit: cover;
  transition: all 0.2s;
  cursor: pointer;
}

.draft-pick-icon:hover {
  transform: scale(1.05);
  border-color: #4a4a4a;
}

.draft-pick-icon.highlighted {
  border: 2px solid #FFD700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  transform: scale(1.05);
}

.draft-pick-icon.pick-space-after {
  margin-bottom: 0.4rem;
}

.draft-phase-separator {
  position: absolute;
  left: 0;
  right: 0;
  top: 106px;
  width: 100%;
  height: 0;
  border-bottom: 2px dashed #4a4a4a;
  z-index: 1;
  pointer-events: none;
}

.draft-vs {
  font-weight: 700;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  letter-spacing: 1px;
}

.draft-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.2rem;
  border-top: 1px solid #2a2a2a;
  font-size: 0.7rem;
}

.draft-date {
  color: #888;
}

.draft-game-info {
  color: #666;
  font-weight: 600;
}

.draft-vod-link {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.draft-vod-link:hover {
  color: #66BB6A;
  text-decoration: underline;
}

.no-drafts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #666;
  font-size: 1.1rem;
}

.btn-toggle-fearless {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #3a3a3a;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}

.btn-toggle-fearless:hover {
  background: #3a3a3a;
  border-color: #4a4a4a;
}

.btn-toggle-fearless.active {
  background: #4CAF50;
  border-color: #66BB6A;
}

.hide-fearless .draft-previous-game {
  display: none;
}

/* ==================== SYNERGIES PAGE ==================== */

.synergies-container {
  padding: 1.5rem;
}

.synergy-champions-section {
  margin-bottom: 1.5rem;
}

.synergy-champions-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b8bcc8;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.synergy-champion-input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.synergy-champion-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(42, 45, 60, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e4e6eb;
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.synergy-champion-input:focus {
  outline: none;
  border-color: #5b7fff;
  background: rgba(42, 45, 60, 1);
}

.synergy-role-filter {
  margin-bottom: 1.5rem;
}

.synergy-role-filter label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b8bcc8;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.synergies-content {
  margin-top: 2rem;
}

.synergy-tables {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  overflow-x: auto;
}

@media (max-width: 1400px) {
  .synergy-tables {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .synergy-tables {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .synergy-tables {
    grid-template-columns: 1fr;
  }
}

.synergy-role-section h3 {
  color: #5b7fff;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

.synergy-champion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.synergy-champion-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

.synergy-table {
  width: 100%;
  background: rgba(15, 17, 21, 0.8);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.synergy-table thead {
  background: rgba(91, 127, 255, 0.1);
}

.synergy-table th {
  padding: 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b8bcc8;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.synergy-table td {
  padding: 0.75rem;
  color: #ffffff;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.synergy-table tbody tr:last-child td {
  border-bottom: none;
}

.synergy-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.synergy-table td.positive {
  color: #4CAF50;
  font-weight: 600;
}

.synergy-table td.negative {
  color: #f44336;
  font-weight: 600;
}

/* Synergy table row hover */
.synergy-table tbody tr[style*="cursor: pointer"]:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Games Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.modal-content-large {
  background-color: #1e1f26;
  border-radius: 12px;
  width: 90%;
  max-width: 1400px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.5rem;
}

.modal-close {
  font-size: 2rem;
  font-weight: bold;
  color: #b8bcc8;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.games-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #16171d;
  border-radius: 8px;
  overflow: hidden;
}

.games-table th {
  padding: 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b8bcc8;
  text-transform: uppercase;
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.games-table td {
  padding: 0.75rem;
  color: #ffffff;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.games-table tbody tr:last-child td {
  border-bottom: none;
}

.games-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.team-comp {
  font-size: 0.8rem;
  color: #b8bcc8;
}

/* ==================== RUNE ICONS ==================== */

.rune-icons {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  justify-content: center;
}

.rune-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
  background-color: #000;
}

.rune-icon:hover {
  transform: scale(1.1);
  border-color: #d4af37;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.keystone-rune {
  border-color: #ffd700;
  border-width: 2px;
}

.secondary-tree {
  opacity: 0.85;
}

/* ==================== RUNE TOOLTIP ==================== */

.rune-tooltip {
  position: fixed;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 2px solid #d4af37;
  border-radius: 6px;
  padding: 0.75rem;
  z-index: 10000;
  max-width: 600px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  font-size: 0.875rem;
  display: flex;
  gap: 1rem;
}

.rune-tooltip-section {
  flex: 1;
  padding-right: 1rem;
  border-right: 2px solid rgba(212, 175, 55, 0.3);
}

.rune-tooltip-section:last-child {
  padding-right: 0;
  border-right: none;
}

.rune-tooltip-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rune-tooltip-icon,
.rune-tooltip-tree-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #d4af37;
  background-color: #000;
}

.rune-tooltip-name {
  font-size: 1rem;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 0.25rem;
}

.rune-tooltip-runes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rune-tooltip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rune-tooltip-small-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background-color: #000;
  flex-shrink: 0;
}

.rune-tooltip-details {
  flex: 1;
}

.rune-tooltip-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.rune-tooltip-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rune-stat {
  color: #4a7cff;
  font-weight: 600;
  font-size: 0.875rem;
}

.rune-tooltip-description {
  color: #9ca3af;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.blue-win {
  color: #4A90E2;
  font-weight: 600;
}

.red-win {
  color: #E24A4A;
  font-weight: 600;
}

/* ==================== GAME DETAILS PAGE ==================== */

.game-details-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f1115 0%, #1a1d25 100%);
  padding: 1.5rem;
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.details-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-back {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
}

.details-content {
  max-width: 1600px;
  margin: 0 auto;
}

.game-details-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-headers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.team-header {
  padding: 0.5rem;
  border-radius: 4px;
  text-align: center;
  border: 2px solid;
}

.team-header.blue-side {
  border-color: #4A90E2;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(74, 144, 226, 0.05) 100%);
}

.team-header.red-side {
  border-color: #E24A4A;
  background: linear-gradient(135deg, rgba(226, 74, 74, 0.1) 0%, rgba(226, 74, 74, 0.05) 100%);
}

.team-header.winner {
  border-width: 3px;
}

.team-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.result-label {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.team-header.blue-side.winner .result-label {
  color: #4A90E2;
}

.team-header.red-side.winner .result-label {
  color: #E24A4A;
}

.team-header.loser .result-label {
  color: #666;
}

.team-objectives {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.objectives-blue,
.objectives-red {
  display: flex;
  justify-content: space-around;
  padding: 1.5rem;
  background: rgba(20, 22, 28, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.objective-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.objective-icon {
  font-size: 2rem;
}

.objective-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gold-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.objective-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.draft-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  background: rgba(20, 22, 28, 0.6);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.draft-display-new {
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(20, 22, 28, 0.6);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.draft-label-header {
  font-size: 0.875rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 0.75rem;
}

.draft-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.draft-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.draft-champions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.draft-champ-small {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.draft-champ-small:hover {
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.player-stats-container {
  overflow-x: auto;
}

.player-stats-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(20, 22, 28, 0.8);
  border-radius: 8px;
  overflow: hidden;
}

.player-stats-table thead {
  background: rgba(15, 17, 21, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.player-stats-table th {
  padding: 0.4rem 0.5rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.player-stats-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.player-stats-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
}

.player-cell.blue-side {
  border-left: 3px solid #4A90E2;
}

.player-cell.red-side {
  border-left: 3px solid #E24A4A;
}

.player-champion-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.player-name {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.stat-cell {
  padding: 0.4rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e4e6eb;
  text-align: center;
}

.item-icons {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.item-icon {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.item-icon:hover {
  transform: scale(1.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.item-empty {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== ITEM TOOLTIP ==================== */

.item-tooltip {
  position: fixed;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 2px solid #d4af37;
  border-radius: 6px;
  padding: 0.75rem;
  z-index: 10000;
  max-width: 350px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  font-size: 0.875rem;
}

.item-tooltip-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.item-tooltip-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  border: 1px solid #d4af37;
}

.item-tooltip-name {
  font-size: 1rem;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 0.25rem;
}

.item-tooltip-gold {
  font-size: 0.875rem;
  color: #ffd700;
  font-weight: 600;
}

.item-tooltip-stats {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.item-stat {
  color: #4a7cff;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.item-tooltip-description {
  color: #9ca3af;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ==================== TIMELINE STYLES ==================== */

.timeline-section {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  background: rgba(20, 22, 28, 0.6);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  overflow: visible;
}

.timeline-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 1.5rem 0;
  padding: 0;
  background: none;
}

.gold-graph-container {
  background: rgba(30, 33, 43, 0.5);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

#goldGraphCanvas {
  display: block;
  width: 100%;
  cursor: crosshair;
}

.gold-graph-tooltip {
  position: absolute;
  background: rgba(20, 22, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.75rem;
  pointer-events: none;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.gold-graph-tooltip.active {
  display: block;
}

.tooltip-time {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.tooltip-gold {
  font-size: 0.875rem;
  font-weight: 700;
}

.tooltip-gold.positive {
  color: #4a7cff;
}

.tooltip-gold.negative {
  color: #ff5555;
}

.objectives-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.timeline-row {
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  background: none;
}

.timeline-row.blue-timeline {
  margin-bottom: 0;
}

.timeline-label {
  font-weight: 700;
  font-size: 0.75rem;
  color: #9ca3af;
  min-width: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 1rem;
  flex-shrink: 0;
}

.timeline-row.blue-timeline .timeline-label {
  color: #4a7cff;
}

.timeline-row.red-timeline .timeline-label {
  color: #ff5555;
}

.timeline-events {
  position: relative;
  flex: 1;
  height: 50px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-row.blue-timeline .timeline-events {
  background: linear-gradient(135deg, rgba(74, 124, 255, 0.3) 0%, rgba(74, 124, 255, 0.15) 100%);
}

.timeline-row.red-timeline .timeline-events {
  background: linear-gradient(135deg, rgba(255, 85, 85, 0.3) 0%, rgba(255, 85, 85, 0.15) 100%);
}

.timeline-objective-positioned {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  z-index: 10;
}

.objective-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e2936;
  padding: 3px;
  border: 2px solid #fff;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.objective-icon:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.objective-time {
  font-size: 0.65rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.7);
  padding: 1px 5px;
  border-radius: 2px;
  white-space: nowrap;
}

.objective-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.objective-clickable:hover .objective-icon {
  transform: scale(1.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
}

.objective-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 22, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 8px;
  min-width: 140px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.objective-clickable:hover .objective-tooltip {
  opacity: 1;
}

.objective-tooltip-type {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.objective-tooltip-time {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.objective-tooltip-source {
  font-size: 0.75rem;
  color: #4a7cff;
  margin-bottom: 0.5rem;
}

.objective-tooltip-hint {
  font-size: 0.65rem;
  color: #6b7280;
  font-style: italic;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== DRAGON DETAILS DISPLAY ==================== */

.dragon-details {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.375rem;
  justify-content: center;
}

.dragon-type-count {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.dragon-mini-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.9;
}

.dragon-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
}

/* ==================== GOLD DISTRIBUTION SECTION ==================== */

.gold-distribution-section {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  background: rgba(20, 22, 28, 0.6);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
}

.gold-distribution-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.gold-distribution-chart {
  display: flex;
  justify-content: center;
  align-items: center;
}

#goldDistributionCanvas {
  display: block;
  max-width: 100%;
}

.gold-distribution-table {
  display: flex;
  justify-content: center;
}

.gold-dist-table-wrapper {
  width: 100%;
  max-width: 400px;
}

.gold-dist-data-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 17, 21, 0.8);
  border-radius: 8px;
  overflow: hidden;
}

.gold-dist-data-table thead {
  background: rgba(10, 11, 14, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.gold-dist-data-table th {
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gold-dist-data-table th.team-column {
  font-size: 0.9375rem;
  font-weight: 800;
}

.gold-dist-data-table th.team-column.blue-team {
  color: #4A90E2;
}

.gold-dist-data-table th.team-column.red-team {
  color: #E24A4A;
}

.gold-dist-data-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.gold-dist-data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.gold-dist-data-table td {
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: #e4e6eb;
}

.gold-dist-data-table td.role-cell {
  font-weight: 700;
  text-align: left;
  color: #ffffff;
}

.gold-dist-data-table td.blue-team {
  color: #5db9ff;
  font-weight: 600;
}

.gold-dist-data-table td.red-team {
  color: #ff6b7a;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .gold-distribution-container {
    grid-template-columns: 1fr;
  }
}

/* Damage Distribution Section */
.damage-distribution-section {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  background: rgba(20, 22, 28, 0.6);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
}

.damage-distribution-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.damage-distribution-chart {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

#damageDistributionCanvas {
  max-width: 100%;
  height: auto;
}

.damage-distribution-table {
  display: flex;
  justify-content: center;
  align-items: center;
}

.damage-dist-table-wrapper {
  width: 100%;
  max-width: 400px;
}

.damage-dist-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: rgba(30, 32, 38, 0.5);
  border-radius: 6px;
  overflow: hidden;
}

.damage-dist-data-table thead {
  background: rgba(40, 42, 48, 0.8);
}

.damage-dist-data-table th {
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-weight: 600;
  color: #9ca3af;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
}

.damage-dist-data-table th:first-child {
  text-align: left;
  padding-left: 0.75rem;
}

.damage-dist-data-table th.team-column.blue-team {
  color: #4A90E2;
}

.damage-dist-data-table th.team-column.red-team {
  color: #E24A4A;
}

.damage-dist-data-table td {
  padding: 0.5rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}

.damage-dist-data-table td:first-child {
  text-align: left;
  padding-left: 0.75rem;
  font-weight: 600;
  color: #d1d5db;
}

.damage-dist-data-table tbody tr:hover {
  background: rgba(50, 52, 58, 0.5);
}

.damage-dist-data-table tbody tr:last-child td {
  border-bottom: none;
}

.damage-dist-data-table td.blue-team {
  color: #60a5fa;
  font-weight: 600;
}

.damage-dist-data-table td.red-team {
  color: #ff6b7a;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .damage-distribution-container {
    grid-template-columns: 1fr;
  }
}

/* Vision Section */
.vision-section {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  background: rgba(20, 22, 28, 0.6);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
}

.vision-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem;
}

#visionCanvas {
  width: 1000px;
  height: 150px;
}

/* ==================== MATCHUPS PAGE ==================== */

.matchups-container {
  padding: 1rem;
}

.champion-suggestions {
  position: absolute;
  background: rgba(30, 32, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.champion-suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  color: #e4e6eb;
}

.champion-suggestion-item:hover {
  background: rgba(74, 144, 226, 0.2);
}

.filter-group {
  position: relative;
}

.champion-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.champion-icon-small {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.champion-icon-tiny {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.champions-mini {
  display: flex;
  gap: 2px;
}

.vs-cell {
  font-weight: bold;
  color: #9ca3af;
  text-align: center;
}

.vs-header {
  text-align: center;
  color: #9ca3af;
}

.win-cell {
  color: #10b981;
  font-weight: bold;
}

.lose-cell {
  color: #ef4444;
  font-weight: bold;
}

.btn-icon {
  padding: 0.25rem 0.5rem;
  background: rgba(74, 144, 226, 0.2);
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 3px;
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-icon:hover {
  background: rgba(74, 144, 226, 0.3);
  border-color: rgba(74, 144, 226, 0.5);
}

.items-display {
  display: flex;
  gap: 2px;
  align-items: center;
}

.item-icon {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.item-slot.empty {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}

.runes-display {
  display: flex;
  gap: 4px;
  align-items: center;
}

.rune-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px;
}

.rune-icon-small {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px;
}

.item-hoverable {
  cursor: help;
  transition: transform 0.2s ease;
}

.item-hoverable:hover {
  transform: scale(1.1);
}

.rune-hoverable {
  cursor: help;
  transition: transform 0.2s ease;
}

.rune-hoverable:hover {
  transform: scale(1.1);
}

.matchup-champion-hover {
  cursor: help;
}

.draft-hover-trigger {
  cursor: help;
}


/* ==================== JUNGLE PATHS PAGE ==================== */

.jungle-paths-container {
  max-width: 1400px;
  margin: 0 auto;
}

.jungle-paths-filters {
  background: rgba(28, 31, 38, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.jungle-champion-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
  z-index: 100;
}

.jungle-champion-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(42, 45, 60, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e4e6eb;
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.jungle-champion-input:focus {
  outline: none;
  border-color: #4a90e2;
  background: rgba(42, 45, 60, 1);
}

.matchups-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(15, 17, 21, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: none;
  border-radius: 0 0 8px 8px;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.matchups-suggestions.active {
  display: block;
}

.matchups-suggestion-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: #ffffff;
  font-size: 0.875rem;
  transition: background 0.15s ease;
}

.matchups-suggestion-option:hover {
  background: rgba(74, 124, 255, 0.2);
}

.matchups-suggestion-option .suggestion-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.jungle-paths-results {
  margin-top: 2rem;
}

.results-header {
  margin-bottom: 1.5rem;
}

.results-header h3 {
  color: #e4e6eb;
  font-size: 1.125rem;
  margin: 0;
  font-weight: 600;
}

/* ==================== OBJECTIVES PAGE ==================== */

.objectives-container {
  max-width: 1600px;
  margin: 0 auto;
}

.objectives-header {
  margin-bottom: 1.5rem;
}

.objectives-header h2 {
  color: #e4e6eb;
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.objectives-results {
  margin-top: 1rem;
}

.table-scroll-container {
  overflow-x: auto;
  border-radius: 8px;
}

.objectives-table {
  min-width: 1400px;
}

.objectives-table th,
.objectives-table td {
  text-align: center;
  white-space: nowrap;
  padding: 0.6rem 0.5rem;
}

.objectives-table th:first-child,
.objectives-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: rgba(20, 22, 28, 0.98);
  z-index: 1;
}

.team-name-cell {
  font-weight: 600;
  color: #e4e6eb;
}

/* Stat coloring classes */
.stat-high {
  background: rgba(46, 160, 67, 0.4);
  color: #4ade80;
}

.stat-medium {
  background: rgba(234, 179, 8, 0.3);
  color: #fbbf24;
}

.stat-medium-high {
  background: rgba(74, 222, 128, 0.2);
  color: #86efac;
}

.stat-medium-low {
  background: rgba(251, 191, 36, 0.2);
  color: #fcd34d;
}

.stat-low {
  background: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ==================== PLAYERS GD PAGE ==================== */

.players-gd-container {
  max-width: 1800px;
  margin: 0 auto;
}

.players-gd-header {
  margin-bottom: 1.5rem;
}

.players-gd-header h2 {
  color: #e4e6eb;
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.players-gd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: rgba(26, 29, 41, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-items: flex-end;
}

.players-gd-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(26, 29, 41, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
}

.players-gd-filters-row .filter-select,
.players-gd-filters-row .filter-input {
  padding: 0.5rem 0.75rem;
  background: rgba(15, 17, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #e4e6eb;
  font-size: 0.875rem;
  min-width: 120px;
}

.players-gd-filters-row .filter-input[type="date"] {
  min-width: 140px;
}

.players-gd-filters-row .filter-select:focus,
.players-gd-filters-row .filter-input:focus {
  outline: none;
  border-color: rgba(74, 144, 226, 0.5);
}

.players-gd-filters-row .btn-primary,
.players-gd-filters-row .btn-secondary {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.players-gd-filters-row .btn-primary {
  background: #3b82f6;
  color: white;
  border: none;
}

.players-gd-filters-row .btn-primary:hover {
  background: #2563eb;
}

.players-gd-filters-row .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.players-gd-filters-row .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.players-gd-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.players-gd-filter-group label {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.players-gd-filter-group input,
.players-gd-filter-group select {
  padding: 0.5rem 0.75rem;
  background: rgba(15, 17, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #e4e6eb;
  font-size: 0.875rem;
  min-width: 140px;
  transition: all 0.2s;
}

.players-gd-filter-group input:focus,
.players-gd-filter-group select:focus {
  outline: none;
  border-color: #4a90e2;
  background: rgba(15, 17, 21, 1);
}

.players-gd-filter-group input[type="date"] {
  min-width: 130px;
}

.players-gd-filter-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.btn-filter-apply {
  padding: 0.5rem 1.25rem;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-filter-apply:hover {
  background: #3a7bc8;
}

.btn-filter-reset {
  padding: 0.5rem 1rem;
  background: transparent;
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-filter-reset:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e4e6eb;
}

.players-gd-results {
  margin-top: 1rem;
}

/* Pagination controls */
.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(26, 29, 41, 0.6);
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

#playersGdPaginationBottom {
  margin-top: 0.5rem;
  margin-bottom: 0;
  justify-content: center;
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #9ca3af;
  font-size: 0.85rem;
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-info {
  color: #e4e6eb;
  font-size: 0.85rem;
  min-width: 100px;
  text-align: center;
}

.players-gd-table-container {
  overflow-x: auto;
  border-radius: 8px;
  background: rgba(20, 22, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.players-gd-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.players-gd-table thead {
  background: rgba(26, 29, 41, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
}

.players-gd-table th {
  padding: 0.4rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Column widths */
.players-gd-table th:nth-child(1) { width: 70px; } /* League */
.players-gd-table th:nth-child(2) { width: 90px; } /* Player */
.players-gd-table th:nth-child(3) { width: 80px; } /* Ally Champ */
.players-gd-table th:nth-child(4) { width: 90px; } /* Enemy */
.players-gd-table th:nth-child(5) { width: 80px; } /* Enemy Champ */
.players-gd-table th:nth-child(n+6):nth-child(-n+17) { width: 45px; } /* GD columns */
.players-gd-table th:last-child { width: 140px; } /* Actions */

.players-gd-table th:first-child,
.players-gd-table th:nth-child(2),
.players-gd-table th:nth-child(3),
.players-gd-table th:nth-child(4),
.players-gd-table th:nth-child(5) {
  text-align: left;
}

.players-gd-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}

.players-gd-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.players-gd-table td {
  padding: 0.35rem 0.25rem;
  font-size: 0.75rem;
  color: #e4e6eb;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.players-gd-table td:first-child,
.players-gd-table td:nth-child(2),
.players-gd-table td:nth-child(3),
.players-gd-table td:nth-child(4),
.players-gd-table td:nth-child(5) {
  text-align: left;
}

/* Player and champion cells */
.player-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-name {
  font-weight: 500;
  color: #e4e6eb;
}

.champion-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.champion-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.champion-name {
  color: #b8bcc8;
  font-size: 0.8125rem;
}

/* Gold diff cell coloring */
.gd-cell {
  font-weight: 500;
  font-size: 0.8125rem;
  min-width: 55px;
  padding: 0.4rem 0.5rem !important;
  border-radius: 3px;
  margin: 2px;
}

.gd-very-positive {
  background: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.gd-positive {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.gd-slight-positive {
  background: rgba(34, 197, 94, 0.12);
  color: #a7f3d0;
}

.gd-neutral {
  background: rgba(156, 163, 175, 0.1);
  color: #9ca3af;
}

.gd-slight-negative {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.gd-negative {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.gd-very-negative {
  background: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.gd-na {
  background: transparent;
  color: #4b5563;
  font-style: italic;
}

/* Players GD specific champion cells */
.champion-cell-gd {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.champ-icon-gd {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.players-gd-table .player-name {
  font-weight: 500;
  color: #e4e6eb;
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.champion-cell-gd span {
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Gold diff cell styling */
.players-gd-table .gd-cell {
  font-size: 0.7rem;
  padding: 0.2rem 0.15rem !important;
  min-width: auto;
}

/* Players GD Action buttons */
.action-buttons-gd {
  display: flex;
  gap: 0.15rem;
  justify-content: center;
  flex-wrap: nowrap;
}

.action-buttons-gd .btn-small {
  padding: 0.15rem 0.25rem;
  font-size: 0.55rem;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
  transition: all 0.15s;
}

.action-buttons-gd .btn-small:hover {
  background: rgba(255, 255, 255, 0.1);
}

.action-buttons-gd .btn-vod {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.3);
}

.action-buttons-gd .btn-vod:hover {
  background: rgba(168, 85, 247, 0.35);
}

.action-buttons-gd .btn-details {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

.action-buttons-gd .btn-details:hover {
  background: rgba(59, 130, 246, 0.35);
}

.action-buttons-gd .btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Action buttons */
.action-buttons {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
}

.btn-action-small {
  padding: 0.3rem 0.5rem;
  background: rgba(74, 144, 226, 0.2);
  color: #4a90e2;
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.btn-action-small:hover {
  background: rgba(74, 144, 226, 0.35);
  border-color: rgba(74, 144, 226, 0.5);
}

.btn-action-small.btn-vod {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.3);
}

.btn-action-small.btn-vod:hover {
  background: rgba(168, 85, 247, 0.35);
  border-color: rgba(168, 85, 247, 0.5);
}

.btn-action-small.btn-rofl {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
  border-color: rgba(234, 179, 8, 0.3);
}

.btn-action-small.btn-rofl:hover {
  background: rgba(234, 179, 8, 0.35);
  border-color: rgba(234, 179, 8, 0.5);
}

/* Role icons */
.role-icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

/* Loading and empty states */
.players-gd-loading,
.players-gd-empty {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
  font-size: 0.9375rem;
}

.players-gd-count {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}
