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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #00ff00;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 24px;
}

.back-link {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2em;
    width: 100%;
}

.back-link a {
    color: #00ff00;
    text-decoration: none;
    border: 2px solid #00ff00;
    padding: 10px 20px;
    display: inline-block;
}

.back-link a:hover {
    background-color: #00ff00;
    color: black;
}

.radio-container {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.1);
}

.radio-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px dotted #00ff00;
    padding-bottom: 20px;
}

.radio-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #00ff00;
    letter-spacing: 3px;
}

.radio-track {
    font-size: 0.9em;
    color: #00aa00;
    font-style: italic;
}

.radio-track[contenteditable="true"] {
    cursor: text;
    border-bottom: 1px dashed #00aa00;
    padding-bottom: 2px;
    outline: none;
    min-width: 80px;
    display: inline-block;
}

.radio-track[contenteditable="true"]:focus {
    color: #00ff00;
    border-bottom-color: #00ff00;
}

.radio-track[contenteditable="true"]:empty::before {
    content: attr(data-placeholder);
    color: #006600;
    font-style: italic;
}

.auth-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.auth-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #00ff00;
    background: rgba(0, 255, 0, 0.05);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    border-radius: 4px;
    font-size: 0.9em;
}

.auth-input::placeholder {
    color: #00aa00;
}

.auth-input:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.auth-button {
    padding: 10px 20px;
    border: 1px solid #00ff00;
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.auth-button:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.auth-button:active {
    transform: scale(0.98);
}

.auth-status {
    display: block;
    font-size: 0.85em;
    color: #00aa00;
    text-align: center;
}

.auth-status.error {
    color: #ff6600;
}

.auth-status.success {
    color: #00ff00;
}

.listen-button {
    padding: 14px 50px;
    border: 2px solid #00ff00;
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.listen-button:hover:not(:disabled) {
    background: rgba(0, 255, 0, 0.25);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

.listen-button.listening {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.listen-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.play-button {
    padding: 12px 40px;
    border: 2px solid #00ff00;
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.play-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.live-button {
    padding: 12px 40px;
    border: 2px solid #ff4444;
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.live-button:hover {
    background: rgba(255, 68, 68, 0.2);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

.live-button.active {
    background: rgba(255, 68, 68, 0.25);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

.live-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.live-button.pending {
    border-color: #ffaa00;
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
    animation: pending-pulse 1.5s ease-in-out infinite;
}

@keyframes pending-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.monitor-button {
    padding: 12px 40px;
    border: 2px solid #00ccff;
    background: rgba(0, 204, 255, 0.1);
    color: #00ccff;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.monitor-button:hover {
    background: rgba(0, 204, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.5);
}

.monitor-button.active {
    background: rgba(0, 204, 255, 0.25);
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.5);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #111;
    border: 2px solid #00ff00;
    border-radius: 12px;
    padding: 30px;
    max-width: 380px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
}

.modal-content h3 {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1em;
    letter-spacing: 2px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #00aa00;
    font-size: 1.6em;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    line-height: 1;
}

.modal-close:hover {
    color: #00ff00;
}

.logout-button {
    padding: 6px 16px;
    border: 1px solid #00aa00;
    background: transparent;
    color: #00aa00;
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background: rgba(0, 170, 0, 0.15);
    color: #00ff00;
    border-color: #00ff00;
}

.logout-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.song-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dotted #003300;
    display: flex;
    flex-direction: column;
}

.song-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.song-label {
    font-size: 0.75em;
    color: #00aa00;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.playlist-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-pause-btn {
    padding: 4px 8px;
    border: 1px solid #00aa00;
    background: rgba(0, 170, 0, 0.1);
    color: #00aa00;
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 30px;
}

.play-pause-btn:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.15);
    color: #00ff00;
}

.play-pause-btn:active {
    transform: scale(0.95);
}

.nav-btn {
    padding: 4px 6px;
    border: 1px solid #00aa00;
    background: rgba(0, 170, 0, 0.1);
    color: #00aa00;
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 26px;
}

.nav-btn:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.15);
    color: #00ff00;
}

.nav-btn:active {
    transform: scale(0.95);
}

.shuffle-btn {
    padding: 4px 6px;
    border: 1px solid #00aa00;
    background: rgba(0, 170, 0, 0.1);
    color: #00aa00;
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 26px;
}

.shuffle-btn:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.15);
    color: #00ff00;
}

