/* === BASE (copied from RSO.BERLIN parent) === */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Dark (default) */
:root {
    --bg:        #000;
    --bg-card:   #0a0a0a;
    --bg-slot:   #111;
    --bg-addbk:  #0d0d0d;
    --border:    #222;
    --border-mid:#1e1e1e;
    --border-dim:#1a1a1a;
    --border-tl: #2a2a2a;
    --text:      #fff;
    --text-dim:  #888;
    --text-muted:#444;
    --text-faint:#333;
    --header-bg: #000;
    --pill-color:#444;
    --hour-color:#444;
    --hdr-cell:  #aaa;
    --hour-line: #1a1a1a;
}

/* Light */
body.light {
    --bg:        #f5f5f5;
    --bg-card:   #fff;
    --bg-slot:   #fafafa;
    --bg-addbk:  #f0f0f0;
    --border:    #ddd;
    --border-mid:#e0e0e0;
    --border-dim:#e8e8e8;
    --border-tl: #ccc;
    --text:      #111;
    --text-dim:  #555;
    --text-muted:#999;
    --text-faint:#bbb;
    --header-bg: #f5f5f5;
    --pill-color:#999;
    --hour-color:#bbb;
    --hdr-cell:  #777;
    --hour-line: #e8e8e8;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.4;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 14px;
    position: sticky;
    top: 0;
    background-color: var(--header-bg);
    z-index: 100;
    border-bottom: 1px solid var(--border-dim);
}

.logo { display: flex; flex-direction: column; }
.logo-a { font-size: 22px; font-weight: bold; letter-spacing: 3px; }
.logo-subtitle {
    font-size: 10px;
    font-weight: normal;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 3px;
}

main { padding: 20px; max-width: 800px; margin: 0 auto; }

.event-card {
    margin-bottom: 30px;
    background: var(--bg-card);
    padding: 15px;
    border: 1px solid var(--border);
}
.event-card h3 { font-size: 22px; margin-bottom: 5px; }
.header-content { flex-grow: 1; }
.event-dates-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 5px;
}
.event-dates { color: var(--text-dim); font-size: 13px; flex-shrink: 0; }
.event-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 11px;
    font-family: inherit;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.action-btn:hover { color: var(--text); }
.action-btn.ticket-btn { color: var(--text); text-decoration: underline; }
.action-btn.ticket-btn:hover { color: #ffb74d; }
.action-btn.copied { color: #39FF14 !important; }

.floor-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--hdr-cell);
    letter-spacing: 1px;
    padding-right: 5px;
    transition: all 0.5s ease;
}
.floor-now { display: none; font-size: 11px; font-weight: bold; letter-spacing: 2px; color: #39FF14; text-shadow: 0 0 8px rgba(57,255,20,0.6); }
.floor-title.is-live { color: #39FF14; text-shadow: 0 0 10px rgba(57,255,20,0.5); }
.floor-title.is-live .floor-now { display: block; }

.reopening-gap { height: 20px; width: 100%; }

.artist-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-dim);
    position: relative;
}
.artist-row .time {
    width: 168px;
    color: var(--text-dim);
    font-family: monospace;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}
.artist-row .name { flex-grow: 1; font-weight: 500; }
.hosting-tag { margin-left: auto; padding-left: 8px; font-size: 10px; font-style: italic; color: var(--text-muted); white-space: nowrap; align-self: center; }

