/* Обновленные стили с светлой темой */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #2d3436;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  overflow-x: hidden;
}

.bookmaker-rating {
  width: 100%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  margin: 20px auto;
}

.bookmaker-rating h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 8px;
}

.bookmaker-rating h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #5869DA 0%, #3B4B9B 100%);
  border-radius: 2px;
}

#bookmakers-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.bookmaker-item {
  display: flex;
  align-items: center;
  padding: 18px;
  background: white;
  border-radius: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.bookmaker-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.bookmaker-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(88, 105, 218, 0.05),
    transparent
  );
  transition: 0.5s;
}

.bookmaker-item:hover::before {
  left: 100%;
}

/* Стили для первого места */
.bookmaker-item.first-place {
  border: 2px solid #FFD700;
  background: linear-gradient(145deg, #fff9e6 0%, #fff3cc 100%);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.bookmaker-logo {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  margin-right: 20px;
}

.bookmaker-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.bookmaker-info {
  flex: 1;
  margin-right: 15px;
}

.bookmaker-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 6px;
}

.bookmaker-info p {
  font-size: 0.95rem;
  color: #636e72;
  line-height: 1.4;
  margin-bottom: 8px;
}

.bookmaker-bonus {
  display: inline-block;
  background: linear-gradient(135deg, #5869DA 0%, #3B4B9B 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.bonus-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #5869DA 0%, #3B4B9B 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(88, 105, 218, 0.3);
}

.bonus-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 105, 218, 0.4);
}

.bonus-button i {
  font-size: 1.1rem;
}

.star-rating {
  display: flex;
  gap: 3px;
  margin-top: 8px;
}

.star {
  color: #ffe234;
  font-size: 1.2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
  .bookmaker-rating {
    padding: 20px;
    border-radius: 15px;
  }

  .bookmaker-item {
    padding: 15px;
    flex-wrap: wrap;
  }

  .bookmaker-logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
  }

  .bonus-button {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px;
  }

  .bookmaker-rating h2 {
    font-size: 1.5rem;
  }

  .bookmaker-info h3 {
    font-size: 1.1rem;
  }

  .bookmaker-info p {
    font-size: 0.85rem;
  }

  .bonus-button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .star {
    font-size: 1rem;
  }
}