:root{
  --bg:#07152f;
  --bg2:#031022;
  --card:#0f2348;
  --card2:#11274f;
  --line:rgba(255,255,255,.08);
  --text:#ffffff;
  --muted:#a9bddf;
  --muted2:#c4d5ef;
  --green:#23c16b;
  --greenText:#6df3a4;
  --blue:#4fa0ff;
  --blueBg:rgba(79,160,255,.16);
  --gold:#ffc54d;
  --goldBg:rgba(255,197,77,.16);
  --red:#ff6480;
  --shadow:0 24px 80px rgba(0,0,0,.28);
}
*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  min-height:100%;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;

  background:
    radial-gradient(circle at top left, #0d2a63 0%, rgba(13,42,99,0) 30%),
    linear-gradient(180deg,var(--bg) 0%, var(--bg2) 100%);
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
}
body{padding:12px}
button{font:inherit}
.app-shell{max-width:860px;margin:0 auto}
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:14px
}
.eyebrow{
  font-size:14px;
  color:#a6c6ff;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:6px
}
h1{margin:0;font-size:28px;line-height:1.1}
.top-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end
}
.lang-switch{display:flex;gap:6px}
.lang-btn,.ghost-btn,.primary-btn{
  border-radius:14px;
  border:1px solid var(--line);
  padding:10px 16px;
  background:rgba(255,255,255,.02);
  color:var(--text);
  cursor:pointer;
  transition:.2s ease;
}
.lang-btn{padding:8px 12px;font-size:14px}
.lang-btn.is-active{background:rgba(99,167,255,.14);border-color:rgba(99,167,255,.4)}
.primary-btn{background:#17366a}
.ghost-btn:hover,.primary-btn:hover,.lang-btn:hover{transform:translateY(-1px)}
.hidden{display:none!important}

.hero-card,.list-wrap{
  background:linear-gradient(180deg,var(--card) 0%, #0d2147 100%);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
}
.hero-card{
  padding:18px 18px 16px;
  margin-bottom:14px;
}
.hero-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:14px;
}
.hero-block{
  min-height:94px;
  padding:14px 14px 12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%);
}
.hero-right{text-align:right}
.hero-label{
  color:var(--muted);
  font-size:14px;
  margin-bottom:10px;
}
.hero-value{
  font-size:40px;
  line-height:1;
  font-weight:700;
}
.hero-value.small{
  font-size:20px;
  line-height:1.25;
  word-break:break-word;
}
.status-line{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:20px;
}
.status-dot{
  width:14px;
  height:14px;
  border-radius:50%;
  display:inline-block;
  box-shadow:0 0 0 4px rgba(255,255,255,.04)
}
.status-dot.online{background:var(--green)}
.status-dot.offline{background:var(--red)}
.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.list-wrap{
  padding:16px;
  margin-bottom:14px;
}
.section-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
.section-header h2{margin:0;font-size:18px}
.section-meta{color:var(--muted);font-size:14px}
.cards{display:grid;gap:8px}

.spot-card,.empty-card,.live-card{
  border-radius:16px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,var(--card2) 0%, #0d2147 100%);
}
.ultra-card,.live-card{
  padding:10px 12px;
}
.empty-card{
  padding:18px;
  color:var(--muted);
  text-align:center;
}

