:root {
    --primary-color: #1db954;
    --secondary-color: #191414;
    --text-color: #ffffff;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --card-bg: #282828;
    --border-radius: 8px;
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #282828 100%);
    color: var(--text-color);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1rem;
    color: #b3b3b3;
}

.controls {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #b3b3b3;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #404040;
    border-radius: var(--border-radius);
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #1ed760;
}

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

.btn-primary:disabled {
    background-color: #404040;
    cursor: not-allowed;
}

.status {
    margin-bottom: 20px;
}

#status-message {
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
}

#status-message.hidden {
    display: none;
}

#status-message.error {
    background-color: var(--error-color);
}

#status-message.success {
    background-color: var(--success-color);
}

#status-message.info {
    background-color: #3498db;
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.artist-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.artist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(29, 185, 84, 0.3);
}

.artist-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background-color: #404040;
}

.artist-info {
    padding: 15px;
}

.artist-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-popularity {
    font-size: 0.85rem;
    color: #b3b3b3;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #b3b3b3;
}

/* Auth Section */
.auth-section {
    margin-bottom: 30px;
}

.auth-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.auth-card h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.auth-card p {
    color: #b3b3b3;
    margin-bottom: 25px;
}

.info-box {
    margin-top: 30px;
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: left;
}

.info-box h3 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 15px;
}

.info-box ol {
    margin-left: 20px;
    margin-bottom: 15px;
    color: #b3b3b3;
}

.info-box li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.info-box code {
    background-color: #404040;
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.info-box .note {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

/* User Info */
.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #404040;
}

#user-name {
    font-weight: 600;
    color: var(--primary-color);
}

.btn-secondary {
    padding: 8px 16px;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid #404040;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Fetch Options */
.fetch-options .input-group {
    margin-bottom: 15px;
}

select {
    width: 100%;
    padding: 12px;
    border: 1px solid #404040;
    border-radius: var(--border-radius);
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Debug link */
.debug-link {
    margin-top: 10px;
}

.debug-link a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 0.9rem;
}

.debug-link a:hover {
    color: var(--primary-color);
}

/* Game Setup */
.game-setup {
    margin-bottom: 30px;
}

.setup-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.setup-card h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.setup-card h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Teams Section */
.teams-section {
    margin-bottom: 30px;
}

.add-team-form {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.add-team-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #b3b3b3;
}

.add-team-controls {
    display: flex;
    gap: 10px;
}

.team-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #404040;
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
}

.team-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.teams-list {
    margin-bottom: 20px;
}

.empty-state {
    color: #b3b3b3;
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
}

.team-card {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border: 1px solid #404040;
    transition: opacity 0.3s ease;
}

.team-card.disabled {
    opacity: 0.5;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.team-checkbox-label {
    display: flex;
    align-items: center;
    margin: 0;
}

.team-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.team-name-input {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: transparent;
    border: 1px solid transparent;
    color: var(--primary-color);
    padding: 8px;
    border-radius: var(--border-radius);
}

.team-name-input:hover {
    border-color: #404040;
}

.team-name-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--card-bg);
}

.btn-remove {
    background-color: transparent;
    border: 1px solid #404040;
    color: #e74c3c;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.btn-remove:hover {
    background-color: #e74c3c;
    color: var(--text-color);
    border-color: #e74c3c;
}

.team-members label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #b3b3b3;
}

.members-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #404040;
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 8px;
}

.members-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.member-count {
    font-size: 0.85rem;
    color: #b3b3b3;
    font-style: italic;
}

/* Team Row (Simplified) */
.team-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    border: 1px solid #404040;
    transition: opacity 0.3s ease;
}

.team-row.disabled {
    opacity: 0.5;
}

