/* ================================
   RESET & BASE VARIABLES
================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #121212;
    --card-bg: #181818;
    --primary-color: #1db954;
    --text-color: #ffffff;
    --secondary-text: #b3b3b3;
    --border-color: #282828;
    --error-color: #ff4d4d;
    --warning-color: #ffbc4d;
    --success-color: #1ed760;
    --accent-color: #535353;
    --dark-accent: #159442;
}

/* Default theme */
[data-theme="default"] {
    /* Uses :root variables */
}

/* ================================
   THEME: SPOTIFY
================================== */

[data-theme="spotify"] {
    --error-color: #F15E6C;
}

[data-theme="spotify"] body {
    background: var(--bg-color);
    background-image: linear-gradient(to bottom,
        rgba(83, 83, 83, 0.5),
        var(--bg-color) 30%
    );
}

[data-theme="spotify"] .now-playing {
    background: linear-gradient(to bottom right,
        rgba(29, 185, 84, 0.1),
        rgba(29, 185, 84, 0.05)
    );
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="spotify"] .control-button {
    background: var(--primary-color);
    border: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 8px 16px rgba(29, 185, 84, 0.2);
}

[data-theme="spotify"] .control-button:hover {
    transform: scale(1.04);
    background: var(--success-color);
    box-shadow: none;
}

[data-theme="spotify"] .song-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border: none;
    padding: 15px 20px;
    transition: background 0.2s ease;
}

[data-theme="spotify"] .song-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}

[data-theme="spotify"] #current-song-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    background: none;
    border: none;
    text-shadow: none;
}

[data-theme="spotify"] .status-bar {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    backdrop-filter: blur(10px);
}

[data-theme="spotify"] #volume-slider {
    background: var(--border-color);
    height: 6px;
}

[data-theme="spotify"] #volume-slider::-webkit-slider-thumb,
[data-theme="spotify"] #volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="spotify"] #volume-slider::-webkit-slider-thumb:hover,
[data-theme="spotify"] #volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

[data-theme="spotify"] .theme-selector {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    backdrop-filter: blur(10px);
}

[data-theme="spotify"] .theme-selector select {
    background: rgba(0, 0, 0, 0.3);
    border: none;
}

[data-theme="spotify"] section {
    background: rgba(255, 255, 255, 0.03);
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

[data-theme="spotify"] section:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

/* Spotify specific cards */
[data-theme="spotify"] .shoutbox-message {
    border-left: 3px solid var(--primary-color);
}
[data-theme="spotify"] .event-card {
    background: rgba(255, 255, 255, 0.03);
    border-left: none;
    border-radius: 4px;
}
[data-theme="spotify"] .request-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: none;
}
[data-theme="spotify"] .request-item[data-status="denied"] {
    background: rgba(241, 94, 108, 0.05);
}
[data-theme="spotify"] .event-delete:hover {
    background: rgba(241, 94, 108, 0.1);
}

/* ================================
   THEME: TIKI
================================== */

[data-theme="tiki"] {
    --bg-color: #2d1810;
    --card-bg: #3d2317;
    --primary-color: #ff6b35;
    --text-color: #fff4e0;
    --secondary-text: #ffd5c2;
    --border-color: #4a2c1f;
    --error-color: #ff4d4d;
    --warning-color: #ffc145;
    --success-color: #7fba00;
    --accent-color: #c73e1d;
    --dark-accent: #a23116;
    --tiki-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l15 15h-30z M30 60l15-15h-30z' fill='%23ff6b35' fill-opacity='0.1'/%3E%3C/svg%3E");
}

