/* ==========================================================================
   1. CORE STYLE RESETS & TYPOGRAPHY
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #0b0c10;
    color: #c5c6c7;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   2. SITE HEADERS & FIXED TOP NAVIGATION
   ========================================================================== */
.site-header {
    background-color: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #1f2833;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#Dynastia-logo {
    /*font-size: 1.5rem;*/
    font-size: 2rem;
    font-weight: 900;
    color: #66fcf1;
    /*text-transform: uppercase;*/
    letter-spacing: 1px;
    transition: color 0.5s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Unified Menu Button System Base */
.nav-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    background-color: #1f2833;
    line-height: 1.2;
}

/* Cyan variation for Stageplan and Gallery */
.btn-cyan {
    color: #66fcf1;
    border: 1px solid #66fcf1;
}
.btn-cyan:hover {
    background-color: #66fcf1;
    color: #0b0c10;
}

/* Green distinct pop variation for Kontakt */
.btn-green {
    color: #45ea88;
    border: 1px solid #45ea88;
}
.btn-green:hover {
    background-color: #45ea88;
    color: #0b0c10;
}

#counter2 {
    font-size: 0.9rem;
    color: #45ea88;
}

/* ==========================================================================
   3. HERO IMAGES & LAYOUTS
   ========================================================================== */
.main-content {
    margin-top: 73px;
    padding-bottom: 4rem;
}

.image-container {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid #1f2833;
    background-color: #0b0c10;
}

.crop-image {
    width: 100%;
    height: 100%;
    min-height: 350px;
    max-height: 500px;
    object-fit: cover;
    object-position: center 15%;
    filter: brightness(0.85);
    display: block;
    transition: object-position 0.3s ease;
}

@media screen and (min-width: 1024px) and (orientation: landscape) {
    .image-container { max-height: 600px; }
    .crop-image { max-height: 600px; object-position: center 10%; }
}

/* ==========================================================================
   4. TOUR SECTION & MODERNIZED TIMELINE GIGS TABLE
   ========================================================================== */
.tour-section {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #1f2833;
    padding-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 1.75rem;
    color: #fff;
    font-weight: 900;
}

.admin-edit-btn {
    background: #1f2833;
    color: #c5c6c7;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #45f3ff;
    transition: all 0.2s ease;
}

.admin-edit-btn:hover {
    background: #66fcf1;
    color: #0b0c10;
}

.table-responsive-wrapper { width: 100%; overflow-x: auto; }

#TourTable {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-top: 1rem;
}

#TourTable th {
    background-color: #1f2833;
    color: #66fcf1;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 12px;
}

#TourTable td {
    padding: 16px 12px;
    border-bottom: 1px solid #1f2833;
    font-size: 0.95rem;
    color: #e5e5e5;
}

#TourTable tr:hover td {
    background-color: #151a21;
    color: #fff;
}

