/* Timetable component — shared between pages/lineup.html and index.html */

.timetable-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 2.25rem;
}

.timetable-header h2 {
    font-family: 'Archivo', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

/* ── Grid: one column per stage ── */
.timetable-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.75rem;
}

.timetable-stage {
    border-top: 3px solid var(--stage-color, var(--border-color));
    padding-top: 1.25rem;
    animation: fadeInUp 0.3s ease both;
}

.timetable-stage-name {
    font-family: 'Archivo', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--stage-color, var(--primary-color));
    line-height: 1.1;
    margin: 0 0 0.9rem;
}

.timetable-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.timetable-slot {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.timetable-slot:hover {
    border-color: var(--stage-color, var(--border-strong));
    background: var(--bg-surface);
}

.timetable-time {
    flex-shrink: 0;
    font-family: 'Archivo Narrow', sans-serif;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    color: var(--stage-color, var(--text-body));
    white-space: nowrap;
}

.timetable-act {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 0.86rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--primary-color);
    line-height: 1.2;
}

/* ── Page wrapper widths ── */
.lineup-timetable {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0 3rem;
}

.home-timetable-section {
    padding: 4rem 2rem 4.5rem;
    max-width: 1240px;
    margin: 0 auto;
}

.home-timetable-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.home-timetable-cta {
    margin-top: 2rem;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .timetable-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .timetable-header h2 {
        font-size: 1.9rem;
    }

    .timetable-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .home-timetable-section {
        padding: 3rem 1rem 3rem;
    }
}

@media (max-width: 480px) {
    .timetable-act {
        font-size: 0.8rem;
    }

    .timetable-time {
        font-size: 0.7rem;
    }
}

/* ══════════════════════════════════════════════
   Timetable slider (Gantt-style) — pages/lineup.html only
   ══════════════════════════════════════════════ */

.tt-slider {
    --tt-hour-w: 150px;
    --tt-label-w: 128px;
    margin-bottom: 3.5rem;
}

/* Stage filter tabs */
.tt-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    padding-bottom: 0.9rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tt-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0 0 0.9rem;
    margin-bottom: -1px;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tt-tab:hover {
    color: var(--text-body);
}

.tt-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.tt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Panel header */
.tt-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.tt-panel-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tt-scroll-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* Scroll area */
.tt-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-surface);
    -webkit-overflow-scrolling: touch;
}

.tt-grid {
    position: relative;
    width: max-content;
    min-width: 100%;
}

.tt-hours {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg-surface);
}

.tt-stage-label-spacer {
    flex-shrink: 0;
    width: var(--tt-label-w);
    display: flex;
    align-items: center;
    padding: 0.7rem 0.9rem;
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--bg-surface);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    overflow: hidden;
}

.tt-hours-track {
    position: relative;
    width: calc(var(--tt-hour-w) * 15);
    height: 2.4rem;
    flex-shrink: 0;
    padding-left: 10px;
}

.tt-hour {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 0.6rem;
    font-family: 'Archivo Narrow', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.tt-row {
    display: flex;
}

.tt-row[hidden] {
    display: none;
}

.tt-stage-label {
    flex-shrink: 0;
    width: var(--tt-label-w);
    display: flex;
    align-items: center;
    padding: 0.9rem;
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--bg-surface);
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 0.74rem;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--stage-color, var(--primary-color));
    overflow: hidden;
}

.tt-track {
    position: relative;
    width: calc(var(--tt-hour-w) * 15);
    min-height: 88px;
    flex-shrink: 0;
    padding-left: 10px;
}

.tt-block {
    position: absolute;
    top: 8px;
    bottom: 8px;
    border-radius: 10px;
    background: var(--stage-color, var(--accent-color));
    background: color-mix(in srgb, var(--stage-color, var(--accent-color)) 78%, white 22%);
    padding: 0.5rem 0.65rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tt-block:hover,
.tt-block:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    outline: none;
}

.tt-block-name {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    line-height: 1.1;
    color: #17131c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-block-time {
    font-family: 'Archivo Narrow', sans-serif;
    font-weight: 700;
    font-size: 0.68rem;
    color: rgba(23, 19, 28, 0.75);
    white-space: nowrap;
}

.tt-block-genre {
    font-size: 0.64rem;
    color: rgba(23, 19, 28, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-block-star {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(23, 19, 28, 0.75);
    white-space: nowrap;
}

.tt-now-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0554f;
    z-index: 2;
    pointer-events: none;
}

.tt-now-line::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #e0554f;
}

@media (max-width: 768px) {
    .tt-slider {
        --tt-hour-w: 104px;
        --tt-label-w: 100px;
    }

    .tt-tabs {
        gap: 1.1rem;
    }

    .tt-tab {
        font-size: 0.72rem;
    }

    .tt-stage-label {
        font-size: 0.64rem;
        padding: 0.7rem 0.6rem;
    }
}

