/* Late Night Arcade - Listen Page Shared Styles */

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

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #0a0a12 0%, #141428 30%, #1a1a35 50%, #141428 70%, #0a0a12 100%);
    font-family: 'IBM Plex Sans', sans-serif;
    color: #E8E4D9;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

/* Twinkling stars */
.star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: #e8a849;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

.star:nth-child(1) { left: 8%; top: 12%; animation-delay: 0s; }
.star:nth-child(2) { left: 88%; top: 8%; animation-delay: -0.5s; }
.star:nth-child(3) { left: 25%; top: 18%; animation-delay: -1s; }
.star:nth-child(4) { left: 72%; top: 22%; animation-delay: -1.5s; }
.star:nth-child(5) { left: 45%; top: 6%; animation-delay: -2s; }
.star:nth-child(6) { left: 92%; top: 35%; animation-delay: -2.5s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Floating particles */
.particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
}

.particle:nth-child(7) { left: 15%; top: 60%; animation-delay: 0s; }
.particle:nth-child(8) { left: 85%; top: 70%; animation-delay: -2s; }
.particle:nth-child(9) { left: 50%; top: 80%; animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50% { transform: translateY(-20px) translateX(10px); opacity: 0.6; }
}

.container {
    text-align: center;
    max-width: 420px;
    z-index: 1;
    width: 100%;
}

.card {
    background: rgba(20, 20, 40, 0.9);
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.artwork {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.track-info {
    padding: 1.25rem 0;
}

.track-title {
    font-family: 'VT323', monospace;
    font-size: 1.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    color: #e8a849;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.track-artist {
    font-size: 0.95rem;
    color: #8A9AAA;
    font-weight: 400;
}

.platforms {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.platform-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    color: #E8E4D9;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
}

.platform-link:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    transform: scale(1.02);
}

.platform-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.platform-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon svg,
.platform-icon img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    filter: invert(90%) sepia(20%) saturate(300%) hue-rotate(10deg) brightness(100%) contrast(90%);
}

.platform-icon img[src*=".png"] {
    filter: brightness(0) invert(90%) sepia(20%) saturate(300%) hue-rotate(10deg);
}

.platform-name {
    font-weight: 500;
    font-size: 1rem;
}

.chevron {
    color: rgba(255, 215, 0, 0.4);
    font-size: 1.25rem;
}

footer {
    margin-top: auto;
    padding-top: 1rem;
}

.back-link {
    font-size: 0.75rem;
    color: #5A6A7A;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #e8a849;
}

@media (max-width: 480px) {
    body {
        padding: 1.5rem;
    }
    .card {
        padding: 1rem;
    }
    .platform-link {
        padding: 0.875rem 0.875rem;
    }
}

/* copyright line, written into every footer by tools/legal/legal.py */
.footer-legal { font-size: 0.7rem; color: #5A6A7A; letter-spacing: 0.05em; margin-top: 0.5rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 0.75rem; }
.footer-legal span { white-space: nowrap; }
.footer-legal .footer-links { display: inline-flex; column-gap: 0.75rem; }
.footer-legal a { color: inherit; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.footer-legal a:hover { color: #e8a849; }