.spot-row,.live-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.spot-call,.live-call{
  margin:0;
  font-size:15px;
  line-height:1.2;
  font-weight:700;
}
.spot-line,.live-row2{
  font-size:13px;
  color:var(--muted2);
  margin-top:4px;
  line-height:1.35;
  font-weight:600;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:62px;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.badge-live,.badge.live,.badge-live.badge{
  background:rgba(35,193,107,.16);
  color:var(--greenText);
}
.badge-new{
  background:var(--goldBg);
  color:var(--gold);
}
.badge-qsy{
  background:var(--blueBg);
  color:#8bc3ff;
}
.badge-qrt{
  background:rgba(255,100,128,.16);
  color:#ff98ab;
}

.secondary.hidden{display:none!important}

@media (max-width:700px){
  body{padding:10px}
  .topbar{flex-direction:column;align-items:stretch}
  .top-actions{justify-content:space-between}
  h1{font-size:24px}
  .hero-grid{grid-template-columns:1fr}
  .hero-block{min-height:auto}
  .hero-right{text-align:left}
  .hero-value{font-size:34px}
  .hero-value.small{font-size:18px}
  .hero-actions .ghost-btn,
  .hero-actions .primary-btn{flex:1 1 auto}
  .spot-call,.live-call{font-size:14px}
  .spot-line,.live-row2{font-size:12px}
}


/* === COMPACT HEADER === */
.compact-bar{
  margin-bottom:12px;
}

.compact-status{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(36,59,110,.35);
  border:1px solid var(--line);
  font-size:14px;
}

.status-inline{
  display:flex;
  align-items:center;
  gap:8px;
}

.compact-status .status-dot{
  width:10px;
  height:10px;
}

.divider{
  opacity:.5;
}

.compact-actions{
  display:flex;
  gap:10px;
  margin-top:8px;
}

.compact-actions button{
  flex:1;
  height:38px;
  border-radius:14px;
}


/* v13 fix: compact top area + shorter notification button on mobile */
#notify-btn.is-active{
  background: rgba(35,193,107,.14);
  border-color: rgba(35,193,107,.34);
  color: var(--greenText);
}
#notify-btn.is-denied,
#notify-btn.is-blocked{
  background: rgba(255,100,128,.12);
  border-color: rgba(255,100,128,.30);
  color: #ffb0bf;
}
.hero-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.hero-actions .primary-btn,
.hero-actions .ghost-btn{
  width:100%;
  min-width:0;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.top-actions .ghost-btn{
  white-space:nowrap;
}

@media (max-width:700px){
  .top-actions{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:start;
    gap:10px;
  }
  .lang-switch{
    flex-wrap:wrap;
  }
  .top-actions #install-btn{
    justify-self:end;
    padding:8px 14px;
  }
  .hero-card{
    padding:16px 16px 14px;
  }
  .hero-grid{
    gap:12px;
    margin-bottom:12px;
  }
  .hero-block{
    padding:12px 13px 11px;
    border-radius:16px;
  }
  .hero-label{
    margin-bottom:8px;
  }
  .hero-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .hero-actions .ghost-btn,
  .hero-actions .primary-btn{
    flex:none;
    padding:10px 12px;
    border-radius:14px;
    font-size:14px;
  }
}


/* === v19 real layout fix === */
.topbar-v19{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:14px;
}

.brand-block{
  min-width:0;
  flex:0 1 auto;
}

.top-actions-v19{
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  gap:10px;
  flex:1 1 auto;
  width:auto !important;
  margin-top:0;
}

.top-actions-left{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.utility-btn{
  padding:8px 12px;
  min-height:38px;
  border-radius:12px;
  font-size:13px;
  white-space:nowrap;
}

.install-btn-v19{
  padding:8px 14px;
  min-height:38px;
  border-radius:12px;
  white-space:nowrap;
}

.hero-card-v19{
  padding:14px;
  margin-bottom:14px;
}

.hero-grid-hidden,
.hero-actions-hidden{
  display:none !important;
}

.compact-status{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(36,59,110,.35);
  border:1px solid var(--line);
  font-size:14px;
  line-height:1.2;
}

.status-inline{
  display:flex;
  align-items:center;
  gap:8px;
}

.compact-inline{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.divider{
  opacity:.5;
}

#notify-btn.is-active{
  background: rgba(35,193,107,.14);
  border-color: rgba(35,193,107,.34);
  color: var(--greenText);
}
#notify-btn.is-denied,
#notify-btn.is-blocked{
  background: rgba(255,100,128,.12);
  border-color: rgba(255,100,128,.30);
  color: #ffb0bf;
}

@media (max-width:900px){
  .topbar-v19{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }

  .top-actions-v19{
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
  }

  .top-actions-left{
    justify-content:flex-start;
  }
}

@media (max-width:700px){
  h1{
    font-size:20px;
    line-height:1.12;
  }

  .eyebrow{
    font-size:12px;
    margin-bottom:4px;
  }

  .topbar-v19{
    gap:8px;
    margin-bottom:10px;
  }

  .top-actions-v19{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
  }

  .top-actions-left{
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
    max-width:calc(100% - 110px);
  }

  .lang-switch{
    display:flex;
    gap:4px;
  }

  .lang-btn{
    padding:7px 10px;
    border-radius:12px;
    font-size:13px;
  }

  .utility-btn{
    padding:7px 10px;
    min-height:36px;
    font-size:12px;
    border-radius:12px;
  }

  .install-btn-v19{
    padding:7px 12px;
    min-height:36px;
    font-size:12px;
    border-radius:12px;
    flex:0 0 auto;
    align-self:flex-start;
  }

  .hero-card-v19{
    padding:12px;
    border-radius:20px;
    margin-bottom:12px;
  }

  .compact-status{
    gap:6px;
    padding:9px 10px;
    border-radius:14px;
    font-size:13px;
  }
}