[data-theme="tiki"] body {
    background-image: var(--tiki-pattern),
        linear-gradient(45deg, #2d1810, #3d2317);
}

[data-theme="tiki"] .now-playing {
    background: linear-gradient(135deg,
        rgba(255, 107, 53, 0.2),
        rgba(255, 193, 69, 0.2)
    );
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

[data-theme="tiki"] .now-playing::before {
    content: "🌺";
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    right: -20px;
    bottom: -20px;
    transform: rotate(-15deg);
}

[data-theme="tiki"] h1 {
    font-family: 'Trebuchet MS', sans-serif;
    letter-spacing: 2px;
}

[data-theme="tiki"] h1::before,
[data-theme="tiki"] h1::after {
    content: "🗿";
    margin: 0 15px;
    font-size: 2rem;
}

[data-theme="tiki"] .control-button {
    background-image: linear-gradient(to bottom,
        var(--primary-color),
        var(--dark-accent)
    );
    border: 2px solid rgba(255, 255, 255, 0.1);
}

[data-theme="tiki"] .song-item {
    background-image: linear-gradient(to right,
        rgba(255, 107, 53, 0.1),
        rgba(255, 193, 69, 0.1)
    );
    border-left: 3px solid var(--accent-color);
    position: relative;
}

[data-theme="tiki"] .song-item::before {
    content: "🌴";
    position: absolute;
    left: 5px;
    opacity: 0.2;
}

[data-theme="tiki"] #current-song-title {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-color);
}

[data-theme="tiki"] #volume-slider {
    background: var(--border-color);
    height: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="tiki"] #volume-slider::-webkit-slider-thumb,
[data-theme="tiki"] #volume-slider::-moz-range-thumb {
    background: var(--primary-color);
    border: 2px solid var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Tiki specific cards */
[data-theme="tiki"] .shoutbox-message {
    background: linear-gradient(to right,
        rgba(255, 107, 53, 0.1),
        rgba(255, 193, 69, 0.1)
    );
}
[data-theme="tiki"] .event-card {
    background: linear-gradient(to right,
        rgba(255, 107, 53, 0.1),
        rgba(255, 193, 69, 0.1)
    );
}
[data-theme="tiki"] .request-item {
    background: linear-gradient(to right,
        rgba(255, 107, 53, 0.1),
        rgba(255, 193, 69, 0.1)
    );
}
[data-theme="tiki"] .request-item[data-status="denied"] {
    background: linear-gradient(to right,
        rgba(255, 77, 77, 0.1),
        rgba(255, 193, 69, 0.05)
    );
}
[data-theme="tiki"] .event-delete:hover {
    background: rgba(255, 77, 77, 0.2);
}

/* ================================
   THEME: TWITCH
================================== */

[data-theme="twitch"] {
    --bg-color: #0e0e10;
    --card-bg: #18181b;
    --primary-color: #9147ff;
    --text-color: #efeff1;
    --secondary-text: #adadb8;
    --border-color: #303032;
    --error-color: #ff4d4d;
    --warning-color: #ffab00;
    --success-color: #00ff7f;
    --accent-color: #772ce8;
    --dark-accent: #5c16c5;
}

[data-theme="twitch"] body {
    background: var(--bg-color);
    background-image: linear-gradient(to bottom,
        rgba(145, 71, 255, 0.1),
        var(--bg-color) 30%
    );
}

[data-theme="twitch"] section {
    background: var(--card-bg);
    border: none;
    box-shadow: 0 0 20px rgba(145, 71, 255, 0.1);
}

[data-theme="twitch"] .now-playing {
    background: linear-gradient(135deg,
        rgba(145, 71, 255, 0.1),
        rgba(92, 22, 197, 0.1)
    );
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(145, 71, 255, 0.2);
}

[data-theme="twitch"] .control-button {
    background: var(--primary-color);
    border: none;
    transition: all 0.2s ease;
}

[data-theme="twitch"] .control-button:hover {
    background: var(--dark-accent);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 20px rgba(145, 71, 255, 0.4);
}

[data-theme="twitch"] .song-item {
    background: rgba(145, 71, 255, 0.05);
    border: none;
    border-radius: 4px;
    transition: all 0.2s;
}

