/* ============================================================
   F6.1.1 — Členská sekce kurzu (davidvas.cz/clenska-sekce/)
   Light theme matching davidvas.cz design system.
   Reuses --primary, --foreground, --gradient-* tokens z /styles.css.
   ============================================================ */

.cs-body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.cs-body main { flex: 1; }

/* ── Navbar greeting + logout (světlý navbar — používá davidvas.cz styling) ── */
.cs-user-greeting {
  display: inline-block;
  margin-right: 12px;
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  font-size: 14px;
}

/* ── Loading ───────────────────────────────────────────────── */
.cs-loading { min-height: 60vh; }
.cs-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid hsla(145, 15%, 88%, 1);
  border-top-color: hsl(var(--primary));
  border-radius: 50%;
  animation: cs-spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes cs-spin { to { transform: rotate(360deg); } }
.cs-loading-inline {
  text-align: center;
  padding: 48px 20px;
  color: hsl(var(--muted-foreground));
  font-size: 14px;
}

/* ── Course header (zelený gradient hero — jako .hero menší) ── */
.cs-course-header {
  background: var(--gradient-primary);
  padding: 96px 0 48px;   /* zvětšený top padding ať obsah neřeže navbar */
  margin-top: 0;
  color: hsl(var(--primary-foreground));
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .cs-course-header { padding: 80px 0 36px; }
}
.cs-course-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.55;
  pointer-events: none;
}
.cs-course-header .container,
.cs-course-header .container-narrow {
  position: relative;
  z-index: 1;
}
.cs-course-header h1 {
  margin: 0 0 8px;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: hsl(var(--primary-foreground));
  line-height: 1.15;
}
.cs-course-header p {
  margin: 0;
  color: hsla(0, 0%, 100%, 0.88);
  font-size: 15px;
  font-weight: 500;
}

/* ── Tabs ─────────────────────────────────────────────────────
   Desktop (≥769px): sticky top bar pod hero, indikátor zespodu.
   Mobile (≤768px): FIXED bottom nav s indikátorem shora + safe-area
   pro iPhone notch (CLAUDE.md mandate).
   ───────────────────────────────────────────────────────────── */