@media (max-width:420px){
  .top-actions-v19{
    gap:8px;
  }

  .top-actions-left{
    max-width:calc(100% - 96px);
    gap:5px;
  }

  .lang-btn{
    padding:7px 9px;
    font-size:12px;
  }

  .utility-btn{
    padding:7px 9px;
    font-size:12px;
  }

  .install-btn-v19{
    padding:7px 10px;
    font-size:12px;
  }

  .compact-status{
    font-size:12px;
  }
}



.theme-wrap{
  position:relative;
}

.theme-toggle-btn{
  width:58px;
  height:58px;
  border-radius:50%;
  border:2px solid rgba(0,0,0,.2);
  background:linear-gradient(135deg,#fff 0%,#f5e6b5 100%);
  font-size:28px;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}

.theme-panel{
  position:absolute;
  top:70px;
  right:0;
  width:320px;
  padding:14px;
  border-radius:28px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(12px);
  border:1px solid rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:50;
}

.theme-option{
  border:none;
  border-radius:22px;
  padding:18px 20px;
  text-align:left;
  font-size:18px;
  font-weight:700;
  background:#f3f4f6;
  color:#0a1730;
  cursor:pointer;
  transition:.2s ease;
}

.theme-option:hover{
  transform:translateY(-1px);
}

.theme-option.is-active{
  background:#cfe0ff;
  border:2px solid #5b8cff;
}

[data-theme="daylight"] .hero-card,
[data-theme="daylight"] .list-wrap{
  background:linear-gradient(180deg,#f8fbff 0%,#edf4ff 100%);
}

[data-theme="classic"] .hero-card,
[data-theme="classic"] .list-wrap{
  background:linear-gradient(180deg,#fffaf0 0%,#efe5d0 100%);
}

@media (max-width:768px){
  .top-actions-left{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
  }

  .theme-panel{
    width:280px;
    right:-10px;
  }

  .lang-switch{
    flex-wrap:wrap;
  }
}


/* ==========================================================
   JARDA FIX v28 – FINÁLNÍ ČISTÝ LAYOUT
   ----------------------------------------------------------
   TOTA Live Spots only:
   - desktop není přepáleně široký
   - NTB je kompaktní
   - mobil má jazyky + paletu v jedné řadě
   - push box je menší
   - méně vertikálního prázdna
   ========================================================== */

body{
  padding:14px;
  padding-bottom:72px;
}

.app-shell{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  position:relative;
}

/* HEADER */
.topbar-v19{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:18px !important;
  margin-bottom:16px !important;
}

.brand-block{
  flex:1 1 auto;
  min-width:260px;
}

.eyebrow{
  font-size:17px;
  line-height:1.1;
  letter-spacing:.12em;
  margin-bottom:6px;
}

h1,
#app-title{
  font-size:34px;
  line-height:1.05;
  margin:0;
}

/* RIGHT CONTROLS */
.top-actions-v19{
  flex:0 0 auto !important;
  display:flex !important;
  justify-content:flex-end !important;
  align-items:flex-start !important;
  margin-top:4px !important;
}

.top-actions-left{
  display:grid !important;
  grid-template-columns:auto auto;
  grid-template-areas:
    "langs theme"
    "notify notify";
  align-items:center;
  justify-content:end;
  gap:10px 10px !important;
  width:auto !important;
  max-width:none !important;
}

.lang-switch{
  grid-area:langs;
  display:flex !important;
  align-items:center;
  justify-content:flex-end;
  gap:8px !important;
  flex-wrap:nowrap !important;
}

.lang-btn{
  min-width:54px;
  min-height:42px;
  padding:8px 13px !important;
  border-radius:17px !important;
  font-size:17px !important;
  line-height:1 !important;
  font-weight:800;
  background:rgba(255,255,255,.035) !important;
  border:1px solid rgba(255,255,255,.06) !important;
}

.lang-btn.is-active{
  background:rgba(78,145,255,.22) !important;
  border-color:rgba(116,174,255,.46) !important;
  box-shadow:0 0 0 1px rgba(116,174,255,.11) inset;
}

/* THEME */
.theme-wrap{
  grid-area:theme;
  position:relative;
  display:flex;
  justify-content:flex-end;
}

.theme-toggle-btn{
  width:56px !important;
  height:56px !important;
  min-width:56px;
  min-height:56px;
  border-radius:999px !important;
  border:2px solid rgba(255,255,255,.75) !important;
  background:linear-gradient(135deg,#fff8da 0%,#f8edc4 100%) !important;
  color:#0a1730;
  font-size:25px !important;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,.26), inset 0 0 0 2px rgba(0,0,0,.10);
}

.theme-panel{
  position:absolute;
  top:64px;
  right:0;
  width:280px;
  padding:10px;
  border-radius:22px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.70);
  box-shadow:0 20px 60px rgba(0,0,0,.34);
  display:flex;
  flex-direction:column;
  gap:8px;
  z-index:100;
}

.theme-option{
  width:100%;
  border:1px solid rgba(10,23,48,.09);
  border-radius:16px;
  padding:12px 14px;
  text-align:left;
  font-size:17px;
  line-height:1.2;
  font-weight:800;
  background:rgba(255,255,255,.74);
  color:#0a1730;
  cursor:pointer;
  transition:transform .16s ease, border-color .16s ease, background .16s ease;
}

.theme-option:hover{
  transform:translateY(-1px);
}

.theme-option.is-active{
  background:#dbe9ff;
  border-color:#5b8cff;
}

/* PUSH */
#notify-btn.utility-btn{
  grid-area:notify;
  justify-self:end;
  width:auto;
  min-height:42px;
  padding:9px 16px !important;
  border-radius:17px !important;
  font-size:16px !important;
  font-weight:700;
  background:rgba(255,255,255,.035);
  border-color:rgba(255,255,255,.06);
  white-space:nowrap;
}