[data-theme="twitch"] .song-item:hover {
    background: rgba(145, 71, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(145, 71, 255, 0.2);
}

[data-theme="twitch"] #volume-slider {
    background: var(--border-color);
    height: 6px;
    border-radius: 8px;
}

[data-theme="twitch"] #volume-slider::-webkit-slider-thumb,
[data-theme="twitch"] #volume-slider::-moz-range-thumb {
    background: var(--primary-color);
    border: 2px solid var(--text-color);
    box-shadow: 0 0 10px rgba(145, 71, 255, 0.3);
    width: 16px;
    height: 16px;
}

[data-theme="twitch"] #volume-slider::-webkit-slider-thumb:hover,
[data-theme="twitch"] #volume-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(145, 71, 255, 0.4);
}

[data-theme="twitch"] .theme-selector {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(145, 71, 255, 0.2);
}

[data-theme="twitch"] .theme-selector select {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="twitch"] .theme-selector select:hover {
    background: var(--card-bg);
    border-color: var(--primary-color);
}

[data-theme="twitch"] #current-song-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
    text-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    border: none;
}

[data-theme="twitch"] .status-bar {
    background: rgba(145, 71, 255, 0.1);
    border: none;
}

[data-theme="twitch"] .stream-link {
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 8px 16px;
    transition: all 0.2s;
}

[data-theme="twitch"] .stream-link:hover {
    background: var(--dark-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(145, 71, 255, 0.4);
}

/* Twitch specific cards */
[data-theme="twitch"] .shoutbox-message {
    background: rgba(145, 71, 255, 0.05);
    border-left: 3px solid var(--primary-color);
}
[data-theme="twitch"] .event-card {
    background: rgba(145, 71, 255, 0.05);
    border-left: 3px solid var(--primary-color);
}
[data-theme="twitch"] .request-item {
    background: rgba(145, 71, 255, 0.05);
    border-left: 3px solid var(--primary-color);
}
[data-theme="twitch"] .request-item[data-status="denied"] {
    background: rgba(255, 77, 77, 0.05);
}
[data-theme="twitch"] .event-delete:hover {
    background: rgba(255, 77, 77, 0.15);
}

/* ================================
   THEME SELECTOR
================================== */

.theme-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    z-index: 1000;
}

.theme-selector select {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* ================================
   BASE LAYOUT & TYPOGRAPHY
================================== */

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--bg-color);
    background-image: linear-gradient(45deg, #1a2a3a, var(--bg-color), #1a2a3a);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.5;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px 15px;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
}

h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 20px;
    display: inline-block;
}

header {
    margin-bottom: 35px;
    text-align: center;
    position: relative;
}

header:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

main {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

section {
    background-color: var(--card-bg);
    background-image: linear-gradient(135deg,
        rgba(74, 144, 226, 0.1) 0%,
        rgba(155, 89, 182, 0.1) 100%);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 25px 0;
    color: var(--secondary-text);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ================================
   PLAYER
================================== */

.player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

#play-button {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
}

.control-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.control-button:hover {
    background-color: var(--dark-accent);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(29, 185, 84, 0.3);
}

.control-button:hover:before {
    opacity: 1;
}

.control-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.1s;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

#volume-slider {
    -webkit-appearance: none;
    width: 120px;
    height: 8px;
    border-radius: 8px;
    background: var(--border-color);
    outline: none;
    transition: background 0.2s;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-color);
    cursor: pointer;
    border: 2px solid var(--primary-color);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    position: relative;
    z-index: 2;
}

#volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-color);
    cursor: pointer;
    border: 2px solid var(--primary-color);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    position: relative;
    z-index: 2;
}

#volume-slider::-moz-range-track {
    height: 8px;
    border-radius: 8px;
    background: var(--border-color);
}

#volume-slider::-webkit-slider-thumb:hover,
#volume-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ================================
   STATUS & NOW PLAYING
================================== */

.status-bar {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    color: var(--secondary-text);
    display: inline-block;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

#connection-status {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    position: relative;
    padding-left: 15px;
}

