:root { 
  --bg-dark: #0a0b1e;
  --text-color: #e0e8ff;
  --accent1: #ff2dbd;
  --accent2: #00c3ff;
  --card-bg: rgba(255,255,255,0.05);
  --card-hover: rgba(255,255,255,0.15);
}

/* === ANIMOVANÉ POZADIE === */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background: linear-gradient(-45deg, #0a0b1e, #111a3d, #0a0b1e);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === HLAVIČKA === */
.fallback-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}
.fallback-header .brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--accent1);
  text-shadow: 0 0 12px var(--accent1);
}
.fallback-header nav a {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: 0.3s;
}
.fallback-header nav a:hover {
  color: var(--accent2);
  text-shadow: 0 0 8px var(--accent2);
}

/* === HLAVNÝ OBSAH === */
main { max-width: 1800px; margin: 0 auto; padding: 30px 15px 80px; }

.page-head { text-align: center; margin-bottom: 25px; }
.page-head h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--accent1);
  text-shadow: 0 0 15px var(--accent1);
}
.page-head p {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 0.95rem;
}

/* === FILTER TLAČIDLÁ === */
.filters {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px; margin-bottom: 25px;
}
.filters button {
  background: transparent;
  border: 1px solid var(--accent2);
  color: var(--text-color);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filters button.active,
.filters button:hover {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 12px var(--accent1);
}

/* === GRID STREAMOV === */
.streams {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(5, 1fr);
  padding: 10px;
}
.stream-box {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.stream-box:hover {
  background: var(--card-hover);
  box-shadow: 0 0 18px var(--accent2);
  transform: translateY(-3px);
}

/* === NADPIS A BADGE === */
.stream-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stream-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.9rem; color: var(--accent1);
}
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  color: #fff;
}
.badge-live { background: var(--accent1); box-shadow: 0 0 10px var(--accent1); }
.badge-soon { background: #444; }

/* === VIDEO A CHAT === */
.stream-body {
  display: flex; flex-direction: column;
  min-height: 220px;
}
.video-wrap { position: relative; background: #000; height: 150px; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  display: flex; justify-content: center; align-items: center;
  color: #999; height: 100%;
}

/* === CHAT === */
.chat {
  background: rgba(255,255,255,0.04);
  padding: 6px;
  font-size: 0.75rem;
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.chat-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 4px; }
.name-edit { display: flex; align-items: center; gap: 4px; }
.name-edit input {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-color);
  border-radius: 6px;
  padding: 2px 5px;
  width: 70px;
  font-size: 0.7rem;
}
.name-edit .save {
  background: var(--accent2);
  border: none;
  color: #000;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.7rem;
  cursor: pointer;
}
.messages {
  flex: 1;
  overflow-y: auto;
  margin: 5px 0;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 5px;
}
.msg {
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border-left: 2px solid var(--accent2);
  margin-bottom: 4px;
}
.msg.me { border-left-color: var(--accent1); background: rgba(255,255,255,0.1); }
.msg .meta { font-size: 0.65rem; opacity: 0.6; margin-bottom: 2px; }
.chat-send { display: flex; gap: 4px; }
.chat-send input {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #fff;
  padding: 4px 6px;
  font-size: 0.75rem;
}
.chat-send button {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 8px var(--accent1);
}

/* === META BAR === */
.meta-bar {
  padding: 6px 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.7rem;
  color: #aaa;
  display: flex;
  justify-content: space-between;
}

/* === STRÁNKOVANIE === */
.pagination {
  text-align: center;
  margin-top: 25px;
}
.pagination a {
  color: var(--accent2);
  margin: 0 5px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 10px;
  border-radius: 6px;
  transition: 0.3s;
}
.pagination a:hover {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #fff;
}

/* =======================================================
   ✅ REGISTER STRUCTURE
   ======================================================= */
.register-container {
  max-width: 400px;
  margin: 80px auto;
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.register-container h1 {
  color: var(--accent1);
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
  text-shadow: 0 0 10px var(--accent1);
}
.register-container input,
.register-container select {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 0.9rem;
}
.register-container button {
  width: 100%;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent1);
  transition: 0.3s;
}

/* =======================================================
   ✅ RESPONSIVE FIXES
   ======================================================= */
