/* =====================================================
   DJ Battle Styles
   ===================================================== */

/* Hero Section (Listing Page) */
.djbattle-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 60px 30px;
    margin-bottom: 30px;
    overflow: hidden;
    text-align: center;
}

.djbattle-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="white"/><circle cx="50" cy="30" r="1.5" fill="white"/><circle cx="90" cy="60" r="1" fill="white"/></svg>');
}

.djbattle-hero-content {
    position: relative;
    z-index: 1;
}

.djbattle-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.djbattle-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0;
}

/* Filter Tabs */
.djbattle-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card, #fff);
    color: var(--text-color, #333);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
}

.filter-btn.active,
.filter-btn:active {
    background: var(--primary-color, #6c5ce7);
    color: #fff;
    border-color: var(--primary-color, #6c5ce7);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.active {
    background: #27ae60;
    animation: pulse 1.5s infinite;
}

.status-dot.pending {
    background: #ff9800;
    animation: pulse 1.5s infinite;
}

.status-dot.ended {
    background: #95a5a6;
}

/* Challenges Button */
.filter-btn.challenges-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #fff;
    border: none;
}

.filter-btn.challenges-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff7043 100%);
    color: #fff;
}

.filter-btn.challenges-btn i {
    color: #fff;
}

.filter-separator {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.15);
    margin: 0 5px;
    align-self: center;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Battles Grid */
.djbattle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Empty State */
.empty-battles {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card, #fff);
    border-radius: 15px;
    margin: 30px 0;
}