.btn-remove-inline {
    background-color: transparent;
    border: 1px solid #404040;
    color: #e74c3c;
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.btn-remove-inline:hover {
    background-color: #e74c3c;
    color: var(--text-color);
    border-color: #e74c3c;
}

.team-checkbox-inline {
    display: flex;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
}

.team-checkbox-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.team-members-input {
    flex: 1;
    padding: 8px;
    background-color: var(--card-bg);
    border: 1px solid #404040;
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 0.95rem;
}

.team-members-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.team-members-input::placeholder {
    color: #666;
}

/* Game Settings */
.game-settings {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

/* Tabs */
.tab-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 0;
    border-bottom: 2px solid #404040;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    background: transparent;
    border: none;
    color: #b3b3b3;
    padding: 12px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-button:hover {
    color: var(--text-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Inner Tabs (for Sources section) */
.inner-tab-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #404040;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.inner-tab-button {
    background: transparent;
    border: none;
    color: #b3b3b3;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.inner-tab-button:hover {
    color: var(--text-color);
}

.inner-tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.inner-tab-content {
    margin-top: 0;
}

.inner-tab-pane {
    display: none;
}

.inner-tab-pane.active {
    display: block;
}

/* Scrollable tab content with fixed button */
.tab-content-scrollable {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 5px;
    margin-bottom: 20px;
}

.tab-content {
    padding-top: 15px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Sticky button container */
.sticky-button-container {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, var(--card-bg) 20%, var(--card-bg));
    padding: 15px 0 0 0;
    margin-top: 10px;
}

/* Search Container */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-container input {
    flex: 1;
}

.search-container button {
    flex-shrink: 0;
}

/* Source Separator */
.source-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #404040, transparent);
    margin: 15px 0;
}

/* Playlist Selector */
.playlist-filter {
    width: 100%;
    padding: 12px;
    border: 1px solid #404040;
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 15px;
}

.playlist-filter:focus {
    outline: none;
    border-color: var(--primary-color);
}

.playlists-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #404040;
    border-radius: var(--border-radius);
    padding: 10px;
    background-color: var(--card-bg);
    margin-bottom: 20px;
}

.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #404040;
    gap: 10px;
}

.playlist-item:last-child {
    border-bottom: none;
}

.playlist-item-content {
    flex: 1;
    min-width: 0;
}