@media only screen and (orientation: portrait) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  main {
    padding: 10px !important;
  }

  .streams {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
  }

  .stream-box {
    width: 95% !important;
    max-width: 420px !important;
    border-radius: 14px !important;
    margin: 0 auto !important;
  }

  .stream-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .video-wrap,
  iframe,
  .video-placeholder {
    width: 100% !important;
    height: auto !important;
    min-height: 220px !important;
  }

  .chat {
    width: 100% !important;
    margin-top: 10px !important;
  }

  .filters {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .filters button,
  .tag-container button {
    flex: 1 1 45% !important;
    font-size: 14px !important;
    padding: 8px !important;
    border-radius: 8px !important;
  }

  .tag-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  #sidebar {
    width: 85% !important;
    left: -100% !important;
    transition: left 0.35s ease !important;
  }
  #sidebar.active { left: 0 !important; }

  .filter-toggle {
    display: block !important;
    width: 90% !important;
    margin: 10px auto !important;
    text-align: center !important;
    background: linear-gradient(90deg, #ff2dbd, #00c3ff) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: 0 0 10px #00c3ff !important;
  }
}

@media only screen and (max-width: 900px) and (orientation: landscape) {
  .streams {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 10px !important;
  }
}

@media (max-width: 700px) {
  .streams { grid-template-columns: 1fr !important; }
  .filter-toggle { display: block !important; }
  #sidebar { width: 85%; left: -100%; transition: left 0.35s ease; }
  #sidebar.active { left: 0; }
}

/* === FULLSCREEN OVERLAY === */
.live-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}
.live-overlay.active { display: flex; }
.live-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 80%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px #ff2dbd;
}
.close-btn {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  text-shadow: 0 0 10px #ff2dbd;
}
.close-btn:hover { color: #ff2dbd; }
.panel {
  display: none;
}
.panel.visible {
  display: block;
}
/* === MOBILE FIX: Hide / Show Tags + Location === */
@media only screen and (max-width: 900px) {
  #tagsPanel,
  #locationPanel {
    display: none !important;
    transition: all 0.3s ease-in-out;
  }
  #tagsPanel.visible,
  #locationPanel.visible {
    display: block !important;
  }

  /* 🔹 Pri zobrazení sa panel jemne otvorí */
  #tagsPanel.visible,
  #locationPanel.visible {
    opacity: 1;
    transform: translateY(0);
  }
  #tagsPanel,
  #locationPanel {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* === MOBILE PORTRAIT: dve videá vedľa seba === */
@media only screen and (max-width: 900px) and (orientation: portrait) {
  .streams {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    justify-items: center !important;
    padding: 10px !important;
  }

  .stream-box {
    width: 100% !important;
    max-width: 380px !important;
  }

  .video-wrap,
  iframe,
  .video-placeholder {
    width: 100% !important;
    min-height: 220px !important;
  }

  /* 🔹 Tlačidlá Tags / Location lepšie zarovnať */
  .filter-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  .pill-btn {
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 0 10px var(--accent1);
  }
}
/* =======================================================
   🔥 HOTOWO LIVE — NEW VISUAL GRID STYLE (2025)
   Inspired by Flirt4Free main grid
   ======================================================= */
/* 🔹 Desktop grid: viac kariet, menšie rozmery */
.streams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 0;
  margin-top: 20px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

/* 🔹 Každá karta fixná výška ako F4F */
.stream-box {
  position: relative;
  background: none;
  border: none;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stream-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.stream-box:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

/* 🔹 Mobile grid - zachované */
@media (max-width: 900px) {
  .streams {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 6px;
    padding: 8px;
  }
}


/* 🔹 Live gradient overlay */
.stream-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,11,30,0.9) 100%);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.stream-box:hover::after {
  opacity: 0.7;
}

/* 🔹 Creator name + LIVE badge */
.stream-title {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(0,0,0,0.6), rgba(0,0,0,0));
  z-index: 5;
}

.stream-title span {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

.badge-live {
  background: var(--accent1);
  padding: 3px 8px;
  font-size: 0.7rem;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 0 8px var(--accent1);
}

/* 🔹 Tag line under image */
.meta-bar {
  position: absolute;
  bottom: 35px;
  left: 0;
  width: 100%;
  padding: 0 12px;
  font-size: 0.75rem;
  color: #d0d0d0;
  text-shadow: 0 0 6px rgba(0,0,0,0.9);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 5;
}

/* 🔹 Hover glow around active streams */
.stream-box:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(0,195,255,0.3);
}

/* 🔹 Responsive for mobile grid */
@media (max-width: 900px) {
  .streams {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 4px;
  }
  .stream-title span {
    font-size: 0.8rem;
  }
  .meta-bar {
    font-size: 0.65rem;
  }
}
.stream-box:hover .stream-title span,
.stream-box:hover .meta-bar span {
  color: var(--accent2);
  text-shadow: 0 0 8px var(--accent2);
  transition: all 0.3s ease;
}
.support-icon {
  cursor: pointer;
  color: var(--gold);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: 0.25s;
}

.support-icon:hover {
  color: var(--accent2);
}






