/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
body {
    font-family: 'Oswald', Arial, sans-serif;
    color: #e0e0e0;
    background: url('/assets/images/zhatecka_brana_postapokalypsa.png') no-repeat center center fixed;
    background-size: cover;
    line-height: 1.6;
    overflow-x: hidden;
}

/* HEADER */
header {
    background: rgba(0, 0, 0, 0.8);
    padding: 25px 20px;
    text-align: center;
    border-bottom: 2px solid #777777;
}

header h1 {
    color: #e0e0e0;
    font-size: 2.8rem;
    letter-spacing: 1px;
    text-shadow: 2px 2px 6px #000;
    font-family: 'Impact', sans-serif;
}

/* NAV */
nav {
    background: rgba(15, 15, 15, 0.9);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #444444;
    padding: 10px;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    margin: 8px 15px;
    font-weight: bold;
    transition: 0.3s;
}

.nav-home {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-logo {
    height: 26px;
    width: auto;
    border-radius: 50%;
    border: 1px solid #777777;
    box-shadow: 0 0 6px rgba(0,0,0,0.8);
}

nav a:hover {
    color: #e0e0e0;
    text-shadow: 1px 1px 3px #000;
}

/* MAIN */
main {
    background: rgba(0, 0, 0, 0.78);
    margin: 30px auto;
    padding: 30px;
    max-width: 1100px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
}

/* HEADINGS */
h2 {
    color: #e0e0e0;
    border-bottom: 2px solid #444444;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-family: 'Impact', sans-serif;
}

/* LINKS */
a {
    color: #b0b0b0;
}
a:hover {
    color: #e0e0e0;
}

/* BIO */
#bio p {
    margin-bottom: 15px;
}

/* GIGS */
.gig-list {
    list-style: none;
}

.gig-item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(35, 35, 35, 0.85);
    border-left: 4px solid #777777;
    border-radius: 8px;
}

.gig-date {
    font-weight: bold;
    margin-right: 15px;
    min-width: 90px;
}

.gig-main {
    flex: 1;
}

.gig-info {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-top: 4px;
}

/* TRACKS */
/* Track row (ULTRA METAL v2) */
.track{
  display:flex;
  align-items:center;
  gap:12px;

  margin: 10px 0;
  padding: 12px 14px;

  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;

  cursor: pointer;
  user-select: none;

  transition: background .2s ease, border-color .2s ease, transform .12s ease;
}

.track::before{
  content: "▶";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 28px;
  height: 28px;
  border-radius: 10px;

  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);

  flex: 0 0 auto;
}

.track p{
  margin:0;
  color: rgba(255,255,255,.90);
  letter-spacing: .6px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

/* Hover */
.track:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}

/* Active track (přidej class v JS při kliknutí) */
.track.is-active{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.26);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.track.is-active::before{
  content:"❚❚";
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  color:#fff;
}

/* Mobil: menší padding */
@media (max-width: 768px){
  .track{ padding: 10px 12px; border-radius: 12px; }
  .track::before{ width: 26px; height: 26px; border-radius: 9px; }
  .track p{ font-size: .95rem; }
}
.tracklist{
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(0,0,0,.35);
  padding: 10px 12px;
}
.tracklist summary{
  cursor: pointer;
  color: rgba(255,255,255,.85);
  letter-spacing: .5px;
  text-transform: uppercase;
}


/* FORMS */
form {
    background: rgba(30, 30, 30, 0.9);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #777777;
}

form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 0.95rem;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: #1a1a1a;
    border: 1px solid #444444;
    color: #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #e0e0e0;
    background: #222;
}

form button {
    background: #777777;
    color: #e0e0e0;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.3s ease;
}

form button:hover {
    background: #777777;
}

/* ADMIN TABLES */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
    border: 1px solid #444;
    padding: 8px;
    text-align: left;
}

.admin-table th {
    background: rgba(60, 0, 0, 0.8);
}