#connection-status::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary-text);
}

#connection-status.online {
    color: var(--success-color);
}

#connection-status.online::before {
    background-color: var(--success-color);
    box-shadow: 0 0 5px var(--success-color);
}

#connection-status.error {
    color: var(--error-color);
}

#connection-status.error::before {
    background-color: var(--error-color);
    box-shadow: 0 0 5px var(--error-color);
}

#connection-status.buffering,
#connection-status.connecting {
    color: var(--warning-color);
}

#connection-status.buffering::before,
#connection-status.connecting::before {
    background-color: var(--warning-color);
    box-shadow: 0 0 5px var(--warning-color);
    animation: pulse 1.5s infinite;
}

.now-playing {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background: linear-gradient(to bottom right,
        rgba(52, 152, 219, 0.1),
        rgba(155, 89, 182, 0.1));
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.1);
    position: relative;
    overflow: hidden;
}

#current-song-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 15px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    color: var(--primary-color);
    word-break: break-word;
    display: block;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

#current-song-title::before {
    content: "♫";
    position: absolute;
    left: 15px;
    opacity: 0.1;
    font-size: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.now-playing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
        rgba(29, 185, 84, 0.15) 0%,
        rgba(29, 185, 84, 0.1) 35%,
        rgba(255, 255, 255, 0.05) 70%,
        transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 8s linear infinite;
    opacity: 0.6;
    pointer-events: none;
    box-shadow: 0 0 50px rgba(29, 185, 84, 0.2);
}

.now-playing::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    animation: pulse 2s ease-in-out infinite;
}

/* ================================
   SONG LIST
================================== */

.song-section {
    padding: 25px;
}

.song-section h2 {
    margin-bottom: 25px;
    position: relative;
}

#song-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

#song-list::-webkit-scrollbar {
    width: 8px;
}

#song-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

#song-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.song-item {
    padding: 18px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.song-item:hover {
    background-color: rgba(29, 185, 84, 0.15);
    border-left: 3px solid var(--primary-color);
    transform: translateX(1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2),
                0 0 10px rgba(29, 185, 84, 0.1);
}

.song-title {
    font-weight: 500;
    flex-grow: 1;
}

.song-time {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* ================================
   MESSAGES & STREAM LINKS
================================== */

.loading-message {
    text-align: center;
    color: var(--secondary-text);
    padding: 20px;
}

.update-info {
    text-align: right;
    font-size: 0.85rem;
    color: var(--secondary-text);
    margin-top: 25px;
    font-style: italic;
    background-color: rgba(0, 0, 0, 0.1);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    float: right;
}

.error-message {
    color: var(--text-color);
    background-color: rgba(231, 76, 60, 0.15);
    border-left: 4px solid var(--error-color);
    padding: 20px;
    margin: 15px 0;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.1);
}

.info-message {
    color: var(--text-color);
    background-color: rgba(52, 152, 219, 0.15);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 15px 0;
    border-radius: 5px;
    line-height: 1.8;
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.1);
}

.stream-link {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 20px;
    margin: 8px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    transition: all 0.3s;
    background-color: rgba(52, 152, 219, 0.1);
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stream-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(52, 152, 219, 0.3);
}

.stream-link:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(52, 152, 219, 0.2);
}

.separator {
    color: var(--secondary-text);
    margin: 0 5px;
}

.stream-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

/* ================================
   SHOUTBOX
================================== */

.shoutbox-section {
    margin-top: 20px;
}

.shoutbox-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shoutbox-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shoutbox-messages::-webkit-scrollbar {
    width: 8px;
}

.shoutbox-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.shoutbox-messages::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* Theme-specific scrollbars for shoutbox */
[data-theme="spotify"] .shoutbox-messages::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
}

[data-theme="tiki"] .shoutbox-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom,
        var(--primary-color),
        var(--dark-accent)
    );
}

