/*
Theme Name: Sector56
Author: st3r4x
Version: 1.0.7
Text Domain: sector56.uk
*/

:root{
  --bg:#ffffff;
  --text:#000000;
  --muted:#6b7280;
  --border:#e5e7eb;
  --shadow: 0 14px 40px rgba(0,0,0,.06);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  font-weight: 400; /* ✅ aby text nebyl tučný */
}

a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration: underline; }

.pv-topbar{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.pv-search-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px;
}

.pv-search{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.pv-search svg{
  width: 22px;
  height: 22px;
  opacity: .55;
  flex: 0 0 auto;
}

.pv-search input{
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--text);
  background: transparent;
  font-weight: 400; /* ✅ jistota */
}

.pv-search input::placeholder{
  color: #9ca3af;
}

.pv-container{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px 70px;
}

.pv-list{
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pv-item{
  border-top: 1px solid var(--border);
  background: #fff;
}

.pv-item:first-child{ border-top: 0; }

.pv-link{
  display: block;
  padding: 16px 16px;
  font-size: 18px;
  font-weight: 400; /* ✅ bylo 600 -> netučné */
  color: #000;
}

.pv-link:hover{
  background: #fafafa;
  text-decoration: none;
}

.pv-status{
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.pv-loader{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pv-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #111;
  opacity: .12;
  animation: pvPulse 1.1s infinite ease-in-out;
}
.pv-dot:nth-child(2){ animation-delay: .12s; }
.pv-dot:nth-child(3){ animation-delay: .24s; }

@keyframes pvPulse{
  0%,100%{ transform: translateY(0); opacity:.12; }
  50%{ transform: translateY(-4px); opacity:.35; }
}

/* ✅ FIX: sentinel musí být větší (neviditelný), aby ho infinite scroll vždy chytil */
.pv-sentinel{
  height: 140px;        /* bylo 1px */
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.pv-empty{
  padding: 22px 16px;
  color: var(--muted);
  text-align: center;
}

/* Single content box */
.pv-single-content{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow);
  padding: 18px 16px;
}
.pv-single-content p{ margin: 0 0 12px; }
.pv-single-content img{ max-width:100%; height:auto; }
.pv-single-content a{ text-decoration: underline; }
.pv-single-content h2, .pv-single-content h3{ margin: 16px 0 10px; }
.pv-single-content ul, .pv-single-content ol{ padding-left: 22px; }

/* Lightbox */
.pv-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  /* ✅ bezpečný okraj nahoře/dole i na 1920×1080 */
  --pv-lb-pad: clamp(14px, 3vw, 28px);
  padding: var(--pv-lb-pad);
}
.pv-lightbox.is-open{ display:flex; }

.pv-lightbox-panel{
  width: min(1100px, 100%);
  position: relative;

  /* ✅ aby panel nikdy “nelezl” do paddingu */
  max-height: calc(100vh - (var(--pv-lb-pad) + var(--pv-lb-pad)));
}

/* ✅ shell beze změny */
.pv-player-shell{
  width: 100%;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
}

/* ✅ jistá výška (už žádná “čára”) + pořád 16:9 a responsivní */
.pv-player-wrap{
  width: 100%;
  position: relative;
  background: #000;

  /* výška = min( dostupná výška okna, 56.25vw ) */
  height: min(
    calc(100vh - (var(--pv-lb-pad) + var(--pv-lb-pad)) - 24px),
    56.25vw
  );

  /* při max šířce 1100px je 16:9 = 618.75px */
  max-height: 618.75px;

  /* bezpečnost na extrémně malých displejích */
  min-height: 180px;
}

/* video container vyplní celý responsivní box */
#video-container{
  position: absolute;
  inset: 0;
}

.pv-player-wrap iframe{
  position:absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border:0;
}

/* ✅ Hezký moderní křížek */
.pv-lightbox-close{
  position: absolute;
  top: -12px;
  right: -12px;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,.20);
  background: rgba(20,20,20,.55);
  color: rgba(255,255,255,.92);

  display: grid;
  place-items: center;

  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(10px);

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;

  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.pv-lightbox-close:hover{
  background: rgba(0,0,0,.72);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-1px);
}
.pv-lightbox-close:active{
  transform: translateY(0);
}

/* Mobile: ještě menší padding okolo přehrávače */
@media (max-width: 520px){
  .pv-lightbox{
    --pv-lb-pad: 14px;
    padding: 14px;
  }
  .pv-lightbox-close{
    top: -10px;
    right: -10px;
    width: 44px;
    height: 44px;
  }
}

/* ✅ jen strong/b bude tučné (zvýraznění) */
strong, b{
  font-weight: 600;
}