/* CSS Variables matching main project */
:root {
  --primary-color: #FE6F39;
  --primary-hover: #ff8555;
  --primary-gradient: linear-gradient(135deg, #FE6F39 0%, #ff8555 100%);
  --background-dark: #0a0b0e;
  --background-card: #1a1b1f;
  --background-elevated: #242529;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted: #7a7a7a;
  --border-color: rgba(254, 111, 57, 0.15);
  --border-hover: rgba(254, 111, 57, 0.4);
  --shadow-color: rgba(254, 111, 57, 0.1);
  --shadow-hover: rgba(254, 111, 57, 0.2);
  --glass-bg: rgba(26, 27, 31, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Body and main layout */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--background-dark) 0%, #0f1014 50%, var(--background-dark) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  animation: fadeIn 0.8s ease-out;
  overflow-x: hidden;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(254, 111, 57, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(254, 111, 57, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(254, 111, 57, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  padding: 24px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: slideInRight 0.6s ease-out;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo-link {
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo {
  width: 180px;
  height: 57px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(254, 111, 57, 0.2));
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(254, 111, 57, 0.3));
}

.header-content {
  flex: 1;
  text-align: center;
}

.title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-primary);
}

.title i {
  color: var(--primary-color);
}

.subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.back-btn {
  background: var(--primary-gradient);
  color: var(--background-dark);
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px var(--shadow-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

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

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

.back-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

/* Navigation tabs */
.nav {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.tab-btn {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  padding: 12px 25px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.tab-btn:hover {
  border-color: var(--border-hover);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: var(--background-dark);
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px var(--shadow-hover);
}

/* Main content */
.main {
  padding: 40px 0;
}

.tab-content {
  display: none;
  animation: fadeInUp 0.5s ease;
}

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

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.filters-container {
  margin-top: 30px;
  background: linear-gradient(145deg, var(--background-card) 0%, rgba(26, 27, 31, 0.95) 100%);
  border-radius: 24px;
  padding: 0;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(254, 111, 57, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(30px);
  animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filters-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(254, 111, 57, 0.05) 0%, transparent 40%, rgba(254, 111, 57, 0.02) 100%);
  pointer-events: none;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 200px;
  padding: 25px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.filter-group:last-child {
  border-right: none;
}

.filter-group:hover {
  background: rgba(254, 111, 57, 0.05);
  transform: translateY(-2px);
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.filter-group label i {
  color: var(--primary-color);
  font-size: 1rem;
  width: 14px;
  text-align: center;
  filter: drop-shadow(0 0 4px rgba(254, 111, 57, 0.4));
}

.filters select, .filter-group input[type="number"] {
  padding: 14px 18px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 120px;
  font-weight: 600;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -moz-appearance: textfield; /* Firefox */
}

.filter-group input[type="number"]::-webkit-outer-spin-button,
.filter-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.filters select:hover, .filter-group input[type="number"]:hover {
  background: rgba(254, 111, 57, 0.1);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 8px 20px rgba(254, 111, 57, 0.2);
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(254, 111, 57, 0.3);
}

.filters select:focus, .filter-group input[type="number"]:focus {
  outline: none;
  background: rgba(254, 111, 57, 0.15);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(254, 111, 57, 0.3),
    0 8px 20px rgba(254, 111, 57, 0.2);
  transform: translateY(-2px) scale(1.02);
  border-color: var(--primary-color);
}

.filters select option {
  background: var(--background-elevated);
  color: var(--text-primary);
  padding: 8px;
}

/* Score Range Styles */
.score-range-container {
  min-width: 200px;
}

.range-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.range-inputs input[type="number"] {
  width: 90px;
  min-width: 90px;
  padding: 8px 12px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -moz-appearance: textfield; /* Firefox */
}

.range-inputs input[type="number"]::-webkit-outer-spin-button,
.range-inputs input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.range-inputs span {
  color: var(--primary-color);
  font-weight: 900;
  font-size: 1.2rem;
  text-shadow: 0 0 8px rgba(254, 111, 57, 0.5);
}

.range-slider {
  position: relative;
  height: 40px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 20px;
  box-shadow: 
    inset 0 3px 6px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.range-slider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  height: 8px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, 
    var(--primary-color) 0%, 
    #ff8555 50%, 
    #ffaa77 100%);
  border-radius: 20px;
  opacity: 0.6;
  z-index: 1;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.6;
    filter: blur(0px);
  }
  50% {
    opacity: 0.8;
    filter: blur(1px);
  }
}

.range-slider input[type="range"] {
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  width: calc(100% - 24px);
  height: 24px;
  transform: translateY(-50%);
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  z-index: 2;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-color) 0%, #ff8555 100%);
  cursor: pointer;
  border: 4px solid var(--background-dark);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4), 
    0 0 0 2px var(--primary-color),
    0 0 20px rgba(254, 111, 57, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.5), 
    0 0 0 3px var(--primary-color),
    0 0 30px rgba(254, 111, 57, 0.8);
}

.range-slider input[type="range"]::-moz-range-thumb {
  pointer-events: all;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--primary-gradient);
  cursor: pointer;
  border: 3px solid var(--background-dark);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--primary-color);
  transition: all 0.2s ease;
}

.range-slider input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--primary-color);
}

/* Market Filter Styles */
.market-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.market-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: none;
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 120px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.market-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(254, 111, 57, 0.1), transparent);
  transition: left 0.5s ease;
}

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

