/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #eef3fb;
  --surface:      #ffffff;
  --border:       #c8d9f0;
  --border-light: #dde9f8;
  --text:         #0d1b2a;
  --text-muted:   #718096;
  --text-sub:     #a0aec0;
  --accent:       #1a56db;
  --accent-dim:   rgba(26,86,219,.08);
  --radius:       14px;
  --shadow:       0 1px 3px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.07);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.08), 0 20px 48px rgba(0,0,0,.13);
  --transition:   0.22s ease;
  --c-dovol:   #1d6fcf;
  --c-narok:   #be185d;
  --c-boys:    #15803d;
  --c-kola:    #c2410c;
  --c-moto:    #b91c1c;
  --c-ost:     #475569;
  --c-divadlo: #7c3aed;
  --c-akva:    #0e7490;
  --page-width: 1400px;
  --content-width: 1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ── Header ───────────────────────────────────────────── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border-light);
}

.nav {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text);
  flex-shrink: 0;
}
.nav-brand span { color: var(--accent); }

@media (min-width: 601px) {
  .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all var(--transition);
  letter-spacing: .01em;
  cursor: pointer;
}
.nav-links a:hover { color: var(--text); background: var(--accent-dim); }
.nav-links a.active { color: var(--accent); background: var(--accent-dim); font-weight: 600; }

/* ── Nav Dropdown ─────────────────────────────────────── */
.nav-links li { position: relative; }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  padding: 8px;
  padding-top: 16px; /* 8px visual gap + 8px inner padding, bez přerušení hover oblasti */
  min-width: 160px;
  z-index: 200;
  white-space: nowrap;
}

.nav-links li:hover .nav-dropdown,
.nav-links li:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.nav-dropdown-item:hover { color: var(--text); background: var(--accent-dim); }
.nav-dropdown-item.active { color: var(--accent); background: var(--accent-dim); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 8px; }
.nav--no-brand .nav-right { margin-left: auto; }
.nav--no-brand .nav-menu-btn:first-of-type { margin-left: auto; }

.nav-social { display: flex; gap: 2px; align-items: center; border-left: 1px solid var(--border); padding-left: 8px; margin-left: 4px; }

.nav-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-social a:hover { color: var(--accent); background: var(--accent-dim); }
.nav-social svg { width: 17px; height: 17px; fill: currentColor; }

/* ── Nav logo (home variant) ──────────────────────────── */
.nav-brand-full {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.nav-brand-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}
.nav-brand-logo {
  height: 52px;
  width: auto;
  display: block;
}
.nav-brand-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.nav-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text);
}
.nav-brand-tagline {
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .01em;
}

/* ── Nav pipe separators ──────────────────────────────── */
.nav-links-piped { gap: 0; }
.nav-links-piped > li { display: flex; align-items: center; }
.nav-links-piped > li + li::before {
  content: '';
  width: 1px;
  height: 13px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}

/* ── Nav icon buttons (search, user) ─────────────────── */
.nav-icon-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-icon-btn:hover { color: var(--accent); background: var(--accent-dim); }
.nav-icon-btn svg { width: 18px; height: 18px; }

/* ── Nav height for home (two-line logo) ──────────────── */
.nav-home { height: 72px; }

/* ── Hero banner ──────────────────────────────────────── */
.hero-banner {
  position: relative;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  height: 290px;
  overflow: hidden;
  background-size: cover;
  background-position: center 40%;
}
.hero-banner-brand {
  position: absolute;
  top: 18px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
}
.hero-banner-logo {
  display: block;
  width: 206px;
  height: auto;
}
.hero-banner-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
  margin: 0;
  letter-spacing: .02em;
}
.hero-banner-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px 60px;
  color: #fff;
}
.hero-banner-content-inner {
  background: rgba(30, 30, 30, .52);
  backdrop-filter: blur(2px);
  border-radius: 6px;
  padding: 8px 28px 10px;
}
.hero-banner-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.1;
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
  margin: 0 0 6px;
}
.hero-banner-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: rgba(255,255,255,.7);
  margin: 10px auto 0;
}
.hero-banner-text {
  font-size: .94rem;
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0,0,0,.65);
  max-width: 560px;
  opacity: .92;
}
.hero-banner-text a { color: #fff; text-decoration: underline; opacity: .85; }
.hero-banner-text a:hover { opacity: 1; }

/* ── Home category section heading ───────────────────── */
.home-cats-header {
  text-align: center;
  margin-bottom: 28px;
}
.home-cats-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.home-cats-subtitle {
  font-size: .9rem;
  color: var(--text-muted);
}

/* ── Home hero ────────────────────────────────────────── */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 52px;
  text-align: center;
}

