/* ZÁKLADNÍ NASTAVENÍ A BARVY */
:root {
  --bg-dark: #0f0f11;
  --bg-card: #18181c;
  --accent: #e35534; /* Rocková červená */
  --text: #ffffff;
  --text-muted: #aaaaaa;
}

/* Regular - Běžné písmo */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}

/* Bold - Tučné písmo */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/montserrat-v31-latin-700.woff2') format('woff2');
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--accent);
}

/* HEADER A NAVIGACE */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 15, 17, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #222;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  position: relative;
}

.logo-img {
  position: absolute;
  top: -10px;
  left: 1.5rem;
  height: 120px;
  width: auto;
  display: block;
  z-index: 1001;
}

.logo-img-big {
  position: relative;
  max-width: 100%;
  height: auto; /* Zaručí správný dopočet výšky podle HTML atributů */
  aspect-ratio: 384 / 300; /* Moderní způsob rezervace místa */
  display: block;
  z-index: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin-left: auto;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
  margin-left: auto;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* HERO SEKCE */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.7), var(--bg-dark)), url('images/bg.webp') center/contain no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1rem 3rem 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* TLAČÍTKA */
.btn {
  background: var(--accent);
  color: #000;
  padding: 0.8rem 2rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn:hover {
  background: #c04020;
  color: #fff;
}

/* OBSAHOVÉ SEKCE */
section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50%;
  height: 4px;
  background: var(--accent);
}

/* KARTA NEJBLIŽŠÍHO KONCERTU (HERO) */
.next-event-card {
  position: relative;
  margin: 2rem auto 0 auto;
  max-width: 700px;
  padding: 1.2rem 1.5rem;
  background: rgba(15, 15, 15, 0.85);
  border: 2px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(227, 85, 52, 0.4);
  backdrop-filter: blur(5px);
  text-align: center;
}

.next-event-badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.next-event-title {
  font-size: 1.4rem;
  margin: 0.3rem 0;
  color: #fff;
}

.next-event-info {
  font-size: 0.95rem;
  color: #ccc;
  margin: 0;
}

/* SEZNAM KONCERTŮ */
.   s-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gig-item {
  background: var(--bg-card);
  min-height: 100px;
  padding: 1.5rem;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 140px 100px 1fr auto; 
  align-items: center;
  gap: 15px;
  border-left: 4px solid var(--accent);
}

.gig-date {
  font-weight: 900;
  color: var(--accent);
  font-size: 1.2rem;
  white-space: nowrap;
}

.gig-time {
  color: #a0a0a0;
}

.gig-info { 
  flex-grow: 1; 
}

.gig-venue { 
  font-size: 1.1rem; 
  font-weight: 700; 
}

/* FOTOGALERIE (3 NA ŘÁDEK) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #222;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-card.hidden {
  display: none;
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  transition: background 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.2) 100%);
}

.album-date { color: var(--accent); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.album-title { font-size: 1.1rem; font-weight: 700; margin: 0.2rem 0; }
.album-count { color: var(--text-muted); font-size: 0.85rem; }

/* LIGHTBOX MODAL */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-header {
  position: absolute;
  top: 20px;
  left: 25px;
  color: #fff;
  z-index: 2010;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity 0.25s ease-in-out;
  opacity: 1;
}

.lightbox-img.fade-out { opacity: 0; }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 2010;
}

.lightbox-close:hover { color: var(--accent); }

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.3s;
}

.lightbox-btn:hover { background: var(--accent); }
.lightbox-btn.prev { left: -60px; }
.lightbox-btn.next { right: -60px; }

.lightbox-counter {
  margin-top: 15px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* VIDEO GALERIE */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.video-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #222;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.video-card.hidden {
  display: none;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info {
  padding: 1rem;
}

.video-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.video-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.yt-facade {
  position: relative;
  /* ... */
}

.yt-play-btn {
  position: absolute;
  z-index: 2; /* Ujistí se, že tlačítko leží NAD obrázkem */
  /* ... */
}

/* MP3 PŘEHRÁVAČ A PLAYLIST */
.audio-player-container {
  background: var(--bg-card);
  min-height: 250px;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #222;
  margin-top: 2rem;
}

.now-playing {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.playlist {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #222;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  transition: max-height 0.3s ease;
}

.playlist::-webkit-scrollbar {
  width: 8px;
}

.playlist::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.playlist::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.playlist-item {
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.2s ease;
  border-left: 3px solid transparent;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--text-muted);
}

.playlist-item.active {
  background: rgba(227, 85, 52, 0.15);
  border-left-color: var(--accent);
  //color: var(--accent);
  color:  #fff;
  font-weight: 700;
}

/* MEDIA / EPK SEKCE */
.media-grid, .epk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.media-card, .epk-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #222;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #08080a;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid #222;
}

/* RESPONSIVITA (MOBILY A TABLETY) */
@media (max-width: 900px) {
  .gallery-grid, .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .logo-img { height: 85px; top: -5px; }
  .hamburger { display: flex; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(15, 15, 17, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease-in-out;
  }
  
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.4rem; }
  
  .gig-item { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
  }
  
  .gig-item .btn { 
    width: 100%; 
    margin-top: 0.5rem; 
  }
  
  .lightbox-btn.prev { left: 10px; }
  .lightbox-btn.next { right: 10px; }
  section { padding: 3.5rem 1rem; }
}