.market-btn:hover {
  background: linear-gradient(135deg, rgba(254, 111, 57, 0.2) 0%, rgba(255, 133, 85, 0.15) 100%);
  color: var(--text-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 25px rgba(254, 111, 57, 0.3);
  border-color: rgba(254, 111, 57, 0.4);
}

.market-btn.active {
  background: var(--primary-gradient);
  color: var(--background-dark);
  border-color: var(--primary-color);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 25px rgba(254, 111, 57, 0.4),
    0 0 20px rgba(254, 111, 57, 0.6);
  transform: translateY(-2px) scale(1.02);
}

.market-btn.active::before {
  display: none;
}

/* Random Deck Button */
.random-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff8555 50%, #ffaa77 100%);
  color: var(--background-dark);
  border: none;
  padding: 16px 28px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1rem;
  box-shadow: 
    0 6px 20px rgba(254, 111, 57, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 180px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.random-btn:hover:not(:disabled)::before {
  left: 100%;
}

.random-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff8555 0%, #ffaa77 50%, #ffcc99 100%);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 12px 35px rgba(254, 111, 57, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 25px rgba(254, 111, 57, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

.random-btn:active:not(:disabled) {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 
    0 4px 16px rgba(254, 111, 57, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.random-btn:disabled {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.1);
  transform: none;
  opacity: 0.5;
  border-color: rgba(255, 255, 255, 0.05);
}

.random-btn:disabled::before {
  display: none;
}

.random-deck-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-style: italic;
}

/* Random Deck Modal Styles */
.random-deck-content {
  text-align: center;
}

.random-deck-info {
  background: var(--background-elevated);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid var(--glass-border);
}

.random-deck-header {
  margin-bottom: 20px;
}

.random-deck-round {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.random-deck-position {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.random-deck-score {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.random-deck-cards {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.random-deck-cards .card-chip {
  background: var(--primary-gradient);
  color: var(--background-dark);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px var(--shadow-color);
}

.modal-actions {
  text-align: center;
  margin-top: 25px;
}

.regenerate-btn {
  background: var(--background-elevated);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.regenerate-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

/* Rounds grid */
.rounds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.round-card {
  background: var(--background-card);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease forwards;
}

.round-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.round-card:hover::before {
  opacity: 0.05;
}

.round-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(254, 111, 57, 0.15);
  border-color: var(--border-hover);
}

.round-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--glass-border);
}

.round-id {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.round-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.winner-info {
  text-align: center;
}

.winner-crown {
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 10px;
  display: block;
  animation: float 2s ease-in-out infinite;
}

.winner-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.winner-score {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 500;
}

.market-indicator {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 8px 0;
  font-weight: 500;
}

.winner-cards {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.card-chip {
  background: var(--primary-gradient);
  color: var(--background-dark);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.players-count {
  background: var(--background-elevated);
  color: var(--text-secondary);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-top: 15px;
  text-align: center;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.players-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Players stats */
.players-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.player-card {
  background: var(--background-card);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--glass-border);
  animation: fadeInScale 0.6s ease forwards;
}

.player-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(254, 111, 57, 0.1);
}

.player-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.player-avatar {
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background-dark);
  font-weight: 600;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.player-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.player-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: var(--background-elevated);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* Cards filters */
.cards-filters-container {
  background: linear-gradient(145deg, var(--background-card) 0%, rgba(26, 27, 31, 0.95) 100%);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(254, 111, 57, 0.2);
  backdrop-filter: blur(20px);
  animation: slideInDown 0.6s ease-out;
}

.cards-filter-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.cards-filter-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.cards-filter-group label i {
  color: var(--primary-color);
  font-size: 1rem;
  width: 14px;
  text-align: center;
  filter: drop-shadow(0 0 4px rgba(254, 111, 57, 0.4));
}

.cards-market-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cards-market-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: none;
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 140px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.cards-market-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(254, 111, 57, 0.1), transparent);
  transition: left 0.5s ease;
}

.cards-market-btn:hover::before {
  left: 100%;
}

.cards-market-btn:hover {
  background: linear-gradient(135deg, rgba(254, 111, 57, 0.2) 0%, rgba(255, 133, 85, 0.15) 100%);
  color: var(--text-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 25px rgba(254, 111, 57, 0.3);
  border-color: rgba(254, 111, 57, 0.4);
}

.cards-market-btn.active {
  background: var(--primary-gradient);
  color: var(--background-dark);
  border-color: var(--primary-color);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 25px rgba(254, 111, 57, 0.4),
    0 0 20px rgba(254, 111, 57, 0.6);
  transform: translateY(-2px) scale(1.02);
}

.cards-market-btn.active::before {
  display: none;
}

/* Cards stats */
.cards-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.card-stat-item {
  background: var(--background-card);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--glass-border);
  animation: fadeInScale 0.6s ease forwards;
}

.card-stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(254, 111, 57, 0.1);
}

.card-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-usage {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.card-percentage {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.market-filter-indicator {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 8px;
  padding: 4px 8px;
  background: rgba(254, 111, 57, 0.1);
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(254, 111, 57, 0.2);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background: var(--background-card);
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: fadeInScale 0.3s ease;
  border: 1px solid var(--glass-border);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--background-elevated);
  color: var(--text-primary);
}

.modal-body {
  padding: 30px;
}

.modal-players {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--background-elevated);
  border-radius: 15px;
  border-left: 4px solid var(--primary-color);
  border: 1px solid var(--glass-border);
  transition: transform 0.2s ease;
}

.modal-player:hover {
  transform: translateX(5px);
}

.modal-player.winner {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), var(--background-elevated));
  border-left-color: #ffd700;
}

.modal-player.second {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), var(--background-elevated));
  border-left-color: #c0c0c0;
}