.hero-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 28px;
  opacity: .4;
}

.hero-text {
  font-size: .97rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
}
.hero-text a { color: var(--accent); font-weight: 600; }
.hero-text a:hover { text-decoration: underline; }

/* ── Home category grid ───────────────────────────────── */
.home-cats {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 24px 80px;
}

.home-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.home-cats-desc {
  margin-top: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
}

.section-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0 0;
}

/* ── Naposledy přidaná alba ───────────────────────────── */
.home-recent {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.home-recent-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 18px;
}

.home-recent-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}

.home-recent-cat {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--accent);
  opacity: .75;
}

.home-recent-grid .album-card {
  border-radius: 12px;
}
.home-recent-grid .album-body {
  padding: 7px 9px 9px;
  gap: 2px;
}
.home-recent-grid .album-title {
  font-size: .78rem;
}
.home-recent-grid .year-badge {
  font-size: .6rem;
  padding: 2px 6px;
  top: 6px; right: 6px;
}

.home-recent-more {
  background: transparent;
  border: 1px dashed var(--border);
  box-shadow: none;
}
.home-recent-more:hover {
  box-shadow: none;
  background: var(--surface);
}
.home-recent-more-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px;
  line-height: 1.4;
}
.home-recent-more:hover .home-recent-more-inner {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .home-recent-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 600px) {
  .home-recent-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

.home-cat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.home-cat-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.home-cat-tile-img-wrap {
  position: relative;
  overflow: hidden;
}
.home-cat-tile-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.home-cat-tile:hover .home-cat-tile-img { transform: scale(1.04); }

/* badge na rozhraní obrázku a body — zobrazuje se pouze na mobilu */
.home-cat-tile-badge {
  display: none; /* skryto na desktopu */
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #F3F3F3;
  color: #718096;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .01em;
  padding: 2px 10px;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 1px 6px rgba(0,0,0,.10);
}

.home-cat-tile-body {
  position: relative;
  padding: 20px 18px 18px;
}

.home-cat-tile-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.home-cat-tile-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 0;
}

.home-cat-tile-sub {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.home-cat-tile-badge b { color: #1a56db; }

/* pill vedle nadpisu — zobrazuje se na desktopu */
.home-cat-tile-count {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 400;
  color: #718096;
  letter-spacing: .01em;
  text-transform: none;
  white-space: nowrap;
  background: #F3F3F3;
  padding: 2px 10px;
  border-radius: 20px;
}
.home-cat-tile-count b { color: #1a56db; }

/* ── Placeholder pages ────────────────────────────────── */
.placeholder-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}
.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  opacity: .35;
}
.placeholder-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.placeholder-text {
  font-size: .97rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ── O Autorovi ───────────────────────────────────────── */
.author-wrap {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 20px 24px 88px;
}

.author-hdr {
  padding-bottom: 22px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.author-hdr-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.author-hdr-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -.02em;
}

.author-hdr-tabs {
  display: inline-flex;
  background: rgba(0,0,0,0.04);
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}
.author-hdr-tab {
  padding: 7px 18px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all var(--transition);
  cursor: pointer;
}
.author-hdr-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,0.4);
}
.author-hdr-tab.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-weight: 600;
}
.dark .author-hdr-tabs { background: rgba(255,255,255,0.04); }
.dark .author-hdr-tab:hover { background: rgba(255,255,255,0.08); }
.dark .author-hdr-tab.active { background: var(--surface); }

.author-intro {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}

.author-bio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.author-bio-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1.15;
}
.author-bio-title em { font-style: italic; color: var(--accent); }
.author-bio-divider {
  width: 36px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: .4;
}
.author-bio-text {
  font-size: .97rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.author-bio-text strong { color: var(--text); font-weight: 600; }

.author-photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  align-self: center;
}
.author-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.author-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent-dim);
  color: var(--text-sub);
}
.author-photo-placeholder svg { opacity: .4; }
.author-photo-placeholder span { font-size: .75rem; letter-spacing: .06em; opacity: .6; }