.admin-table tr:nth-child(even) {
    background: rgba(25, 25, 25, 0.8);
}

/* ADMIN MENU */
.admin-menu {
    list-style: none;
    margin-top: 10px;
}

.admin-menu li {
    margin-bottom: 8px;
}

/* FOOTER */
footer {
    background: rgba(15, 15, 15, 0.85);
    text-align: center;
    padding: 15px;
    border-top: 2px solid #444444;
    font-size: 0.9rem;
    color: #e0e0e0;
}

/* ADMIN LOGIN */
.admin-body {
    background: url('/assets/images/zhatecka_brana_postapokalypsa.png') no-repeat center center fixed;
    background-size: cover;
    color: #e0e0e0;
}

.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-box {
    background: rgba(0,0,0,0.8);
    padding: 25px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 20px #000;
}

.error {
    color: #b0b0b0;
    margin-bottom: 10px;
}

.success {
    color: #80ff80;
    margin-bottom: 10px;
}

/* Gallery */
.gallery-list {
    list-style: none;
    margin: 10px 0 20px 0;
    padding: 0;
}
.gallery-list li {
    margin-bottom: 6px;
}
.gallery-list a {
    color: #b0b0b0;
    text-decoration: none;
}
.gallery-list a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}
.gallery-item img {
    width: 100%;
    border-radius: 6px;
    border: 2px solid #777777;
    box-shadow: 0 0 10px #000;
    cursor: pointer;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index: 9999;
}
.lightbox-full {
    max-width:90%;
    max-height:90%;
    border:3px solid #777777;
    box-shadow:0 0 15px #000;
}

/* Video playlist */
.video-playlist {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}
.video-main {
    flex: 2 1 300px;
}
.video-main iframe {
    width: 100%;
    max-width: 100%;
}
.video-thumbs {
    flex: 1 1 200px;
    max-height: 315px;
    overflow-y: auto;
    border-left: 2px solid #444444;
    padding-left: 10px;
}
.video-thumb {
    padding: 6px 4px;
    cursor: pointer;
    font-size: 0.9rem;
}
.video-thumb:hover {
    background: rgba(255, 76, 76, 0.1);
}
.video-list {
    list-style: none;
    margin-top: 10px;
}
.video-list li {
    margin-bottom: 6px;
}

/* MEDIA QUERIES */

/* TABLETY */
@media (max-width: 1024px) {
    header h1 {
        font-size: 2.3rem;
    }

    main {
        max-width: 95%;
        padding: 25px;
        margin: 20px auto;
    }

    nav a {
        margin: 5px 10px;
        font-size: 0.95rem;
    }
}

/* MOBILY */
@media (max-width: 768px) {
    header {
        padding: 20px 10px;
    }

    header h1 {
        font-size: 1.9rem;
    }

    nav {
        flex-direction: column;
        padding: 5px 0;
    }

    nav a {
        display: block;
        margin: 6px 0;
        padding: 8px;
    }

    main {
        margin: 15px;
        padding: 20px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .gig-item {
        flex-direction: column;
    }

    .gig-date {
        margin-bottom: 5px;
    }

    form button {
        width: 100%;
        padding: 14px;
    }
}

/* EXTRA MALÉ TELEFONY */
@media (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }

    header h1 {
        font-size: 1.6rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    main {
        padding: 15px;
    }
}


/* Hero slideshow */
#hero-slideshow {
    position: relative;
    height: 260px;
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid #444444;
    box-shadow: 0 0 20px rgba(0,0,0,0.9);
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
}

.hero-overlay h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.hero-overlay p {
    margin-bottom: 12px;
}

.hero-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #777777;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.95rem;
}

.hero-btn:hover {
    background: #777777;
}

@media (max-width: 768px) {
    #hero-slideshow {
        height: 200px;
    }
    .hero-overlay h2 {
        font-size: 1.4rem;
    }
}



