.footer-sections {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem;
  background: linear-gradient(to top, #fff685, #fff8c6);
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

.footer-merch-logo {
  max-width: 100px;
  height: auto;
  margin-bottom: 0.5rem;
}

.footer-left,
.footer-middle,
.footer-right {
  flex: 1;
  padding: 1rem;
  min-width: 0;
}

.footer-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
}

.footer-middle ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.footer-middle ul li {
  margin-bottom: 0.5rem;
}

.footer-middle ul li a {
  text-decoration: none;
  transition: transform 0.4s ease, color 0.4s ease;
  display: inline-block;
  transform: translateZ(0); /* vytvorí vlastný kompozitný layer */
  backface-visibility: hidden; /* zlepší ostrenie */
  will-change: transform; /* optimalizuje pre animácie */
}

.footer-middle ul li a:hover {
  transform: scale(1.1);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
}

.footer-bottom {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(to top, #fff685, #feed00);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  z-index: 999;
}

body.dark .footer-sections {
  background: linear-gradient(to top, #222, #333);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 8px rgba(243, 219, 0, 0.4);
}

body .footer-middle a {
  color: black;
  transition: background-color 0.4s, color 0.4s;
}

body.dark .footer-middle a {
  color: #ffee00;
}

body.dark .footer-middle,
body.dark .footer-right {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark .footer-bottom {
  background: linear-gradient(to top, #333, #444);
  box-shadow: 0 -4px 8px rgba(243, 219, 0, 0.2);
}

.footer-left .social-icons {
  font-size: 1.4rem;
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
}

.footer-left .social-icons a {
  color: black;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s ease;
}

.footer-left .social-icons a:hover {
  color: #000000;
  transform: scale(1.2);
}

body.dark .footer-left .social-icons a {
  color: #ffee00;
}

body.dark .footer-left .social-icons a:hover {
  color: #ffee00;
}

.footer-merch-wrapper {
  position: relative;
  display: inline-block;
}

.footer-merch-wrapper img {
  top: 0;
  left: 0;
}

.merch-light {
  display: inline;
}

.merch-dark {
  display: none;
}

body.dark .merch-light {
  display: none;
}

body.dark .merch-dark {
  display: inline;
}

.footer-right .latest-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

body.dark .video-wrapper {
  box-shadow: 0 4px 10px rgba(255, 255, 0, 0.35);
}

/* ---- Creator Info ---- */
.creator-info {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.creator-info p {
  margin-bottom: 0.5rem;
}

.creator-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1.25rem;
}

.creator-icons a {
  color: black;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s ease;
}

.creator-icons a:hover {
  color: #000000;
  transform: scale(1.15);
}

body.dark .creator-icons a {
  color: #ffee00;
}

body.dark .creator-icons a:hover {
  color: #ffee00;
}

/* Nulovanie prípadných starých pravidiel pre wrapper iframe-u (aspect-ratio hack) */
.video-wrapper {
  position: static !important;
  padding: 0 !important; /* odstráni 56.25% top padding ak bol */
  height: auto !important;
  background: transparent !important;
}

/* Náhľad videa vo footri */
.video-preview {
  position: relative;
  display: block;
  width: 100%;
  max-width: 460px;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}
.video-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9; /* udrží pekný pomer strán */
  height: auto;
  object-fit: cover;
}
/* Jemný tmavý film cez celý náhľad (kvôli čitateľnosti ikonky) */
.video-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease;
}
.video-preview:hover::before {
  background: rgba(0, 0, 0, 0.16);
}
/* Play ikonka v perfektne presnom strede s kruhovým pozadím */
.video-preview::after {
  content: "\f04b"; /* play icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 46px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none; /* klik ide na wrapper */
}
.video-preview:hover::after {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* Modal overlay */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
}
.video-modal[aria-hidden="false"] {
  display: block;
}

/* Obsah modalu */
.video-content {
  position: relative;
  width: min(90vw, 1000px);
  aspect-ratio: 16 / 9;
  margin: 5vh auto 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.video-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Close tlačidlo */
.video-close {
  position: absolute;
  top: -48px;
  right: 0;
  font-size: 40px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

/* Kliknuteľný backdrop (mimo obsahu) */
.video-backdrop {
  position: absolute;
  inset: 0;
}

/* Malé vylepšenie pre mobily */
@media (max-width: 640px) {
  .video-close {
    top: -44px;
    font-size: 34px;
  }
  .video-content {
    margin-top: 8vh;
  }
}