.author-quote {
  background: var(--text);
  border-radius: 20px;
  padding: 44px 52px;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.author-quote::after {
  content: '';
  position: absolute;
  right: -80px; bottom: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05);
  pointer-events: none;
}
.author-quote::before {
  content: '';
  position: absolute;
  right: -30px; bottom: -30px;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.04);
  pointer-events: none;
}
.author-quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  line-height: .7;
  color: var(--accent);
  opacity: .5;
  flex-shrink: 0;
  margin-top: -8px;
}
.author-quote-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 12px;
}
.author-quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 500;
  font-style: italic;
  color: rgba(255,255,255,.88);
  line-height: 1.55;
}

.author-gear-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 16px;
}
.author-gear-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gear-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 16px;
  padding: 26px 26px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gear-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.gear-card-icon { width: 36px; height: 36px; color: var(--accent); }
.gear-card-type {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-sub);
}
.gear-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.gear-card-also { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }
.gear-card-also strong { color: var(--text); font-weight: 600; }

/* ── Stats bar ────────────────────────────── */
.author-stats {
  display: flex;
  margin-top: 24px;
  margin-bottom: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  gap: 8px;
}
.stat-item + .stat-item { border-left: 1px solid var(--border); }
.stat-number-row { display: flex; align-items: center; justify-content: center; width: 100%; }
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-sup {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  vertical-align: baseline;
  line-height: 1;
  opacity: .7;
}
.stat-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-sub);
}

/* ── Countries grid ───────────────────────── */
.author-countries { margin-bottom: 28px; }
.countries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: .88rem;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.country-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.country-flag { width: 18px !important; height: 13px !important; border-radius: 2px; flex-shrink: 0; }
.country-chip--loading { color: var(--text-muted); border-style: dashed; }

@media (max-width: 900px) {
  .author-intro { grid-template-columns: 1fr; }
  .author-photo-placeholder { min-height: 260px; }
  .author-quote { padding: 36px 32px; gap: 20px; }
  .author-quote-text { font-size: 1.3rem; }
}
@media (max-width: 600px) {
  .author-bio-card { padding: 32px 24px; }
  .author-gear-grid { grid-template-columns: 1fr; }
  .author-quote-mark { font-size: 4rem; }
  .author-stats { flex-direction: column; }
  .stat-item + .stat-item { border-left: none; border-top: 1px solid var(--border); }
}

/* ── Videa page ───────────────────────────────────────── */
.yt-split-eyebrow {
  margin-bottom: 16px;
}

.yt-split {
  display: grid;
  grid-template-columns: 340px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid #e60000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.yt-split-dark {
  background: var(--text);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.yt-split-dark::after {
  content: '';
  position: absolute;
  right: -60px; bottom: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
}
.yt-split-dark::before {
  content: '';
  position: absolute;
  right: -20px; bottom: -20px;
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05);
  pointer-events: none;
}

.yt-split-yt-icon { width: 40px; height: 40px; flex-shrink: 0; }

.yt-split-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: #fff;
  line-height: .95;
  letter-spacing: -.02em;
}
.yt-split-name em { font-style: italic; color: rgba(255,255,255,.7); }

.yt-split-handle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  font-size: .76rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
  width: fit-content;
}
.yt-split-handle-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #e60000;
  flex-shrink: 0;
}

.yt-split-light {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.yt-split-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.yt-split-desc {
  font-size: .97rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.yt-split-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.yt-split-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  opacity: .55;
}
.yt-split-tag-moto  { color: var(--c-moto); }
.yt-split-tag-kola  { color: var(--c-kola); }
.yt-split-tag-dovol { color: var(--c-dovol); }
.yt-split-tag-rodina{ color: var(--c-narok); }

.yt-split-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 10px 22px;
  background: transparent;
  color: #e60000;
  border: 1.5px solid rgba(230,0,0,.4);
  border-radius: 9px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  box-shadow: none;
}
.yt-split-btn:hover {
  background: rgba(230,0,0,.07);
  border-color: #e60000;
  transform: translateY(-1px);
  box-shadow: none;
}

/* ── Videa k albům ────────────────────────────────────── */
.videos-section {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.videos-section-hdr {
  padding-top: 40px;
  padding-bottom: 12px;
  margin-bottom: 0;
  text-align: left;
}

.videos-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 0;
}