/* CARDS */
.hero-card-v19,
.list-wrap{
  border-radius:24px;
}

.hero-card-v19{
  padding:14px;
  margin-bottom:16px;
}

.compact-status{
  min-height:46px;
  padding:10px 14px;
  border-radius:18px;
  font-size:17px;
  line-height:1.2;
  gap:8px;
}

.compact-status .status-dot,
.status-dot{
  width:13px;
  height:13px;
}

.list-wrap{
  padding:18px;
  margin-bottom:16px;
}

.section-header{
  margin-bottom:12px;
}

.section-header h2{
  font-size:26px;
}

.section-meta{
  font-size:18px;
}

.cards{
  min-height:54px;
  border-radius:18px;
  gap:8px;
}

.ultra-card,
.live-card{
  padding:11px 13px;
}

.empty-card{
  padding:14px;
  font-size:14px;
}

.badge{
  min-width:58px;
  padding:5px 9px;
  font-size:10px;
}

/* Hover jen na zařízení s myší */
@media (hover:hover){
  .spot-card:hover,
  .live-card:hover{
    transform:translateY(-1px);
    transition:.16s ease;
  }
}

/* NOTEBOOK / MENŠÍ DESKTOP */
@media (max-width:1400px){
  body{
    padding:10px;
    padding-bottom:64px;
  }

  .app-shell{
    max-width:1130px;
  }

  .topbar-v19{
    margin-bottom:12px !important;
  }

  .eyebrow{
    font-size:15px;
    margin-bottom:4px;
  }

  h1,
  #app-title{
    font-size:30px;
  }

  .lang-btn{
    min-width:50px;
    min-height:40px;
    padding:7px 12px !important;
    font-size:16px !important;
  }

  .theme-toggle-btn{
    width:52px !important;
    height:52px !important;
    min-width:52px;
    min-height:52px;
    font-size:23px !important;
  }

  #notify-btn.utility-btn{
    min-height:38px;
    padding:8px 14px !important;
    font-size:15px !important;
  }

  .hero-card-v19{
    padding:12px;
    margin-bottom:14px;
  }

  .compact-status{
    min-height:42px;
    padding:9px 12px;
    font-size:16px;
  }

  .list-wrap{
    padding:16px;
  }

  .section-header h2{
    font-size:24px;
  }

  .section-meta{
    font-size:17px;
  }

  .ultra-card,
  .live-card{
    padding:10px 12px;
  }
}

