:root {
    --bg-color-1: #0f172a;
    --bg-color-2: #1e1b4b;
    --bg-color-3: #312e81;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent-color: #38bdf8;
    --accent-hover: #0ea5e9;
    --warning-color: #ef4444;
    --success-color: #10b981;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Energetic Interval/Workout Theme Colors */
    --workout-bg-1: #431407; /* Deep Burnt Orange */
    --workout-bg-2: #701a75; /* Deep Fuchsia */
    --workout-bg-3: #4c1d95; /* Deep Purple */
    
    /* Fun Board Game Theme Colors */
    --game-bg-1: #064e3b; /* Deep Emerald */
    --game-bg-2: #0369a1; /* Strong Blue */
    --game-bg-3: #be185d; /* Strong Pink */

    /* Calm Task Theme Colors */
    --task-bg-1: #064e3b; /* Deep Teal */
    --task-bg-2: #0f172a; /* Slate Blue */
    --task-bg-3: #115e59; /* Bright Teal */
}

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

html {
    height: -webkit-fill-available;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    background-color: var(--bg-color-1);
}

.hidden {
    display: none !important;
}

/* Animated Gradient Background */
.background-animation {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--bg-color-3) 0%, var(--bg-color-2) 40%, var(--bg-color-1) 100%);
    z-index: -1;
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1.3); }
    100% { transform: rotate(360deg) scale(1.1); }
}

body.workout-mode .background-animation,
body.interval-mode .background-animation {
    background: radial-gradient(circle at center, var(--workout-bg-3) 0%, var(--workout-bg-2) 45%, var(--workout-bg-1) 100%);
    animation-duration: 12s; /* Faster animation for energy */
}

body.boardgame-mode .background-animation {
    background: radial-gradient(circle at center, var(--game-bg-3) 0%, var(--game-bg-2) 45%, var(--game-bg-1) 100%);
    animation-duration: 25s; /* Slower, relaxing fun animation */
}

body.task-mode .background-animation {
    background: radial-gradient(circle at center, var(--task-bg-3) 0%, var(--task-bg-2) 45%, var(--task-bg-1) 100%);
    animation-duration: 30s; /* Calm, slow animation */
}

.app-container {
    width: 100%;
    max-width: 500px;
    margin: auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.glass-panel.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: scale(0.95);
    visibility: hidden;
}

.glass-panel.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    transform: scale(1);
    visibility: visible;
}

/* Mode Selector */
.mode-selector {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1rem;
}

.mode-btn {
    flex: 1;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 10px rgba(56, 189, 248, 0.3);
}

.setup-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.3s ease;
}

.setup-section.hidden {
    display: none;
    opacity: 0;
}

/* Header and Logo */
.app-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0.5rem;
}

.app-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Typography */
h1 {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

h3 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Form Elements */
.form-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.flex-1 {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

input, select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-y: center;
}

select option {
    background-color: var(--bg-color-1);
    color: var(--text-primary);
}

input:focus, select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* Player/Buddy List Container */
.players-list-container {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbar */
.players-list-container::-webkit-scrollbar {
    width: 6px;
}
.players-list-container::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: 10px;
}

#players-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.player-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-number {
    font-weight: 800;
    color: var(--text-secondary);
    width: 25px;
    text-align: right;
}

.player-input-wrapper input {
    flex: 1;
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    min-height: 44px;
    transition: all 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-color), #2563eb);
    color: white;
    padding: 16px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
    margin-top: 1rem;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
}

.primary-btn:active {
    transform: translateY(1px);
}

/* Timer View Specifics */
.timer-header {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sets-remaining-badge {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.sets-remaining-badge.hidden {
    display: none;
}

.player-name-display {
    font-size: 2.5rem;
    color: var(--accent-color);
    -webkit-text-fill-color: var(--accent-color);
    background: none;
}

.encouragement-msg-container {
    min-height: 2rem;
    margin-top: 0.5rem;
}

.encouragement-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--success-color);
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
    animation: pulseGlow 2s infinite ease-in-out;
    margin: 0;
}

