/* --- Voter Styles --- */
.joj-voter-container { display: flex; align-items: stretch; justify-content: center; gap: 20px; text-align: center; }
.joj-track-card-form { flex: 1; display: flex; }
.joj-track-card { flex: 1; padding: 20px; border: 1px solid #ccc; border-radius: 8px; display: flex; flex-direction: column; width: 100%; transition: border-color 0.3s, box-shadow 0.3s; }
.joj-track-card:hover { border-color: #0073aa; box-shadow: 0 0 10px rgba(0, 115, 170, 0.5); }
.joj-track-card-content { flex-grow: 1; }
.joj-vs { display: flex; align-items: center; font-size: 2em; font-weight: bold; }
.joj-instructions { text-align: center; margin-bottom: 20px; font-style: italic; color: #555; }
.joj-vote-button { background-color: #0073aa; color: #fff; padding: 10px 15px; border-radius: 5px; margin-top: 15px; display: inline-block; text-decoration: none; border: none; cursor: pointer; transition: background-color 0.3s; }
.joj-track-card:hover .joj-vote-button { background-color: #005f8a; }
.joj-track-card .wp-audio-shortcode { width: 100% !important; }

/* --- Form, List, and Display Styles --- */
.joj-upload-form-wrapper, .joj-track-display-wrapper { max-width: 600px; margin: 20px auto; padding: 20px; border: 1px solid #eee; border-radius: 8px; background-color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.joj-upload-form p, .joj-track-edit-form p { margin-bottom: 15px; }
.joj-upload-form label, .joj-track-edit-form label { display: block; margin-bottom: 5px; font-weight: bold; }
.joj-upload-form input[type='text'], .joj-track-edit-form input[type='text'], .joj-upload-form select, .joj-track-edit-form select, .joj-upload-form input[type='file'], .joj-track-edit-form input[type='file'], .joj-upload-form textarea, .joj-track-edit-form textarea { width: 100%; padding: 8px; box-sizing: border-box; border: 1px solid #ddd; border-radius: 4px; }
.joj-upload-form textarea, .joj-track-edit-form textarea { min-height: 100px; resize: vertical; }
.joj-success, .joj-error { padding: 15px; margin-bottom: 20px; border: 1px solid; border-radius: 4px; }
.joj-success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.joj-error { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.joj-success a { color: #0f5132; font-weight: bold; }
.joj-track-list ul { list-style-type: decimal; padding-left: 20px; }
.joj-track-list li { margin-bottom: 8px; }
.joj-track-cover { max-width: 250px; height: auto; display: block; margin: 0 auto 20px; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.joj-track-cover-placeholder { width: 250px; height: 250px; background-color: #f0f0f0; border: 1px dashed #ccc; color: #aaa; display: flex; align-items: center; justify-content: center; text-align: center; margin: 0 auto 20px; border-radius: 4px; font-family: sans-serif; font-size: 14px; }
.joj-track-info { text-align: center; margin-bottom: 20px; }
.joj-track-info h2 { margin-bottom: 5px; color: #333; }
.joj-track-info p { font-size: 0.9em; color: #777; margin-top: 0; }
.joj-track-info .genre-links a { color: #0073aa; text-decoration: none; }
.joj-track-info .genre-links a:hover { text-decoration: underline; }
.joj-lyrics-content { text-align: left; background-color: #f9f9f9; padding: 15px; border-radius: 5px; border: 1px solid #eee; margin-top: 20px; white-space: pre-wrap; font-family: monospace; font-size: 0.9em; line-height: 1.5; }
.joj-track-actions { text-align: center; margin-top: 20px; }
.joj-track-actions button { background-color: #0073aa; color: #fff; padding: 8px 15px; border-radius: 5px; border: none; cursor: pointer; transition: background-color 0.3s; }
.joj-track-actions button:hover { background-color: #005f8a; }
.joj-track-edit-form .current-cover { max-width: 150px; height: auto; display: block; margin: 10px 0; }

/* --- Art Generator Styles --- */
.joj-art-generator { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
#joj_art_preview_container { margin-top: 15px; }
#joj_art_preview_container .current-cover { max-width: 150px; height: auto; display: block; border-radius: 4px; }
.spinner { background: url(/wp-admin/images/spinner.gif) no-repeat; background-size: 20px 20px; display: none; opacity: .7; filter: alpha(opacity=70); width: 20px; height: 20px; margin: 0; }
.spinner.is-active { display: block; }

/* ==========================================================================
   Mobile Responsive Styles
   ========================================================================== */
@media (max-width: 768px) {
    .joj-voter-container { flex-direction: column; align-items: center; gap: 0; }
    .joj-vs { margin: 20px 0; font-size: 1.5em; }
    .joj-track-card-form { width: 100%; max-width: 400px; }
}