.shuffle-btn:active {
    transform: scale(0.95);
}

.shuffle-btn.active {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.25);
    color: #00ff00;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
}

.volume-slider {
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 170, 0, 0.3);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff00;
    cursor: pointer;
    border: 1px solid #00aa00;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff00;
    cursor: pointer;
    border: 1px solid #00aa00;
}

.file-list {
    list-style: none;
    border: 1px solid #003300;
    border-radius: 4px;
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 12px;
    background: rgba(0, 50, 0, 0.3);
    padding: 0;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 170, 0, 0.2);
    cursor: move;
    transition: all 0.2s ease;
    background: transparent;
}

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

.file-item:hover {
    background: rgba(0, 170, 0, 0.1);
}

.file-item.dragging {
    opacity: 0.6;
    background: rgba(0, 255, 0, 0.15);
}

.file-item.drag-over-before {
    border-top: 2px solid #00ff00;
}

.file-item.drag-over-after {
    border-bottom: 2px solid #00ff00;
}

.file-item.active {
    background: rgba(0, 255, 0, 0.15);
    color: #00ff00;
    font-weight: bold;
}

.file-item.ignored {
    opacity: 0.4;
    color: #006600;
}

.file-checkbox {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #00ff00;
}

.file-label {
    flex: 1;
    font-size: 0.85em;
    color: #00aa00;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
    cursor: pointer;
    transition: color 0.2s;
}

.file-item:hover .file-label {
    color: #00ff00;
}

.drag-handle {
    color: #00aa00;
    margin-left: 10px;
    cursor: grab;
    font-size: 0.9em;
    opacity: 0.6;
    transition: opacity 0.2s;
    user-select: none;
}

.file-item:hover .drag-handle {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.import-button {
    padding: 10px 14px;
    border: 1px solid #00aa00;
    background: rgba(0, 170, 0, 0.1);
    color: #00aa00;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.import-button:hover {
    background: rgba(0, 170, 0, 0.2);
    color: #00ff00;
    border-color: #00ff00;
}

.import-button:active {
    background: rgba(0, 170, 0, 0.3);
}

.import-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.broadcaster-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dotted #003300;
}

.login-link {
    color: #003300;
    font-size: 0.75em;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #00aa00;
}

.radio-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.toggle-switch {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #00ff00;
    background: radial-gradient(circle at 30% 30%, rgba(0, 255, 0, 0.2), rgba(0, 0, 0, 0.8));
    color: #00ff00;
    font-size: 1.2em;
    font-weight: bold;
    cursor: default;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

.toggle-switch.on {
    background: radial-gradient(circle at 30% 30%, rgba(0, 255, 0, 0.4), rgba(0, 0, 0, 0.9));
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.5), inset 0 0 20px rgba(0, 255, 0, 0.25);
}

.toggle-switch.off {
    opacity: 0.55;
}

.toggle-switch.live {
    border-color: #ff4444;
    background: radial-gradient(circle at 30% 30%, rgba(255, 68, 68, 0.5), rgba(0, 0, 0, 0.9));
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.8), inset 0 0 20px rgba(255, 68, 68, 0.4);
}

.toggle-switch.live .switch-inner {
    text-shadow: 0 0 10px #ff4444, 0 0 20px #ff0000;
    color: #ff4444;
}

.switch-inner {
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px #00ff00;
}

.status-indicator {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.95em;
}

.status-text {
    padding: 8px 16px;
    border: 1px solid #00ff00;
    border-radius: 4px;
    background: rgba(0, 255, 0, 0.05);
}