/* NÍZKÁ OBRAZOVKA – typický NTB s lištami / devtools */
@media (max-height:820px) and (min-width:781px){
  body{
    padding-top:8px;
  }

  .topbar-v19{
    margin-bottom:10px !important;
  }

  .eyebrow{
    font-size:14px;
  }

  h1,
  #app-title{
    font-size:28px;
  }

  .lang-btn{
    min-height:38px;
    font-size:15px !important;
  }

  .theme-toggle-btn{
    width:50px !important;
    height:50px !important;
    min-width:50px;
    min-height:50px;
  }

  #notify-btn.utility-btn{
    min-height:36px;
    font-size:14px !important;
  }

  .hero-card-v19{
    padding:11px;
    margin-bottom:12px;
  }

  .compact-status{
    min-height:40px;
    font-size:15px;
  }

  .list-wrap{
    padding:14px;
  }

  .section-header{
    margin-bottom:9px;
  }

  .section-header h2{
    font-size:22px;
  }

  .section-meta{
    font-size:16px;
  }

  .ultra-card,
  .live-card{
    padding:9px 11px;
  }

  .spot-call,
  .live-call{
    font-size:14px;
  }

  .spot-line,
  .live-row2{
    font-size:12px;
    margin-top:3px;
  }
}

/* TABLET / MOBILE */
@media (max-width:780px){
  body{
    padding:8px;
    padding-bottom:140px;
  }

  .app-shell{
    max-width:100%;
  }

  .topbar-v19{
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
    margin-bottom:12px !important;
  }

  .brand-block{
    min-width:0 !important;
  }

  .eyebrow{
    font-size:16px !important;
    line-height:1.15 !important;
    letter-spacing:.10em !important;
    margin-bottom:4px !important;
  }

  h1,
  #app-title{
    font-size:29px !important;
    line-height:1.08 !important;
  }

  .top-actions-v19{
    justify-content:flex-start !important;
    width:100% !important;
    margin-top:0 !important;
  }

  .top-actions-left{
    width:100% !important;
    display:grid !important;
    grid-template-columns:1fr auto !important;
    grid-template-areas:
      "langs theme"
      "notify notify" !important;
    align-items:center !important;
    gap:8px !important;
  }

  .lang-switch{
    grid-area:langs !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:5px !important;
    justify-content:flex-start !important;
    min-width:0 !important;
  }

  .lang-btn{
    min-width:42px !important;
    min-height:36px !important;
    padding:6px 8px !important;
    border-radius:14px !important;
    font-size:14px !important;
    line-height:1 !important;
  }

  .theme-wrap{
    grid-area:theme !important;
    justify-self:end !important;
  }

  .theme-toggle-btn{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    min-height:44px !important;
    font-size:21px !important;
    border-width:2px !important;
  }

  .theme-panel{
    top:54px !important;
    right:0 !important;
    width:min(270px, calc(100vw - 22px)) !important;
    padding:9px !important;
    border-radius:20px !important;
  }

  .theme-option{
    padding:11px 13px !important;
    border-radius:15px !important;
    font-size:16px !important;
  }

  #notify-btn.utility-btn{
    grid-area:notify !important;
    justify-self:stretch !important;
    width:100% !important;
    min-height:38px !important;
    padding:8px 10px !important;
    border-radius:16px !important;
    font-size:14px !important;
    text-align:center !important;
  }

  .hero-card-v19{
    padding:11px !important;
    border-radius:22px !important;
    margin-bottom:12px !important;
  }

  .compact-status{
    min-height:42px !important;
    padding:9px 10px !important;
    border-radius:17px !important;
    font-size:14px !important;
    gap:6px !important;
  }

  .compact-status .status-dot,
  .status-dot{
    width:12px !important;
    height:12px !important;
  }

  .list-wrap{
    padding:12px !important;
    border-radius:22px !important;
  }

  .section-header h2{
    font-size:23px !important;
  }

  .section-meta{
    font-size:16px !important;
  }

  .spot-call,
  .live-call{
    font-size:14px !important;
  }

  .spot-line,
  .live-row2{
    font-size:12px !important;
  }

  .badge{
    min-width:52px;
    padding:5px 8px;
  }
}

