:root {
    --bg-color: #121212;
    --surface-color: #181818;
    --surface-hover: #282828;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --accent-color: #1DB954; /* Styl Spotify */
    --accent-hover: #1ed760;
    --error-color: #e22134;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

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

.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--surface-color);
    padding: 4rem 2rem;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease-in-out;
}

.screen.active {
    display: flex;
}

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

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
}

h1 span {
    color: var(--accent-color);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    line-height: 1.5;
}

.primary-btn {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.03);
}

.primary-btn:active {
    transform: scale(0.97);
}

/* Ekran Gry */
#game-screen {
    justify-content: space-between;
    min-height: 480px;
}

.header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.player-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 2rem 0;
}

.visualizer {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 80px;
}

.bar {
    width: 12px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 8px;
    animation: bounce 1s infinite ease-in-out alternate;
}

.bar:nth-child(1) { animation-delay: 0.0s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.4s; }
.bar:nth-child(4) { animation-delay: 0.2s; }
.bar:nth-child(5) { animation-delay: 0.0s; }

@keyframes bounce {
    from { height: 10px; }
    to { height: 70px; }
}

.visualizer.paused .bar {
    animation-play-state: paused;
    height: 10px;
}

.input-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

input[type="text"] {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--surface-hover);
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.2);
}

.highlight {
    color: var(--text-primary);
    font-weight: 800;
}

.points {
    color: var(--accent-color);
    font-size: 1.8rem;
    display: block;
    margin-top: 0.5rem;
}

/* Grupa górnego paska */
.top-nav {
    position: fixed;
    top: 24px;
    left: 24px;
    display: flex;
    gap: 12px;
    z-index: 1000;
}

/* Przycisk Tipply */
.tipply-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tipply-btn:hover {
    background-color: var(--accent-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
    border-color: var(--accent-color);
}

.tipply-btn svg {
    fill: transparent;
    transition: all 0.2s;
}

.tipply-btn:hover svg {
    fill: #000;
}

/* Kontrola Głośności wewnątrz Top-nav */
.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 10px 18px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.volume-control input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    background: rgba(255, 255, 255, 0.2);
    height: 4px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    transition: transform 0.1s;
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}
