/* Motivated Spirit Broadcast - Live Mobile-Ready Control Console */

:root {
    --bg-dark: #0f0f17;
    --panel-bg: #181825;
    --accent-purple: #8a2be2;
    --neon-pink: #ff007f;
    --text-main: #cdd6f4;
    --text-muted: #a6adc8;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 15px;
}

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

/* Header & Pulsating/Floating Logo */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--panel-bg);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #313244;
}

.branding-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pulsating-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    animation: floatAndPulse 4s ease-in-out infinite;
}

@keyframes floatAndPulse {
    0% {
        transform: translateY(0px) scale(1);
        filter: drop-shadow(0 0 6px rgba(255, 0, 127, 0.6));
    }
    50% {
        transform: translateY(-5px) scale(1.04);
        filter: drop-shadow(0 0 16px rgba(255, 0, 127, 0.95)) drop-shadow(0 0 25px rgba(138, 43, 226, 0.8));
    }
    100% {
        transform: translateY(0px) scale(1);
        filter: drop-shadow(0 0 6px rgba(255, 0, 127, 0.6));
    }
}

.station-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ff007f, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#clock {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Status Badge */
.status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #11111b;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 8px #2ecc71;
}

/* Control Bar */
.control-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    background: var(--panel-bg);
    padding: 12px 15px;
    border-radius: 10px;
    align-items: center;
    justify-content: space-between;
}

.btn-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-ctrl {
    flex: 1;
    background: linear-gradient(135deg, #8a2be2, #6a1b9a);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.1s, opacity 0.2s;
}

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

/* Now Playing Card */
.now-playing {
    background: var(--panel-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #313244;
}

.label {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--neon-pink);
    font-weight: bold;
}

#currentTitle {
    margin: 8px 0 15px 0;
    font-size: 1.5rem;
    word-break: break-word;
}

.progress-container {
    width: 100%;
    height: 10px;
    background: #313244;
    border-radius: 5px;
    overflow: hidden;
}

#progressFill {
    height: 100%;
    background: linear-gradient(90deg, #8a2be2, #ff007f);
    width: 0%;
    transition: width 0.3s linear;
}

.times {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Panels */
.columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.panel {
    background: var(--panel-bg);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #313244;
}

.panel h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #f5e0dc;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    padding: 8px 0;
    border-bottom: 1px solid #313244;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Upload Section */
.upload-panel {
    background: var(--panel-bg);
    padding: 15px;
    border-radius: 10px;
    border: 1px dashed #45475a;
    margin-bottom: 15px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.upload-select, .upload-input {
    background: #11111b;
    color: #fff;
    border: 1px solid #45475a;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Hardware Stats Cards */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.card {
    background: var(--panel-bg);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #313244;
}

.card .value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #a6e3a1;
}

.card .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Mobile Responsive Breakpoint */
@media (max-width: 768px) {
    .columns {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: 1fr 1fr;
    }
    .header {
        padding: 12px;
    }
    .station-title {
        font-size: 1.1rem;
    }
    .pulsating-logo {
        width: 48px;
        height: 48px;
    }
}