.videos-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.video-group {
  display: grid;
  grid-template-columns: 160px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.video-group:hover {
  box-shadow: var(--shadow-hover);
}

.video-group-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.video-group-card:hover { background: var(--accent-dim); }
.video-group-card:hover .album-thumb img { transform: scale(1.05); }
.video-group-card .album-thumb { aspect-ratio: 1/1; }
.video-group-card .album-body { padding: 8px 10px 10px; }

.video-group-links {
  padding: 14px 24px 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  position: relative;
}

.video-group-cat {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  opacity: .85;
  color: var(--c-ost);
}
.video-group-cat-dovol  { color: var(--c-dovol); }
.video-group-cat-narok  { color: var(--c-narok); }
.video-group-cat-boys   { color: var(--c-boys); }
.video-group-cat-kola   { color: var(--c-kola); }
.video-group-cat-moto   { color: var(--c-moto); }

.video-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.video-link:hover { color: var(--accent); }

.video-link-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.videos-loading {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .95rem;
}

@media (max-width: 900px) {
  .videos-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .video-group { grid-template-columns: 1fr; }
  .video-group-card { border-right: none; border-bottom: 1px solid var(--border); }
  .video-group-links { padding: 16px 20px; }
}

/* ── Standalone videos ───────────────────────────────────── */
.standalone-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.standalone-video-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.standalone-video-item .year-badge {
  position: static;
  flex-shrink: 0;
}
.standalone-video-item:hover { box-shadow: var(--shadow-hover); }
.standalone-video-item.is-hidden { display: none; }

.standalone-video-item .video-link { flex: 1; min-width: 0; }
.standalone-video-item .video-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.standalone-video-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.standalone-video-cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  opacity: .85;
  color: var(--c-ost);
}
.standalone-video-cat.video-group-cat-dovol    { color: var(--c-dovol); }
.standalone-video-cat.video-group-cat-narok    { color: var(--c-narok); }
.standalone-video-cat.video-group-cat-boys     { color: var(--c-boys); }
.standalone-video-cat.video-group-cat-kola     { color: var(--c-kola); }
.standalone-video-cat.video-group-cat-moto     { color: var(--c-moto); }
.standalone-video-cat.video-group-cat-divadlo  { color: var(--c-divadlo); }
.standalone-video-cat.video-group-cat-akva     { color: var(--c-akva); }

.standalone-filter {
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .standalone-video-item {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 14px 16px;
  }
  .standalone-video-item .video-link {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .standalone-video-tags {
    width: 100%;
    margin-top: 2px;
    justify-content: flex-start;
    padding-left: 2px; /* Slight offset to align with text start if needed */
  }
}

@media (max-width: 900px) {
  .yt-split { grid-template-columns: 1fr; }
  .yt-split-dark { padding: 36px 32px; }
  .yt-split-light { padding: 32px 32px; }
}
@media (max-width: 600px) {
  .yt-split-name { font-size: 2.1rem; }
}

/* ── Page Header ──────────────────────────────────────── */
.page-header {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 20px 24px 0;
}

.page-header-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.1;
}

/* ── Desktop header category pills ───────────────────────── */
.desktop-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: center;
}
.desktop-cat-item {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  transition: all var(--transition);
  user-select: none;
}
.desktop-cat-item:hover { border-color: var(--accent); color: var(--accent); }
.desktop-cat-item.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.page-title .count {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-left: 12px;
  letter-spacing: 0;
}
.page-title .count strong { font-weight: 700; }

/* ── Pagination ───────────────────────────────────────── */
.pagination-wrap {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: center;
}

.pagination { display: flex; align-items: center; gap: 4px; }
.pagination-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: .82rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: .3; cursor: default; }

.page-btn.page-nav {
  border-color: transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
}
.page-btn.page-nav:hover:not(:disabled) { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.page-btn.page-nav:disabled { opacity: .25; }

/* ── Load more ────────────────────────────────────────── */
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 48px;
}
.load-more-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1.5px solid var(--accent);
  border-radius: 24px;
  padding: 10px 28px;
  cursor: pointer;
  transition: all var(--transition);
}
.load-more-btn:hover { background: var(--accent); color: #fff; }
html.dark .load-more-btn { background: #1e3a5f; border-color: #4d8aed; color: #4d8aed; }
html.dark .load-more-btn:hover { background: #4d8aed; color: #fff; }

/* ── Album Grid ───────────────────────────────────────── */
.albums-wrap {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ── Album Card ───────────────────────────────────────── */
.album-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  animation: cardIn .28s ease both;
}

.album-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.album-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: var(--border);
}

.album-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.album-card:hover .album-thumb img { transform: scale(1.06); }

.year-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: #5c84ca;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 9px;
  border-radius: 20px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.album-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #dce8f8, #c4d4ee);
}
.album-thumb-placeholder svg { width: 44%; height: 44%; }

.album-thumb-broken {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #dce8f8, #c4d4ee);
}
.album-thumb-broken svg { width: 44%; height: 44%; }

.album-row-thumb-broken {
  width: 62px; height: 46px; border-radius: 7px; flex-shrink: 0;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
}
.album-row-thumb-broken svg { width: 20px; height: 20px; }

.album-body {
  padding: 11px 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.album-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -.01em;
}
.album-title-suffix {
  font-weight: 400;
  color: #4d8aed;
}

.album-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 400;
}

