/* BOTB Vinyl Record Components */

/* =========================================
   VINYL SLEEVE (Album Cover Container)
   ========================================= */
.vinyl-sleeve {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-vinyl);
}

.vinyl-sleeve::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.1) 0%,
        transparent 50%,
        rgba(0,0,0,0.1) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.vinyl-sleeve:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 30px var(--vhs-glow);
}

.vinyl-sleeve:hover .vinyl-record {
    transform: translateX(30px);
}

.vinyl-artwork {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vinyl-artwork-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg-secondary) 100%);
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 3rem;
}

/* =========================================
   VINYL RECORD (The Actual Disc)
   ========================================= */
.vinyl-record {
    position: absolute;
    top: 10%;
    right: -40%;
    width: 80%;
    aspect-ratio: 1;
    border-radius: var(--radius-full);
    background: var(--vinyl-black);
    transition: transform var(--transition-normal);
    z-index: 1;
}

.vinyl-record::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-full);
    background: repeating-radial-gradient(
        circle at center,
        transparent 0px,
        transparent 2px,
        var(--vinyl-groove) 2px,
        var(--vinyl-groove) 3px
    );
    opacity: 0.5;
}

.vinyl-record::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35%;
    height: 35%;
    border-radius: var(--radius-full);
    background: var(--vinyl-label);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
}

.vinyl-record.spinning {
    animation: vinyl-spin 2s linear infinite;
}

@keyframes vinyl-spin {
    from { transform: translateX(30px) rotate(0deg); }
    to { transform: translateX(30px) rotate(360deg); }
}

/* Vinyl center hole */
.vinyl-record .center-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8%;
    height: 8%;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    z-index: 1;
}

/* =========================================
   VINYL CARD (Full Matchup Card)
   ========================================= */
.vinyl-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.vinyl-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.vinyl-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--vhs-glow), var(--shadow-lg);
}

.vinyl-card-artwork {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.vinyl-card-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.vinyl-card:hover .vinyl-card-artwork img {
    transform: scale(1.05);
}

.vinyl-card-info {
    padding: var(--space-md);
}

.vinyl-card-artist {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.vinyl-card-song {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

/* =========================================
   PLAY BUTTON OVERLAY
   ========================================= */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.vinyl-card:hover .play-overlay,
.vinyl-sleeve:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
}

.play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid var(--text-inverse);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.play-button.playing::before {
    border: none;
    width: 16px;
    height: 20px;
    background: linear-gradient(
        90deg,
        var(--text-inverse) 0%,
        var(--text-inverse) 35%,
        transparent 35%,
        transparent 65%,
        var(--text-inverse) 65%,
        var(--text-inverse) 100%
    );
    margin-left: 0;
}

/* =========================================
   MINI VINYL (For Lists/Leaderboards)
   ========================================= */
.vinyl-mini {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.vinyl-mini:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
}

.vinyl-mini-artwork {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.vinyl-mini-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vinyl-mini-info {
    flex: 1;
    min-width: 0;
}

.vinyl-mini-title {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vinyl-mini-artist {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =========================================
   MATCHUP DISPLAY
   ========================================= */
.matchup-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-xl);
}

.matchup-vs {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .matchup-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .matchup-vs {
        font-size: 1.5rem;
    }
}

/* =========================================
   WINNER DISPLAY
   ========================================= */
.winner-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--accent-gold);
    color: var(--text-inverse);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.vinyl-card.winner {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.4);
}

.vinyl-card.winner::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        var(--accent-gold),
        transparent,
        var(--accent-gold)
    );
    border-radius: var(--radius-lg);
    z-index: -1;
    animation: gold-shimmer 2s ease-in-out infinite;
}

@keyframes gold-shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