/* ÚZKÉ MOBILY */
@media (max-width:430px){
  .eyebrow{
    font-size:14px !important;
  }

  h1,
  #app-title{
    font-size:25px !important;
  }

  .lang-switch{
    gap:4px !important;
  }

  .lang-btn{
    min-width:38px !important;
    min-height:34px !important;
    padding:5px 7px !important;
    font-size:13px !important;
  }

  .theme-toggle-btn{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    min-height:42px !important;
    font-size:20px !important;
  }

  .compact-status{
    font-size:13px !important;
  }

  .section-header h2{
    font-size:21px !important;
  }

  .section-meta{
    font-size:15px !important;
  }
}


/* ==========================================================
   JARDA FIX v34 – čistá schémata + nový Daylight
   ----------------------------------------------------------
   - Daylight = čistá klasická světlá appka, ne šedá mlha
   - HAM Classic = teplý logbook / ivory styl
   - Radio / Outdoor / Night / Tactical jsou víc odlišené
   - sjednocené karty, badge, spodní okraj a mobilní scroll
   ========================================================== */

html{
  min-height:100%;
  background:var(--bg2);
  overscroll-behavior-y:none;
}

body{
  min-height:100dvh;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent, #4fa0ff) 24%, transparent) 0%, transparent 32%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%) !important;
  background-attachment:fixed;
  padding-bottom:max(48px, env(safe-area-inset-bottom)) !important;
}

.app-shell{padding-bottom:18px;}

/* společná vizuální vrstva */
.hero-card,
.hero-card-v19,
.list-wrap{
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--card) 94%, #ffffff 6%) 0%,
      var(--card) 100%) !important;
  border-color:var(--line) !important;
  box-shadow:var(--shadow) !important;
  color:var(--text) !important;
}