.td-number { font-weight: 700; color: #66fcf1; }
.td-date { font-weight: 600; color: #fff; }

/* ==========================================================================
   5. RESPONSIVE SIDEBAR DRAWER AUDIO-VIDEO ENGINE PLAYER
   ========================================================================== */
.player-drawer {
    position: fixed;
    top: 73px;
    right: -100%;
    width: 450px;
    height: calc(100vh - 73px);
    background-color: #11141a;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    padding: 1.5rem;
    overflow-y: auto;
    border-left: 1px solid #1f2833;
}

.player-drawer.open { right: 0; }

.player-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    color: #c5c6c7;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}
.close-btn:hover { color: #66fcf1; }

.player-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-video-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
}

.main-video {
    width: 100%;
    display: block; /* Removes baseline alignment white-space gaps */
    object-fit: contain; /* Keeps media from stretching vertically */
    transition: height 0.3s ease;
    background-color: #000;
}

.main-vid-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    padding: 10px 0; /* Ensures the title pushes context away and never overlaps */
}

.video-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-list-container .list {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #1f2833;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.video-list-container .list:hover,
.video-list-container .list.active {
    background: #2b3744;
}

.video-list-container .list.active .list-title { color: #66fcf1; }
.list-video { width: 60px; height: 40px; object-fit: cover; border-radius: 4px; background: #000; }
.list-title { font-size: 0.9rem; font-weight: 600; color: #e5e5e5; }

/* ==========================================================================
   6. RESPONSIVE VIEWPORT BREAKPOINTS (MEDIA QUERIES)
   ========================================================================== */
@media screen and (min-width: 1024px) and (orientation: landscape) {
    .player-drawer {
        width: 65vw !important;
        max-width: 2400px !important;
        padding: 2.5rem !important;
    }

    .player-drawer .player-container {
        display: grid !important;
        grid-template-columns: 65% 35% !important;
        gap: 2.5rem !important;
        align-items: start !important;
    }

    .player-drawer .video-list-container {
        max-height: calc(100vh - 220px) !important;
        overflow-y: auto !important;
        padding-right: 8px;
    }

    .player-drawer-header h3 { font-size: 1.8rem !important; }
    .main-vid-title { font-size: 1.4rem !important; margin-top: 12px !important; color: #fff !important; }
    .list-title { font-size: 1.05rem !important; }

    .player-drawer .video-list-container::-webkit-scrollbar { width: 6px !important; }
    .player-drawer .video-list-container::-webkit-scrollbar-thumb { background: #66fcf1 !important; border-radius: 4px !important; }
}

@media screen and (max-width: 768px) {
    .site-header { padding: 1rem; }
    .header-inner { flex-direction: column; gap: 1rem; text-align: center; }
    .header-nav { width: 100%; justify-content: center; gap: 0.5rem; }
    .nav-btn { flex: 1; justify-content: center; font-size: 0.8rem; padding: 10px 8px; }
    .player-drawer { width: 100%; top: 155px; height: calc(100vh - 155px); }
    .main-content { margin-top: 155px; }

    #TourTable, #TourTable thead, #TourTable tbody, #TourTable th, #TourTable td, #TourTable tr { display: block; }
    #TourTable thead { display: none; }
    #TourTable tr { margin-bottom: 1rem; background: #11141a; border: 1px solid #1f2833; border-radius: 6px; padding: 8px; }
    #TourTable td { border-bottom: none; padding: 6px 12px; display: flex; justify-content: space-between; align-items: center; text-align: right; font-size: 0.9rem; }
    #TourTable td::before { content: attr(data-label); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; color: #66fcf1; float: left; }
}

/* ==========================================================================
   7. ANIMATION & BLINK UTILITIES
   ========================================================================== */
.blink { animation: pulseHighlight 1.5s infinite alternate; font-weight: bold; }
@keyframes pulseHighlight {
    0% { color: #66fcf1; opacity: 0.7; }
    100% { color: #45ea88; opacity: 1; }
}

/* ==========================================================================
   8. EMBEDDED STAGEPLAN SYSTEM & SMOOTH SCROLLING
   ========================================================================== */
html { scroll-behavior: smooth; scroll-padding-top: 170px; }

.stageplan-container { max-width: 800px; margin: 4rem auto 2rem auto; padding: 0 1.5rem; }
.stageplan-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; border-bottom: 2px solid #1f2833; padding-bottom: 0.75rem; }
.stageplan-card-header h2 { font-size: 1.75rem; color: #fff; font-weight: 900; }
.stageplan-description { color: #c5c6c7; font-size: 0.95rem; margin-bottom: 1.5rem; }
.download-rider-btn { background: transparent; color: #66fcf1; padding: 8px 16px; border-radius: 4px; font-size: 0.85rem; font-weight: 600; border: 1px solid #66fcf1; transition: all 0.2s ease; }

.download-rider-btn:hover { background: #66fcf1; color: #0b0c10; }
.stageplan-image-wrapper { background: #11141a; border: 1px solid #1f2833; border-radius: 8px; padding: 1.5rem !important; display: flex !important; justify-content: center !important; align-items: center !important; box-shadow: 0 10px 40px rgba(0,0,0,0.6); width: 100% !important; max-width: 480px !important; margin: 0 auto !important; }
.stageplan-embed-img { width: 100% !important; max-width: 100% !important; height: auto !important; display: block !important; border-radius: 4px; }
@media screen and (max-width: 600px) {
    .stageplan-card-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .download-rider-btn { width: 100%; text-align: center; }
    .stageplan-image-wrapper { padding: 0.5rem !important; max-width: 100% !important; }
}
/* ==========================================================================
9. KONTAKT INFO SECTION
========================================================================== */
.contact-container {
    max-width: 800px;
    margin: 2rem auto 4rem auto;
    padding: 0 1.5rem;
}
.contact-card-header {
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #1f2833;
    padding-bottom: 0.75rem;
}
.contact-card-header h2 {
    font-size: 1.75rem;
    color: #fff;
    font-weight: 900;
}
.contact-description {
    color: #c5c6c7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.contact-item {
    background-color: #11141a;
    border: 1px solid #1f2833;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.contact-icon {
    font-size: 1.5rem;
    color: #45ea88;
}
.contact-text {
    display: flex;
    flex-direction: column;
}
.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #66fcf1;
    letter-spacing: 0.5px;
}
.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-top: 2px;
}
.contact-link {
    transition: color 0.2s ease;
}
.contact-link:hover {
    color: #45ea88;
}
/* Only triggers on mobile screen layouts */
@media screen and (max-width: 768px) {
    /* Hide the text labels cleanly */
    .header-nav .nav-text {
        display: none;
    }

    /* Transform button boxes into perfect rounded squares */
    .header-nav .nav-btn {
        flex: none;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 8px; /* Clean square corner curve */
        justify-content: center;
    }

    /* Enlarge the icons slightly inside the square buttons */
    .header-nav .nav-btn i {
        font-size: 1.25rem;
        margin: 0;
    }
}

/* ==========================================================================
   10. MODERNIZED DYNAMIC MEDIA/PHOTO GALLERY SECTION
   ========================================================================== */
.media-section {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    display: block; /* Changes parent wrapper to block level to handle sub-grids */
    width: 100%;
}

.media-group-title {
    width: 100%;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 2.5rem 0 1rem 0;
    border-bottom: 1px solid #1f2833;
    padding-bottom: 0.5rem;
    clear: both;
}

/* Container creating a uniform spacing layout grid */
.media-grid-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Individual wrapper grid items - 3 items per row on desktop */
.media-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px; /* Prevents squishing on tablet widths */
    background: #11141a;
    border: 1px solid #1f2833;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Restricts all media inner assets to safe boundaries without stretching */
.media-element {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px !important; /* Forces a shared matching height baseline */
    object-fit: cover; /* Crops center beautifully instead of stretching */
    border-radius: 4px;
    display: block;
}

/* Custom styling exception for audio timelines since native players shouldn't be 200px high */
audio.media-element {
    height: 54px !important;
    align-self: center;
}

/* Document link alignment styling */
.media-file-link {
    color: #66fcf1;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
}
.media-file-link:hover {
    color: #45ea88;
}

/* Responsive adjustment for small mobile displays */
@media screen and (max-width: 640px) {
    .media-card {
        flex: 1 1 100%; /* Spans full screen width cleanly on mobile phones */
    }
    .media-element {
        height: auto !important; /* Natural scaling adjustments for mobile screens */
    }
}