.status-text.online {
    background: rgba(0, 255, 0, 0.15);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.status-text.error {
    color: #ff6600;
    border-color: #ff6600;
    background: rgba(255, 102, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

.time-display {
    padding: 8px 16px;
    border: 1px solid #00ff00;
    border-radius: 4px;
    background: rgba(0, 255, 0, 0.05);
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

.listener-count {
    padding: 8px 16px;
    border: 1px solid #00aa00;
    border-radius: 4px;
    background: rgba(0, 170, 0, 0.05);
    font-weight: bold;
    font-size: 0.9em;
    color: #00aa00;
}

.radio-info {
    display: flex;
    gap: 30px;
    justify-content: space-around;
    padding: 20px;
    border-top: 1px dotted #00ff00;
    border-bottom: 1px dotted #00ff00;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.info-item .label {
    font-size: 0.8em;
    color: #00aa00;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item span:not(.label) {
    font-size: 1.1em;
    font-weight: bold;
    color: #00ff00;
}

.error-container {
    margin-top: 20px;
    padding: 15px;
    border: 2px solid #ff6600;
    border-radius: 4px;
    background: rgba(255, 102, 0, 0.1);
}

.error-message {
    color: #ff6600;
    font-size: 0.9em;
    text-align: center;
}

#radioAudio {
    display: none;
}

#monitorAudio {
    display: none;
}

/* Progress bar styles */
.progress-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00ff00;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00ff00;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.progress-bar::-webkit-slider-runnable-track {
    background: rgba(0, 255, 0, 0.1);
    height: 8px;
    border-radius: 4px;
}

.progress-bar::-moz-range-track {
    background: transparent;
    border: none;
}

.progress-bar:disabled {
    opacity: 1;
    pointer-events: none;
    cursor: default;
}

.progress-bar:disabled::-webkit-slider-thumb {
    cursor: default;
}

.progress-bar:disabled::-moz-range-thumb {
    cursor: default;
}

.time-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #00aa00;
}

.time {
    font-family: 'Courier New', monospace;
    min-width: 40px;
}

.time-separator {
    margin: 0 5px;
}

#currentTime {
    text-align: left;
}

#duration {
    text-align: right;
}

.archive-container {
    width: 100%;
    max-width: 500px;
}

.archive-empty {
    padding: 12px;
    color: #003300;
    font-size: 0.82em;
    cursor: default;
}

/* Responsive design */
@media (max-width: 600px) {
    .radio-container {
        padding: 30px 20px;
    }

    .radio-header h1 {
        font-size: 2em;
    }

    .toggle-switch {
        width: 100px;
        height: 100px;
        font-size: 1em;
    }

    .radio-info {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .status-indicator {
        flex-direction: column;
        gap: 10px;
    }
}

.file-item.file-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-action-buttons {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.file-action-btn {
    padding: 4px 10px;
    border: 1px solid #00aa00;
    background: rgba(0, 170, 0, 0.1);
    color: #00aa00;
    font-family: 'Courier New', monospace;
    font-size: 0.75em;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.file-action-btn:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.15);
    color: #00ff00;
}

.file-action-btn:active {
    transform: scale(0.95);
}

.file-action-btn.delete-btn {
    border-color: #ff6600;
    background: rgba(255, 102, 0, 0.1);
    color: #ff6600;
}

.file-action-btn.delete-btn:hover {
    border-color: #ff8800;
    background: rgba(255, 136, 0, 0.2);
    color: #ff8800;
}

.file-action-btn.approve-btn {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
}

.file-action-btn.approve-btn:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.file-action-btn.rename-btn {
    border-color: #4488aa;
    background: rgba(68, 136, 170, 0.1);
    color: #4488aa;
}

.file-action-btn.rename-btn:hover {
    border-color: #66bbdd;
    background: rgba(68, 136, 170, 0.2);
    color: #66bbdd;
}

.file-action-btn.archive-btn {
    border-color: #cc9900;
    background: rgba(204, 153, 0, 0.1);
    color: #cc9900;
}

.file-action-btn.archive-btn:hover {
    border-color: #ffcc00;
    background: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
}

.file-action-btn.download-btn {
    border-color: #00aaaa;
    background: rgba(0, 170, 170, 0.1);
    color: #00aaaa;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.file-action-btn.download-btn:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
}