.album-sub svg {
  width: 13px; height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
  opacity: .7;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── No results ───────────────────────────────────────── */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  font-size: .95rem;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 22px 24px;
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
  letter-spacing: .01em;
}
footer a { color: var(--accent); font-weight: 600; }
.footer-social { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-social a:hover { color: var(--accent); background: var(--accent-dim); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }

/* ── Nav admin gear ────────────────────────────────────── */
.nav-admin { position: relative; border-left: 1px solid var(--border); padding-left: 8px; margin-left: 4px; }
.nav-admin-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-admin-btn:hover { color: var(--accent); background: var(--accent-dim); }
.nav-admin-btn svg { width: 16px; height: 16px; }
.nav-admin-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 130px;
  z-index: 200;
}
.nav-admin:hover .nav-admin-menu,
.nav-admin:focus-within .nav-admin-menu { display: block; }
.nav-admin-menu a {
  display: block;
  padding: 8px 14px;
  font-size: .8rem;
  font-weight: 400;
  color: var(--text-muted) !important;
  text-decoration: none;
  transition: all var(--transition);
}
.nav-admin-menu a:hover { color: var(--text) !important; background: var(--bg); }
.nav-admin-menu a.active { color: var(--accent) !important; font-weight: 600; }

/* ── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #b0b8c8; }

/* ── Dark mode ────────────────────────────────────────── */
html.dark {
  --bg:           #111827;
  --surface:      #1f2937;
  --border:       #374151;
  --border-light: #2d3748;
  --text:         #f1f5f9;
  --text-muted:   #94a3b8;
  --text-sub:     #64748b;
  --accent:       #4d8aed;
  --accent-dim:   rgba(77,138,237,.12);
  --shadow:       0 1px 3px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.4);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.4), 0 20px 48px rgba(0,0,0,.6);
}