.compact-status{
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--card2) 92%, var(--accent, #4fa0ff) 8%) 0%,
      color-mix(in srgb, var(--card2) 96%, #ffffff 4%) 100%) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
}

.spot-card,
.live-card,
.empty-card{
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--card2) 92%, #ffffff 8%) 0%,
      color-mix(in srgb, var(--card2) 95%, #000000 5%) 100%) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
}

.spot-line,
.live-row2{color:var(--muted2) !important;}
.section-meta,
.hero-label,
.empty-card{color:var(--muted) !important;}

.badge-live,
.badge.live,
.badge-live.badge{
  background:rgba(35,193,107,.18) !important;
  color:var(--greenText) !important;
}

.badge-qsy{
  background:rgba(75,139,255,.24) !important;
  color:#9fc8ff !important;
}

.lang-btn.is-active,
.theme-option.is-active{
  background:var(--accentSoft) !important;
  border-color:var(--accent) !important;
}

.theme-panel{
  max-height:calc(100dvh - 110px);
  overflow:auto;
}

/* DAYLIGHT – klasika: bílá karta, jasný kontrast, minimum šedé */
body[data-theme="daylight"]{
  --bg:#cfe6fb;
  --bg2:#f7fbff;
  --card:#ffffff;
  --card2:#eaf4ff;
  --text:#07152f;
  --muted:#355985;
  --muted2:#244b78;
  --line:rgba(37,84,135,.18);
  --accent:#3f8cff;
  --accentSoft:rgba(63,140,255,.16);
  --shadow:0 18px 50px rgba(45,96,150,.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(126,191,255,.46) 0%, transparent 32%),
    linear-gradient(135deg,#cfe6fb 0%,#eef7ff 46%,#ffffff 100%) !important;
}

body[data-theme="daylight"] .eyebrow{color:#6a9fd6 !important;}
body[data-theme="daylight"] .lang-btn,
body[data-theme="daylight"] .ghost-btn{
  background:rgba(255,255,255,.58) !important;
  border-color:rgba(52,111,178,.18) !important;
  color:#07152f !important;
}
body[data-theme="daylight"] .lang-btn.is-active{
  background:#d7eaff !important;
  border-color:#6ba7f4 !important;
}
body[data-theme="daylight"] .hero-card,
body[data-theme="daylight"] .hero-card-v19,
body[data-theme="daylight"] .list-wrap{
  background:rgba(255,255,255,.76) !important;
  border-color:rgba(42,92,150,.17) !important;
  box-shadow:0 18px 48px rgba(45,96,150,.16) !important;
  backdrop-filter:blur(12px);
}
body[data-theme="daylight"] .compact-status{
  background:linear-gradient(90deg,#e0efff 0%,#f9fcff 100%) !important;
  border-color:rgba(54,111,178,.20) !important;
}
body[data-theme="daylight"] .spot-card,
body[data-theme="daylight"] .live-card,
body[data-theme="daylight"] .empty-card{
  background:linear-gradient(180deg,#f7fbff 0%,#e7f2ff 100%) !important;
  border-color:rgba(54,111,178,.18) !important;
}
body[data-theme="daylight"] .badge-live,
body[data-theme="daylight"] .badge.live,
body[data-theme="daylight"] .badge-live.badge{
  background:#c9f0df !important;
  color:#08784c !important;
}
body[data-theme="daylight"] .badge-qsy{
  background:#cfe5ff !important;
  color:#1972cc !important;
}
body[data-theme="daylight"] #notify-btn.is-active{
  background:rgba(35,193,107,.12) !important;
  border-color:rgba(35,193,107,.28) !important;
  color:#0a8b58 !important;
}

/* RADIO BLUE – čistě modrá appka */
body[data-theme="radio"] .spot-card,
body[data-theme="radio"] .live-card{
  background:linear-gradient(180deg,#17345f 0%,#0c2148 100%) !important;
}
body[data-theme="radio"] .hero-card,
body[data-theme="radio"] .hero-card-v19,
body[data-theme="radio"] .list-wrap{
  background:linear-gradient(180deg,#10264e 0%,#0b1d3e 100%) !important;
}

/* OUTDOOR – zelený lesní režim */
body[data-theme="outdoor"] .spot-card,
body[data-theme="outdoor"] .live-card{
  background:linear-gradient(180deg,#28543b 0%,#123224 100%) !important;
}
body[data-theme="outdoor"] .hero-card,
body[data-theme="outdoor"] .hero-card-v19,
body[data-theme="outdoor"] .list-wrap{
  background:linear-gradient(180deg,#214832 0%,#142f22 100%) !important;
}

/* NIGHT OPS – noční fialovo-modrý režim */
body[data-theme="nightops"] .spot-card,
body[data-theme="nightops"] .live-card{
  background:linear-gradient(180deg,#282645 0%,#17182f 100%) !important;
}
body[data-theme="nightops"] .hero-card,
body[data-theme="nightops"] .hero-card-v19,
body[data-theme="nightops"] .list-wrap{
  background:linear-gradient(180deg,#25223a 0%,#161427 100%) !important;
}

/* TACTICAL – ocelově šedá, aby nebyla podobná Radio Blue */
body[data-theme="tactical"] .spot-card,
body[data-theme="tactical"] .live-card{
  background:linear-gradient(180deg,#4b555e 0%,#29333c 100%) !important;
}
body[data-theme="tactical"] .hero-card,
body[data-theme="tactical"] .hero-card-v19,
body[data-theme="tactical"] .list-wrap{
  background:linear-gradient(180deg,#3a4249 0%,#22282e 100%) !important;
}

/* HAM CLASSIC – teplý retro logbook */
body[data-theme="classic"]{
  background:
    radial-gradient(circle at 0% 0%, rgba(255,232,173,.38) 0%, transparent 30%),
    linear-gradient(135deg,#e4d5b8 0%,#f7f0df 55%,#fffaf0 100%) !important;
}
body[data-theme="classic"] .hero-card,
body[data-theme="classic"] .hero-card-v19,
body[data-theme="classic"] .list-wrap{
  background:linear-gradient(180deg,#fffaf0 0%,#efe3ca 100%) !important;
  border-color:rgba(100,70,30,.18) !important;
}
body[data-theme="classic"] .compact-status{
  background:linear-gradient(90deg,#eadab8 0%,#fff8e8 100%) !important;
  border-color:rgba(100,70,30,.18) !important;
}
body[data-theme="classic"] .spot-card,
body[data-theme="classic"] .live-card{
  background:linear-gradient(180deg,#f4e5c4 0%,#dcc391 100%) !important;
  border-color:rgba(100,70,30,.17) !important;
}
body[data-theme="classic"] .badge-live,
body[data-theme="classic"] .badge.live,
body[data-theme="classic"] .badge-live.badge{
  background:#c9ead7 !important;
  color:#08784c !important;
}
body[data-theme="classic"] .badge-qsy{
  background:#d7e6ff !important;
  color:#276ab8 !important;
}

@media (max-width:780px){
  body{padding-bottom:max(70px, env(safe-area-inset-bottom)) !important;}
}