.modal-player.third {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), var(--background-elevated));
  border-left-color: #cd7f32;
}

.modal-player-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.modal-player-position {
  width: 30px;
  height: 30px;
  background: var(--primary-color);
  color: var(--background-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.modal-player.winner .modal-player-position {
  background: #ffd700;
  color: #333;
}

.modal-player.second .modal-player-position {
  background: #c0c0c0;
  color: #333;
}

.modal-player.third .modal-player-position {
  background: #cd7f32;
  color: #fff;
}

.modal-player-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-player-score {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.modal-player-cards {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 50px;
  color: var(--text-secondary);
  background: var(--background-card);
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
}

.empty-state i {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Loader */
.loader {
  text-align: center;
  padding: 50px;
  color: var(--text-primary);
}

.loader i {
  font-size: 3rem;
  animation: pulse 1s linear infinite;
  color: var(--primary-color);
}

/* Animation delays for staggered effects */
.round-card:nth-child(1) { animation-delay: 0.1s; }
.round-card:nth-child(2) { animation-delay: 0.2s; }
.round-card:nth-child(3) { animation-delay: 0.3s; }
.round-card:nth-child(4) { animation-delay: 0.4s; }
.round-card:nth-child(5) { animation-delay: 0.5s; }
.round-card:nth-child(6) { animation-delay: 0.6s; }

.player-card:nth-child(1) { animation-delay: 0.1s; }
.player-card:nth-child(2) { animation-delay: 0.2s; }
.player-card:nth-child(3) { animation-delay: 0.3s; }
.player-card:nth-child(4) { animation-delay: 0.4s; }

.card-stat-item:nth-child(1) { animation-delay: 0.1s; }
.card-stat-item:nth-child(2) { animation-delay: 0.2s; }
.card-stat-item:nth-child(3) { animation-delay: 0.3s; }
.card-stat-item:nth-child(4) { animation-delay: 0.4s; }

/* Responsive design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .title {
    font-size: 1.8rem;
  }
  
  .nav-tabs {
    flex-direction: column;
    gap: 10px;
  }
  
  .tab-btn {
    width: 100%;
    justify-content: center;
  }
  
  .rounds-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .filters-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .market-filters {
    justify-content: center;
  }
  
  .range-inputs {
    justify-content: center;
  }
  
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .modal-player {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .players-stats {
    grid-template-columns: 1fr;
  }

  .cards-stats {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .cards-market-filters {
    justify-content: center;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1rem;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .header {
    padding: 20px 0;
  }

  .logo {
    width: 150px;
    height: 47px;
  }

  .title {
    font-size: 1.5rem;
  }

  .round-card, .card-stat-item {
    padding: 20px;
  }
  
  .filter-group {
    margin-bottom: 15px;
  }
  
  .range-inputs {
    flex-direction: column;
    gap: 8px;
  }
  
  .range-inputs input[type="number"] {
    width: 100%;
  }
  
  .market-filters {
    flex-direction: column;
    gap: 8px;
  }
  
  .market-btn {
    width: 100%;
    text-align: center;
  }
  
  .cards-market-filters {
    flex-direction: column;
    gap: 8px;
  }
  
  .cards-market-btn {
    width: 100%;
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-description {
    font-size: 0.9rem;
    padding: 0 15px;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-elevated);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
} 
