/* TomLive — main.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { font-size: 20px; scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; background: #0d0d0d; color: #e8e8e8; line-height: 1.65; min-height: 100vh; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.logo-tom { color: #ffffff; }
.logo-live { color: #cc0000; }
.site-nav { background: #0a0a0a; border-bottom: 1px solid #2a2a2a; position: sticky; top: 0; z-index: 100; }

/* ── Desktop nav: JEDEN řádek ── logo | desktop-links | youtube */
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 28px;
  height: 90px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0; text-decoration: none; height: 100%;
}
.nav-logo-img { width: 68px; height: 68px !important; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: block; }
.nav-logo-text { font-size: 44px; font-weight: 700; line-height: 1; }

/* Desktop odkazy — uprostřed nav-inner */
.nav-desktop-links { display: flex; flex-direction: row; align-items: center; flex: 1; justify-content: center; gap: 0; flex-wrap: nowrap; }

/* Sdílený styl pro .nav-link */
.nav-link { display: inline-block; padding: 10px 18px; font-size: 22px; color: #c8c8c8; border-bottom: 3px solid transparent; transition: color .15s; white-space: nowrap; text-decoration: none; }
.nav-link:hover  { color: #ffffff; }
.nav-link.active { color: #ffffff; border-bottom-color: #cc0000; }

.nav-yt { display: inline-flex; align-items: center; gap: 8px; background: #cc0000; color: #fff; padding: 9px 18px; border-radius: 6px; font-size: 20px; font-weight: 600; white-space: nowrap; flex-shrink: 0; transition: background .15s; text-decoration: none; }
.nav-yt:hover { background: #aa0000; }

/* Mobilní řádek 2 — SKRYTÝ na desktopu */
.nav-mobile-links { display: none; }

.hero { background: #0a0a0a; border-bottom: 1px solid #2a2a2a; padding-bottom: 22px; }
.hero-inner { max-width: 860px; margin: 0 auto; padding: 22px 28px 0; }
.live-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.live-dot { width: 11px; height: 11px; border-radius: 50%; background: #cc0000; flex-shrink: 0; }
.live-label { font-size: 15px; font-weight: 700; color: #ff5555; letter-spacing: .1em; }
.live-time { font-size: 15px; color: #c8c8c8; }
.embed-wrap { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid #333; box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 16px 52px rgba(0,0,0,.7), 0 0 40px rgba(204,0,0,.1); }
.embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-empty { padding: 60px 28px; text-align: center; }
.hero-empty h1 { font-size: 26px; font-weight: 600; color: #f5f5f5; margin-bottom: 10px; }
.hero-empty p { font-size: 17px; color: #aaa; }
.hero-empty a { color: #cc0000; }
.hero-empty a:hover { text-decoration: underline; }
.stream-meta { max-width: 860px; margin: 12px auto 0; background: rgba(14,14,14,.97); padding: 14px 20px 18px; border-radius: 10px; border: 1px solid #252525; }
.stream-title { font-size: 20px; font-weight: 600; color: #f5f5f5; margin-bottom: 5px; line-height: 1.3; }
.stream-sub { font-size: 15px; color: #aaa; }
.stream-desc-wrap { border-top: 1px solid #222; padding-top: 10px; margin-top: 10px; }
.stream-desc { font-size: 15px; color: #aaa; line-height: 1.7; overflow: hidden; transition: max-height .35s ease; }
.stream-desc.collapsed { max-height: 2.9em; }
.stream-desc.expanded { max-height: 600px; }
.stream-toggle { background: none; border: none; color: #cc0000; font-size: 15px; cursor: pointer; font-family: inherit; padding: 7px 0 0; display: inline-flex; align-items: center; gap: 5px; }
.stream-toggle:hover { color: #ee2222; }
.toggle-arr { font-size: 11px; display: inline-block; transition: transform .25s; }
.toggle-arr.flipped { transform: rotate(180deg); }
.ticker { background: #cc0000; padding: 9px 28px; display: flex; align-items: center; gap: 14px; overflow: hidden; }
.ticker-label { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .1em; white-space: nowrap; background: #900; padding: 3px 10px; border-radius: 3px; flex-shrink: 0; }
.ticker-text { font-size: 16px; color: #ffdddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-grid { max-width: 1100px; margin: 0 auto; padding: 26px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hp-col { display: flex; flex-direction: column; }
.section-label { font-size: 12px; font-weight: 700; color: #ff5555; letter-spacing: .12em; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section-label::after { content: ''; flex: 1; height: 1px; background: #2a2a2a; }
.hp-cards { display: flex; flex-direction: column; flex: 1; }
.art-card { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 16px 0; border-bottom: 1px solid #222; }
.art-card:last-child { border-bottom: none; }
.art-card:hover .art-title { color: #fff; }
.art-cat { display: block; font-size: 11px; font-weight: 700; color: #ff5555; letter-spacing: .08em; margin-bottom: 6px; }
.art-title { display: block; font-size: 18px; font-weight: 600; color: #eeeeee; line-height: 1.4; margin-bottom: 5px; transition: color .15s; }
.art-meta { display: block; font-size: 14px; color: #888; }
.arch-card { flex: 1; display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid #222; }
.arch-card:last-child { border-bottom: none; }
.arch-card:hover .arch-card-title { color: #fff; }
.arch-thumb-wrap { position: relative; width: 100px; height: 60px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #1a1a1a; }
.arch-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.arch-thumb-empty { width: 100%; height: 100%; background: #1a1a1a; }
.arch-play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.4); }
.arch-dur { position: absolute; bottom: 3px; right: 4px; font-size: 11px; background: rgba(0,0,0,.8); color: #ddd; padding: 1px 5px; border-radius: 2px; }
.arch-card-body { flex: 1; min-width: 0; }
.arch-card-title { display: block; font-size: 16px; font-weight: 600; color: #e0e0e0; line-height: 1.4; margin-bottom: 4px; transition: color .15s; }
.arch-card-date { display: block; font-size: 14px; color: #888; }
.content-wrap { max-width: 1100px; margin: 0 auto; padding: 26px 28px 48px; }
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 26px; font-weight: 700; color: #f5f5f5; }
.page-header p { font-size: 16px; color: #aaa; margin-top: 6px; }
.blog-layout { display: grid; grid-template-columns: 1fr 260px; gap: 36px; }
.blog-header { margin-bottom: 22px; }
.blog-header h1 { font-size: 26px; font-weight: 700; color: #f5f5f5; }
.blog-header p { font-size: 16px; color: #aaa; margin-top: 6px; }
.blog-article { border-bottom: 1px solid #222; padding: 22px 0; }
.blog-article:last-child { border-bottom: none; }
.blog-article-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.blog-cat { font-size: 14px; font-weight: 700; color: #ff5555; letter-spacing: .08em; }
.blog-date { font-size: 14px; color: #888; }
.blog-article h2 { font-size: 24px; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.blog-article h2 a { color: #f0f0f0; transition: color .15s; }
.blog-article h2 a:hover { color: #fff; }
.blog-excerpt { font-size: 18px; color: #aaa; line-height: 1.65; }
.blog-sidebar { padding-top: 68px; }
.sidebar-box { background: #111; border: 1px solid #222; border-radius: 8px; padding: 18px; margin-bottom: 16px; }
.sidebar-title { display: block; font-size: 12px; font-weight: 700; color: #888; letter-spacing: .12em; margin-bottom: 12px; }
.sidebar-cat { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #1a1a1a; font-size: 18px; color: #d0d0d0; transition: color .15s; text-decoration: none; }
.sidebar-cat:last-child { border-bottom: none; }
.sidebar-cat:hover { color: #fff; }
.sidebar-cat.active { color: #ff5555; }
.sidebar-cat-all { display: block; font-size: 14px; color: #cc0000; margin-top: 10px; }
.sidebar-cat-all:hover { text-decoration: underline; }
.article-layout { display: grid; grid-template-columns: 1fr 260px; gap: 36px; }
.article-header { margin-bottom: 28px; }
.article-meta-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.article-header h1 { font-size: 28px; font-weight: 700; color: #f5f5f5; line-height: 1.25; margin-bottom: 12px; }
.article-lead { font-size: 20px; color: #aaa; line-height: 1.65; margin-bottom: 16px; }
.article-divider { width: 44px; height: 3px; background: #cc0000; }
.article-content { font-size: 18px; color: #d8d8d8; line-height: 1.8; }
.article-content h1 { font-size: 28px; font-weight: 700; color: #f5f5f5; margin: 28px 0 12px; }
.article-content h2 { font-size: 24px; font-weight: 600; color: #eeeeee; margin: 24px 0 10px; }
.article-content h3 { font-size: 21px; font-weight: 600; color: #e0e0e0; margin: 20px 0 8px; }
.article-content p { margin: 0 0 16px; }
.article-content strong { color: #f0f0f0; font-weight: 600; }
.article-content em { font-style: italic; }
.article-content u { text-decoration: underline; }
.article-content blockquote { border-left: 3px solid #cc0000; padding: 10px 18px; color: #aaa; font-style: italic; margin: 20px 0; background: #111; border-radius: 0 6px 6px 0; font-size: 18px; }
.article-content ul, .article-content ol { margin: 10px 0 16px 26px; }
.article-content li { margin-bottom: 5px; }
.article-content a { color: #ff7777; text-decoration: underline; }
.article-content a:hover { color: #ff5555; }
.article-content code { font-family: monospace; background: #111; border: 1px solid #2a2a2a; border-radius: 4px; padding: 2px 7px; font-size: 16px; color: #88dd88; }
.article-content hr { border: none; border-top: 1px solid #2a2a2a; margin: 24px 0; }
.article-content img { max-width: 100%; border-radius: 6px; margin: 14px 0; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid #222; margin-top: 28px; }
.article-nav-prev, .article-nav-next { display: flex; flex-direction: column; max-width: 48%; }
.article-nav-next { align-items: flex-end; text-align: right; }
.article-nav-label { font-size: 14px; color: #888; margin-bottom: 4px; }
.article-nav-title { font-size: 16px; color: #ff7777; line-height: 1.4; }
.article-nav-title:hover { text-decoration: underline; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.archive-card { background: #111; border: 1px solid #222; border-radius: 8px; overflow: hidden; transition: border-color .15s; display: block; }
.archive-card:hover { border-color: #444; }
.archive-card:hover .archive-title { color: #fff; }
.archive-thumb { position: relative; padding-top: 56.25%; background: #1a1a1a; }
.archive-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.archive-thumb-empty { position: absolute; inset: 0; background: #1a1a1a; }
.archive-play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.3); }
.archive-dur { position: absolute; bottom: 6px; right: 8px; font-size: 12px; background: rgba(0,0,0,.8); color: #ddd; padding: 2px 6px; border-radius: 3px; }
.archive-info { padding: 12px 14px 14px; }
.archive-title { display: block; font-size: 17px; font-weight: 600; color: #e0e0e0; line-height: 1.4; margin-bottom: 5px; transition: color .15s; }
.archive-date { display: block; font-size: 14px; color: #777; }
.archive-grid-related { grid-template-columns: repeat(4, 1fr); }
.related-streams { margin-top: 34px; }
.stream-player-wrap { margin-bottom: 26px; }
.stream-player { position: relative; padding-top: 56.25%; background: #000; border-radius: 8px; overflow: hidden; }
.stream-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.stream-detail-meta { margin-top: 16px; }
.stream-detail-meta h1 { font-size: 22px; font-weight: 600; color: #f5f5f5; margin-bottom: 6px; }
.stream-detail-sub { font-size: 15px; color: #aaa; }
.onas-wrap { max-width: 720px; }
.onas-wrap h1 { font-size: 28px; font-weight: 700; color: #f5f5f5; margin-bottom: 8px; }
.onas-sub { font-size: 21px; color: #aaa; margin-bottom: 18px; }
.onas-divider { width: 44px; height: 3px; background: #cc0000; margin-bottom: 22px; }
.onas-text { font-size: 18px; color: #bbb; line-height: 1.8; margin-bottom: 16px; }
.onas-quote { background: #111; border-left: 3px solid #cc0000; padding: 16px 20px; border-radius: 0 6px 6px 0; margin-top: 10px; }
.onas-quote p { font-size: 17px; color: #d0d0d0; font-style: italic; line-height: 1.7; }
.onas-content { max-width: 720px; }
.site-footer { background: #070707; border-top: 1px solid #2a2a2a; margin-top: 48px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-logo { font-size: 17px; font-weight: 700; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-link { font-size: 17px; color: #999; transition: color .15s; }
.footer-link:hover { color: #ddd; }
.footer-copy { font-size: 17px; color: #777; }
.empty-msg { font-size: 17px; color: #888; padding: 24px 0; }

/* TABLET */
@media screen and (max-width: 960px) {
  .nav-inner { padding: 0 20px; height: 78px; }
  .nav-logo-text { font-size: 36px; }
  .nav-logo-img { width: 56px; height: 56px !important; }
  .nav-desktop-links .nav-link { font-size: 18px; padding: 8px 12px; }
  .nav-yt { font-size: 16px; padding: 8px 14px; }
  .hero-inner { padding: 18px 20px 0; }
  .stream-meta { margin: 10px auto 0; padding: 12px 16px 14px; }
  .hp-grid { padding: 20px; gap: 20px; }
  .content-wrap { padding: 20px 20px 36px; }
  .blog-layout { grid-template-columns: 1fr 220px; gap: 24px; }
  .article-layout { grid-template-columns: 1fr 220px; gap: 24px; }
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
  .archive-grid-related { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { padding: 20px; }
}

/* MOBIL */
@media screen and (max-width: 700px) {
  html { font-size: 16px; }
  /* Mobil nav — horní řada: logo + YouTube, druhá řada: odkazy */
  .nav-inner { padding: 0 14px; height: 68px; }
  .nav-logo-img { width: 52px; height: 52px !important; }
  .nav-logo-text { font-size: 34px; }
  .nav-yt { font-size: 15px; padding: 8px 14px; }
  /* Skrýt desktop odkazy */
  .nav-desktop-links { display: none !important; }
  /* Zobrazit mobilní řádek s odkazy */
  .nav-mobile-links {
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
  }
  .nav-mobile-links::-webkit-scrollbar { display: none; }
  .nav-mobile-links .nav-link { font-size: 19px; padding: 13px 18px; flex-shrink: 0; border-bottom: none; }
  .hero-inner { padding: 14px 14px 0; }
  .live-label { font-size: 12px; }
  .live-time { font-size: 12px; }
  .stream-meta { padding: 12px 14px 14px; }
  .stream-title { font-size: 17px; }
  .stream-sub { font-size: 13px; }
  .stream-desc { font-size: 14px; }
  .ticker { padding: 7px 14px; gap: 8px; }
  .ticker-label { font-size: 11px; padding: 2px 7px; }
  .ticker-text { font-size: 13px; }
  .hp-grid { grid-template-columns: 1fr; gap: 0; padding: 14px; }
  .hp-col + .hp-col { border-top: 1px solid #222; padding-top: 14px; margin-top: 14px; }
  .section-label { font-size: 11px; }
  .art-title { font-size: 16px; }
  .art-cat { font-size: 10px; }
  .art-meta { font-size: 12px; }
  .arch-card-title { font-size: 14px; }
  .arch-card-date { font-size: 12px; }
  .arch-thumb-wrap { width: 80px; height: 48px; }
  .content-wrap { padding: 14px 14px 30px; }
  .blog-layout { grid-template-columns: 1fr; gap: 0; }
  .blog-sidebar { padding-top: 20px; border-top: 1px solid #222; }
  .blog-header h1 { font-size: 22px; }
  .blog-header p { font-size: 14px; }
  .blog-article h2 { font-size: 19px; }
  .blog-excerpt { font-size: 15px; }
  .blog-cat { font-size: 12px; }
  .blog-date { font-size: 12px; }
  .sidebar-cat { font-size: 16px; }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-header h1 { font-size: 22px; }
  .article-lead { font-size: 16px; }
  .article-content { font-size: 16px; }
  .article-content h2 { font-size: 20px; }
  .article-content h3 { font-size: 18px; }
  .article-content blockquote { font-size: 15px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .archive-grid-related { grid-template-columns: repeat(2, 1fr); }
  .archive-title { font-size: 13px; }
  .archive-date { font-size: 12px; }
  .onas-wrap h1 { font-size: 22px; }
  .onas-sub { font-size: 16px; }
  .onas-text { font-size: 15px; }
  .onas-quote p { font-size: 14px; }
  .page-header h1 { font-size: 20px; }
  .page-header p { font-size: 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 14px; }
  .footer-links { gap: 14px; }
  .footer-link { font-size: 15px; }
  .footer-copy { font-size: 13px; }
}

/* MALÝ MOBIL */
@media screen and (max-width: 420px) {
  html { font-size: 15px; }
  .nav-inner { height: 58px; }
  .nav-logo-img { width: 44px; height: 44px !important; }
  .nav-logo-text { font-size: 28px; }
  .nav-yt { font-size: 13px; padding: 7px 10px; }
  .nav-mobile-links .nav-link { font-size: 17px; padding: 11px 14px; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-grid-related { grid-template-columns: 1fr; }
}