@keyframes pulseGlow {
    0% { opacity: 0.7; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0.7; transform: scale(0.98); }
}

.timer-display-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.time-text {
    font-size: 6rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    position: absolute;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
    transition: color 0.3s ease, transform 0.1s ease;
}

/* Time Low Warning State */
.time-text.warning {
    color: var(--warning-color);
    animation: pulseWarning 1s infinite alternate;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

@keyframes pulseWarning {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* SVG Progress Ring */
.progress-ring {
    transform: rotate(-90deg);
    max-width: 280px;
    width: 100%;
    height: auto;
}

.progress-ring-circle {
    stroke-dasharray: 816; /* 2 * PI * 130 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
    stroke-linecap: round;
}

.progress-ring-circle.warning {
    stroke: var(--warning-color);
}

.progress-ring-circle.success {
    stroke: var(--success-color);
}

.timer-controls {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(2px);
    background: rgba(255, 255, 255, 0.15);
}

.btn-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
}

.btn-subtext {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

.secondary-btn.text-only {
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 10px;
    margin-top: 1rem;
}

.secondary-btn.text-only:hover {
    color: white;
}

/* Mobile Responsive Adjustments */
@media (max-width: 400px) {
    .app-container {
        padding: 10px;
    }
    .glass-panel {
        padding: 1.5rem;
    }
    .player-name-display {
        font-size: 2rem;
    }
    .time-text {
        font-size: 5rem;
    }
    .timer-display-container {
        height: 250px;
    }
}
/* Summary Screen Styles */
.trophy-icon {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.summary-stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-color);
}

@media (min-width: 480px) {
    .summary-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .glass-panel {
        padding: 0.85rem;
        gap: 0.75rem;
    }

    .app-header {
        margin-bottom: 0px;
    }

    .app-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 0px;
        line-height: 1.2;
    }

    .app-header p {
        display: none !important;
    }

    .setup-section {
        gap: 0.5rem;
    }

    .form-row {
        gap: 0.75rem;
    }

    .trophy-icon {
        font-size: 3rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .timer-display {
        font-size: 5rem;
    }

    .timer-ring-container {
        width: 220px;
        height: 220px;
    }

    .player-input-wrapper {
        gap: 0.5rem;
    }

    .player-number {
        width: 15px;
        font-size: 0.8rem;
    }

    input, select {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .players-list-container {
        padding: 0.6rem;
        max-height: 160px;
    }

    .mode-selector {
        margin-bottom: 0.5rem;
        padding: 2px;
    }

    .mode-btn {
        padding: 8px 4px;
        font-size: 0.8rem;
    }

    .primary-btn {
        padding: 18px;
        margin-top: 1rem;
        font-size: 1.1rem;
        border-radius: 16px;
    }

    .timer-display {
        font-size: 4.5rem;
    }
}

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.timer-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.timer-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px var(--card-accent-alpha);
    border-color: rgba(255,255,255,0.25);
}

.card-ring-container {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.card-icon-overlay {
    position: absolute;
    top: 38%; /* Slightly higher to make room for time */
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.8rem;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.5));
    user-select: none;
    line-height: 1;
    z-index: 2;
}

.music-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 1rem;
    color: var(--card-accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.timer-card.playing .music-indicator {
    opacity: 1;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.5; }
}

.card-time-display {
    position: absolute;
    top: 68%; /* Centered vertically within the lower half of the ring */
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.6rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 4px 12px rgba(0,0,0,0.9);
    z-index: 3;
    letter-spacing: 1px;
    color: #fff;
}

.card-header {
    width: 100%;
    margin-bottom: 0.75rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.card-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    opacity: 0.85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-controls {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.card-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
    font-size: 1rem;
}

.card-btn:hover {
    background: var(--card-accent);
    transform: scale(1.1);
}

.card-btn.active {
    background: var(--card-accent);
}

/* Color Themes */
.theme-blue { --card-accent: #38bdf8; --card-accent-alpha: rgba(56, 189, 248, 0.3); }
.theme-red { --card-accent: #ef4444; --card-accent-alpha: rgba(239, 68, 68, 0.3); }
.theme-green { --card-accent: #10b981; --card-accent-alpha: rgba(16, 185, 129, 0.3); }
.theme-purple { --card-accent: #a855f7; --card-accent-alpha: rgba(168, 85, 247, 0.3); }
.theme-orange { --card-accent: #fb923c; --card-accent-alpha: rgba(251, 146, 60, 0.3); }

.timer-card svg circle {
    stroke: var(--card-accent);
    filter: drop-shadow(0 0 5px var(--card-accent));
}

.timer-card svg circle#ring-bg {
    filter: none;
}

/* Dashboard Mode Background */
body.dashboard-mode .background-animation {
    background: radial-gradient(circle at center, #1e1b4b 0%, #0f172a 45%, #020617 100%);
    animation-duration: 35s;
}

/* Dashboard List Manager */
.dashboard-setup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.db-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.db-item-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.db-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.db-item-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.remove-db-item {
    background: transparent;
    border: none;
    color: var(--warning-color);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0 5px;
}

.color-option.active {
    box-shadow: 0 0 0 2px white, 0 0 10px var(--accent-color);
    transform: scale(1.2);
}

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .timer-card {
        min-height: auto;
        padding-bottom: 1.5rem;
    }
}

/* Icon Picker Styling */
.icon-option {
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
}

.icon-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

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

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Pulse Animation for Active Timers */
@keyframes ringPulse {
    0% { filter: drop-shadow(0 0 5px var(--card-accent)); }
    50% { filter: drop-shadow(0 0 20px var(--card-accent)); }
    100% { filter: drop-shadow(0 0 5px var(--card-accent)); }
}

.timer-card.active-pulse svg circle {
    animation: ringPulse 2s infinite ease-in-out;
}

/* Timer Status Bar (Top Row) */
.timer-status-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    width: 100%;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    z-index: 10;
    transition: all 0.5s ease;
}

/* Aura Modes */
.aura-encourager { border-bottom-color: #00ff88; box-shadow: 0 5px 15px rgba(0, 255, 136, 0.1); }
.aura-hype { border-bottom-color: #ff3300; box-shadow: 0 5px 15px rgba(255, 51, 0, 0.2); }
.aura-sage { border-bottom-color: #00ccff; box-shadow: 0 5px 15px rgba(0, 204, 255, 0.2); }

/* Neural Level Badge */
.neural-lvl-badge {
    background: var(--accent-color);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 0 10px var(--accent-color);
}

/* Neural Engine Indicator (Relocated) */
.neural-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    animation: brainScan 4s infinite linear;
}

.neural-indicator.hidden {
    display: none;
}

.brain-icon {
    font-size: 1.2rem;
    animation: brainPulse 2s infinite ease-in-out;
}

.neural-status-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes brainPulse {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.2); filter: brightness(1.5); }
    100% { transform: scale(1); filter: brightness(1); }
}

@keyframes brainScan {
    0% { border-color: var(--accent-color); box-shadow: 0 0 5px var(--accent-color); }
    50% { border-color: #ff00ff; box-shadow: 0 0 15px #ff00ff; }
    100% { border-color: var(--accent-color); box-shadow: 0 0 5px var(--accent-color); }
}

/* Music Indicator Animation (Relocated) */
.music-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 0 15px var(--accent-color);
    animation: musicPulse 1.5s infinite ease-in-out;
}

.music-indicator.hidden {
    display: none;
}

@keyframes musicPulse {
    0% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.3) rotate(15deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
}

