.battle-block {
  background: #23223a;
  border-radius: 50px;
  margin: 18px 0 32px 0;
  padding: 32px 30px 24px 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.battle-label {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.battle-emoji { font-size: 2.2rem; margin-right: 10px; }
.battle-info {
  color: #7a51e2;
  font-size: 1.09rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 19px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}
.battle-vote-link {
  color: #a783f7;
  text-decoration: underline;
  cursor: pointer;
  font-style: italic;
}
.battle-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.battle-action-btn {
  background: linear-gradient(135deg, #7a51e2 0%, #a48cf0 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(122, 81, 226, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  justify-content: center;
}

.battle-action-btn:hover {
  background: linear-gradient(135deg, #8a61f2 0%, #b49cff 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(122, 81, 226, 0.3);
}

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

.battle-action-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(122, 81, 226, 0.3);
}

.battle-btn {
  background: #2e274a;
  color: #fff;
  border-radius: 19px;
  border: 0;
  padding: 12px 36px;
  font-size: 1.14rem;
  font-weight: 600;
  box-shadow: 0 1px 12px #7a51e220;
  cursor: pointer;
  margin-right: 8px;
  transition: background 0.14s;
}
.battle-btn:hover, .battle-btn:focus { background: #7a51e2; color: #fff; }
.battle-no {
  color: #fff;
  background: #25253b;
  border-radius: 18px;
  padding: 24px 28px;
  font-size: 1.17rem;
  margin: 12px 0 24px 0;
}

.battle-post {
  background: #281b3a;
  border: 2px solid #7a51e2;
  border-radius: 17px;
  margin-bottom: 16px;
  padding: 18px 17px 14px 17px;
  box-shadow: 0 2px 8px rgba(167, 131, 247, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.battle-timeline-label { color: #ffd700; font-weight: 700; font-size: 1.09rem; margin-bottom: 7px; }
.battle-timeline-vs {
  display: flex; 
  align-items: center; 
  gap: 18px; 
  font-size: 1.17rem;
  justify-content: center; 
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.battle-timeline-vs .djname { color: #fff; font-weight: bold; }
.battle-timeline-vs .vs-label { background: #7a51e2; color: #fff; border-radius: 8px; padding: 3px 11px; margin: 0 2px; font-size: 1.06em; }
.battle-timeline-date { color: #aaa; font-size: 0.99em; margin-bottom: 7px; }
.battle-detail-btn { margin-top: 6px; padding: 6px 18px; border-radius: 13px; background: #7a51e2; color: #fff; border: none; cursor: pointer; font-weight: 600;}
.battle-detail-btn:hover { background: #a48cf0; }

#battleSection { margin: 0 0 24px 0; }
.battle-vs-card {
  background: #26214a;
  border: 2px solid #7a51e2;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(122, 81, 226, 0.3);
  max-width: 95%;
  margin: 28px auto 16px auto;
  padding: 30px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Ensure no unwanted play buttons in battle VS section */
.battle-vs-card .battle-vs-row .play-btn,
.battle-vs-card .battle-vs-row .audio-play-btn,
.battle-vs-card .battle-vs-row .video-play-btn,
.battle-vs-card .battle-vs-center .play-btn,
.battle-vs-card .battle-vs-center .audio-play-btn,
.battle-vs-card .battle-vs-center .video-play-btn {
  display: none !important;
}

/* Hide any elements that might look like play buttons */
.battle-vs-card .battle-vs-row button[class*="play"],
.battle-vs-card .battle-vs-center button[class*="play"],
.battle-vs-card .battle-vs-row .icon[class*="play"],
.battle-vs-card .battle-vs-center .icon[class*="play"] {
  display: none !important;
}

/* Ensure no pseudo-elements create play-like shapes */
.battle-vs-card .battle-vs-row::before,
.battle-vs-card .battle-vs-row::after,
.battle-vs-card .battle-vs-center::before,
.battle-vs-card .battle-vs-center::after {
  display: none !important;
}

/* Hide any elements with triangle borders that might look like play buttons */
.battle-vs-card .battle-vs-row *[style*="border-left"],
.battle-vs-card .battle-vs-center *[style*="border-left"] {
  border-left: none !important;
}

/* Hide any button elements in the battle VS area */
.battle-vs-card .battle-vs-row button,
.battle-vs-card .battle-vs-center button {
  display: none !important;
}

/* Hide any clickable elements that might be play buttons */
.battle-vs-card .battle-vs-row [onclick*="play"],
.battle-vs-card .battle-vs-center [onclick*="play"],
.battle-vs-card .battle-vs-row [onclick*="video"],
.battle-vs-card .battle-vs-center [onclick*="video"] {
  display: none !important;
}

/* Hide any elements with play-related attributes */
.battle-vs-card .battle-vs-row [data-play],
.battle-vs-card .battle-vs-center [data-play],
.battle-vs-card .battle-vs-row [data-video],
.battle-vs-card .battle-vs-center [data-video] {
  display: none !important;
}

/* Hide any elements that might have play-related text content */
.battle-vs-card .battle-vs-row *:contains("▶"),
.battle-vs-card .battle-vs-center *:contains("▶"),
.battle-vs-card .battle-vs-row *:contains("Play"),
.battle-vs-card .battle-vs-center *:contains("Play") {
  display: none !important;
}

/* Hide any iframe or video elements in the battle VS area */
.battle-vs-card .battle-vs-row iframe,
.battle-vs-card .battle-vs-center iframe,
.battle-vs-card .battle-vs-row video,
.battle-vs-card .battle-vs-center video {
  display: none !important;
}

/* Hide any elements with cursor pointer in the battle VS area */
.battle-vs-card .battle-vs-row [style*="cursor: pointer"],
.battle-vs-card .battle-vs-center [style*="cursor: pointer"] {
  display: none !important;
}

.battle-vs-card .battle-vs-row {
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 38px; 
  margin: 18px 0;
  position: relative;
}

/* Ensure no play buttons appear in the VS center area */
.battle-vs-card .battle-vs-center {
  font-size: 2.6em; 
  font-weight: 900; 
  color: #a783f7;
  text-shadow: 0 1px 4px rgba(255, 195, 73, 0.3);
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  /* Ensure no background or border that might look like a button */
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  /* Ensure no cursor pointer */
  cursor: default !important;
  /* Ensure no click events */
  pointer-events: none !important;
}

.battle-label { font-size: 1.3em; font-weight: bold; color: #ffc349; margin-bottom: 16px;}
.battle-dj { display: flex; flex-direction: column; align-items: center; }
.battle-dj-img {
  width: 82px; height: 82px; border-radius: 20px; border: 2px solid #a783f7; object-fit: cover;
  background: #222;
  box-shadow: 0 2px 8px rgba(167, 131, 247, 0.3);
}
.battle-djname { font-size: 1.13em; font-weight: 600; color: #fff; margin-top: 12px;}
.battle-vs-date {
  color: #a783f7; margin-top: 6px; margin-bottom: 11px; font-size: 1em;
}
.battle-vote-btn {
  background: #7a51e2;
  color: #fff;
  font-weight: bold;
  font-size: 1.14em;
  border: none;
  padding: 13px 34px;
  border-radius: 17px;
  box-shadow: 0 2px 8px rgba(122, 81, 226, 0.3);
  transition: background .16s;
  cursor: pointer;
}
.battle-vote-btn:hover { background: #a783f7; }

.battle-no {
  padding: 33px;
  font-size: 1.14em;
  color: #ccc;
  text-align: center;
  border-radius: 20px;
  background: #22213a;
  border: 2px solid rgba(122, 81, 226, 0.3);
}
.compact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #23223c;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 18px 24px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: box-shadow 0.14s, background 0.13s;
  border: 2px solid transparent;
}
.compact-card:hover {
  background: #292250;
  box-shadow: 0 2px 12px rgba(167, 131, 247, 0.2);
  border-color: #7a51e2;
}
.card-title {
  font-size: 1.14rem;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 13px;
}
.card-title .track-artist {
  color: #a783f7;
}
.card-title .track-title {
  color: #fff;
  font-weight: 500;
}
.card-meta {
  color: #999ad6;
  font-size: 0.99rem;
  display: flex;
  gap: 11px;
  align-items: center;
  font-style: italic;
}
.compact-card .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7a51e2;
  margin: 0 7px;
  display: inline-block;
}
.view-btn {
  background: #7a51e2;
  color: #fff;
  border: none;
  border-radius: 11px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 1rem;
  margin-left: 18px;
  box-shadow: 0 1px 4px rgba(122, 81, 226, 0.2);
  transition: background 0.12s;
}
.view-btn:hover { background: #a783f7; }
.compact-card.highlighted {
  border: 2px solid #ffd700 !important;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.battle-status-message {
  background: linear-gradient(135deg, #2a1f4a 0%, #1e1a3a 100%);
  border: 2px solid #7a51e2;
  border-radius: 20px;
  padding: 24px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 8px 32px rgba(122, 81, 226, 0.15);
  position: relative;
  overflow: hidden;
}

.battle-status-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7a51e2, #a78bfa);
}

.battle-status-message.preparing::before {
  background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.battle-status-message.waiting::before {
  background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
}

.battle-status-message.accepted::before {
  background: linear-gradient(90deg, #51cf66, #69db7c);
}

.battle-status-message.uploading::before {
  background: linear-gradient(90deg, #339af0, #74c0fc);
}

.battle-status-message.almost-ready::before {
  background: linear-gradient(90deg, #ff922b, #ffb84d);
}

.status-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  animation: pulse 2s infinite;
}

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

.status-text {
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 500;
}

.status-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.progress-bar {
  width: 100%;
  max-width: 300px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7a51e2, #a78bfa);
  border-radius: 4px;
  transition: width 0.8s ease-in-out;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  font-size: 0.9rem;
  color: #a0a0b8;
  font-weight: 600;
}

/* Status-specific styling */
.battle-status-message.preparing {
  border-color: #ffd700;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
}

.battle-status-message.waiting {
  border-color: #ff6b6b;
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.15);
}

.battle-status-message.accepted {
  border-color: #51cf66;
  box-shadow: 0 8px 32px rgba(81, 207, 102, 0.15);
}

.battle-status-message.uploading {
  border-color: #339af0;
  box-shadow: 0 8px 32px rgba(51, 154, 240, 0.15);
}

.battle-status-message.almost-ready {
  border-color: #ff922b;
  box-shadow: 0 8px 32px rgba(255, 146, 43, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .battle-status-message {
    padding: 20px 16px;
    margin: 16px 0;
  }
  
  .status-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
  }
  
  .status-text {
    font-size: 1rem;
    margin-bottom: 16px;
  }
  
  .progress-bar {
    max-width: 250px;
  }
}

/* No battles content styling */
.battle-no-content {
  background: linear-gradient(135deg, #2a1f4a 0%, #1e1a3a 100%);
  border: 2px solid #7a51e2;
  border-radius: 20px;
  padding: 40px 30px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 8px 32px rgba(122, 81, 226, 0.15);
  position: relative;
  overflow: hidden;
}

.battle-no-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7a51e2, #a78bfa);
}

.battle-no-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
  animation: float 3s ease-in-out infinite;
}

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

.battle-no-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.battle-no-text {
  font-size: 1.1rem;
  color: #a0a0b8;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.battle-no-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(122, 81, 226, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(122, 81, 226, 0.2);
}

.info-item i {
  color: #7a51e2;
  width: 20px;
  height: 20px;
}

.info-item span {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Responsive for no battles */
@media (max-width: 768px) {
  .battle-no-content {
    padding: 30px 20px;
    margin: 16px 0;
  }
  
  .battle-no-icon {
    font-size: 3rem;
    margin-bottom: 16px;
  }
  
  .battle-no-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .battle-no-text {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .battle-no-info {
    gap: 12px;
  }
  
  .info-item {
    padding: 10px 14px;
  }
  
  .info-item span {
    font-size: 0.9rem;
  }
}

/* Modern battle voting UI */
.battle-vote-container {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #7a51e2;
  border-radius: 20px;
  padding: 30px;
  margin: 25px 0;
  box-shadow: 0 15px 40px rgba(122, 81, 226, 0.2);
}

.battle-mixes-list {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.battle-mix-card {
  background: linear-gradient(135deg, #211f33 0%, #2a2a3a 100%);
  border: 2px solid #2a2a3a;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.battle-mix-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7a51e2, #a48cf0);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.battle-mix-card:hover::before {
  transform: scaleX(1);
}

.battle-mix-card.voted {
  border-color: #28a745;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  background: linear-gradient(135deg, #1a2e1a 0%, #211f33 100%);
}

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

.mix-label {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffc349;
  text-shadow: 0 2px 10px rgba(255, 195, 73, 0.3);
}

.mix-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.mix-genre, .mix-duration {
  color: #a58af6;
  font-weight: 600;
  font-size: 1rem;
  background: rgba(165, 138, 246, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mix-genre b, .mix-duration b {
  color: #fff;
}

.mix-player-section {
  margin: 20px 0;
}

.audio-player-container {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.play-mix-btn {
  background: linear-gradient(135deg, #7a51e2 0%, #a48cf0 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(122, 81, 226, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-width: 140px;
}

.play-mix-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #8a61f2 0%, #b49cff 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(122, 81, 226, 0.4);
}

.play-mix-btn.active {
  background: linear-gradient(135deg, #ffc349 0%, #ffd700 100%);
  color: #000;
  box-shadow: 0 2px 8px rgba(255, 195, 73, 0.4);
}

.play-mix-btn.active:hover {
  background: linear-gradient(90deg, #ffed4e, #ffd700);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

.audio-progress {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7a51e2, #a48cf0);
  border-radius: 3px;
  transition: width 0.1s ease;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.vote-btn {
  margin-top: 18px;
  background: linear-gradient(135deg, #7a51e2 0%, #a48cf0 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  padding: 14px 32px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(122, 81, 226, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-width: 160px;
}

.vote-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;
}

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

.vote-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #8a61f2 0%, #b49cff 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(122, 81, 226, 0.4);
}

.vote-btn:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(122, 81, 226, 0.3);
}

.vote-btn:disabled {
  background: linear-gradient(135deg, #353251 0%, #4a4a6a 100%);
  color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.battle-vote-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffc349;
  text-align: center;
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(255, 195, 73, 0.3);
}
.battle-vote-row {
  display: flex;
  gap: 38px;
  width: 100%;
  justify-content: center;
}
.vote-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #23223a 100%);
  border: 2.5px solid #7a51e2;
  border-radius: 18px;
  box-shadow: 0 2px 18px #7a51e244;
  padding: 28px 22px 24px 22px;
  min-width: 220px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.18s, border-color 0.18s, background 0.18s;
  position: relative;
}
.vote-card:hover {
  box-shadow: 0 4px 32px #a78bfa55, 0 1px 8px #7a51e244;
  border-color: #a78bfa;
  background: linear-gradient(135deg, #23223a 0%, #2a1f4a 100%);
}
.vote-card.voted {
  border-color: #ffd700;
  box-shadow: 0 0 32px #ffd70055, 0 2px 18px #7a51e244;
  background: linear-gradient(135deg, #2a1f4a 0%, #23223a 100%);
}

.vote-mix-label {
  color: #ffd700;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
  background: linear-gradient(90deg, #7a51e2, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 8px rgba(122, 81, 226, 0.3);
}
.vote-genre, .vote-duration {
  color: #a78bfa;
  font-size: 1.01rem;
  margin-bottom: 4px;
  text-align: center;
}
.vote-genre b, .vote-duration b {
  color: #fff;
  font-weight: 600;
}
.vote-btn-modern {
  margin-top: 18px;
  padding: 13px 38px;
  font-size: 1.13rem;
  font-weight: 700;
  border-radius: 14px;
  background: linear-gradient(90deg, #7a51e2, #a78bfa);
  color: #fff;
  border: none;
  box-shadow: 0 2px 14px #7a51e244;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.16s;
  outline: none;
}
.vote-btn-modern:hover:not(:disabled), .vote-btn-modern:focus:not(:disabled) {
  background: linear-gradient(90deg, #a78bfa, #7a51e2);
  box-shadow: 0 4px 18px #a78bfa55;
}
.vote-btn-modern:disabled {
  background: #44446a;
  color: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.battle-notification {
  background: linear-gradient(135deg, #2a1f4a 0%, #1e1535 100%);
  border: 2px solid #7a51e2;
  border-radius: 15px;
  padding: 20px;
  margin: 15px 0;
  text-align: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(122, 81, 226, 0.2);
  flex-direction: row;
  flex-wrap: wrap;
}

.battle-notification i {
  color: #ffd700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.battle-notification span {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.battle-notification a {
  color: #7a51e2;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.battle-notification a:hover {
  color: #a78bfa;
  text-decoration: none;
}

.battle-notification i {
  color: #ffd700;
  font-size: 1.2rem;
}

.battle-status {
  background: #23223a;
  border: 1px solid #7a51e2;
  border-radius: 12px;
  padding: 15px;
  margin: 10px 0;
  text-align: center;
  color: #a78bfa;
  font-size: 1rem;
}

.battle-participant-notice {
  background: linear-gradient(135deg, #7a51e2 0%, #a48cf0 100%);
  color: #fff;
  padding: 15px 25px;
  border-radius: 15px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(122, 81, 226, 0.3);
  animation: participantGlow 2s ease-in-out infinite alternate;
}

@keyframes participantGlow {
  from {
    box-shadow: 0 6px 20px rgba(122, 81, 226, 0.3);
  }
  to {
    box-shadow: 0 8px 30px rgba(122, 81, 226, 0.5);
  }
}

.vote-disabled-notice {
  margin-top: 20px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #2a2a3a 0%, #353251 100%);
  color: #aaa;
  border-radius: 12px;
  font-size: 1rem;
  text-align: center;
  border: 1px solid rgba(170, 170, 170, 0.2);
  font-style: italic;
}

.audio-fallback {
  background: #1a1a2e;
  border: 1px solid #7a51e2;
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
}

.play-audio-btn {
  background: linear-gradient(90deg, #7a51e2, #a78bfa) !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(122, 81, 226, 0.3) !important;
}

.play-audio-btn:hover {
  background: linear-gradient(90deg, #a78bfa, #7a51e2) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(122, 81, 226, 0.4) !important;
}

.waveform-player {
  background: #1a1a2e;
  border: 1px solid #7a51e2;
  border-radius: 10px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .battle-vote-container {
    padding: 24px 16px 20px 16px;
    margin: 20px auto 16px auto;
  }
  
  .mix-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .mix-info {
    gap: 15px;
  }
}
@media (max-width: 600px) {
  .battle-vote-row {
    flex-direction: column;
    gap: 22px;
    align-items: center;
  }
  .vote-card {
    min-width: 0;
    width: 100%;
    max-width: 340px;
  }
  .battle-vote-box-modern {
    padding: 12px 2vw 10px 2vw;
  }
  
  .battle-post {
    padding: 15px 12px 12px 12px;
    gap: 10px;
  }
  
  .battle-timeline-vs {
    gap: 12px;
    font-size: 1.1rem;
  }
  
  .battle-notification {
    padding: 15px;
    gap: 10px;
    flex-direction: column;
    text-align: center;
  }
  
  .battle-notification span {
    font-size: 0.95rem;
  }
}

/* Anonymous battle voting styles */
.battle-vote-box {
  background: #191927;
  border-radius: 22px;
  box-shadow: 0 0 32px #7a51e2cc;
  padding: 36px 20px;
  max-width: 540px;
  margin: 40px auto;
}

.battle-vote-box h2 {
  color: #ffd700;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.battle-description {
  color: #a783f7;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 25px;
  font-style: italic;
}

.mixes-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.mix-entry {
  margin-bottom: 38px;
  background: #211f33;
  border-radius: 15px;
  box-shadow: 0 0 12px #7a51e2aa;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mix-entry:hover {
  border-color: #a783f7;
  box-shadow: 0 8px 30px rgba(122, 81, 226, 0.4);
  transform: translateY(-2px);
}

.mix-header {
  margin-bottom: 15px;
}

.mix-label {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 8px;
}

.mix-info {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 0.9rem;
}

.mix-info .genre,
.mix-info .duration {
  color: #a783f7;
  background: rgba(122, 81, 226, 0.1);
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 500;
}

.waveform-player {
  background: #1a1a2e;
  border-radius: 10px;
  height: 80px;
  margin: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #7a51e2;
}

.vote-btn {
  margin-top: 18px;
  background: linear-gradient(90deg, #7a51e2, #a48cf0);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  padding: 10px 32px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.15s ease;
  box-shadow: 0 4px 16px #7a51e2aa;
}

.vote-btn:hover:not(:disabled) {
  background: linear-gradient(90deg, #8a61f2, #b49cff);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #7a51e2cc;
}

.vote-btn:disabled {
  background: #353251;
  color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.vote-btn.voted {
  background: linear-gradient(90deg, #28a745, #20c997);
  color: #fff;
  box-shadow: 0 4px 16px #28a745aa;
}

.battle-mix-card.voted {
  border: 2px solid #28a745;
  box-shadow: 0 0 20px #28a74566;
}

.vote-disabled-notice {
  margin-top: 18px;
  padding: 10px 20px;
  background: #2a2a3a;
  color: #aaa;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

.battle-participant-notice {
  background: linear-gradient(90deg, #7a51e2, #a48cf0);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(122, 81, 226, 0.4);
}

.notification-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  z-index: 10000;
  animation: slideIn 0.3s ease;
}

.notification-toast.success {
  background: linear-gradient(90deg, #28a745, #20c997);
  box-shadow: 0 4px 12px #28a74566;
}

.notification-toast.error {
  background: linear-gradient(90deg, #dc3545, #e74c3c);
  box-shadow: 0 4px 12px #dc354566;
}

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

.battle-results-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.battle-results-modal.show {
  opacity: 1;
  visibility: visible;
}

.battle-results-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #7a51e2;
  border-radius: 20px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(122, 81, 226, 0.3);
  transform: scale(0.8) translateY(50px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1000;
}

.battle-results-modal.show .battle-results-content {
  transform: scale(1) translateY(0);
}

.battle-results-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.battle-results-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffc349;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(255, 195, 73, 0.3);
}

.battle-results-subtitle {
  color: #a58af6;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.battle-results-status {
  color: #ffc349;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  padding: 8px 16px;
  background: rgba(255, 195, 73, 0.1);
  border-radius: 20px;
  display: inline-block;
}

.user-vote-indicator {
  background: linear-gradient(135deg, #7a51e2 0%, #a48cf0 100%);
  color: #fff;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(122, 81, 226, 0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 4px 15px rgba(122, 81, 226, 0.3);
  }
  to {
    box-shadow: 0 4px 25px rgba(122, 81, 226, 0.5);
  }
}

.battle-result-item {
  background: linear-gradient(135deg, #211f33 0%, #2a2a3a 100%);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  border: 2px solid #2a2a3a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.battle-result-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7a51e2, #a48cf0);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.battle-result-item:hover::before {
  transform: scaleX(1);
}

.battle-result-item.winner {
  border-color: #28a745;
  box-shadow: 0 0 30px rgba(40, 167, 69, 0.2);
  background: linear-gradient(135deg, #1a2e1a 0%, #211f33 100%);
}

.battle-result-item.user-vote {
  border-color: #7a51e2;
  box-shadow: 0 0 30px rgba(122, 81, 226, 0.2);
  background: linear-gradient(135deg, #1a1a2e 0%, #211f33 100%);
}

.battle-result-item.leading {
  border-color: #ffc349;
  box-shadow: 0 0 30px rgba(255, 195, 73, 0.2);
  background: linear-gradient(135deg, #2e2a1a 0%, #211f33 100%);
}

.battle-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.battle-result-dj {
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.battle-result-votes {
  font-size: 1.2rem;
  color: #7a51e2;
  font-weight: 700;
  background: rgba(122, 81, 226, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
}

.battle-result-details {
  display: flex;
  justify-content: space-between;
  color: #aaa;
  font-size: 0.95rem;
  flex-wrap: wrap;
  gap: 10px;
}

.battle-result-percentage {
  color: #28a745;
  font-weight: bold;
  font-size: 1.1rem;
}

.battle-result-winner-badge {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.battle-result-leading-badge {
  background: linear-gradient(135deg, #ffc349 0%, #ffd700 100%);
  color: #000;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(255, 195, 73, 0.3);
}

.user-vote-badge {
  background: linear-gradient(135deg, #7a51e2 0%, #a48cf0 100%);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(122, 81, 226, 0.3);
}

.battle-results-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
  z-index: 1001;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.battle-results-close:hover {
  background: linear-gradient(135deg, #e74c3c 0%, #dc3545 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* My Votes Styles */
.my-vote-item {
  background: linear-gradient(135deg, #211f33 0%, #2a2a3a 100%);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  border: 2px solid #2a2a3a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.my-vote-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7a51e2, #a48cf0);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.my-vote-item:hover::before {
  transform: scaleX(1);
}

.my-vote-item.finished {
  border-color: #28a745;
  box-shadow: 0 0 30px rgba(40, 167, 69, 0.2);
  background: linear-gradient(135deg, #1a2e1a 0%, #211f33 100%);
}

.my-vote-item.active {
  border-color: #ffc349;
  box-shadow: 0 0 30px rgba(255, 195, 73, 0.2);
  background: linear-gradient(135deg, #2e2a1a 0%, #211f33 100%);
}

.my-vote-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.my-vote-battle-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.my-vote-status {
  color: #aaa;
  font-size: 1rem;
  padding: 6px 12px;
  background: rgba(170, 170, 170, 0.1);
  border-radius: 15px;
  display: inline-block;
}

.vote-result-badge {
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
  from {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  to {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }
}

.vote-result-badge.winner {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
}

.vote-result-badge.tie {
  background: linear-gradient(135deg, #ffc349 0%, #ffd700 100%);
  color: #000;
}

.vote-result-badge.loser {
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  color: #fff;
}

.my-vote-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 12px;
}

.my-vote-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.my-vote-label {
  color: #aaa;
  font-size: 0.95rem;
  font-weight: 500;
}

.my-vote-dj {
  color: #7a51e2;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 2px 10px rgba(122, 81, 226, 0.3);
}

.my-vote-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.my-vote-stats span:first-child {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  background: rgba(122, 81, 226, 0.1);
  padding: 6px 12px;
  border-radius: 15px;
}

.my-vote-date {
  color: #aaa;
  font-size: 0.9rem;
  font-style: italic;
}

.no-votes-message {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 2px dashed #2a2a3a;
}

.no-votes-icon {
  font-size: 4rem;
  margin-bottom: 25px;
  opacity: 0.7;
  animation: float 3s ease-in-out infinite;
}

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

.no-votes-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ccc;
  max-width: 400px;
  margin: 0 auto;
}
