/* =========================
   Mediaplayer Layout (V/26)
   Súbor: css/layout.css
   UTF-8
   ========================= */

:root{
  --KontMasterW: 800px;
  --KontMasterH: 600px;
  --KontMasterRadius: 8px;

  --PadMaster: 0px;
  --PadTop: 5px;
  --PadTopInner: 3px;
  --PadStred: 5px;
  --PadMenu: 6px;
  --PadJadro: 10px;
  --PadObsah: 7px;
  --PadBottom: 10px;

  --TopH: 50px;
  --TopRadius: 5px;
  --TopItemW: 100px;
  --TopItemRadius: 2px;

  --BottomH: 35px;
  --StredRadius: 5px;

  --MenuW: 200px;
  --MenuMinW: 100px;
  --MenuMaxW: 300px;
  --MenuRadius: 3px;
  --MenuBotH: 35px;

  --MenuPanelMinH: 70px;
  --MenuTitleH: 30px;

  --ResizerW: 8px;
  --ResizerColor: rgba(255,255,255,.10);
  --ResizerColorHover: rgba(255,255,255,.20);

  --BgBody: #0b0f14;
  --BgKont: rgba(255,255,255,0.06);
  --BgKont2: rgba(255,255,255,0.04);
  --TextMain: #ffffff;
  --TextSoft: #c0c0c0;

  --Accent: #ADC89D;
  --RowHover: rgba(255,255,255,.10);
  --RowActive: rgba(173,200,157,.25);
  --RowActiveBorder: rgba(173,200,157,.45);

  --Font: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --FontSizeBase: 14px;
  --FontSizeSmall: 10px;
  --RowH: 24px;

  --OverlayBg: rgba(0,0,0,.55);
  --OverlayRadius: 3px;
  --OverlayH: 30px;
  --OverlayFadeMs: 220ms;

  --IframeBg: #0b0f14;

  --IconSize: 16px;

  /* Logo: zdroj je v css/designManual.css: --LogoZdroj */
  --LogoMaxH: 34px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body.mp-body{
  margin:0;
  background: var(--BgBody);
  color: var(--TextMain);
  font-family: var(--Font);
  font-size: var(--FontSizeBase);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: 12px;
}

.kont{ background: var(--BgKont); border-radius: 6px; }
.kont-master{
  width: var(--KontMasterW);
  height: var(--KontMasterH);
  border-radius: var(--KontMasterRadius);
  padding: var(--PadMaster);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

/* TOP */
.kont-top{
  height: var(--TopH);
  border-radius: var(--TopRadius);
  margin: var(--PadTop);
  display:flex;
  gap: var(--PadTopInner);
  background: var(--BgKont2);
  padding: var(--PadTopInner);
}
.kont-top-item{
  width: var(--TopItemW);
  border-radius: var(--TopItemRadius);
  background: transparent;
  overflow:hidden;
}
.kont-top-center{
  flex:1;
  width:auto;
  display:flex;
  align-items:center;
  justify-content:center;
}
.mp-logo-link{ display:inline-flex; align-items:center; justify-content:center; }
.mp-logo{
  max-height: var(--LogoMaxH);
  width:auto;
  display:block;
}

/* STRED */
.kont-stred{
  flex:1;
  margin: 0 var(--PadStred);
  border-radius: var(--StredRadius);
  display:flex;
  position:relative;
  overflow:hidden;
  min-height: 0;
}

/* MENU */
.kont-stred-menu{
  width: var(--MenuW);
  min-width: var(--MenuMinW);
  max-width: var(--MenuMaxW);
  border-radius: var(--MenuRadius);
  margin: var(--PadMenu);
  display:flex;
  flex-direction:column;
  min-height: 0;
  overflow:hidden;
  position:relative;
}
.menu-stack{
  flex:1;
  min-height: 0;
  display:flex;
  flex-direction:column;
  gap: 6px;
  padding: 5px;
  padding-bottom: calc(var(--MenuBotH) + 10px);
}
.menu-panel{
  border-radius: 3px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height: var(--MenuPanelMinH);
  background: rgba(0,0,0,.10);
}
.menu-title{
  height: var(--MenuTitleH);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 8px;
  background: rgba(0,0,0,.22);
  border-radius: 3px 3px 0 0;
  white-space:nowrap;
}
.menu-title-text{ font-weight: 600; }
.menu-title-date{
  font-size: 11px;
  color: var(--Accent);
  margin-left: 8px;
  opacity:.95;
}
.menu-content{
  flex:1;
  min-height: 0;
  overflow:auto;
  padding: 6px 4px;
}
.menu-third .small-note{
  font-size: var(--FontSizeSmall);
  color: var(--TextSoft);
  padding: 4px 6px;
}

/* Splitters (vertical) */
.v-splitter{
  height: 6px;
  border-radius: 4px;
  background: var(--ResizerColor);
  cursor: row-resize;
  user-select:none;
}
.v-splitter:hover{ background: var(--ResizerColorHover); }

/* Menu bottom fixed */
.kont-stred-menu-bot{
  position:absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: var(--MenuBotH);
  border-radius: 3px;
  background: rgba(0,0,0,.16);
  display:flex;
  align-items:center;
  justify-content:center;
}
.mkbut-link{ display:flex; align-items:center; justify-content:center; width:100%; height:100%; }
.mkbut-img{ max-height: calc(var(--MenuBotH) - 8px); width:auto; display:block; }

/* Horizontal resizer between menu and core */
.h-resizer{
  width: var(--ResizerW);
  cursor: col-resize;
  background: transparent;
  align-self:stretch;
  margin: 6px 0;
  border-radius: 8px;
}
.h-resizer:hover{ background: var(--ResizerColor); }

/* JADRO */
.kont-stred-jadro{
  flex:1;
  border-radius: 3px;
  margin: var(--PadMenu);
  margin-left: var(--PadJadro);
  display:flex;
  flex-direction:column;
  min-width: 0;
  min-height: 0;
  overflow:hidden;
  background: rgba(0,0,0,.08);
}
.kont-stred-jadro-obsah{
  flex:1;
  margin: var(--PadObsah);
  border-radius: 3px;
  position:relative;
  overflow:hidden;
  background: rgba(0,0,0,.14);
  min-height: 0;
}
.kont-stred-jadro-news{
  height: 30px;
  margin: 0 var(--PadObsah);
  margin-bottom: 7px;
  border-radius: 3px;
  background: rgba(0,0,0,.10);
}
.kont-stred-jadro-plocha{
  height: 140px;
  margin: 0 var(--PadObsah) var(--PadObsah) var(--PadObsah);
  border-radius: 3px;
  position:relative;
  overflow:hidden;
  background: rgba(0,0,0,.10);
}

/* Placeholder */
.placeholder{
  padding: 10px;
  color: var(--TextSoft);
}

/* Overlay bottoms (fade in/out) */
.overlay-bottom{
  position:absolute;
  left: var(--PadBottom);
  right: var(--PadBottom);
  bottom: var(--PadBottom);
  height: var(--OverlayH);
  border-radius: var(--OverlayRadius);
  background: var(--OverlayBg);
  opacity: 0;
  pointer-events:none;
  display:flex;
  align-items:center;
  padding: 0 10px;
  gap: 10px;
  transition: opacity var(--OverlayFadeMs) ease;
}
.overlay-bottom.is-visible{
  opacity: .50;
  pointer-events:auto;
}

/* BOTTOM */
.kont-bottom{
  height: var(--BottomH);
  margin: 4px 5px 3px 5px;
  border-radius: 5px;
  display:flex;
  align-items:center;
  padding: 0 10px;
  background: var(--BgKont2);
}
.tel-label{
  color: var(--TextSoft);
  font-size: var(--FontSizeSmall);
}
.tel-link{
  color: var(--TextMain);
  font-size: var(--FontSizeSmall);
  text-decoration:none;
  margin-left: 4px;
}
.tel-link:hover{ text-decoration:underline; }

/* ===== Lists (no grid/borders) ===== */
.list-row{
  height: var(--RowH);
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 0 8px;
  border-radius: 6px;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.list-row:hover{ background: var(--RowHover); }
.list-row.is-active{
  background: var(--RowActive);
  outline: 1px solid var(--RowActiveBorder);
}

.row-left{
  display:flex;
  align-items:center;
  gap: 6px;
  min-width: 0;
  flex:1;
  overflow:hidden;
}
.row-text{
  overflow:hidden;
  text-overflow:ellipsis;
}
.row-right{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-left:auto;
}

/* Toggle icon (open/close) */
.toggle{
  width: 18px;
  height: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity:.95;
}
.sublist{
  margin: 4px 0 8px 18px;
  display:flex;
  flex-direction:column;
  gap: 2px;
}
.sub-row{
  height: var(--RowH);
  display:flex;
  align-items:center;
  padding: 0 8px;
  border-radius: 6px;
  cursor:pointer;
  gap: 8px;
  white-space:nowrap;
  font-size: 14px;
}
.sub-row:hover{ background: rgba(255,255,255,.08); }
.sub-row.is-active{
  background: var(--RowActive);
  outline: 1px solid var(--RowActiveBorder);
}

/* Icon + timer */
.svg-ico{
  width: var(--IconSize);
  height: var(--IconSize);
  flex:0 0 auto;
  display:inline-block;
}
.timer{
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0,0,0,.25);
}
.timer.is-paused{ filter: brightness(.65); }

/* Audio badge (row) */
.audio-badge{
  position:relative;
  width: 22px;
  height: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 6px;
  background: rgba(0,0,0,.20);
}
.audio-badge.is-paused{
  animation: none;
  filter: brightness(0.65);
}
.audio-counter{
  position:absolute;
  left: -40%;
  top: 0;
  bottom: 0;
  width: 70%;
  background: rgba(0,0,0,.70);
  border-radius: 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 10px;
}

/* Iframe / content */
.mp-iframe{
  width:100%;
  height:100%;
  border:0;
  background: var(--IframeBg);
}
.mp-inner{
  width:100%;
  height:100%;
  overflow:auto;
  padding: 10px;
  color: #ffffff;
}
.center-wrap{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.mp-img{
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  user-select:none;
}
.center-note{
  color: var(--TextSoft);
  padding: 10px;
  text-align:center;
}

/* =========================================
   AUDIO – pulzujúce zvýraznenie prehrávania
   ========================================= */
@keyframes audioPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(173, 200, 157, 0.65),
      inset 0 0 0 0 rgba(173, 200, 157, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 8px 3px rgba(173, 200, 157, 0.85),
      inset 0 0 6px 2px rgba(173, 200, 157, 0.55);
    transform: scale(1.08);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(173, 200, 157, 0.65),
      inset 0 0 0 0 rgba(173, 200, 157, 0.45);
    transform: scale(1);
  }
}
.audio-badge.is-playing{
  animation: audioPulse 1.2s ease-in-out infinite;
  background: rgba(173, 200, 157, 0.35);
}