/* Day color coding in list view */
.day-thu { color: #ffa040; }
.day-fri { color: #ffe060; }
.day-sat { color: #40e880; }
.day-sun { color: #40c8ff; }
.day-mon { color: #c060ff; }

/* Now playing */
.artist-row.is-live {
    border: 1px solid #39FF14;
    background: rgba(57,255,20,0.05);
    border-radius: 4px;
    margin: 4px 0;
    animation: neon-pulse 2s infinite ease-in-out;
}
@keyframes neon-pulse {
    0%   { border-color: rgba(57,255,20,0.4); box-shadow: 0 0 5px rgba(57,255,20,0.1); }
    50%  { border-color: rgba(57,255,20,1);   box-shadow: 0 0 15px rgba(57,255,20,0.3); background: rgba(57,255,20,0.1); }
    100% { border-color: rgba(57,255,20,0.4); box-shadow: 0 0 5px rgba(57,255,20,0.1); }
}

/* Accordion */
.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding-bottom: 10px;
}
.toggle-icon { font-size: 32px; font-weight: 300; color: var(--text-dim); transition: transform 0.3s; user-select: none; }
.lineup-container { display: none; margin-top: 20px; border-top: 1px solid var(--border); padding-top: 10px; }
.event-card.expanded .lineup-container { display: block; }
.event-card.expanded .toggle-icon { transform: rotate(45deg); color: #fff; }

.artist-link { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.artist-link:hover { color: #39FF14; text-decoration: underline; }
.b2b-separator { font-size: 0.85em; opacity: 0.6; font-style: italic; margin: 0 4px; }

/* View toggle */
.view-toggle { display: flex; gap: 4px; margin-bottom: 16px; }
.vt-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 4px 14px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s;
}
.vt-btn.is-active { border-color: var(--text); color: var(--text); }
.vt-btn:hover:not(.is-active) { border-color: var(--text-dim); color: var(--hdr-cell); }

/* === TIMELINE === */
.tl-outer { position: relative; }

/* Sticky floor-name header — lives outside .tl-wrapper so it never scrolls vertically */
.tl-header-bar {
    display: flex;
    background: var(--bg);
    border-bottom: 1px solid var(--border-tl);
    overflow: hidden; /* horizontal position synced via JS */
    flex-shrink: 0;
}
.tl-header-spacer {
    width: 70px;
    flex-shrink: 0;
}
.tl-header-cell {
    flex: 1;
    min-width: 0;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--hdr-cell);
    border-left: 1px solid var(--border-mid);
    transition: color 0.3s;
}
.tl-header-cell.is-live { color: #39FF14; text-shadow: 0 0 8px rgba(57,255,20,0.6); }

.tl-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 280px);
    min-height: 300px;
    padding-bottom: 8px;
}
.tl-grid { display: flex; position: relative; }
.tl-now-line {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: #39FF14;
    z-index: 10;
    pointer-events: none;
}
.tl-now-label { position: absolute; left: 4px; top: -14px; font-size: 9px; color: #39FF14; font-weight: bold; letter-spacing: 1px; }
.tl-time-col { width: 70px; flex-shrink: 0; }
.tl-time-labels { position: relative; }
.tl-hour {
    position: absolute;
    font-size: 10px;
    color: var(--hour-color);
    right: 6px;
    transform: translateY(-50%);
    white-space: nowrap;
}
/* Day markers in time column */
.tl-day-marker {
    position: absolute;
    font-size: 9px;
    color: rgba(57,255,20,0.7);
    right: 4px;
    transform: translateY(-50%);
    white-space: nowrap;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-align: right;
    line-height: 1.2;
}
/* Day separator line across floor columns */
.tl-day-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: rgba(57,255,20,0.18);
    pointer-events: none;
    z-index: 4;
}
.tl-floor-col { flex: 1; min-width: 0; border-left: 1px solid var(--border-mid); display: flex; flex-direction: column; }
.tl-floor-col .tl-col-header { color: var(--hdr-cell); font-size: 10px; justify-content: center; padding: 0 6px; transition: color 0.3s; }
.tl-floor-col .tl-col-header.is-live { color: #39FF14; text-shadow: 0 0 8px rgba(57,255,20,0.6); }
.tl-col-body { position: relative; flex: 1; }
.tl-hour-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--hour-line); pointer-events: none; }
.tl-slot {
    position: absolute;
    left: 3px; right: 3px;
    background: var(--bg-slot);
    border: 1px solid var(--border-tl);
    border-left: 3px solid var(--border);
    padding: 4px 6px;
    overflow: hidden;
    box-sizing: border-box;
    cursor: default;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.tl-slot.is-live { border-left-color: #39FF14; background: rgba(57,255,20,0.05); animation: neon-pulse 2s infinite ease-in-out; }
.tl-slot-name { display: block; font-size: 11px; font-weight: bold; line-height: 1.3; word-break: break-word; overflow-wrap: break-word; position: relative; z-index: 11; }
.tl-slot-time { display: block; font-size: 9px; color: var(--text-dim); margin-top: 2px; position: relative; z-index: 11; }
.tl-slot.is-live .tl-slot-time { color: #aaa; }
.tl-slot-hosting { display: block; font-size: 9px; font-style: italic; color: var(--text-muted); margin-top: 3px; position: relative; z-index: 11; }

/* === NOG 26 SPECIFIC === */

/* Day filter pills */
.nog-day-filter {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding: 10px 0 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.nog-day-filter::-webkit-scrollbar { display: none; }
.nog-day-pill {
    flex-shrink: 0;
    padding: 5px 14px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--pill-color);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s;
    text-align: center;
    white-space: nowrap;
    user-select: none;
}
.nog-day-pill .pill-sub { display: block; font-size: 8px; font-weight: normal; color: var(--text-faint); letter-spacing: 0.5px; margin-top: 1px; }
.nog-day-pill.active { border-color: var(--hdr-cell); color: var(--text); }
.nog-day-pill.active .pill-sub { color: var(--text-dim); }
.nog-day-pill.has-now { color: #39FF14; border-color: rgba(57,255,20,0.35); }
.nog-day-pill.has-now .pill-sub { color: rgba(57,255,20,0.45); }

/* Offline notification */
.offline-bar {
    display: none;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-dim);
    padding: 8px 20px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-align: center;
}
.offline-bar.show { display: block; }

/* PWA install prompt */
.install-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #0d0d0d;
    border-top: 1px solid #222;
    padding: 12px 20px;
    align-items: center;
    gap: 12px;
    z-index: 200;
}
.install-bar.show { display: flex; }
.install-bar p { font-size: 12px; color: #666; flex: 1; }
.install-btn {
    background: #39FF14;
    color: #000;
    border: none;
    padding: 10px 16px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}
.install-dismiss { background: none; border: none; color: #444; cursor: pointer; font-size: 20px; padding: 0 4px; line-height: 1; }

@media (max-width: 600px) {
    .artist-row .time { width: 148px; font-size: 11px; }
    .artist-row .name { font-size: 13px; }
    .tl-time-col { width: 60px; }
}
