body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  /* background: #f5f5f5; */
  color: black;
  text-align: center;
  overflow-x: hidden; /* Zabrání horizontálnímu posunu */
}

header {
  background: url("/media/header-buzzking-bg.webp") no-repeat center
    center/cover;
  width: 100%;
  height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
}

h1 {
  font-size: 2em;
  font-weight: 600;
  margin: 0;
}

p {
  font-size: 0.9em;
  font-weight: 300;
  margin: 10px 0;
  color: #6b6b6b;
}

nav {
  background: rgb(255 236 219 / 90%);
  padding: 12px;
  position: sticky;
  top: 0;
  z-index: 1000;
  /* box-shadow: 0px 4px 60px rgba(0, 0, 0, 0.1); */
  display: flex;
  justify-content: center;
  gap: 15px;
  /* color: #ff3f84; */
}

nav a {
  color: #906767;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 600;
  transition: color 0.3s, transform 0.3s;
}

nav a:hover {
  color: #ff5733;
  /* transform: scale(1.1); */
}

.sticky-title {
  position: sticky;
  top: 45px;
  background: rgb(242 242 242 / 90%);
  color: #565656;
  padding: 10px;
  font-size: 0.9em;
  font-weight: 600;
  z-index: 999;
  /* box-shadow: 0px 0px 10px rgba(200, 200, 200, 0.5); */
  border-radius: 10px 10px 10px 10px;
}

section {
  padding: 0px 20px 0px 20px;
  max-width: 800px;
  margin: 0 auto;
  /* min-height: 20vh; */
  background: white;
  /* margin-bottom: 20px; */
  /* border-radius: 10px; */
  /* box-shadow: 0px 0px 4px 4px rgba(0, 0, 0, 0.1); */
}

.foot {
  width: 100px;
  padding: 10px;
}

footer {
  padding: 5px;
  background: rgba(240, 240, 230, 0.9);
  text-align: center;
  font-size: 1em;
  font-weight: bold;
  /* box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.1); */
  margin-top: 20px;
}

.video-container {
  display: block;
  position: relative;
  padding: 20px;
  max-width: 90%;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0; /* Volitelné: přidání pozadí pro lepší vizuál */
}

.audio-container {
  display: block;
  position: relative;
  padding: 20px;
  max-width: 90%;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0; /* Volitelné: přidání pozadí pro lepší vizuál */
}

video,
audio {
  width: 100%;
  display: block;
}

.custom-video {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.custom-controls {
  position: absolute;
  bottom: 20px; /* Posunuto o 20 px nahoru */
  width: calc(100% - 40px); /* Odečteme padding kontejneru */
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  border-bottom-left-radius: 10px; /* Zaoblení dole */
  border-bottom-right-radius: 10px; /* Zaoblení dole */
  transition: opacity 0.3s ease; /* Přidáno pro plynulé mizení */
  opacity: 1; /* Výchozí stav: viditelné */
}

.video-container:hover .custom-controls {
  opacity: 1; /* Při hoveru zobrazit */
  transition-delay: 0.5s; /* Zpoždění 0,5 sekundy */
}

/* Skrytí ovládacích prvků po 1 sekundě */
.video-container.hide-controls .custom-controls {
  opacity: 0; /* Skrytí */
  transition-delay: 1s; /* Zpoždění 1 sekunda */
}

.seek-bar {
  width: 100%;
  margin-bottom: 10px;
  cursor: pointer;
  -webkit-appearance: none; /* Odstranění výchozího stylu */
  appearance: none;
  height: 5px;
  background: #888;
  border-radius: 5px;
  outline: none;
}

.seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.seek-bar::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.controls-center {
  display: flex;
  gap: 10px;
}

.custom-controls button {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}

.custom-controls button:hover {
  background: rgba(255, 255, 255, 1);
}

.control-icon {
  width: 20px; /* Velikost ikon */
  height: 20px;
}

.custom-controls button.play-pause {
  font-size: 16px;
}

.custom-controls button.fullscreen {
  font-size: 16px;
}
