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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    padding: 12px;
    padding-top: 60px; /* Add space for fixed time indicator */
    line-height: 1.4;
    font-weight: 500;
}

@media (min-width: 768px) {
    body {
        padding: 20px;
        padding-top: 70px; /* More space on desktop */
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #ffd700);
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.8rem;
        margin-bottom: 30px;
        letter-spacing: 5px;
    }
    
    h1::after {
        width: 150px;
        height: 4px;
    }
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-button {
    padding: 10px 12px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: none;
    border-left: 3px solid #333;
    border-radius: 0;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button::before {
    display: none;
}

.nav-button:hover {
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    border-left-color: #ff6b35;
    transform: none;
    box-shadow: none;
}

.nav-button:hover::before {
    display: none;
}

.nav-button.active {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-left-color: #ffd700;
    color: #000;
    font-weight: 900;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

/* Bottom actions section */
.bottom-actions {
    margin-top: 20px;
    padding: 0;
    text-align: center;
    border-top: none;
}

.clear-data-btn {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    border: none;
    border-left: 3px solid #ff6666;
    border-radius: 0;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.clear-data-btn::before {
    display: none;
}

.clear-data-btn:hover {
    background: linear-gradient(135deg, #ff6666, #ff4444);
    border-left-color: #ff8888;
    box-shadow: none;
    transform: none;
}

.clear-data-btn:hover::before {
    display: none;
}

.clear-data-btn:active {
    transform: none;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

@media (min-width: 768px) {
    .nav-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.day-selector {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.day-button {
    padding: 10px 12px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: none;
    border-left: 3px solid #333;
    border-radius: 0;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-button::before {
    display: none;
}

.day-button:hover {
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    border-left-color: #ff6b35;
    transform: none;
    box-shadow: none;
}

.day-button:hover::before {
    display: none;
}

.day-button.active {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-left-color: #ffd700;
    color: #000;
    font-weight: 900;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

.day-button.active::before {
    display: none;
}

.planner-container {
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
}

.time-slot {
    margin-bottom: 8px;
    background: none;
    border-radius: 0;
    padding: 0;
    border: none;
    transition: all 0.3s ease;
    position: relative;
}

.time-slot::before {
    display: none;
}

.time-slot.selected {
    background: none;
    border: none;
    box-shadow: none;
    color: inherit;
}

.time-slot.selected::before {
    display: none;
}

.time-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-left: 4px solid #ffd700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .time-header {
        padding: 12px 16px;
    }
}

.time-label {
    font-weight: 900;
    color: #000;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    text-shadow: none;
    position: relative;
}

.time-slot.selected .time-label {
    color: #000;
    text-shadow: none;
}

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

.selected-indicator {
    padding: 4px 8px;
    background: #9333ea;
    color: #fff;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.time-slot.selected .selected-indicator {
    opacity: 1;
    transform: scale(1);
}

.clear-button {
    padding: 4px 8px;
    background: #000;
    color: #ff4444;
    border: none;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clear-button:hover {
    background: #ff4444;
    color: #000;
}

.time-slot.selected .clear-button {
    opacity: 1;
    transform: scale(1);
}

.artists-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.artist-card {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: none;
    border-left: 3px solid #333;
    border-radius: 0;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px; /* Minimum touch target size */
}

@media (min-width: 768px) {
    .artist-card {
        padding: 12px 16px;
    }
}

.artist-card::before {
    display: none;
}

.artist-card:hover {
    transform: none;
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    border-left-color: #ff6b35;
    box-shadow: none;
}

.artist-card:hover::before {
    display: none;
}

.artist-card.selected {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    border-left-color: #ffd700;
    color: #fff;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.4);
    font-weight: 700;
}

.artist-card.selected::before {
    display: none;
}

.artist-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: linear-gradient(135deg, #4a1a1a, #3a1a1a);
    border-left-color: #ff4444;
}

.artist-card.disabled:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, #4a1a1a, #3a1a1a);
    border-left-color: #ff4444;
}

.artist-card.none-option {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border-left: 3px dashed #555;
}

.artist-card.none-option:hover {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-left-color: #777;
}

.artist-card.none-option.selected {
    background: linear-gradient(135deg, #555, #444);
    border-left-color: #888;
    color: #ccc;
}

.artist-info {
    flex: 1;
    min-width: 0;
}

.artist-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-stage {
    font-size: 0.8rem;
    opacity: 0.8;
    color: #ffd700;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-card.selected .artist-stage {
    color: #ffd700;
    opacity: 1;
}

.artist-card.none-option .artist-name {
    text-align: center;
    opacity: 0.6;
    font-style: italic;
}

.selected-badge {
    width: 16px;
    height: 16px;
    background: #000;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.selected-badge::after {
    content: '✓';
    color: #ffd700;
    font-size: 10px;
    font-weight: 900;
}

.artist-card.selected .selected-badge {
    opacity: 1;
    transform: scale(1);
    background: #ffd700;
}

.artist-card.selected .selected-badge::after {
    color: #000;
}

.timeline-container {
    background: none;
    border-radius: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    position: relative;
}

.timeline {
    position: relative;
    padding: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 0;
    padding: 10px 12px;
    border: none;
    border-left: 3px solid #333;
    transition: all 0.2s ease;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
}

.timeline-item::before {
    display: none;
}

.timeline-item:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    border-left-color: #ff6b35;
}

.timeline-item:hover::before {
    display: none;
}

.timeline-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.timeline-time {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #000;
    padding: 4px 8px;
    border-radius: 2px;
    font-weight: 900;
    font-size: 0.7rem;
    text-align: center;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    margin-right: 8px;
    flex-shrink: 0;
}

.timeline-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.timeline-artist {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-stage {
    font-size: 0.8rem;
    opacity: 0.8;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-item.current {
    border-left-color: #ff9800;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.4);
    color: #000;
}

.timeline-item.current::before {
    display: none;
}

.timeline-item.current .timeline-time {
    background: linear-gradient(135deg, #ffd700, #ffeb3b);
    animation: pulse 2s infinite;
    box-shadow: none;
    color: #000;
}

.timeline-item.current .timeline-artist,
.timeline-item.current .timeline-stage {
    color: #000;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.timeline-item.next {
    border-left-color: #2196f3;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.4);
    color: #000;
}

.timeline-item.next::before {
    display: none;
}

.timeline-item.next .timeline-time {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    box-shadow: none;
    color: #000;
}

.timeline-item.next .timeline-artist,
.timeline-item.next .timeline-stage {
    color: #000;
}

.current-time-indicator {
    position: fixed;
    right: 20px;
    top: 20px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #000;
    padding: 6px 10px;
    border-radius: 2px;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
    z-index: 1000;
}

@media (max-width: 768px) {
    .current-time-indicator {
        right: 12px;
        top: 12px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    body {
        padding-top: 50px; /* Adjust for smaller mobile time indicator */
    }
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
}


.current-next-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .current-next-info {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.info-card {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 0;
    padding: 10px 12px;
    border: none;
    border-left: 3px solid #333;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card::before {
    display: none;
}

.info-card.current {
    border-left-color: #ff9800;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.4);
    color: #000;
}

.info-card.current::before {
    display: none;
}

.info-card.next {
    border-left-color: #2196f3;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.4);
    color: #000;
}

.info-card.next::before {
    display: none;
}

.info-card-title {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 2px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.info-card-artist {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-card-details {
    font-size: 0.8rem;
    opacity: 0.8;
    color: #ffd700;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-card.empty {
    opacity: 0.4;
    border-left-style: dashed;
}

.info-card.empty .info-card-artist {
    font-style: italic;
    opacity: 0.6;
}

.day-separator {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 0;
    padding: 10px 12px;
    margin: 8px 0;
    text-align: center;
    font-weight: 900;
    font-size: 1rem;
    color: #000;
    border: none;
    border-left: 4px solid #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}