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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: white;
    height: 100vh;
    overflow: hidden;
}

/* Background Image */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

header {
    padding: 15px 20px;
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 60px;
}

.station-title {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
}

.station-title h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #e74c3c;
}

.station-title p {
    margin: 5px 0 0 0;
    opacity: 0.8;
}

/* Main player container */
.player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 200px);
    padding: 20px;
    position: relative;
}

.current-track {
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
}

.current-track h2 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: white;
}

.current-track .artist {
    font-size: 1.8rem;
    color: #e74c3c;
    margin: 0 0 10px 0;
    font-weight: bold;
}

/* Price container with badges */
.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    position: relative;
}

.price-badge {
    display: inline-block;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.info-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item.format {
    background: rgba(52, 152, 219, 0.3);
    border: 1px solid #3498db;
}

.detail-item.condition {
    background: rgba(231, 76, 60, 0.3);
    border: 1px solid #e74c3c;
}

/* Format icons - vinyl as black circle */
.format-icon {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    color: #000000;
}

/* Condition stars */
.condition-stars {
    display: flex;
    gap: 2px;
}

.condition-star {
    color: #f1c40f;
    font-size: 1rem;
}

.condition-star.empty {
    color: rgba(255, 255, 255, 0.3);
}

/* Video player with record image overlay */
.video-container {
    width: 90%;
    max-width: 1000px;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #000;
    position: relative;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.record-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 5;
    pointer-events: none;
}

.video-playing .record-image-overlay {
    display: none;
}

/* Navigation controls */
.nav-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.nav-btn {
    background: rgba(231, 76, 60, 0.8);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

/* Updated Vote controls - now inline with badges */
.vote-controls {
    display: flex;
    gap: 8px;
}

.vote-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vote-btn:hover {
    transform: scale(1.1);
}

.vote-btn.upvote:hover {
    background: rgba(46, 204, 113, 0.3);
    border-color: #2ecc71;
}

.vote-btn.downvote:hover {
    background: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
}

.vote-btn.voted {
    transform: scale(1.1);
}

.vote-btn.upvote.voted {
    background: rgba(46, 204, 113, 0.6);
    border-color: #2ecc71;
    color: #2ecc71;
}

.vote-btn.downvote.voted {
    background: rgba(231, 76, 60, 0.6);
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Vote count badge */
.vote-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.vote-btn.upvote .vote-count-badge {
    background: #2ecc71;
}

.vote-btn.downvote .vote-count-badge {
    background: #e74c3c;
}

/* Genre selector */
.genre-selector {
    display: flex;
    align-items: center;
}

.genre-select {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    font-size: 1rem;
    cursor: pointer;
    min-width: 150px;
}

/* Loading animation */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.loading-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.loading-dots div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e74c3c;
    animation: loading-bounce 1.4s infinite ease-in-out both;
}

.loading-dots div:nth-child(1) { animation-delay: -0.32s; }
.loading-dots div:nth-child(2) { animation-delay: -0.16s; }
.loading-dots div:nth-child(3) { animation-delay: 0s; }
.loading-dots div:nth-child(4) { animation-delay: 0.16s; }

@keyframes loading-bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1.0);
    }
}

/* Error message */
.error-message {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
    font-size: 1.2rem;
}

/* Back to catalog link */
.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

.back-link:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }
    
    .genre-selector {
        flex-shrink: 0;
    }
    
    .genre-select {
        min-width: 120px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .current-track h2 {
        font-size: 1.8rem;
    }
    
    .current-track .artist {
        font-size: 1.4rem;
    }
    
    .price-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-badges {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .detail-item {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .video-container {
        height: 300px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .vote-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .vote-count-badge {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: -3px;
        right: -3px;
    }
    
    .price-badge {
        font-size: 1.1rem;
        padding: 6px 12px;
    }
    
    header {
        padding: 15px;
    }
    
    .logo-container img {
        height: 50px;
    }
    
    .format-icon {
        font-size: 1rem;
    }
    
    .condition-star {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .logo-container img {
        height: 40px;
    }
    
    .genre-select {
        min-width: 100px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .info-badges {
        gap: 4px;
    }
    
    .detail-item {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .vote-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .vote-count-badge {
        width: 14px;
        height: 14px;
        font-size: 0.5rem;
    }
}