/* ==========================================================================
   Core Reset & Layout Framework
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at 50% 50%, #121424 0%, #07070a 100%);
    color: #f3f4f6;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
}

/* ==========================================================================
   Amplified Ambient Glow Orbs (Larger, brighter, and more centered)
   ========================================================================== */
.bg-glow-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Adjust your orbs to look inside this wrapper instead of the body directly */
.bg-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.25;
}

.bg-glow-1 {
    background: #d64b4b; /* Electric Blue */
    top: -150px;
    left: -100px;
}

.bg-glow-2 {
    background: #20b8de; /* Deep Violet */
    bottom: -50px;
    right: -100px;
}

.stage-container {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Centered Typography & Branding Layout Elements
   ========================================================================== */
.stage-header-block {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stage-branding-banner {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
}

.stage-branding-banner {
    width: 100%;
    max-width: 550px;
    height: 70px;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255,255,255,0.2));
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.stage-branding-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stage-branding-banner span {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
}

#branding-logo {
    display: block;
    pointer-events: none;
}

.branding-tap-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between
}

.branding-link {
    display: block;
    height: 100%;
    width: 42% !important;
    font-size: 0;
    color: transparent;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s ease;
}

/* Subtly highlights only the active clickable areas on hover */
.branding-link:hover {
    background: rgba(255, 255, 255, 0.03);
}

.branding-link:hover {
    background: rgba(255, 255, 255, 0.03);
}

.stage-header-block h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.3rem;
    color: #3b82f6;
    letter-spacing: 2px;
}

.stage-header-block h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 3.5rem;
    line-height: 1.0;
    color: #ffffff;
    text-transform: uppercase;
    margin-top: 6px;
    letter-spacing: -1px;
}

/* ==========================================================================
   Navigation Day Selectors (Light-Refracting Variant)
   ========================================================================== */
.stage-tabs-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 auto 30px auto; /* Centered in container space */
    width: 100%;
    max-width: 850px; /* Forces exact architectural alignment with the lineup card */
}

.tab-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 10px 5px; /* Shaved down vertical and horizontal padding for tight screens */
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.75rem; /* Marginally downsized text font to prevent breaking layout lines */
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-transform: uppercase;
}

.tab-trigger.active {
    background: #ffffff;
    color: #050508;
    border-color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   The Main Grid Container Structure
   ========================================================================== */
.timetable-card-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
                inset 0 1px 0px rgba(255, 255, 255, 0.2);
}

.stage-tab-content {
    display: none;
}

.stage-tab-content.active {
    display: block;
}

.glass-timeline-grid {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Grid Rows & Text Elements
   ========================================================================== */
.timeline-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 85px;
    position: relative;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.timeline-row:last-child {
    border-bottom: none;
}

.timeline-row.past-row {
    opacity: 0.35;
    filter: grayscale(80%);
    border-left-color: transparent !important;
}

.time-col {
    width: 180px;
    min-width: 180px;
    padding: 25px 30px;
    font-weight: 800;
    font-size: 1.05rem;
    color: #9ca3af;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.artist-col {
    flex-grow: 1;
    padding: 22px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.artist-title {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.3px;
    color: #ffffff;
}

.artist-meta {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.6;
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Special Highlight Variants
   ========================================================================== */
.timeline-row.special-feature {
    background: rgba(59, 130, 246, 0.05);
}

.timeline-row.special-feature .time-col {
    color: #60a5fa;
}

.special-badge {
    align-self: flex-start;
    background: #3b82f6;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* ==========================================================================
   Active Performance Spotlight & Line Components
   ========================================================================== */
.timeline-row.current-live-row {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
    border-left: 3px solid #ff3b3b;
}

.timeline-row.current-live-row .time-col {
    color: #ffffff;
    font-weight: 900;
}

.timeline-row.current-live-row .artist-title {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.timeline-row.current-live-row .artist-meta {
    opacity: 0.9;
    color: #3b82f6;
}

.live-tracker-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff3b3b76 70%, transparent 100%);
    z-index: 100;
    pointer-events: none;
    transform: translateY(-50%);
    transition: top 0.4s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.live-tracker-tag {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ff3b3b;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(255, 59, 59, 0.4);
}

.retry-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.retry-action-btn:hover {
    background: #ffffff;
    color: #050508;
    border-color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.tab-trigger.disabled {
    opacity: 0.35;
    pointer-events: none; /* Prevents click events and hover highlights */
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
    /* Shrink the time column to keep the horizontal flow intact */
    .time-col {
        width: 85px !important;
        min-width: 85px !important;
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        text-align: right !important;
        padding-right: 12px !important;
        border-right: 1px solid rgba(255, 255, 255, 0.15) !important; /* Elegant vertical separator line */
    }

    /* Pull the artist details closer to the separator line */
    .artist-col {
        padding-left: 12px !important;
    }

    .artist-title {
        font-size: 1rem !important;
    }
    .time-separator {
        display: none !important;
    }
}

.stage-credits {
    margin-top: 48px;
    padding-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.credits-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
}

.credits-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.credit-btn {
    display: inline-block;
    text-decoration: none;
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.credit-ampersand {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.2);
}
