/**
 * JOAN Styles
 * CodeSig: sgketg
 * Author: G & D Enterprises, Inc.
 */

/* Main widget container */
.joan-now-playing {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin: 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

/* Show information container */
.joan-show-info {
    margin-bottom: 15px;
}

/* Current show title */
.current-show {
    font-size: 1.3em;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.3;
}

.current-show a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.current-show a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Jock/DJ name */
.joan-jock {
    font-style: italic;
    color: #666;
    margin-bottom: 5px;
    font-size: 0.95em;
}

/* Show time display */
.show-time {
    color: #555;
    font-weight: 600;
    font-size: 0.9em;
    font-family: "Courier New", monospace;
}

/* FIXED: Image positioning - all images now under show info */
.joan-image-standard,
.joan-image-large {
    margin: 15px 0 0 0;
    text-align: center;
}

/* Standard image styling */
.joan-thumb {
    max-width: 250px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.joan-thumb:hover {
    transform: scale(1.02);
}

/* Large image styling */
.joan-thumb-large {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

/* REMOVED: Right-aligned image styles (no longer used) */
/* This fixes the issue where small images were being positioned to the right */

/* Upcoming show section */
.upcoming-show {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #666;
}

.upcoming-show strong {
    color: #333;
}

.upcoming-time {
    display: block;
    font-family: "Courier New", monospace;
    font-size: 0.85em;
    color: #777;
    margin-top: 3px;
}

/* Current time display */
.joan-current-time {
    text-align: center;
    font-size: 0.85em;
    color: #777;
    margin-bottom: 10px;
    font-family: "Courier New", monospace;
}

/* Timezone selector */
.joan-timezone-selector {
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.9em;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.joan-timezone-selector label {
    color: #666;
    margin-right: 8px;
    font-weight: 500;
}

.joan-timezone-selector select {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
    background: white;
}

/* Enhanced timezone selector with time display */
.joan-timezone-selector .joan-timezone-time {
    margin-top: 8px;
    font-size: 0.85em;
    color: #555;
    font-family: "Courier New", monospace;
    font-weight: 600;
}

/* Dark mode toggle button */
.joan-dark-mode-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.joan-dark-mode-toggle:hover {
    background: #f0f0f0;
    border-color: #999;
}

/* Center title option */
.joan-center-title {
    text-align: center;
}

/* Jock-only mode */
.joan-jock-only-mode .current-show,
.joan-jock-only-mode .joan-jock {
    display: none;
}

.joan-jock-only-mode .show-time {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* Status messages */
.joan-status-message {
    text-align: center;
    padding: 20px;
    color: #666;
}

.joan-status-icon {
    font-size: 1.5em;
    margin-right: 8px;
}

/* Status-specific styling */
.joan-status-suspended {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.joan-status-off_air {
    background: #f8d7da;
    border-color: #f5c6cb;
}

/* Loading and error states */
.joan-loading {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

.joan-error {
    text-align: center;
    padding: 20px;
    color: #d63638;
    background: #ffeaea;
    border: 1px solid #f0c2c2;
    border-radius: 4px;
}

.joan-error a {
    color: #d63638;
    font-weight: bold;
}

/* Hide elements based on settings */
.joan-hide-images .joan-thumb,
.joan-hide-images .joan-image-standard,
.joan-hide-images .joan-image-large {
    display: none;
}

.joan-hide-upcoming .upcoming-show {
    display: none;
}

/* ==========================================================================
   PREMIUM FEATURES: FRONTEND SHOW STATUS INDICATORS
   ========================================================================== */

/* Show status indicators in frontend widgets and schedules */
.joan-show-status {
    font-size: 0.7em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1.2;
}

/* Suspended show status */
.joan-show-status.joan-status-suspended {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    box-shadow: 0 1px 2px rgba(133, 100, 4, 0.1);
}

/* On Hiatus show status */
.joan-show-status.joan-status-hiatus {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    box-shadow: 0 1px 2px rgba(114, 28, 36, 0.1);
}

/* Status indicators in schedule tables */
table.joan-schedule .joan-show-status,
.joan-schedule-day-table .joan-show-status {
    font-size: 0.6em;
    padding: 1px 6px;
    margin-left: 6px;
}

/* Status indicators in upcoming shows */
.upcoming-show .joan-show-status {
    font-size: 0.65em;
    margin-left: 6px;
}

/* ========================================================================
   DAY-SEPARATED SCHEDULE STYLES (Enhanced Frontend)
   ======================================================================== */

/* Schedule container */
.joan-schedule-container {
    margin: 20px 0;
}

/* Day section headers */
.joan-schedule-day-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    margin: 25px 0 0 0;
    border-radius: 8px 8px 0 0;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* First day header (no top margin) */
.joan-schedule-day-header:first-child {
    margin-top: 0;
}

/* Individual day schedule tables */
.joan-schedule-day-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    margin-bottom: 5px;
}

/* Day-specific header colors */
.joan-sunday-header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.joan-monday-header {
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc8 100%);
}

.joan-tuesday-header {
    background: linear-gradient(135deg, #ffd3a5 0%, #ffeebc 100%);
}

.joan-wednesday-header {
    background: linear-gradient(135deg, #a8c8ec 0%, #c3d5f5 100%);
}

.joan-thursday-header {
    background: linear-gradient(135deg, #c8a2c8 0%, #e1bee7 100%);
}

.joan-friday-header {
    background: linear-gradient(135deg, #ffb3ba 0%, #ffcccc 100%);
}

.joan-saturday-header {
    background: linear-gradient(135deg, #bae1ff 0%, #d4f1ff 100%);
}

/* Day-specific table header colors */
.joan-sunday-table th {
    background-color: #ff6b87;
    color: white;
}

.joan-monday-table th {
    background-color: #4caf50;
    color: white;
}

.joan-tuesday-table th {
    background-color: #ff9800;
    color: white;
}

.joan-wednesday-table th {
    background-color: #2196f3;
    color: white;
}

.joan-thursday-table th {
    background-color: #9c27b0;
    color: white;
}

.joan-friday-table th {
    background-color: #f44336;
    color: white;
}

.joan-saturday-table th {
    background-color: #00bcd4;
    color: white;
}

/* Standard schedule table styles (for unseparated and filtered tables) */
table.joan-schedule {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

table.joan-schedule th {
    background: #0073aa;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

table.joan-schedule td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

table.joan-schedule tr:hover {
    background: #f8f9fa;
}

table.joan-schedule tr:nth-child(even) {
    background: #fafafa;
}

table.joan-schedule tr:nth-child(even):hover {
    background: #f0f0f0;
}

/* Ensure filtered schedules maintain clean appearance */
table.joan-schedule.joan-filtered-schedule,
.joan-filtered-schedule table.joan-schedule {
    border-radius: 6px;
}

.joan-filtered-schedule table.joan-schedule th {
    background: #28a745; /* Green for "What's on today" */
}

/* Day table specific styling */
.joan-schedule-day-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border: none;
}

.joan-schedule-day-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    border-left: none;
    border-right: none;
}

.joan-schedule-day-table tr:hover {
    background: rgba(0,0,0,0.02);
}

.joan-schedule-day-table tr:nth-child(even) {
    background: rgba(0,0,0,0.01);
}

.joan-schedule-day-table tr:nth-child(even):hover {
    background: rgba(0,0,0,0.03);
}

/* Empty day message */
.joan-schedule-empty-day {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 0 0 8px 8px;
}

/* Today's schedule highlighting */
.joan-today-highlight {
    background: #e7f3ff !important;
    border-left: 4px solid #0073aa;
}

.joan-current-show-highlight {
    background: #d1ecf1 !important;
    border-left: 4px solid #17a2b8;
    font-weight: bold;
}

/* Schedule filter controls */
.joan-schedule-controls {
    margin: 20px 0 15px 0;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.joan-schedule-controls label {
    font-weight: 600;
    margin-right: 10px;
    color: #495057;
}

.joan-schedule-controls select {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    color: #495057;
    font-size: 14px;
    min-width: 150px;
}

/* Upcoming shows list */
.joan-upcoming-shows {
    margin: 20px 0;
}

.joan-upcoming-item {
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #0073aa;
}

/* ========================================================================
   DAY SEPARATOR STYLING - ENHANCED SECTION DIVIDERS
   ======================================================================== */

/* Dark mode day separators */
.joan-dark-mode .joan-day-separator.joan-card {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: #ecf0f1;
    border: 1px solid #4a5c6a;
}

.joan-dark-mode .joan-day-separator.joan-card::before {
    background: rgba(255,255,255,0.1);
}

.joan-dark-mode .joan-day-separator.joan-card h3,
.joan-dark-mode .joan-day-separator.joan-card .joan-day-name {
    color: #ecf0f1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Override day-specific colors in dark mode for consistency */
.joan-dark-mode .joan-day-separator.joan-sunday,
.joan-dark-mode .joan-day-separator.joan-monday,
.joan-dark-mode .joan-day-separator.joan-tuesday,
.joan-dark-mode .joan-day-separator.joan-wednesday,
.joan-dark-mode .joan-day-separator.joan-thursday,
.joan-dark-mode .joan-day-separator.joan-friday,
.joan-dark-mode .joan-day-separator.joan-saturday {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

/* Light mode overrides for day separators */
.joan-light-mode .joan-day-separator.joan-card {
    color: white !important;
}

.joan-light-mode .joan-day-separator.joan-card h3,
.joan-light-mode .joan-day-separator.joan-card .joan-day-name {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

.joan-light-mode .joan-day-separator.joan-sunday {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
}

.joan-light-mode .joan-day-separator.joan-monday {
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc8 100%) !important;
}

.joan-light-mode .joan-day-separator.joan-tuesday {
    background: linear-gradient(135deg, #ffd3a5 0%, #ffeebc 100%) !important;
}

.joan-light-mode .joan-day-separator.joan-wednesday {
    background: linear-gradient(135deg, #a8c8ec 0%, #c3d5f5 100%) !important;
}

.joan-light-mode .joan-day-separator.joan-thursday {
    background: linear-gradient(135deg, #c8a2c8 0%, #e1bee7 100%) !important;
}

.joan-light-mode .joan-day-separator.joan-friday {
    background: linear-gradient(135deg, #ffb3ba 0%, #ffcccc 100%) !important;
}

.joan-light-mode .joan-day-separator.joan-saturday {
    background: linear-gradient(135deg, #bae1ff 0%, #d4f1ff 100%) !important;
}

/* ========================================================================
   CLASS-BASED DARK MODE STYLES (INCLUDING STATUS INDICATORS)
   ======================================================================== */

/* Dark mode main widget */
.joan-dark-mode .joan-now-playing {
    background: #2c3e50;
    border-color: #34495e;
    color: #ecf0f1;
}

.joan-dark-mode .current-show {
    color: #ecf0f1;
}

.joan-dark-mode .current-show a {
    color: #3498db;
}

.joan-dark-mode .current-show a:hover {
    color: #2980b9;
}

.joan-dark-mode .joan-jock,
.joan-dark-mode .upcoming-show {
    color: #bdc3c7;
}

.joan-dark-mode .show-time {
    color: #95a5a6;
}

.joan-dark-mode .upcoming-show {
    border-top-color: #34495e;
}

.joan-dark-mode .joan-timezone-selector select {
    background: #34495e;
    color: #ecf0f1;
    border-color: #4a5c6a;
}

.joan-dark-mode .joan-timezone-selector {
    background: #34495e;
    border-color: #4a5c6a;
    color: #ecf0f1;
}

.joan-dark-mode .joan-timezone-selector .joan-timezone-time {
    color: #bdc3c7;
}

.joan-dark-mode .joan-dark-mode-toggle {
    background: #34495e;
    border-color: #4a5c6a;
    color: #ecf0f1;
}

.joan-dark-mode .joan-dark-mode-toggle:hover {
    background: #4a5c6a;
    border-color: #5a6c7a;
}

/* Dark mode status indicators */
.joan-dark-mode .joan-show-status.joan-status-suspended {
    background: #b8860b;
    color: #fff8dc;
    border-color: #daa520;
}

.joan-dark-mode .joan-show-status.joan-status-hiatus {
    background: #8b4513;
    color: #ffeee6;
    border-color: #a0522d;
}

.joan-dark-mode .joan-schedule-day-table,
.joan-dark-mode table.joan-schedule {
    background: #2c3e50;
    color: #ecf0f1;
}

.joan-dark-mode .joan-schedule-day-table th,
.joan-dark-mode table.joan-schedule th {
    background: #34495e;
}

.joan-dark-mode .joan-schedule-day-table td,
.joan-dark-mode table.joan-schedule td {
    border-bottom-color: #4a5c6a;
}

.joan-dark-mode .joan-schedule-day-table tr:hover,
.joan-dark-mode table.joan-schedule tr:hover {
    background: #34495e;
}

.joan-dark-mode .joan-schedule-day-table tr:nth-child(even),
.joan-dark-mode table.joan-schedule tr:nth-child(even) {
    background: #2c3e50;
}

.joan-dark-mode .joan-schedule-empty-day {
    background: #34495e;
    border-color: #4a5c6a;
    color: #bdc3c7;
}

.joan-dark-mode .joan-schedule-controls {
    background: #34495e;
    border-color: #4a5c6a;
    color: #ecf0f1;
}

.joan-dark-mode .joan-schedule-controls select {
    background: #2c3e50;
    border-color: #4a5c6a;
    color: #ecf0f1;
}

.joan-dark-mode .joan-schedule-controls label {
    color: #ecf0f1;
}

.joan-dark-mode .joan-loading {
    color: #bdc3c7;
}

.joan-dark-mode .joan-error {
    background: #4a2c2a;
    border-color: #6a4c4a;
    color: #e74c3c;
}

.joan-dark-mode .joan-error a {
    color: #e74c3c;
}

.joan-dark-mode .joan-status-message {
    color: #bdc3c7;
}

.joan-dark-mode .joan-upcoming-item {
    background: #34495e;
    border-left-color: #3498db;
    color: #ecf0f1;
}

/* Dark mode overrides for highlights */
.joan-dark-mode .joan-today-highlight {
    background: #34495e !important;
    border-left-color: #3498db;
}

.joan-dark-mode .joan-current-show-highlight {
    background: #2c3e50 !important;
    border-left-color: #1abc9c;
}

/* Dark mode overrides for day headers */
.joan-dark-mode .joan-schedule-day-header {
    background: #34495e !important;
    color: #ecf0f1 !important;
}

.joan-dark-mode .joan-sunday-header {
    background: #34495e !important;
}

.joan-dark-mode .joan-monday-header {
    background: #34495e !important;
}

.joan-dark-mode .joan-tuesday-header {
    background: #34495e !important;
}

.joan-dark-mode .joan-wednesday-header {
    background: #34495e !important;
}

.joan-dark-mode .joan-thursday-header {
    background: #34495e !important;
}

.joan-dark-mode .joan-friday-header {
    background: #34495e !important;
}

.joan-dark-mode .joan-saturday-header {
    background: #34495e !important;
}

/* ========================================================================
   LIGHT MODE OVERRIDES (Including Status Indicators)
   ======================================================================== */

/* Light mode overrides to counteract system preference dark mode */
.joan-light-mode .joan-now-playing {
    background: #f9f9f9 !important;
    border-color: #ddd !important;
    color: #333 !important;
}

.joan-light-mode .current-show {
    color: #333 !important;
}

.joan-light-mode .current-show a {
    color: #0073aa !important;
}

.joan-light-mode .current-show a:hover {
    color: #005a87 !important;
}

.joan-light-mode .joan-jock,
.joan-light-mode .upcoming-show {
    color: #666 !important;
}

.joan-light-mode .show-time {
    color: #555 !important;
}

.joan-light-mode .upcoming-show {
    border-top-color: #eee !important;
}

.joan-light-mode .upcoming-show strong {
    color: #333 !important;
}

.joan-light-mode .joan-timezone-selector {
    background: #f8f9fa !important;
    border-color: #e9ecef !important;
    color: #666 !important;
}

.joan-light-mode .joan-timezone-selector select {
    background: white !important;
    color: #333 !important;
    border-color: #ccc !important;
}

.joan-light-mode .joan-timezone-selector .joan-timezone-time {
    color: #555 !important;
}

.joan-light-mode .joan-dark-mode-toggle {
    background: transparent !important;
    border-color: #ddd !important;
    color: #333 !important;
}

.joan-light-mode .joan-dark-mode-toggle:hover {
    background: #f0f0f0 !important;
    border-color: #999 !important;
}

/* Light mode status indicators */
.joan-light-mode .joan-show-status.joan-status-suspended {
    background: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffeaa7 !important;
}

.joan-light-mode .joan-show-status.joan-status-hiatus {
    background: #f8d7da !important;
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}

.joan-light-mode .joan-today-highlight {
    background: #e7f3ff !important;
    border-left-color: #0073aa !important;
}

.joan-light-mode .joan-current-show-highlight {
    background: #d1ecf1 !important;
    border-left-color: #17a2b8 !important;
}

.joan-light-mode .joan-schedule-day-header {
    color: white !important;
}

.joan-light-mode .joan-sunday-header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
}

.joan-light-mode .joan-monday-header {
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc8 100%) !important;
}

.joan-light-mode .joan-tuesday-header {
    background: linear-gradient(135deg, #ffd3a5 0%, #ffeebc 100%) !important;
}

.joan-light-mode .joan-wednesday-header {
    background: linear-gradient(135deg, #a8c8ec 0%, #c3d5f5 100%) !important;
}

.joan-light-mode .joan-thursday-header {
    background: linear-gradient(135deg, #c8a2c8 0%, #e1bee7 100%) !important;
}

.joan-light-mode .joan-friday-header {
    background: linear-gradient(135deg, #ffb3ba 0%, #ffcccc 100%) !important;
}

.joan-light-mode .joan-saturday-header {
    background: linear-gradient(135deg, #bae1ff 0%, #d4f1ff 100%) !important;
}

.joan-light-mode .joan-schedule-day-table,
.joan-light-mode table.joan-schedule {
    background: white !important;
    color: #333 !important;
}

.joan-light-mode .joan-schedule-day-table th,
.joan-light-mode table.joan-schedule th {
    color: white !important;
}

.joan-light-mode .joan-schedule-day-table td,
.joan-light-mode table.joan-schedule td {
    border-bottom-color: #eee !important;
}

.joan-light-mode .joan-schedule-day-table tr:hover,
.joan-light-mode table.joan-schedule tr:hover {
    background: #f8f9fa !important;
}

.joan-light-mode .joan-schedule-day-table tr:nth-child(even),
.joan-light-mode table.joan-schedule tr:nth-child(even) {
    background: #fafafa !important;
}

.joan-light-mode .joan-schedule-day-table tr:nth-child(even):hover,
.joan-light-mode table.joan-schedule tr:nth-child(even):hover {
    background: #f0f0f0 !important;
}

.joan-light-mode .joan-schedule-empty-day {
    background: #f9f9f9 !important;
    border-color: #ddd !important;
    color: #666 !important;
}

.joan-light-mode .joan-schedule-controls {
    background: #f8f9fa !important;
    border-color: #e9ecef !important;
    color: #495057 !important;
}

.joan-light-mode .joan-schedule-controls select {
    background: white !important;
    border-color: #ced4da !important;
    color: #495057 !important;
}

.joan-light-mode .joan-schedule-controls label {
    color: #495057 !important;
}

.joan-light-mode .joan-loading {
    color: #999 !important;
}

.joan-light-mode .joan-error {
    background: #ffeaea !important;
    border-color: #f0c2c2 !important;
    color: #d63638 !important;
}

.joan-light-mode .joan-error a {
    color: #d63638 !important;
}

.joan-light-mode .joan-status-message {
    color: #666 !important;
}

.joan-light-mode .joan-upcoming-item {
    background: #f9f9f9 !important;
    border-left-color: #0073aa !important;
    color: #333 !important;
}

/* Light mode overrides for day-specific table headers */
.joan-light-mode .joan-sunday-table th {
    background-color: #ff6b87 !important;
    color: white !important;
}

.joan-light-mode .joan-monday-table th {
    background-color: #4caf50 !important;
    color: white !important;
}

.joan-light-mode .joan-tuesday-table th {
    background-color: #ff9800 !important;
    color: white !important;
}

.joan-light-mode .joan-wednesday-table th {
    background-color: #2196f3 !important;
    color: white !important;
}

.joan-light-mode .joan-thursday-table th {
    background-color: #9c27b0 !important;
    color: white !important;
}

.joan-light-mode .joan-friday-table th {
    background-color: #f44336 !important;
    color: white !important;
}

.joan-light-mode .joan-saturday-table th {
    background-color: #00bcd4 !important;
    color: white !important;
}

/* Light mode overrides for filtered schedule */
.joan-light-mode .joan-filtered-schedule table.joan-schedule th {
    background: #28a745 !important; /* Green for "What's on today" */
    color: white !important;
}

/* Light mode overrides for general schedule table headers */
.joan-light-mode table.joan-schedule th {
    background: #0073aa !important;
    color: white !important;
}

/* Additional comprehensive light mode overrides */
.joan-light-mode .joan-current-time {
    color: #777 !important;
}

.joan-light-mode .upcoming-time {
    color: #777 !important;
}

.joan-light-mode .joan-status-suspended {
    background: #fff3cd !important;
    border-color: #ffeaa7 !important;
}

.joan-light-mode .joan-status-off_air {
    background: #f8d7da !important;
    border-color: #f5c6cb !important;
}

/* Additional specific light mode overrides for stubborn elements */
.joan-light-mode .joan-schedule-day-table th {
    color: white !important;
    background-color: inherit !important;
}

.joan-light-mode .joan-schedule-day-table td {
    color: #333 !important;
    background: white !important;
}

.joan-light-mode .joan-schedule-day-table tr:nth-child(even) td {
    background: #fafafa !important;
    color: #333 !important;
}

.joan-light-mode .joan-schedule-day-table tr:hover td {
    background: #f8f9fa !important;
    color: #333 !important;
}

.joan-light-mode .joan-schedule-day-table tr:nth-child(even):hover td {
    background: #f0f0f0 !important;
    color: #333 !important;
}

/* Comprehensive table overrides */
.joan-light-mode table.joan-schedule td {
    color: #333 !important;
    background: white !important;
}

.joan-light-mode table.joan-schedule tr:nth-child(even) td {
    background: #fafafa !important;
    color: #333 !important;
}

.joan-light-mode table.joan-schedule tr:hover td {
    background: #f8f9fa !important;
    color: #333 !important;
}

.joan-light-mode table.joan-schedule tr:nth-child(even):hover td {
    background: #f0f0f0 !important;
    color: #333 !important;
}

/* Nuclear option - override everything with maximum specificity */
.joan-light-mode.joan-light-mode .joan-schedule-day-table {
    background: white !important;
    color: #333 !important;
}

.joan-light-mode.joan-light-mode .joan-schedule-day-table th {
    color: white !important;
}

.joan-light-mode.joan-light-mode .joan-schedule-day-table td {
    color: #333 !important;
    background: white !important;
    border-bottom-color: #eee !important;
}

.joan-light-mode.joan-light-mode .joan-schedule-day-table tr {
    background: white !important;
    color: #333 !important;
}

.joan-light-mode.joan-light-mode .joan-schedule-day-table tr:nth-child(even) {
    background: #fafafa !important;
    color: #333 !important;
}

.joan-light-mode.joan-light-mode .joan-schedule-day-table tr:hover {
    background: #f8f9fa !important;
    color: #333 !important;
}

.joan-light-mode.joan-light-mode .joan-schedule-day-table tr:nth-child(even):hover {
    background: #f0f0f0 !important;
    color: #333 !important;
}

/* Apply same nuclear approach to standard tables */
.joan-light-mode.joan-light-mode table.joan-schedule {
    background: white !important;
    color: #333 !important;
}

.joan-light-mode.joan-light-mode table.joan-schedule th {
    color: white !important;
}

.joan-light-mode.joan-light-mode table.joan-schedule td {
    color: #333 !important;
    background: white !important;
    border-bottom-color: #eee !important;
}

.joan-light-mode.joan-light-mode table.joan-schedule tr {
    background: white !important;
    color: #333 !important;
}

.joan-light-mode.joan-light-mode table.joan-schedule tr:nth-child(even) {
    background: #fafafa !important;
    color: #333 !important;
}

.joan-light-mode.joan-light-mode table.joan-schedule tr:hover {
    background: #f8f9fa !important;
    color: #333 !important;
}

.joan-light-mode.joan-light-mode table.joan-schedule tr:nth-child(even):hover {
    background: #f0f0f0 !important;
    color: #333 !important;
}

/* ========================================================================
   SYSTEM PREFERENCE DARK MODE SUPPORT (Fallback)
   ======================================================================== */

/* Dark mode support for browsers that don't have JS or as fallback */
@media (prefers-color-scheme: dark) {
    .joan-now-playing:not(.joan-light-mode) {
        background: #2c3e50;
        border-color: #34495e;
        color: #ecf0f1;
    }
    
    .joan-now-playing:not(.joan-light-mode) .current-show {
        color: #ecf0f1;
    }
    
    .joan-now-playing:not(.joan-light-mode) .current-show a {
        color: #3498db;
    }
    
    .joan-now-playing:not(.joan-light-mode) .current-show a:hover {
        color: #2980b9;
    }
    
    .joan-now-playing:not(.joan-light-mode) .joan-jock,
    .joan-now-playing:not(.joan-light-mode) .upcoming-show {
        color: #bdc3c7;
    }
    
    .joan-now-playing:not(.joan-light-mode) .show-time {
        color: #95a5a6;
    }
    
    .joan-now-playing:not(.joan-light-mode) .upcoming-show {
        border-top-color: #34495e;
    }
    
    .joan-now-playing:not(.joan-light-mode) .joan-timezone-selector select {
        background: #34495e;
        color: #ecf0f1;
        border-color: #4a5c6a;
    }
    
    .joan-now-playing:not(.joan-light-mode) .joan-timezone-selector {
        background: #34495e;
        border-color: #4a5c6a;
        color: #ecf0f1;
    }
    
    .joan-now-playing:not(.joan-light-mode) .joan-timezone-selector .joan-timezone-time {
        color: #bdc3c7;
    }
    
    /* Status indicators in system dark mode */
    .joan-show-status.joan-status-suspended:not(.joan-light-mode) {
        background: #b8860b;
        color: #fff8dc;
        border-color: #daa520;
    }

    .joan-show-status.joan-status-hiatus:not(.joan-light-mode) {
        background: #8b4513;
        color: #ffeee6;
        border-color: #a0522d;
    }
    
    .joan-schedule-day-table:not(.joan-light-mode),
    table.joan-schedule:not(.joan-light-mode) {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .joan-schedule-day-table:not(.joan-light-mode) th,
    table.joan-schedule:not(.joan-light-mode) th {
        background: #34495e;
    }
    
    .joan-schedule-day-table:not(.joan-light-mode) td,
    table.joan-schedule:not(.joan-light-mode) td {
        border-bottom-color: #4a5c6a;
    }
    
    .joan-schedule-day-table:not(.joan-light-mode) tr:hover,
    table.joan-schedule:not(.joan-light-mode) tr:hover {
        background: #34495e;
    }
    
    .joan-schedule-day-table:not(.joan-light-mode) tr:nth-child(even),
    table.joan-schedule:not(.joan-light-mode) tr:nth-child(even) {
        background: #2c3e50;
    }
    
    .joan-schedule-empty-day:not(.joan-light-mode) {
        background: #34495e;
        border-color: #4a5c6a;
        color: #bdc3c7;
    }
    
    .joan-schedule-controls:not(.joan-light-mode) {
        background: #34495e;
        border-color: #4a5c6a;
        color: #ecf0f1;
    }
    
    .joan-schedule-controls:not(.joan-light-mode) select {
        background: #2c3e50;
        border-color: #4a5c6a;
        color: #ecf0f1;
    }

    /* System preference dark mode overrides for highlights */
    .joan-today-highlight:not(.joan-light-mode) {
        background: #34495e !important;
        border-left-color: #3498db;
    }

    .joan-current-show-highlight:not(.joan-light-mode) {
        background: #2c3e50 !important;
        border-left-color: #1abc9c;
    }

    /* System preference dark mode overrides for day headers */
    .joan-schedule-day-header:not(.joan-light-mode) {
        background: #34495e !important;
        color: #ecf0f1 !important;
    }

    .joan-sunday-header:not(.joan-light-mode),
    .joan-monday-header:not(.joan-light-mode),
    .joan-tuesday-header:not(.joan-light-mode),
    .joan-wednesday-header:not(.joan-light-mode),
    .joan-thursday-header:not(.joan-light-mode),
    .joan-friday-header:not(.joan-light-mode),
    .joan-saturday-header:not(.joan-light-mode) {
        background: #34495e !important;
    }
}

/* ========================================================================
   SHORTCODE LIST/GRID TOGGLE AND COPY FUNCTIONALITY
   ======================================================================== */

/* List view styling */
.joan-schedule.joan-list .joan-grid {
    display: block;
}

.joan-schedule.joan-list .joan-card {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
}

/* Grid view styling (default) */
.joan-schedule:not(.joan-list) .joan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Day separator cards - enhanced styling but keeping original behavior */
.joan-day-separator.joan-card {
    grid-column: 1 / -1; /* Full width across all columns */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    padding: 20px 15px;
    margin: 30px 0 20px 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.joan-day-separator.joan-card:first-child {
    margin-top: 0;
}

.joan-day-separator.joan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
}

.joan-day-separator.joan-card h3,
.joan-day-separator.joan-card .joan-day-name {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Day-specific separator colors */
.joan-day-separator.joan-sunday {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.joan-day-separator.joan-monday {
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc8 100%);
}

.joan-day-separator.joan-tuesday {
    background: linear-gradient(135deg, #ffd3a5 0%, #ffeebc 100%);
}

.joan-day-separator.joan-wednesday {
    background: linear-gradient(135deg, #a8c8ec 0%, #c3d5f5 100%);
}

.joan-day-separator.joan-thursday {
    background: linear-gradient(135deg, #c8a2c8 0%, #e1bee7 100%);
}

.joan-day-separator.joan-friday {
    background: linear-gradient(135deg, #ffb3ba 0%, #ffcccc 100%);
}

.joan-day-separator.joan-saturday {
    background: linear-gradient(135deg, #bae1ff 0%, #d4f1ff 100%);
}

/* Professional show card styling */
.joan-card:not(.joan-day-separator) {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.joan-card:not(.joan-day-separator):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: #0073aa;
}

.joan-card:not(.joan-day-separator)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #005a87);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.joan-card:not(.joan-day-separator):hover::before {
    opacity: 1;
}

/* Show card title styling */
.joan-card:not(.joan-day-separator) .joan-show-title,
.joan-card:not(.joan-day-separator) h3,
.joan-card:not(.joan-day-separator) h4 {
    font-size: 1.25em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.joan-card:not(.joan-day-separator) .joan-show-title a,
.joan-card:not(.joan-day-separator) h3 a,
.joan-card:not(.joan-day-separator) h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.joan-card:not(.joan-day-separator) .joan-show-title a:hover,
.joan-card:not(.joan-day-separator) h3 a:hover,
.joan-card:not(.joan-day-separator) h4 a:hover {
    color: #0073aa;
}

/* Show card time and DJ info */
.joan-card:not(.joan-day-separator) .joan-show-time,
.joan-card:not(.joan-day-separator) .joan-time-info {
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 8px;
    padding: 4px 8px;
    background: rgba(0, 115, 170, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.joan-card:not(.joan-day-separator) .joan-show-dj,
.joan-card:not(.joan-day-separator) .joan-dj-info {
    font-style: italic;
    color: #666;
    font-size: 0.95em;
    margin-bottom: 10px;
}

.joan-card:not(.joan-day-separator) .joan-show-dj::before,
.joan-card:not(.joan-day-separator) .joan-dj-info::before {
    content: "with ";
    font-weight: normal;
    color: #999;
}

/* Show card description */
.joan-card:not(.joan-day-separator) .joan-show-description,
.joan-card:not(.joan-day-separator) p {
    color: #555;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Show card details link */
.joan-card:not(.joan-day-separator) .joan-details-link,
.joan-card:not(.joan-day-separator) a[href*="details"] {
    display: inline-flex;
    align-items: center;
    color: #0073aa;
    font-size: 0.85em;
    font-weight: 500;
    text-decoration: none;
    margin-top: 12px;
    transition: color 0.2s ease;
}

.joan-card:not(.joan-day-separator) .joan-details-link:hover,
.joan-card:not(.joan-day-separator) a[href*="details"]:hover {
    color: #005a87;
}

.joan-card:not(.joan-day-separator) .joan-details-link::after,
.joan-card:not(.joan-day-separator) a[href*="details"]::after {
    content: "→";
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.joan-card:not(.joan-day-separator) .joan-details-link:hover::after,
.joan-card:not(.joan-day-separator) a[href*="details"]:hover::after {
    transform: translateX(2px);
}

/* Toolbar styling */
.joan-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.joan-toolbar .right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* View toggle buttons */
.joan-view-toggle {
    display: inline-flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.joan-view-toggle button {
    background: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.joan-view-toggle button:hover {
    background: #f0f0f0;
}

.joan-view-toggle button[aria-pressed="true"] {
    background: #0073aa;
    color: white;
}

/* Copy link button */
.joan-copy-link {
    background: #0073aa;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s ease;
}

.joan-copy-link:hover {
    background: #005a87;
}

/* Copy feedback message */
.joan-copy-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.joan-copy-feedback.joan-copy-error {
    background: #dc3545;
}

/* Dark mode support for new elements */
.joan-dark-mode .joan-toolbar {
    border-bottom-color: #4a5c6a;
}

.joan-dark-mode .joan-view-toggle {
    border-color: #4a5c6a;
}

.joan-dark-mode .joan-view-toggle button {
    background: #34495e;
    color: #ecf0f1;
    border-color: #4a5c6a;
}

.joan-dark-mode .joan-view-toggle button:hover {
    background: #4a5c6a;
}

.joan-dark-mode .joan-view-toggle button[aria-pressed="true"] {
    background: #3498db;
    color: white;
}

.joan-dark-mode .joan-copy-link {
    background: #3498db;
}

.joan-dark-mode .joan-copy-link:hover {
    background: #2980b9;
}

.joan-dark-mode .joan-schedule.joan-list .joan-card {
    background: #34495e;
    border-color: #4a5c6a;
    color: #ecf0f1;
}

/* Dark mode styling for professional show cards */
.joan-dark-mode .joan-card:not(.joan-day-separator) {
    background: #34495e;
    border-color: #4a5c6a;
    color: #ecf0f1;
}

.joan-dark-mode .joan-card:not(.joan-day-separator):hover {
    border-color: #3498db;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.joan-dark-mode .joan-card:not(.joan-day-separator)::before {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-show-title,
.joan-dark-mode .joan-card:not(.joan-day-separator) h3,
.joan-dark-mode .joan-card:not(.joan-day-separator) h4 {
    color: #ecf0f1;
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-show-title a,
.joan-dark-mode .joan-card:not(.joan-day-separator) h3 a,
.joan-dark-mode .joan-card:not(.joan-day-separator) h4 a {
    color: #ecf0f1;
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-show-title a:hover,
.joan-dark-mode .joan-card:not(.joan-day-separator) h3 a:hover,
.joan-dark-mode .joan-card:not(.joan-day-separator) h4 a:hover {
    color: #3498db;
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-show-time,
.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-time-info {
    color: #3498db;
    background: rgba(52, 152, 219, 0.15);
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-show-dj,
.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-dj-info {
    color: #bdc3c7;
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-show-dj::before,
.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-dj-info::before {
    color: #95a5a6;
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-show-description,
.joan-dark-mode .joan-card:not(.joan-day-separator) p {
    color: #bdc3c7;
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-details-link,
.joan-dark-mode .joan-card:not(.joan-day-separator) a[href*="details"] {
    color: #3498db;
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-details-link:hover,
.joan-dark-mode .joan-card:not(.joan-day-separator) a[href*="details"]:hover {
    color: #2980b9;
}

.joan-dark-mode .joan-schedule.joan-list .joan-card {
    background: #34495e;
    border-color: #4a5c6a;
    color: #ecf0f1;
}

.joan-dark-mode .joan-card:not(.joan-day-separator):hover {
    border-color: #3498db;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.joan-dark-mode .joan-card:not(.joan-day-separator)::before {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-show-title,
.joan-dark-mode .joan-card:not(.joan-day-separator) h3,
.joan-dark-mode .joan-card:not(.joan-day-separator) h4 {
    color: #ecf0f1;
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-show-title a,
.joan-dark-mode .joan-card:not(.joan-day-separator) h3 a,
.joan-dark-mode .joan-card:not(.joan-day-separator) h4 a {
    color: #ecf0f1;
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-show-title a:hover,
.joan-dark-mode .joan-card:not(.joan-day-separator) h3 a:hover,
.joan-dark-mode .joan-card:not(.joan-day-separator) h4 a:hover {
    color: #3498db;
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-show-time,
.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-time-info {
    color: #3498db;
    background: rgba(52, 152, 219, 0.15);
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-show-dj,
.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-dj-info {
    color: #bdc3c7;
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-show-dj::before,
.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-dj-info::before {
    color: #95a5a6;
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-show-description,
.joan-dark-mode .joan-card:not(.joan-day-separator) p {
    color: #bdc3c7;
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-details-link,
.joan-dark-mode .joan-card:not(.joan-day-separator) a[href*="details"] {
    color: #3498db;
}

.joan-dark-mode .joan-card:not(.joan-day-separator) .joan-details-link:hover,
.joan-dark-mode .joan-card:not(.joan-day-separator) a[href*="details"]:hover {
    color: #2980b9;
}

/* Light mode overrides */
.joan-light-mode .joan-toolbar {
    border-bottom-color: #eee !important;
}

.joan-light-mode .joan-view-toggle {
    border-color: #ddd !important;
}

.joan-light-mode .joan-view-toggle button {
    background: white !important;
    color: #333 !important;
}

.joan-light-mode .joan-view-toggle button:hover {
    background: #f0f0f0 !important;
}

.joan-light-mode .joan-view-toggle button[aria-pressed="true"] {
    background: #0073aa !important;
    color: white !important;
}

.joan-light-mode .joan-copy-link {
    background: #0073aa !important;
    color: white !important;
}

.joan-light-mode .joan-copy-link:hover {
    background: #005a87 !important;
}

.joan-light-mode .joan-schedule.joan-list .joan-card {
    background: white !important;
    border-color: #eee !important;
    color: #333 !important;
}

/* Light mode overrides for professional show cards */
.joan-light-mode .joan-card:not(.joan-day-separator) {
    background: white !important;
    border-color: #e1e5e9 !important;
    color: #333 !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator):hover {
    border-color: #0073aa !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator)::before {
    background: linear-gradient(90deg, #0073aa, #005a87) !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-show-title,
.joan-light-mode .joan-card:not(.joan-day-separator) h3,
.joan-light-mode .joan-card:not(.joan-day-separator) h4 {
    color: #2c3e50 !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-show-title a,
.joan-light-mode .joan-card:not(.joan-day-separator) h3 a,
.joan-light-mode .joan-card:not(.joan-day-separator) h4 a {
    color: #2c3e50 !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-show-title a:hover,
.joan-light-mode .joan-card:not(.joan-day-separator) h3 a:hover,
.joan-light-mode .joan-card:not(.joan-day-separator) h4 a:hover {
    color: #0073aa !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-show-time,
.joan-light-mode .joan-card:not(.joan-day-separator) .joan-time-info {
    color: #0073aa !important;
    background: rgba(0, 115, 170, 0.1) !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-show-dj,
.joan-light-mode .joan-card:not(.joan-day-separator) .joan-dj-info {
    color: #666 !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-show-dj::before,
.joan-light-mode .joan-card:not(.joan-day-separator) .joan-dj-info::before {
    color: #999 !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-show-description,
.joan-light-mode .joan-card:not(.joan-day-separator) p {
    color: #555 !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-details-link,
.joan-light-mode .joan-card:not(.joan-day-separator) a[href*="details"] {
    color: #0073aa !important;
}

/* Light mode overrides for professional show cards */
.joan-light-mode .joan-card:not(.joan-day-separator) {
    background: white !important;
    border-color: #e1e5e9 !important;
    color: #333 !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator):hover {
    border-color: #0073aa !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator)::before {
    background: linear-gradient(90deg, #0073aa, #005a87) !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-show-title,
.joan-light-mode .joan-card:not(.joan-day-separator) h3,
.joan-light-mode .joan-card:not(.joan-day-separator) h4 {
    color: #2c3e50 !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-show-title a,
.joan-light-mode .joan-card:not(.joan-day-separator) h3 a,
.joan-light-mode .joan-card:not(.joan-day-separator) h4 a {
    color: #2c3e50 !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-show-title a:hover,
.joan-light-mode .joan-card:not(.joan-day-separator) h3 a:hover,
.joan-light-mode .joan-card:not(.joan-day-separator) h4 a:hover {
    color: #0073aa !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-show-time,
.joan-light-mode .joan-card:not(.joan-day-separator) .joan-time-info {
    color: #0073aa !important;
    background: rgba(0, 115, 170, 0.1) !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-show-dj,
.joan-light-mode .joan-card:not(.joan-day-separator) .joan-dj-info {
    color: #666 !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-show-dj::before,
.joan-light-mode .joan-card:not(.joan-day-separator) .joan-dj-info::before {
    color: #999 !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-show-description,
.joan-light-mode .joan-card:not(.joan-day-separator) p {
    color: #555 !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-details-link,
.joan-light-mode .joan-card:not(.joan-day-separator) a[href*="details"] {
    color: #0073aa !important;
}

.joan-light-mode .joan-card:not(.joan-day-separator) .joan-details-link:hover,
.joan-light-mode .joan-card:not(.joan-day-separator) a[href*="details"]:hover {
    color: #005a87 !important;
}

.joan-light-mode .joan-schedule.joan-list .joan-card {
    background: white !important;
    border-color: #eee !important;
    color: #333 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .joan-now-playing {
        padding: 12px;
        font-size: 14px;
    }
    
    .current-show {
        font-size: 1.2em;
    }
    
    .joan-thumb,
    .joan-thumb-large {
        max-width: 200px;
    }
    
    .joan-dark-mode-toggle {
        position: static;
        display: block;
        margin: 0 auto 10px auto;
        width: auto;
    }
    
    /* Day-separated schedule responsive */
    .joan-schedule-day-header {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .joan-schedule-day-table,
    table.joan-schedule {
        font-size: 14px;
    }
    
    .joan-schedule-day-table th,
    .joan-schedule-day-table td,
    table.joan-schedule th,
    table.joan-schedule td {
        padding: 8px;
    }
    
    .joan-timezone-selector {
        font-size: 0.8em;
    }
    
    .joan-timezone-selector select {
        width: 100%;
        max-width: 200px;
    }
    
    .joan-timezone-selector {
        padding: 8px;
        margin: 10px 0;
    }
    
    .joan-timezone-selector .joan-timezone-time {
        font-size: 0.8em;
        margin-top: 6px;
    }
    
    .joan-schedule-controls {
        padding: 10px;
    }
    
    .joan-schedule-controls select {
        width: 100%;
        max-width: 200px;
        margin-top: 5px;
    }
    
    .joan-toolbar {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .joan-toolbar .right {
        justify-content: center;
    }
    
    .joan-copy-feedback {
        position: fixed;
        top: 10px;
        left: 10px;
        right: 10px;
        text-align: center;
    }
    
    /* Responsive grid layout - mobile first approach */
    .joan-schedule:not(.joan-list) .joan-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* On mobile, day separators and show cards stack normally */
    .joan-day-separator.joan-card,
    .joan-card:not(.joan-day-separator) {
        grid-column: auto;
    }
    
    /* Responsive show cards */
    .joan-card:not(.joan-day-separator) {
        padding: 16px;
    }
    
    .joan-card:not(.joan-day-separator) .joan-show-title,
    .joan-card:not(.joan-day-separator) h3,
    .joan-card:not(.joan-day-separator) h4 {
        font-size: 1.15em;
    }
    
    /* Day separator responsive */
    .joan-day-separator.joan-card {
        padding: 16px 12px;
        margin-bottom: 15px;
    }
    
    .joan-day-separator.joan-card h3,
    .joan-day-separator.joan-card .joan-day-name {
        font-size: 1.2em;
    }
    
    /* Mobile status indicator adjustments */
    .joan-show-status {
        font-size: 0.65em;
        padding: 1px 6px;
        margin-left: 6px;
    }
}

@media (max-width: 480px) {
    .joan-now-playing {
        padding: 10px;
        margin: 5px 0;
    }
    
    .joan-thumb,
    .joan-thumb-large {
        max-width: 150px;
    }
    
    .joan-schedule-day-header {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .joan-schedule-day-table,
    table.joan-schedule {
        font-size: 12px;
    }
    
    /* Hide less important columns on very small screens */
    .joan-schedule-day-table th:nth-child(n+4),
    .joan-schedule-day-table td:nth-child(n+4),
    table.joan-schedule th:nth-child(n+4),
    table.joan-schedule td:nth-child(n+4) {
        display: none;
    }
    
    .joan-schedule-empty-day {
        padding: 20px 15px;
        font-size: 14px;
    }
    
    /* Very small screen show cards */
    .joan-card:not(.joan-day-separator) {
        padding: 14px;
        margin-bottom: 12px;
    }
    
    .joan-card:not(.joan-day-separator) .joan-show-title,
    .joan-card:not(.joan-day-separator) h3,
    .joan-card:not(.joan-day-separator) h4 {
        font-size: 1.1em;
    }
    
    .joan-card:not(.joan-day-separator) .joan-show-time,
    .joan-card:not(.joan-day-separator) .joan-time-info {
        font-size: 0.85em;
    }
    
    .joan-card:not(.joan-day-separator) .joan-show-dj,
    .joan-card:not(.joan-day-separator) .joan-dj-info {
        font-size: 0.9em;
    }
    
    /* Day separator for very small screens */
    .joan-day-separator.joan-card {
        padding: 12px 10px;
        margin: 15px 0 10px 0;
    }
    
    .joan-day-separator.joan-card h3,
    .joan-day-separator.joan-card .joan-day-name {
        font-size: 1.1em;
        letter-spacing: 0.3px;
    }
    
    /* Very small status indicators */
    .joan-show-status {
        font-size: 0.6em;
        padding: 1px 4px;
        margin-left: 4px;
    }
}

/* Print styles */
@media print {
    .joan-now-playing {
        box-shadow: none;
        border: 2px solid #000;
    }
    
    .joan-timezone-selector,
    .joan-schedule-controls,
    .joan-dark-mode-toggle {
        display: none;
    }
    
    .current-show a {
        color: #000 !important;
        text-decoration: none;
    }
    
    .current-show a:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
    
    .joan-schedule-day-header {
        background: #000 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    /* Print status indicators with borders for visibility */
    .joan-show-status {
        background: transparent !important;
        border: 1px solid #000 !important;
        color: #000 !important;
    }
}

/* Accessibility improvements */
.joan-now-playing:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.current-show a:focus {
    outline: 2px solid #0073aa;
    outline-offset: 1px;
    border-radius: 2px;
}

.joan-schedule-controls select:focus,
.joan-dark-mode-toggle:focus {
    outline: 2px solid #0073aa;
    outline-offset: 1px;
}

/* Status indicators accessibility */
.joan-show-status:focus {
    outline: 2px solid #0073aa;
    outline-offset: 1px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .joan-thumb,
    .current-show a,
    .joan-dark-mode-toggle,
    .joan-card:not(.joan-day-separator) {
        transition: none;
    }
    
    .joan-thumb:hover,
    .joan-card:not(.joan-day-separator):hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .joan-now-playing {
        border-width: 2px;
        border-color: #000;
    }
    
    .current-show a {
        text-decoration: underline;
    }
    
    .joan-thumb {
        border: 2px solid #000;
    }
    
    .joan-schedule-day-header {
        border: 2px solid #000;
    }
    
    .joan-schedule-day-table,
    table.joan-schedule {
        border: 2px solid #000;
    }
    
    .joan-dark-mode-toggle {
        border-width: 2px;
    }
    
    /* High contrast status indicators */
    .joan-show-status {
        border-width: 2px !important;
        font-weight: 700 !important;
    }
}

/*
 * ========================================================================
 * JOAN Premium – schedule header visibility fix
 *
 * Some Android browsers implement a forced dark‑mode by inverting colours on
 * elements without an explicit colour scheme.  This caused the header row of
 * the programme schedule (Show/Time/Jock) to disappear when the site was
 * displayed in light mode because the background and text colours were both
 * inverted to white.  The following rules explicitly set the header
 * background, text colour and colour scheme for both light and dark modes.
 * They are loaded at the end of the stylesheet so they override earlier
 * declarations, ensuring the headers remain visible on all devices.
 */
body .joan-light-mode table.joan-schedule th,
body .joan-light-mode .joan-schedule-day-table th,
body .joan-light-mode .joan-today-schedule th {
    background: #0073aa !important;
    color: #ffffff !important;
    /* Prevent forced colour inversion on Android */
    color-scheme: light;
}

body .joan-dark-mode table.joan-schedule th,
body .joan-dark-mode .joan-schedule-day-table th,
body .joan-dark-mode .joan-today-schedule th {
    background: #2c3e50 !important;
    color: #ffffff !important;
    color-scheme: dark;
}