.cs-tabs {
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 hsl(var(--border));
}
.cs-tabs-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cs-tab-btn {
  flex-shrink: 0;
  padding: 16px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  font-family: inherit;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.cs-tab-btn:hover { color: hsl(var(--foreground)); }
.cs-tab-btn.active {
  color: hsl(var(--primary));
  border-bottom-color: hsl(var(--primary));
}

@media (max-width: 768px) {
  .cs-tabs {
    /* Fixed bottom nav (mobile pattern jako klubová appka) */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    border-bottom: none;
    border-top: 1px solid hsl(var(--border));
    box-shadow: 0 -3px 14px hsla(0, 0%, 0%, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .cs-tabs-inner {
    gap: 0;
    justify-content: space-around;
    overflow-x: visible;
  }
  .cs-tab-btn {
    flex: 1;
    padding: 12px 6px 14px;
    border-bottom: none;
    border-top: 2px solid transparent;     /* active indicator se přesune nahoru */
    font-size: 11.5px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    color: hsl(var(--muted-foreground));
  }
  .cs-tab-btn.active {
    color: hsl(var(--primary));
    border-bottom-color: transparent;
    border-top-color: hsl(var(--primary));
    background: hsla(145, 75%, 28%, 0.04);
  }
  /* Content musí mít prostor pro fixed bottom nav (cca 64px + safe-area) */
  .cs-content-wrap {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  /* Footer (© David Vaš…) taky zvednout, aby nemizel pod tabs */
  .cs-footer {
    padding-bottom: calc(24px + 70px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Content shell ───────────────────────────────────────────── */
.cs-content-wrap {
  padding: 36px 16px 96px;
  background: hsl(145, 25%, 98%);
  min-height: 60vh;
}
.cs-content { color: hsl(var(--foreground)); }

/* ── Týdny grid (F6.2.1 — gradient karty s lock states) ────────
   Velké číslo týdne na barevném gradient pozadí + bílá lower-half
   s názvem/popisem/status. Lock state = zšeřená karta + 🔒 + datum.
   ───────────────────────────────────────────────────────────── */
.cs-weeks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .cs-weeks-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 1024px) {
  .cs-weeks-grid { grid-template-columns: repeat(3, 1fr); }
}

.cs-week-card {
  --cs-grad-from: hsl(145, 50%, 32%);
  --cs-grad-to:   hsl(150, 60%, 18%);
  background: hsl(var(--card));
  border: 1px solid hsla(145, 15%, 88%, 0.6);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--transition-smooth), box-shadow 0.25s var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}
.cs-week-card--unlocked { cursor: pointer; }
.cs-week-card--unlocked:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px hsla(145, 50%, 22%, 0.20), 0 4px 12px hsla(0, 0%, 0%, 0.06);
}
.cs-week-card--unlocked:focus-visible {
  outline: 3px solid var(--cs-grad-from);
  outline-offset: 2px;
}

/* ── Visual area: foto NEBO jemný gradient + tmavý overlay + lock circle ── */
.cs-week-card__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: #fff;
  padding: 16px 18px;
  overflow: hidden;
  background-color: var(--cs-grad-to);
  background-size: cover;
  background-position: center;
}
.cs-week-card__visual--gradient {
  background-image: linear-gradient(135deg, var(--cs-grad-from) 0%, var(--cs-grad-to) 100%);
}
/* Tmavý overlay přes celou visual area — výraznější pro locked */
.cs-week-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, hsla(0, 0%, 0%, 0.1) 0%, hsla(0, 0%, 0%, 0.55) 100%);
  pointer-events: none;
  transition: background 0.25s ease;
}
.cs-week-card--locked .cs-week-card__overlay {
  background: hsla(0, 0%, 0%, 0.62);
}
.cs-week-card--locked .cs-week-card__body { opacity: 0.85; }
.cs-week-card--locked .cs-week-card__visual--gradient {
  /* Trošku desaturovat gradient pod overlayem */
  filter: saturate(0.5);
}
.cs-week-card--unlocked:hover .cs-week-card__overlay {
  background: linear-gradient(180deg, hsla(0, 0%, 0%, 0.05) 0%, hsla(0, 0%, 0%, 0.5) 100%);
}

/* Lock circle uprostřed — kruhový background, jemný SVG icon */
.cs-week-card__lock-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1.5px solid hsla(0, 0%, 100%, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
  box-shadow: 0 4px 14px hsla(0, 0%, 0%, 0.25);
}
.cs-week-card__lock-circle svg {
  width: 24px;
  height: 24px;
}
.cs-week-card__label {
  position: relative;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.95);
  text-shadow: 0 1px 4px hsla(0, 0%, 0%, 0.45);
}

/* Body */
.cs-week-card__body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cs-week-card__title {
  margin: 0 0 6px;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: hsl(var(--foreground));
}
.cs-week-card__description {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  flex: 1;
}
.cs-week-card__status { margin-top: auto; }

/* Status badges (sdílené pro grid + detail) */
.cs-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.cs-status-badge--success {
  background: hsla(142, 70%, 45%, 0.12);
  color: hsl(150, 80%, 22%);
}
.cs-status-badge--locked {
  background: hsla(215, 15%, 50%, 0.12);
  color: hsl(215, 25%, 32%);
}
.cs-status-badge--muted {
  background: hsla(215, 15%, 50%, 0.08);
  color: hsl(215, 15%, 45%);
}