.empty-battles svg,
.empty-battles .emoji {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-battles h3 {
    color: var(--text-color, #333);
    margin-bottom: 10px;
}

.empty-battles p {
    color: var(--text-muted, #888);
}

/* Pagination */
.djbattle-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.djbattle-pagination a {
    padding: 10px 15px;
    background: var(--bg-card, #fff);
    color: var(--text-color, #333);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.djbattle-pagination a:hover {
    background: var(--primary-color, #6c5ce7);
    color: #fff;
    transform: translateY(-2px);
}

.djbattle-pagination a.active {
    background: var(--primary-color, #6c5ce7);
    color: #fff;
}

/* Featured Battle */
.featured-battle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}

.featured-link-wrapper {
    cursor: pointer;
}

.featured-link {
    display: block;
    padding: 40px;
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

.featured-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="30" r="1.5" fill="rgba(255,255,255,0.15)"/><circle cx="90" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.featured-badge-label {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.featured-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.featured-djs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.featured-dj {
    text-align: center;
}

.featured-dj img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.5);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.featured-link-wrapper:hover .featured-dj img {
    transform: scale(1.1);
}

.featured-dj span {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.featured-vs {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: pulse-featured 2s infinite;
}

@keyframes pulse-featured {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
}

.featured-vs span {
    position: relative;
    font-size: 18px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.featured-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.featured-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.featured-cta {
    display: inline-block;
    background: #fff;
    color: #764ba2;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-link-wrapper:hover .featured-cta {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Battle Cards (Listing Page) */
.battle-card {
    background: var(--bg-card, #fff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.battle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.battle-card-link {
    display: block;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    pointer-events: none;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    z-index: 2;
}

.battle-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.battle-status.active {
    background: rgba(0, 184, 148, 0.15);
    color: #00b894;
}

.battle-status.pending {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.battle-status.ended {
    background: rgba(99, 110, 114, 0.15);
    color: #636e72;
}

.battle-status.upcoming {
    background: rgba(253, 203, 110, 0.15);
    color: #f39c12;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.battle-status.active .status-indicator {
    animation: pulse 1.5s infinite;
}

.battle-status.pending .status-indicator {
    animation: pulse 1.5s infinite;
}

.battle-djs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.battle-dj {
    text-align: center;
    flex: 1;
}

.dj-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.dj-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.dj-a .dj-avatar {
    border-color: var(--battle-color-a, #e74c3c);
}

.dj-b .dj-avatar {
    border-color: var(--battle-color-b, #3498db);
}

.battle-dj.winner .dj-avatar {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.winner-crown {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    display: none;
}

.winner-crown.winner {
    display: block;
}

.dj-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color, #333);
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100px;
}

.dj-votes {
    font-size: 12px;
    color: var(--text-muted, #888);
}

.vs-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--battle-color-a, #e74c3c) 0%, var(--battle-color-b, #3498db) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 10px;
}

.vs-badge span {
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.battle-vote-bar {
    margin-bottom: 15px;
}

.vote-progress {
    height: 8px;
    background: var(--bg-light, #eee);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.vote-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.vote-fill-a {
    background: linear-gradient(90deg, var(--battle-color-a, #e74c3c), var(--battle-color-a, #c0392b));
}

.vote-fill-b {
    background: linear-gradient(90deg, var(--battle-color-b, #2980b9), var(--battle-color-b, #3498db));
}

.vote-percentages {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
}

.percent-a {
    color: var(--battle-color-a, #e74c3c);
}

.percent-b {
    color: var(--battle-color-b, #3498db);
}

.battle-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text-color, #333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.battle-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted, #888);
}

.battle-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =====================================================
   DJ Battle Single Page Styles
   ===================================================== */

/* Battle Header */
.battle-single-header {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    padding: 50px 30px;
    margin-bottom: 30px;
    overflow: hidden;
    text-align: center;
}

.battle-single-header.active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.battle-single-header.pending {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
}

.battle-single-header.ended {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

.battle-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="90" cy="60" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="80" r="1.2" fill="rgba(255,255,255,0.06)"/></svg>');
}

.battle-header-content {
    position: relative;
    z-index: 1;
}

.battle-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
}

.battle-status-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.battle-status-badge.active .status-dot {
    animation: pulse 1.5s infinite;
}

.battle-status-badge.pending {
    background: rgba(255, 152, 0, 0.3);
}

.battle-status-badge.pending .status-dot {
    animation: pulse 1.5s infinite;
}

.battle-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.battle-timer {
    margin-bottom: 15px;
}

.timer-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.battle-description {
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Battle Arena */
.battle-arena {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.battle-corner {
    background: var(--bg-card, #fff);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.corner-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.corner-a .corner-glow {
    background: linear-gradient(90deg, var(--battle-color-a, #e74c3c), var(--battle-color-a, #c0392b));
}

.corner-b .corner-glow {
    background: linear-gradient(90deg, var(--battle-color-b, #2980b9), var(--battle-color-b, #3498db));
}

.battle-corner.winner {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.battle-corner.winner .corner-glow {
    background: linear-gradient(90deg, #f1c40f, #f39c12);
}

.battle-corner.voted {
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

/* DJ Profile */
.dj-profile {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
    margin-bottom: 25px;
}

.dj-avatar-large {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.dj-avatar-large img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.corner-a .dj-avatar-large img {
    border: 4px solid var(--battle-color-a, #e74c3c);
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
}

.corner-b .dj-avatar-large img {
    border: 4px solid var(--battle-color-b, #3498db);
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
}

.dj-profile:hover .dj-avatar-large img {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.corner-a .dj-profile:hover .dj-avatar-large img {
    box-shadow: 0 8px 35px rgba(231, 76, 60, 0.6);
}

.corner-b .dj-profile:hover .dj-avatar-large img {
    box-shadow: 0 8px 35px rgba(52, 152, 219, 0.6);
}

.winner-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(241, 196, 15, 0.3);
}

.dj-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color, #333);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #3498db;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 5px;
}

/* Battle Player */
.battle-player {
    background: var(--bg-light, #f8f9fa);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.track-info {
    margin-bottom: 15px;
}

.track-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color, #333);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.corner-a .play-btn {
    background: linear-gradient(135deg, var(--battle-color-a, #e74c3c), var(--battle-color-a, #c0392b));
    color: #fff;
}

.corner-b .play-btn {
    background: linear-gradient(135deg, var(--battle-color-b, #2980b9), var(--battle-color-b, #3498db));
    color: #fff;
}

.play-btn:hover {
    transform: scale(1.1);
}

.play-btn svg {
    width: 24px;
    height: 24px;
}

.progress-container {
    flex: 1;
}

.progress-bar {
    height: 8px;
    background: var(--bg-dark, #ddd);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.1s linear;
}

.corner-a .progress-fill {
    background: linear-gradient(90deg, var(--battle-color-a, #e74c3c), var(--battle-color-a, #c0392b));
}

.corner-b .progress-fill {
    background: linear-gradient(90deg, var(--battle-color-b, #2980b9), var(--battle-color-b, #3498db));
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted, #888);
    margin-top: 5px;
}

.volume-control {
    width: 80px;
}

.volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: var(--bg-dark, #ddd);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary-color, #6c5ce7);
    border-radius: 50%;
    cursor: pointer;
}

/* Listen Progress */
.listen-progress {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color, #eee);
}

.listen-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.listen-status.completed {
    color: #27ae60;
}

.listen-status.pending {
    color: var(--text-muted, #888);
}

.listen-bar {
    height: 6px;
    background: var(--bg-dark, #eee);
    border-radius: 3px;
    overflow: hidden;
}

.listen-fill {
    height: 100%;
    background: #27ae60;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Vote Button */
.vote-btn {
    width: 100%;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.vote-btn-a {
    background: linear-gradient(135deg, var(--battle-color-a, #e74c3c), var(--battle-color-a, #c0392b));
    color: #fff;
}

.vote-btn-b {
    background: linear-gradient(135deg, var(--battle-color-b, #2980b9), var(--battle-color-b, #3498db));
    color: #fff;
}

.vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vote-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.vote-btn.vote-ready {
    animation: pulse-btn 1.5s infinite;
}

@keyframes pulse-btn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(108, 92, 231, 0); }
}

.vote-btn.voted {
    background: #27ae60;
}

/* Vote Count */
.vote-count {
    text-align: center;
    padding: 15px;
    background: var(--bg-light, #f8f9fa);
    border-radius: 12px;
}

.vote-count.hidden {
    display: none;
}

.vote-count .count {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color, #333);
}

.vote-count .label {
    font-size: 13px;
    color: var(--text-muted, #888);
}

.vote-count .percentage {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 5px;
}

.corner-a .vote-count .percentage {
    color: var(--battle-color-a, #e74c3c);
}

.corner-b .vote-count .percentage {
    color: var(--battle-color-b, #3498db);
}

/* VS Center */
.battle-vs-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vs-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e74c3c 0%, #3498db 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.battle-total-stats {
    margin-top: 20px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color, #333);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted, #888);
}

/* Vote Message Banner */
.vote-message-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--bg-warning, #fff3cd);
    border-radius: 10px;
    margin-bottom: 30px;
    color: var(--text-warning, #856404);
}

/* Winner Announcement */
.winner-announcement {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.winner-trophy {
    font-size: 60px;
    margin-bottom: 15px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.winner-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.winner-name {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Share Section */
.battle-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card, #fff);
    border-radius: 15px;
    margin-bottom: 30px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: #fff;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #4267b2;
}

.share-btn.copy {
    background: var(--primary-color, #6c5ce7);
}

/* Comments Section */
.battle-comments {
    background: var(--bg-card, #fff);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.battle-comments.hidden {
    display: none;
}

.battle-comments h3 {
    margin: 0 0 25px;
    font-size: 1.3rem;
}

.comment-form {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-input-wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color, #eee);
    border-radius: 10px;
    resize: none;
    font-size: 14px;
    min-height: 60px;
}

.comment-submit {
    align-self: flex-end;
    padding: 10px 25px;
    background: var(--primary-color, #6c5ce7);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-submit:hover {
    opacity: 0.9;
}

.login-to-comment {
    text-align: center;
    padding: 20px;
    background: var(--bg-light, #f8f9fa);
    border-radius: 10px;
    margin-bottom: 20px;
}

.login-to-comment a {
    color: var(--primary-color, #6c5ce7);
    font-weight: 600;
}

/* Login to Vote Notice */
.login-to-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(162, 155, 254, 0.1));
    border: 2px dashed var(--primary-color, #6c5ce7);
    border-radius: 12px;
    margin-top: 15px;
    text-align: center;
}

.login-to-vote .login-vote-icon {
    font-size: 24px;
}

.login-to-vote a {
    color: var(--primary-color, #6c5ce7);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    padding: 10px 20px;
    background: var(--primary-color, #6c5ce7);
    color: #fff;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.login-to-vote a:hover {
    background: var(--primary-hover, #5b4cdb);
    transform: scale(1.05);
}

.battle-comment {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color, #eee);
}

.battle-comment:last-child {
    border-bottom: none;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-color, #333);
    text-decoration: none;
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted, #888);
}

.comment-text {
    margin: 0 0 10px;
    color: var(--text-color, #333);
    line-height: 1.5;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-actions button {
    background: none;
    border: none;
    color: var(--text-muted, #888);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.comment-actions button:hover {
    color: var(--primary-color, #6c5ce7);
}

/* Comment Replies */
.comment-replies {
    margin-left: 60px;
    padding-top: 10px;
}

.comment-replies .battle-comment {
    padding: 10px 0;
}

.reply-form {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.reply-form textarea {
    font-family: inherit;
}

/* Related Battles */
.related-battles {
    margin-bottom: 30px;
}

.related-battles h3 {
    margin: 0 0 20px;
    font-size: 1.3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.related-battle-card {
    display: block;
    background: var(--bg-card, #fff);
    border-radius: 12px;
    padding: 15px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease;
}

.related-battle-card:hover {
    transform: translateY(-3px);
}

.related-djs {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.related-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.related-avatar.avatar-b {
    margin-left: -15px;
}

.related-battle-card h4 {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-color, #333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-status {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    text-transform: capitalize;
}

.related-status.active {
    background: rgba(0, 184, 148, 0.15);
    color: #00b894;
}

.related-status.ended {
    background: rgba(99, 110, 114, 0.15);
    color: #636e72;
}

/* Responsive */
@media (max-width: 992px) {
    .battle-arena {
        grid-template-columns: 1fr;
    }
    
    .battle-vs-center {
        flex-direction: row;
        gap: 20px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .battle-main-title {
        font-size: 1.5rem;
    }
    
    .timer-display {
        font-size: 1.8rem;
    }
    
    .dj-avatar-large img {
        width: 80px;
        height: 80px;
    }
    
    .dj-name {
        font-size: 1.2rem;
    }
    
    .player-controls {
        flex-wrap: wrap;
    }
    
    .volume-control {
        width: 100%;
        margin-top: 10px;
    }
    
    .battle-share {
        flex-direction: column;
        text-align: center;
    }
}

/* SweetAlert2 Overlay Enhancement */
.swal2-container {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.swal2-modal {
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}