[data-theme="twitch"] .shoutbox-messages::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(145, 71, 255, 0.3);
}

.shoutbox-message {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    animation: slideIn 0.3s ease;
}

.shoutbox-message .name {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.shoutbox-message .time {
    color: var(--secondary-text);
    font-size: 0.8rem;
    float: right;
}

.shoutbox-message .text {
    color: var(--text-color);
    word-break: break-word;
}

.shoutbox-input {
    display: flex;
    gap: 10px;
}

.shoutbox-input input {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
}

.shoutbox-input input::placeholder {
    color: var(--secondary-text);
}

#shoutbox-name {
    width: 150px;
}

#shoutbox-message {
    flex-grow: 1;
}

#shoutbox-send {
    width: 50px;
    height: 50px;
    padding: 0;
    font-size: 1.2rem;
}

/* ================================
   TABS
================================== */

.tabbed-section {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: rgba(29, 185, 84, 0.2);
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* Theme-specific tab buttons */
[data-theme="spotify"] .tab-button {
    border-radius: 20px;
}

[data-theme="tiki"] .tab-button {
    background-image: linear-gradient(to bottom,
        var(--primary-color),
        var(--dark-accent)
    );
    opacity: 0.7;
}

[data-theme="tiki"] .tab-button.active {
    opacity: 1;
}

[data-theme="twitch"] .tab-button {
    border: 1px solid var(--primary-color);
}

/* ================================
   EVENTS
================================== */

.events-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-button {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.admin-button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.admin-panel {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
}

#event-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#event-form input,
#event-form select,
#event-form textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
}

#event-form textarea {
    height: 100px;
    resize: vertical;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-color);
    position: relative;
}

.event-card .event-time {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.event-card .event-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.event-card .event-description {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.event-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.2s;
    padding: 8px;
    border-radius: 50%;
    z-index: 10;
}

.event-delete:hover {
    background: rgba(255, 77, 77, 0.1);
    transform: scale(1.1);
}

.event-card:hover .event-delete {
    opacity: 1;
}

.day-section {
    margin-bottom: 30px;
}

.day-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

/* ================================
   REQUESTS
================================== */

.requests-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.requests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.request-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.request-stats {
    background: var(--card-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

#requests-admin-login.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.request-form input,
.request-form textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
}

.request-form textarea {
    height: 80px;
    resize: vertical;
}

.request-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-color);
    position: relative;
}

