:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --accent-primary: #00f2ff; /* Neon Cyan */
    --accent-secondary: #bd00ff; /* Neon Purple */
    --wheel-border: #2a2a2a;
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --spotify-color: #1DB954;
    --apple-color: #FA243C;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

header {
    margin-bottom: 2rem;
}

h1 {
    font-family: var(--font-head);
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    opacity: 0.7;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Wheel Styling */
.game-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.wheel-container {
    position: relative;
    width: 90vw;
    max-width: 450px;
    aspect-ratio: 1/1;
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.1));
}

canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: rotate(0deg);
    transition: transform 5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #ffffff;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Button */
.spin-btn {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    padding: 15px 40px;
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.spin-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(189, 0, 255, 0.4);
}

.spin-btn:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Result Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.visible {
    opacity: 1;
    pointer-events: all;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}

.modal-content h2 {
    font-family: var(--font-head);
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.album-details h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    line-height: 1.2;
}

.artist {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 20px;
}

.meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
}

.tag.year {
    background: #333;
}

.tag.genre {
    background: var(--accent-secondary);
    color: white;
}

.links-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.listen-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    border: 1px solid transparent;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s;
    font-weight: bold;
}

.listen-link.spotify {
    background-color: transparent;
    border-color: var(--spotify-color);
}

.listen-link.spotify:hover {
    background-color: var(--spotify-color);
    color: #000;
}

.listen-link.apple {
    background-color: transparent;
    border-color: var(--apple-color);
}

.listen-link.apple:hover {
    background-color: var(--apple-color);
    color: #fff;
}