.playlist-name {
    display: block;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-info {
    display: block;
    color: #b3b3b3;
    font-size: 0.85rem;
}

.btn-add-playlist {
    padding: 6px 16px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-add-playlist:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

/* Selected Playlists */
.selected-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.selected-playlists-list {
    background-color: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 10px;
}

.selected-playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    gap: 10px;
}

.selected-playlist-item:last-child {
    margin-bottom: 0;
}

.btn-remove-playlist {
    background-color: transparent;
    border: 1px solid #404040;
    color: #e74c3c;
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-playlist:hover {
    background-color: #e74c3c;
    color: var(--text-color);
    border-color: #e74c3c;
}

.loading-message {
    color: #b3b3b3;
    padding: 20px;
    text-align: center;
    font-style: italic;
}

/* Large button */
.btn-large {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Game View */
.game-view {
    margin-bottom: 30px;
}

.game-phase {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 800px;
    width: 100%;
}

/* Content inside game-card needs to be above rain */
.game-card > * {
    position: relative;
    z-index: 10;
}

/* Timer Section */
.timer-section {
    margin-bottom: 30px;
}

.timer {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #404040;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 1s linear;
}

/* Artist Display */
.artist-display {
    margin-bottom: 30px;
}

.artist-image-container {
    margin-bottom: 20px;
}

.artist-image-large {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.artist-name-large {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 20px;
}

.artist-popularity {
    font-size: 0.9rem;
    color: #b3b3b3;
    margin-top: 8px;
    font-style: italic;
}

/* Game Controls */
.game-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.game-controls .btn-large {
    flex: 1;
}

/* Game Stats */
.game-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
}

/* Player Announcement */
.player-announcement {
    margin: 30px 0;
}

.player-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.player-team {
    font-size: 1.5rem;
    color: #b3b3b3;
}

.round-info {
    font-size: 1.2rem;
    color: #b3b3b3;
    margin-bottom: 30px;
}

/* Round Summary */
.round-summary {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.summary-stat {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Round Stats */
.round-stats {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

/* Stat Bar Chart */
.stat-bar-chart {
    margin-bottom: 20px;
}

.stat-bar {
    margin-bottom: 15px;
}

.stat-bar-label {
    font-size: 0.9rem;
    color: #b3b3b3;
    margin-bottom: 5px;
}

.stat-bar-container {
    position: relative;
    background-color: var(--card-bg);
    height: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.stat-bar-fill {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: var(--border-radius);
}

.stat-bar-fill.correct {
    background-color: var(--primary-color);
}

.stat-bar-fill.passed {
    background-color: #f39c12;
}

.stat-bar-value {
    position: absolute;
    right: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    z-index: 1;
}

/* Round Streak Display */
.round-streak {
    background-color: rgba(29, 185, 84, 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(29, 185, 84, 0.3);
}

.streak-header {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.streak-artists-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.streak-artist-thumb {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.streak-more-inline {
    color: #b3b3b3;
    font-size: 0.9rem;
    font-style: italic;
}

.summary-stat strong {
    color: var(--primary-color);
}

/* Team Summary */
.team-summary {
    margin-bottom: 30px;
}

.team-name-large {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Final Scores */
.final-scores {
    margin-bottom: 40px;
}

.final-scores h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.score-item.winner {
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.2) 0%, var(--secondary-color) 100%);
    border: 2px solid var(--primary-color);
}

.score-item .rank {
    font-weight: bold;
    margin-right: 15px;
    color: #b3b3b3;
}

.score-item.winner .rank {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.score-item .team-name {
    flex: 1;
    text-align: left;
}

.score-item .score {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Highlights */
.highlights {
    margin-bottom: 40px;
}

.highlights h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.highlight-item {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.highlight-item h4 {
    color: #b3b3b3;
    margin-bottom: 15px;
}

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

.highlight-artist-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.highlight-text {
    flex: 1;
    text-align: left;
}

.highlight-text p {
    margin-bottom: 5px;
}

.highlight-text .time {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.highlight-text .streak-number {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.streak-artists {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.streak-artist-image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.streak-more {
    color: #b3b3b3;
    font-size: 0.9rem;
    font-style: italic;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .controls, .auth-card, .setup-card, .game-card {
        padding: 15px;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .team-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    /* Tab improvements for mobile */
    .tab-button {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .tab-content-scrollable {
        max-height: 65vh;
        padding: 0 2px;
    }

    /* Team form improvements */
    .add-team-controls {
        flex-direction: column;
    }

    .add-team-controls .team-input {
        width: 100%;
    }

    .add-team-controls .btn-secondary {
        width: 100%;
    }

    /* Playlist list improvements */
    .playlists-list {
        max-height: 250px;
    }

    .playlist-filter {
        font-size: 0.95rem;
    }

    /* Game view optimizations */
    .timer {
        font-size: 2.5rem;
    }

    .artist-image-large {
        width: 200px;
        height: 200px;
    }

    .artist-name-large {
        font-size: 1.3rem;
    }

    .artist-popularity {
        font-size: 0.8rem;
        margin-top: 5px;
    }

    .player-name {
        font-size: 1.8rem;
    }

    .game-controls {
        flex-direction: column;
    }

    .game-stats {
        flex-direction: column;
        gap: 8px;
        font-size: 1rem;
    }
}

/* ===================================
   Raining Artists Animation (Game Over)
   =================================== */

.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.rain-artist {
    position: absolute;
    top: -100px;
    opacity: 0.3;
    border-radius: 50%;
    object-fit: cover;
    animation: fall linear infinite;
    pointer-events: none;
}

@keyframes fall {
    0% {
        top: -100px;
        transform: rotate(0deg);
    }
    100% {
        top: 100vh;
        transform: rotate(360deg);
    }
}