/* INLINE LOGO BAR */
.hero-inline {
    display:flex;
    align-items:center;
    gap:15px;
    font-size:2rem;
    color:#777777;
    font-family:'Oswald',sans-serif;
    text-shadow:0 0 10px rgba(0,0,0,0.7);
    padding-bottom:15px;
}

.hero-logo {
    height:45px;
    filter:drop-shadow(0 0 6px #000);
}

.hero-metaltext {
    letter-spacing:2px;
}

/* MOBILE VERSION -> logo only */
@media(max-width:768px){
    .hero-metaltext { display:none; }
    .hero-inline { justify-content:center; }
    .hero-logo { height:80px; }
}

/* Remove #777777 buttons */
.hero-btn {
    background:#444 !important;
    border:1px solid #777;
    color:#eee !important;
}
.hero-btn:hover {
    background:#666 !important;
}



/* Global neutral metal theme overrides - no red */
body {
    color: #e0e0e0;
}
a {
    color: #cfcfcf !important;
}
a:hover {
    color: #777777 !important;
}
button, .btn, .hero-btn, input[type=submit] {
    background: #444444 !important;
    border: 1px solid #666666 !important;
    color: #777777 !important;
}
button:hover, .btn:hover, .hero-btn:hover, input[type=submit]:hover {
    background: #666666 !important;
    border-color: #888888 !important;
    color: #777777 !important;
}
.error, .alert {
    background: #333333 !important;
    color: #eeeeee !important;
    border-left: 4px solid #777777 !important;
}

/* Load Oswald Font */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;700&display=swap');

body, h1, h2, h3, h4, h5, h6 {
    font-family:'Oswald', sans-serif;
}

/* MP3 Player redesign */
#audio-player {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    height:60px;
    background:#111;
    border-top:2px solid #444;
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 20px;
    z-index:9999;
}

#audio-player button {
    background:#333;
    border:1px solid #555;
    color:#eee;
    padding:6px 10px;
    border-radius:4px;
    cursor:pointer;
}

#audio-player button:hover {
    background:#555;
}

#audio-player .track-title {
    color:#ccc;
    font-size:1rem;
    letter-spacing:1px;
}


/* GLOBAL NOISE OVERLAY */
body::before {
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==");
    opacity:0.18;
    mix-blend-mode:soft-light;
    z-index:-1;
}

/* RESPONSIVE NAV - SIMPLE BURGER */
.nav-toggle {
    display:none;
    position:absolute;
    right:15px;
    top:22px;
    width:28px;
    height:22px;
    cursor:pointer;
}
.nav-toggle span {
    display:block;
    height:3px;
    margin-bottom:5px;
    background:#dddddd;
}

@media (max-width: 768px) {
    nav {
        flex-direction:column;
        align-items:flex-start;
        padding-top:45px;
        display:none;
    }
    nav.nav-open {
        display:flex;
    }
    .nav-toggle {
        display:block;
    }
    header {
        position:relative;
    }
}

/* WAVESURFER PLAYER */
#wave-player {
    background:#111;
    border-radius:8px;
    padding:15px;
    margin-top:20px;
    border:1px solid #444;
}
#waveform {
    height:80px;
    margin-bottom:10px;
}
.wave-controls {
    display:flex;
    align-items:center;
    gap:10px;
}
.wave-btn {
    background:#333;
    border:1px solid #555;
    color:#eee;
    padding:4px 8px;
    cursor:pointer;
    border-radius:4px;
}
.wave-btn:hover {
    background:#555;
}
.wave-volume {
    flex:1;
}
.wave-volume input[type=range] {
    width:100%;
}

/* GLITCH LOGO EFFECT */
.nav-logo {
    transition:filter 0.2s, transform 0.2s;
}
.nav-logo:hover {
    filter:drop-shadow(0 0 6px #fff);
    transform:translateX(1px);
}

/* Ensure no red */
a, h1, h2, h3, h4, h5 {
    color:#e0e0e0;
}