/* Per-week color variants — tlumené, harmonické (souznění s davidvas.cz green brand) */
.cs-week-card[data-week="1"]     { --cs-grad-from: #1f8a5c; --cs-grad-to: #0f4d33; }
.cs-week-card[data-week="2"]     { --cs-grad-from: #2b7a8c; --cs-grad-to: #154857; }
.cs-week-card[data-week="3"]     { --cs-grad-from: #5d4a8a; --cs-grad-to: #322755; }
.cs-week-card[data-week="4"]     { --cs-grad-from: #9c6a2a; --cs-grad-to: #5a3a14; }
.cs-week-card[data-week="5"]     { --cs-grad-from: #94413f; --cs-grad-to: #5a2422; }
.cs-week-card[data-week="6"]     { --cs-grad-from: #8a4670; --cs-grad-to: #4e2440; }
.cs-week-card[data-week="7"]     { --cs-grad-from: #3a5a8a; --cs-grad-to: #1d3357; }
.cs-week-card[data-week="8"]     { --cs-grad-from: #2a7a72; --cs-grad-to: #134845; }
.cs-week-card[data-week="bonus"] { --cs-grad-from: #a07a2a; --cs-grad-to: #604610; }

/* ── Detail (week / exercise / tip) ──────────────────────────── */
.cs-detail {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 20px;
  padding: 28px 28px 32px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 640px) {
  .cs-detail { padding: 20px 18px 24px; }
}
.cs-back-btn {
  background: none;
  border: none;
  color: hsl(var(--primary));
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0;
  cursor: pointer;
  margin-bottom: 18px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cs-back-btn:hover { color: hsl(var(--primary-deep)); }
.cs-detail-header { margin-bottom: 20px; }
.cs-detail-header h2 {
  margin: 10px 0 0;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.7rem;
  color: hsl(var(--foreground));
  font-weight: 800;
  line-height: 1.2;
}
.cs-detail h2 {
  margin: 8px 0 14px;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.5rem;
  color: hsl(var(--foreground));
  font-weight: 800;
}
.cs-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #000;
}
.cs-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-detail-body {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 24px;
  color: hsl(var(--foreground));
}
.cs-detail-body h2,
.cs-detail-body h3 {
  margin: 1.5em 0 .5em;
  color: hsl(var(--foreground));
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-weight: 700;
}
.cs-detail-body h2 { font-size: 1.4rem; }
.cs-detail-body h3 { font-size: 1.15rem; }
.cs-detail-body a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cs-detail-body a:hover { color: hsl(var(--primary-deep)); }
.cs-detail-body ul, .cs-detail-body ol { padding-left: 1.4em; margin: 0 0 1em; }
.cs-detail-body li { margin-bottom: 0.4em; }
.cs-detail-body p { margin: 0 0 1em; }
.cs-detail-body strong { color: hsl(var(--foreground)); }
.cs-detail-body blockquote {
  border-left: 3px solid hsl(var(--primary));
  padding: 4px 0 4px 16px;
  margin: 1em 0;
  color: hsl(var(--muted-foreground));
  font-style: italic;
}

.cs-resources {
  background: hsla(145, 25%, 96%, 0.7);
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.cs-resources h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: hsl(var(--foreground));
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-weight: 700;
}
.cs-resources ul { list-style: none; padding: 0; margin: 0; }
.cs-resources li {
  padding: 10px 0;
  border-bottom: 1px solid hsl(var(--border));
}
.cs-resources li:last-child { border-bottom: none; }
.cs-resources a {
  color: hsl(var(--primary));
  text-decoration: none;
  font-weight: 500;
}
.cs-resources a:hover { text-decoration: underline; }

/* ── Cviky ───────────────────────────────────────────────────── */
.cs-exercise-cat { margin-bottom: 32px; }
.cs-exercise-cat h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  color: hsl(var(--foreground));
  font-weight: 700;
}
.cs-exercises-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .cs-exercises-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.cs-exercise-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-card);
}
.cs-exercise-card:hover {
  transform: translateY(-2px);
  border-color: hsla(142, 70%, 45%, 0.5);
  box-shadow: var(--shadow-card-hover);
}
.cs-exercise-card img,
.cs-exercise-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--gradient-glow), hsla(145, 25%, 96%, 1);
}
.cs-exercise-card h4 {
  padding: 10px 12px 12px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: hsl(var(--foreground));
}

/* ── Tipy ────────────────────────────────────────────────────── */
.cs-tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .cs-tips-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.cs-tip-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-card);
}
.cs-tip-card:hover {
  border-color: hsla(142, 70%, 45%, 0.5);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
}
.cs-tip-card.is-highlighted {
  border-color: hsla(142, 70%, 45%, 0.6);
  background: linear-gradient(145deg, hsl(var(--card)) 0%, hsla(142, 70%, 95%, 0.5) 100%);
}
.cs-tip-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: hsl(var(--foreground));
  font-weight: 700;
  font-family: var(--font-display, 'Montserrat', sans-serif);
}
.cs-tip-card small {
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ── Empty state ─────────────────────────────────────────────── */
.cs-empty {
  text-align: center;
  padding: 64px 24px;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--card));
  border: 1px dashed hsl(var(--border));
  border-radius: 20px;
}
.cs-empty p { margin: 8px 0; }
.cs-empty p:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* ── Footer ──────────────────────────────────────────────────── */
.cs-footer {
  background: hsl(145, 25%, 96%);
  border-top: 1px solid hsl(var(--border));
  padding: 24px 16px;
  margin-top: auto;
}
.cs-footer .container { color: hsl(var(--muted-foreground)); }

/* ============================================================
   Login page — zelený hero gradient pozadí, bílá karta (jako .hero feel)
   ============================================================ */