html.dark .home-cat-tile-count,
html.dark .home-cat-tile-badge { background: #2d3748; color: #94a3b8; }

html.dark .desktop-cat-item { background: #2d3748; }

html.dark .album-thumb-placeholder { background: linear-gradient(145deg, #1e2d42, #162236); }
html.dark .album-thumb-broken { background: linear-gradient(145deg, #1e2d42, #162236); }
html.dark .album-row-thumb-broken { background: #1e2d42; }

html.dark .author-quote,
html.dark .yt-split-dark { background: #0d1117; }

html.dark .year-count {
  background: #2d3748;
  border-color: #374151;
  color: #94a3b8;
}
html.dark .year-count b { color: #4d8aed; }
html.dark .year-country-pill { color: #94a3b8; }

html.dark ::-webkit-scrollbar-thumb:hover { background: #4a5568; }

/* ── Theme toggle button ──────────────────────────────── */
.theme-toggle {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--accent); background: var(--accent-dim); }
.theme-toggle svg { width: 17px; height: 17px; stroke: currentColor; fill: none; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html.dark .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }
html.dark .mobile-theme-toggle span { font-size: 0; }
html.dark .mobile-theme-toggle span::after { content: 'Světlý režim'; font-size: .9rem; }

.mobile-theme-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  width: 100%;
  transition: all var(--transition);
}
.mobile-theme-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.mobile-theme-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Mobile menu button ───────────────────────────────── */
.nav-menu-btn {
  display: none;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 20px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-menu-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.nav-menu-btn.open { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.nav-menu-btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .2s ease; }
.nav-menu-btn.open svg { transform: rotate(90deg); }

/* ── Mobile menu overlay ──────────────────────────────── */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 150;
}
.mobile-menu.open { display: block; }

.mobile-menu-links {
  list-style: none;
  padding: 8px 16px 12px;
}
.mobile-menu-links > li > a {
  display: block;
  padding: 10px 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all var(--transition);
}
.mobile-menu-links > li > a:hover,
.mobile-menu-links > li > a.active { color: var(--accent); background: var(--accent-dim); }
.mobile-menu-links > li.mobile-sep { border-top: 1px solid var(--border); margin: 6px 8px; }

.mobile-menu-links > li.mobile-cat-item {
  display: block;
  padding: 10px 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  border: none;
  background: none;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.mobile-menu-links > li.mobile-cat-item:hover { color: var(--accent); background: var(--accent-dim); }
.mobile-menu-links > li.mobile-cat-item.active { color: var(--accent); background: var(--accent-dim); }

.mobile-cat-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 8px 12px;
}
.mobile-cat-item {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  transition: all var(--transition);
  user-select: none;
}
.mobile-cat-item:hover { border-color: var(--accent); color: var(--accent); }
.mobile-cat-item.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1200px) {
  .albums-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .albums-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .home-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 3rem; }
}
@media (max-width: 900px) {
  .hero-banner { height: 290px; }
}
@media (max-width: 600px) {
  .albums-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .page-header-top { flex-direction: row; align-items: center; gap: 8px; }
  .page-header-top .page-title { flex: 1; }
  .desktop-cats { display: none; }
  .page-title { font-size: 1.75rem; }
  .nav-brand { font-size: 1.25rem; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-menu-btn { display: flex; }
  .album-body { padding: 8px 10px 10px; }
  .album-title { font-size: .82rem; }
  .home-cats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nav { padding-left: 12px; padding-right: 12px; }
  .home-cats { padding-left: 12px; padding-right: 12px; }
  .page-header { padding-left: 12px; padding-right: 12px; }
  .albums-wrap { padding-left: 12px; padding-right: 12px; }
  .author-wrap { padding-left: 12px; padding-right: 12px; }
  footer { padding-left: 12px; padding-right: 12px; }
  .home-cat-tile-count { display: none; }
  .home-cat-tile-badge { display: block; }
  .hero-title { font-size: 2.3rem; }
  .hero { padding: 48px 12px 40px; }
  .hero-banner { height: 220px; }
  .hero-banner-logo { width: 150px; }
  .hero-banner-subtitle { font-size: .8rem; }
  .nav-brand-tagline { display: none; }
  .nav-brand-icon { width: 36px; height: 36px; }
  .nav-brand-name { font-size: 1.1rem; }
  .yt-card { padding: 36px 12px 32px; }
  .author-hdr { flex-direction: column; text-align: center; align-items: center; gap: 16px; padding-bottom: 28px; }
  .author-hdr-tabs { margin-top: 0; }
}

/* ── Zarámování obsahové části ────────────────────────── */
body {
  background: #e8f0fa;
}
html.dark body {
  background: #090f1c;
}

.content-frame {
  /* Stejná max-width jako --page-width — layout uvnitř se nemění */
  max-width: var(--page-width);
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 60px rgba(0,0,0,.06);
}
html.dark .content-frame {
  box-shadow: 0 0 80px rgba(0,0,0,.4);
}
/* Na menších obrazovkách shadow zmizí (frame není vidět) */
@media (max-width: 1400px) {
  .content-frame { box-shadow: none; }
}

/* ── Nav search (shared across pages) ────────────────────── */
.nav-search { display: flex; align-items: center; gap: 4px; }
.nav-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1.5px solid transparent; background: none;
  color: var(--text-muted); cursor: pointer; transition: all .15s; flex-shrink: 0;
}
.nav-search-btn:hover, .nav-search.open .nav-search-btn {
  border-color: var(--accent); color: var(--accent); background: var(--accent-dim);
}
.nav-search-btn svg { width: 15px; height: 15px; }
.nav-search-input {
  width: 0; max-width: 0; opacity: 0; border: none; outline: none;
  background: transparent; font-family: 'DM Sans', sans-serif;
  font-size: .85rem; color: var(--text);
  transition: width .25s ease, max-width .25s ease, opacity .2s ease;
  pointer-events: none;
}
.nav-search.open .nav-search-input {
  width: 190px; max-width: 190px; opacity: 1; pointer-events: auto;
  border-bottom: 1.5px solid var(--border); padding: 2px 4px;
}
.nav-search-input:focus { border-color: var(--accent); outline: none; }
.nav-search-input::placeholder { color: var(--text-muted); }
.nav-search-input::-webkit-search-cancel-button { display: none; }
.search-bar-mobile { display: none; padding: 8px 12px 10px; border-top: 1px solid var(--border-light); }
.search-bar-mobile-inner {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 7px 12px;
}
.search-bar-mobile-inner svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.search-bar-mobile-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: 'DM Sans', sans-serif; font-size: .88rem; color: var(--text);
}
.search-bar-mobile-input::placeholder { color: var(--text-muted); }
/* .search-bar-mobile is shown only on alba.html via its own inline media query */