.request-item .song-info {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.request-item .requester {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.request-item .message {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-top: 8px;
}

.request-item .time {
    color: var(--secondary-text);
    font-size: 0.8rem;
    position: absolute;
    top: 10px;
    right: 10px;
}

.request-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-button {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-button.active {
    background: var(--primary-color);
}

.request-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.request-action-button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.request-action-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.request-action-button.approve {
    color: var(--success-color);
}

.request-action-button.complete {
    color: var(--primary-color);
}

.request-action-button.delete,
.request-action-button.deny {
    color: var(--error-color);
}

.request-item[data-status="denied"] {
    opacity: 0.7;
    border-left-color: var(--error-color);
}

.request-item[data-status="denied"]::before {
    content: "❌";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.3;
}

.denied-reason {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 8px;
    font-style: italic;
}

/* Theme-specific request cards (already handled above for themes) */

/* ================================
   RESPONSIVE
================================== */

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .controls {
        flex-direction: column;
        gap: 15px;
    }

    .volume-control {
        width: 100%;
        justify-content: center;
    }

    #volume-slider {
        width: 150px;
    }

    .song-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .song-time {
        align-self: flex-end;
    }
}

/* ================================
   KEYFRAMES (GLOBAL)
================================== */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ================================
   CHRISTMAS THEME 🎄
   (FULL RGB WAVE + SNOW)
================================== */

[data-theme="christmas"] {
    --bg-color: #0a0f24;
    --card-bg: rgba(0,0,0,0.45);
    --primary-color: #ff3c3c;
    --text-color: #ffffff;
    --secondary-text: #d5d5d5;
    --border-color: rgba(255,255,255,0.15);
    --accent-color: #2ecc71;
}

/* Background */
[data-theme="christmas"] body {
    background: radial-gradient(circle at top,
                #123456 0,
                #050814 40%,
                #02040a 100%);
    overflow-x: hidden;
}

/* Lights top & bottom using your image */
/* Christmas Lights – Bigger + No Motion */
[data-theme="christmas"] body::before,
[data-theme="christmas"] body::after {
    content: "";
    position: fixed;
    left: 0;
    width: 100%;
    height: 60px; /* 🔥 Increased height (was 32px) */
    background: url("http://mahaloradio.net/lights.png") repeat-x;
    background-size: auto 60px; /* 🔥 Scale bulbs larger */
    z-index: 9999;
    pointer-events: none;

    /* 🔥 Apply only color-wave animation */
    animation: christmasRGBWave 6s linear infinite;
}

[data-theme="christmas"] body::before {
    top: 0;
}


/* 🌈 Rainbow Wave (slow) */
@keyframes christmasRGBWave {
    0%   { filter: hue-rotate(0deg) brightness(1.4); }
    25%  { filter: hue-rotate(90deg) brightness(1.4); }
    50%  { filter: hue-rotate(180deg) brightness(1.4); }
    75%  { filter: hue-rotate(270deg) brightness(1.4); }
    100% { filter: hue-rotate(360deg) brightness(1.4); }
}


/* Snowflakes (used by JS) */
.snowflake {
    position: fixed;
    top: -10px;
    color: #fff;
    font-size: 1rem;
    animation: snowFall linear infinite;
    opacity: 0.9;
    z-index: 5000;
    pointer-events: none;
}

@keyframes snowFall {
    0% { transform: translateY(-10px); }
    100% { transform: translateY(110vh); }
}

/* Frosty glass sections */
[data-theme="christmas"] section {
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.35);
    box-shadow: 0 0 24px rgba(255,0,0,0.3);
}

/* Buttons glow red */
[data-theme="christmas"] .control-button {
    background: #ff3c3c;
    box-shadow: 0 0 12px rgba(255,0,0,0.6);
}

[data-theme="christmas"] .control-button:hover {
    background: #ff5f5f;
    box-shadow: 0 0 20px rgba(255,0,0,0.9);
}

/* Now playing festive */
[data-theme="christmas"] .now-playing {
    background: radial-gradient(circle at top,
        rgba(255, 255, 255, 0.1),
        rgba(0, 0, 0, 0.6));
    box-shadow: 0 0 25px rgba(255,0,0,0.4);
}

[data-theme="christmas"] #current-song-title {
    color: #ffeb4d;
    text-shadow: 0 0 10px #ff0000;
    background: rgba(0,0,0,0.5);
}

/* Shoutbox / events / requests subtle tweak */
[data-theme="christmas"] .shoutbox-messages,
[data-theme="christmas"] .event-card,
[data-theme="christmas"] .request-item {
    background: rgba(0, 0, 0, 0.5);
    border-left-color: #ff3c3c;
}

/* Scrollbars in Christmas theme */
[data-theme="christmas"] #song-list::-webkit-scrollbar-thumb,
[data-theme="christmas"] .shoutbox-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ff3c3c, #2ecc71);
}

/* Admin / filter buttons */
[data-theme="christmas"] .filter-button.active,
[data-theme="christmas"] .admin-button:hover,
[data-theme="christmas"] .tab-button.active {
    background: linear-gradient(90deg, #ff3c3c, #ff9f43);
    border-color: transparent;
    color: #fff;
}

/* Event delete hover */
[data-theme="christmas"] .event-delete:hover {
    background: rgba(255, 77, 77, 0.25);
}

/* Requests denied overlay */
[data-theme="christmas"] .request-item[data-status="denied"] {
    border-left-color: #ff4d4d;
}