.cs-login-page {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 80px);
  padding: 64px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.cs-login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.5;
  pointer-events: none;
}
.cs-login-page .container,
.cs-login-page .container-narrow {
  position: relative;
  z-index: 1;
}
.cs-login-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow-hero);
  color: hsl(var(--foreground));
}
.cs-login-card h1 {
  margin: 0 0 10px;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.7rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  line-height: 1.2;
}
.cs-login-lead {
  margin: 0 0 24px;
  color: hsl(var(--muted-foreground));
  font-size: 14px;
}
.cs-login-card label {
  display: block;
  margin: 14px 0 6px;
  color: hsl(var(--foreground));
  font-weight: 600;
  font-size: 13px;
}
.cs-login-card input[type="email"],
.cs-login-card input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  color: hsl(var(--foreground));
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.cs-login-card input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(145, 75%, 28%, 0.1);
}
.cs-login-card button[type="submit"] {
  width: 100%;
  margin-top: 22px;
}
.cs-error-msg {
  background: hsla(0, 90%, 96%, 1);
  border: 1px solid hsla(0, 80%, 70%, 0.5);
  color: hsl(0, 75%, 35%);
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 14px;
  font-size: 13px;
}
.cs-login-actions {
  text-align: center;
  margin: 16px 0 0;
  font-size: 13px;
}
.cs-login-actions a {
  color: hsl(var(--muted-foreground));
  text-decoration: underline;
}
.cs-login-actions a:hover { color: hsl(var(--primary)); }
.cs-divider {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin: 24px 0 18px;
}
.cs-login-footnote {
  font-size: 12.5px;
  color: hsl(var(--muted-foreground));
  text-align: center;
  line-height: 1.6;
  margin: 0;
}
.cs-login-footnote a { color: hsl(var(--primary)); font-weight: 600; }
.cs-login-footnote a:hover { text-decoration: underline; }

/* ============================================================
   F6.2.6 — Mobile-only refinement (< 640px)
   Cíl: kompaktnější karty týdnů, line-clamp na title/description,
   menší lock circle, tighter spacing. Desktop ≥640px beze změny.
   ============================================================ */

@media (max-width: 639px) {
  /* Tighter grid spacing */
  .cs-weeks-grid {
    gap: 14px;
  }

  /* Subtle shadow, menší radius — mobile feels lighter */
  .cs-week-card {
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  /* Visual area — banner ratio (širší, ne vyšší) */
  .cs-week-card__visual {
    aspect-ratio: 21 / 9;
    padding: 12px 16px;
  }

  /* Lock circle — menší (44px místo 56px) */
  .cs-week-card__lock-circle {
    width: 44px;
    height: 44px;
  }
  .cs-week-card__lock-circle svg {
    width: 20px;
    height: 20px;
  }

  /* Label „TÝDEN N" — kompaktní */
  .cs-week-card__label {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  /* Body — méně paddingu */
  .cs-week-card__body {
    padding: 14px 18px 16px;
  }

  /* Title — 2 řádky max, žádné rozletění */
  .cs-week-card__title {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
            line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    hyphens: none;
  }

  /* Description — 2 řádky max */
  .cs-week-card__description {
    font-size: 0.825rem;
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
            line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    hyphens: none;
  }

  /* Status badge — jednořádkový s ellipsis pokud dlouhý */
  .cs-status-badge,
  .status-badge {
    font-size: 0.72rem;
    padding: 5px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* Locked karty — lepší contrast (čitelnost) */
  .cs-week-card--locked .cs-week-card__body {
    opacity: 0.92;   /* z 0.85 → 0.92, čitelnější */
  }

  /* C.1 — Tap target feedback (mobile UX) */
  .cs-week-card--unlocked {
    -webkit-tap-highlight-color: rgba(16, 185, 129, 0.15);
  }
  .cs-week-card--unlocked:active {
    transform: scale(0.985);
    transition: transform 0.1s ease;
  }
}

/* Extra small (iPhone SE 1st gen, 320px) */
@media (max-width: 374px) {
  .cs-week-card__visual {
    aspect-ratio: 21 / 9;
    padding: 10px 14px;
  }
  .cs-week-card__lock-circle {
    width: 40px;
    height: 40px;
  }
  .cs-week-card__lock-circle svg {
    width: 18px;
    height: 18px;
  }
  .cs-week-card__body {
    padding: 12px 16px 14px;
  }
  .cs-week-card__title {
    font-size: 0.95rem;
  }
  .cs-week-card__description {
    font-size: 0.78rem;
  }
}
