body {
    margin: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background-color: #000;
}
#loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Terminal Loader Styles */
#terminal-loader {
    font-family: monospace;
    color: white;
    background-color: #000;
    padding: 1.5rem 2rem;
    border: 1px solid red;
    font-size: 1.5rem;
    text-transform: uppercase;
}
#cursor {
    color: red;
    animation: blink 1s step-end infinite;
}
.hidden {
    display: none;
}
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}
.street-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.5s;
    opacity: 0;
    transform: translate(-50%, -50%);
}
.street-marker.is-active {
    opacity: 0.9;
    animation: lock-on 0.4s ease-out forwards;
}
.street-marker .square {
    width: 15px;
    height: 15px;
    background-color: red;
    animation: pulse-red 2s infinite;
}
.street-marker .name {
    color: white;
    font-family: monospace;
    font-size: 11px;
    text-shadow: 0 0 5px black, 0 0 5px black;
    margin-top: 5px;
    white-space: nowrap;
}
#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center; /* Center items for mobile */
    align-items: center;
    z-index: 15;
    pointer-events: auto;
    color: white;
    flex-direction: column; /* Mobile-first: stack vertically */
}
@media (min-width: 768px) { /* md breakpoint */
    #top-nav {
        flex-direction: row; /* Horizontal on larger screens */
        justify-content: space-between;
        padding: 1.5rem 2rem;
    }
}
#top-nav h1 {
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem; /* Space below title on mobile */
}
@media (min-width: 768px) {
     #top-nav h1 {
        margin-bottom: 0;
    }
}
#top-nav nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow items to wrap on small screens */
    justify-content: center;
}
#top-nav nav a {
    margin: 0.5rem;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
}
@media (min-width: 768px) {
    #top-nav nav a {
        margin-left: 2rem;
    }
}
#top-nav nav a:hover {
    opacity: 0.7;
}
#top-nav .text-link:hover {
    color: red;
    opacity: 1;
}
#top-nav .social-icon-link svg, 
#top-nav .social-icon-link img {
    width: 1.5rem;
    height: 1.5rem;
    transition: opacity 0.2s;
}
#top-nav .social-icon-link svg {
    fill: white;
}
#top-nav .social-icon-link img {
    filter: invert(1);
}
#top-nav .social-icon-link:hover svg,
#top-nav .social-icon-link:hover img {
    opacity: 0.7;
}

.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 25;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
    pointer-events: auto;
}
.page-overlay-content {
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease-in-out;
    scrollbar-width: thin;
    scrollbar-color: red #111;
}
.detail-description {
  /* This tells the browser to respect newline characters in the text */
  white-space: pre-line;
}
.page-overlay-content::-webkit-scrollbar {
    width: 8px;
}
.page-overlay-content::-webkit-scrollbar-track {
    background: #111;
}
.page-overlay-content::-webkit-scrollbar-thumb {
    background-color: red;
    border-radius: 4px;
    border: 2px solid #111;
}
.page-overlay-content.expanded {
    max-width: 800px;
}
.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}
.close-button:hover {
    color: red;
}
/* Upcoming Shows Styles */
.upcoming-show-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 640px) { /* sm breakpoint */
     .upcoming-show-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
.upcoming-show-item:last-child {
    border-bottom: none;
}
.upcoming-show-item .info h3 {
    font-weight: bold;
    color: red;
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}
.upcoming-show-item .info p {
    font-size: 1rem;
    color: #ccc;
    font-family: monospace;
}
.ticket-button {
    background-color: red;
    color: white !important; /* Override link color */
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-decoration: none; /* remove underline from a tag */
    transition: background-color 0.2s;
    white-space: nowrap; /* Prevent button text from wrapping */
    align-self: flex-start; /* Align button to start on mobile */
}
 @media (min-width: 640px) {
    .ticket-button {
        align-self: center;
    }
 }
.ticket-button:hover {
    background-color: #b91c1c; /* darkred-700 */
    opacity: 1; /* Override nav link hover opacity */
}
/* Archive List Styles */
.archive-list-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.2s;
}
.archive-list-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.archive-list-item h3 {
    font-weight: bold;
    color: red;
}
/* Archive Detail Styles */
.archive-detail-view .detail-header {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}
.archive-detail-view .detail-meta {
    font-family: monospace;
    color: #ccc;
    margin-bottom: 1.5rem;
}
.archive-detail-view .detail-description {
    margin-bottom: 2rem;
    line-height: 1.6;
    white-space: pre-line;
}
.archive-detail-view .media-list li {
    margin-bottom: 1.5rem;
}
.archive-detail-view .media-list img,
.archive-detail-view .media-list video {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.archive-detail-view .media-list audio {
    width: 100%;
}
.archive-detail-view .media-list a {
    color: red;
    text-decoration: underline;
}
.back-button {
    cursor: pointer;
    color: red;
    margin-bottom: 1rem;
    display: inline-block;
}
/* Media Carousel Styles */
.media-carousel {
    position: relative;
}

/* --- START: New Carousel Styles --- */

/* By default, hide all carousel slides. */
.media-item {
    display: none;
}

/*
  Use CSS Grid to create a single cell for the active slide.
  'place-items: center' will center everything inside it.
*/
.media-item.active {
    display: grid;
    place-items: center;
    position: relative;
    background-color: #111;
    min-height: 200px;
}

/*
  This is the key: it tells both the loader AND the media (img/video)
  to occupy the exact same grid cell, stacking them on top of each other.
*/
.media-item.active > * {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

/*
  The loader now just needs to center the spinner inside itself.
  No absolute positioning is required.
*/
.item-loader {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Keep this to ensure it's on top of the media */
}

/* --- END: New Carousel Styles --- */

.carousel-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}
.carousel-nav button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
}
.carousel-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}
.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Contact Form Styles */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form .form-control {
    width: 100%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    color: white;
    transition: border-color 0.2s;
}
.contact-form .form-control:focus {
    outline: none;
    border-color: red;
}
.contact-form .submit-button {
    background-color: red;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background-color 0.2s;
}
.contact-form .submit-button:hover {
    background-color: #b91c1c; /* darkred-700 */
}
.contact-form .submit-button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

@keyframes blink {
    from, to { color: transparent; }
    50% { color: red; }
}

@keyframes pulse-red {
    0% { background-color: rgba(255, 0, 0, 0.7); box-shadow: 0 0 5px rgba(255,0,0,0.5); }
    50% { background-color: rgba(255, 100, 100, 1); box-shadow: 0 0 15px rgba(255,0,0,0.8); }
    100% { background-color: rgba(255, 0, 0, 0.7); box-shadow: 0 0 5px rgba(255,0,0,0.5); }
}

@keyframes lock-on {
    from {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }
}
.archive-meta {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 0.4em; /* Adjusts space between items */
 line-height: 1.5; /* Improves spacing if it wraps to a new line */
                }


.archive-meta .separator {
color: #6b7280; /* De-emphasizes the slash separator */
                        }

.media-loader {
    display: flex;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: red !important;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

