/* Church Teachings — v1.0.0 */
:root {
  --ct-blue:   #3a489b;
  --ct-dark:   #162d68;
  --ct-yellow: #dddb00;
  --ct-bg:     #f0f2fa;
  --ct-card:   #ffffff;
  --ct-border: #dde1f0;
  --ct-text:   #111827;
  --ct-muted:  #6b7280;
  --ct-radius: 14px;
  --ct-speed:  0.2s;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.ct-btn {
  display: inline-flex !important; align-items: center !important;
  justify-content: center !important; gap: 6px;
  padding: 10px 22px !important; border-radius: 10px !important;
  font-size: 13px !important; font-weight: 700 !important;
  cursor: pointer !important; border: 2px solid transparent !important;
  text-decoration: none !important; transition: all var(--ct-speed) !important;
}
.ct-btn-primary { background: var(--ct-blue) !important; color: #fff !important; }
.ct-btn-primary:hover { background: var(--ct-yellow) !important; color: #111 !important; }

/* ── Cards ───────────────────────────────────────────────────── */
.ct-card {
  background: var(--ct-card); border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius); overflow: hidden;
  transition: transform var(--ct-speed), box-shadow var(--ct-speed);
  cursor: pointer;
}
.ct-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(58,72,155,.1); }
.ct-card-thumb-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.ct-card-thumb { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.ct-card:hover .ct-card-thumb { transform: scale(1.04); }
.ct-thumb-placeholder { display:flex;align-items:center;justify-content:center;font-size:32px; }
.ct-play-overlay { position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.2);opacity:0;transition:opacity var(--ct-speed); }
.ct-card:hover .ct-play-overlay { opacity:1; }
.ct-play-circle { width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;color:#111; }
.ct-card-duration { position:absolute;bottom:8px;right:8px;background:rgba(0,0,0,.75);color:#fff;font-size:11px;padding:2px 6px;border-radius:4px; }
.ct-card-episode  { position:absolute;top:8px;left:8px;color:#fff;font-size:10px;font-weight:700;padding:2px 8px;border-radius:20px; }
.ct-card-body { padding: 12px 14px 14px; }
.ct-card-cat  { font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase; }
.ct-card-title { font-size:14px;font-weight:700;color:var(--ct-text);margin:4px 0 6px;line-height:1.4; }
.ct-card-title a { color:inherit;text-decoration:none; }
.ct-card-title a:hover { color:var(--ct-blue); }
.ct-card-verse { font-size:12px;color:var(--ct-muted);margin:0 0 6px; }
.ct-card-meta  { display:flex;align-items:center;gap:6px;font-size:11px;color:var(--ct-muted); }
.ct-card-avatar { border-radius:50%;width:20px;height:20px;object-fit:cover; }
.ct-card-date { margin-left:auto; }

/* Archive grids */
.ct-archive-wrap { max-width:1100px;margin:0 auto;padding:20px 16px 40px; }
.ct-archive-header { padding:20px 0 16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap; }
.ct-archive-icon { font-size:32px; }
.ct-archive-title { font-size:22px;font-weight:900;color:var(--ct-blue);margin:0; }
.ct-archive-desc { font-size:14px;color:var(--ct-muted);margin:6px 0 0;width:100%; }
.ct-posts-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin-top:20px; }
.ct-posts-row  { display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px; }

.ct-series-group { margin-bottom:32px; }
.ct-series-group-header { display:flex;align-items:center;gap:14px;margin-bottom:14px; }
.ct-series-group-cover { width:80px;height:56px;object-fit:cover;border-radius:8px;flex-shrink:0; }
.ct-series-group-name { font-size:17px;font-weight:800;color:var(--ct-text);margin:0 0 4px; }
.ct-series-all-link { font-size:13px;font-weight:700;text-decoration:none; }

/* Category badge */
.ct-cat-badge { display:inline-flex;align-items:center;gap:5px;padding:4px 12px;border-radius:20px;color:#fff;font-size:12px;font-weight:700;text-decoration:none; }

/* ── Single teaching ──────────────────────────────────────────── */
.ct-single-wrap { max-width:780px;margin:0 auto;padding:20px 16px 60px; }

.ct-breadcrumb { display:flex;align-items:center;gap:8px;margin-bottom:16px;flex-wrap:wrap; }
.ct-breadcrumb-sep { color:var(--ct-muted); }
.ct-series-link { font-size:13px;font-weight:600;color:var(--ct-muted);text-decoration:none; }
.ct-series-link:hover { color:var(--ct-blue); }
.ct-ep-num { background:var(--ct-bg);border-radius:20px;padding:1px 7px;font-size:11px;margin-left:4px; }

.ct-single-title { font-size:24px;font-weight:900;color:var(--ct-text);margin:0 0 14px;line-height:1.3; }

.ct-verse-ref-bar { display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--ct-bg);border-radius:10px;margin-bottom:16px; }
.ct-verse-open-btn { border:none;background:transparent;font-size:15px;font-weight:700;cursor:pointer;padding:0;text-decoration:underline dotted;text-underline-offset:3px; }

/* ── Single post video ─────────────────────────────────────── */
.ct-video-outer {
  position: relative;
  margin-bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

/* Horizontal 16:9 — stays 16:9 on desktop */
.ct-horizontal {
  aspect-ratio: 16 / 9;
}
.ct-horizontal .ct-video-inner {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 9/16 */
  height: 0;
}
.ct-horizontal .ct-iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Vertical 9:16 — stays 9:16 everywhere */
.ct-vertical {
  aspect-ratio: 9 / 16;
  max-height: 75vh;
  max-width: 420px;
  margin: 0 auto;
}
.ct-vertical .ct-video-inner {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%; /* 16/9 */
  height: 0;
}
.ct-vertical .ct-iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.ct-horizontal-overlay { display: none; }

/* ── Mobile: horizontal video zooms to fill screen vertically ─ */
@media (max-width: 640px) {
  .ct-horizontal {
    aspect-ratio: 9 / 16;  /* become portrait container */
    max-height: 85vh;
  }
  .ct-horizontal .ct-video-inner {
    position: absolute;
    inset: 0;
    padding-bottom: 0;
    width: 100%;
    height: 100%;
  }
  .ct-horizontal .ct-iframe {
    /* Scale 16:9 video to fill 9:16 container — crop sides slightly */
    width: 177.78%;       /* 16/9 × 100% */
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    position: absolute;
  }
  .ct-horizontal {
    position: relative;
    overflow: hidden;
  }
}
.ct-fullscreen-btn {
  position:absolute;bottom:10px;right:10px;
  background:rgba(0,0,0,.6);color:#fff;border:none;border-radius:8px;
  padding:7px 12px;font-size:12px;font-weight:600;cursor:pointer;
  display:flex;align-items:center;gap:5px;backdrop-filter:blur(4px);
  transition:background var(--ct-speed);
}
.ct-fullscreen-btn:hover { background:rgba(58,72,155,.8); }
.ct-duration-badge { position:absolute;top:10px;left:10px;background:rgba(0,0,0,.65);color:#fff;font-size:12px;padding:3px 8px;border-radius:6px; }

/* Audio */
.ct-audio-wrap { padding:14px;background:var(--ct-bg);border-radius:12px;margin-bottom:14px; }
.ct-audio-label { display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--ct-text);margin-bottom:8px; }
.ct-audio-player { width:100%;border-radius:8px; }

/* Meta bar */
.ct-meta-bar { display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--ct-border);border-bottom:1px solid var(--ct-border);margin-bottom:20px;flex-wrap:wrap; }
.ct-author { display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--ct-text); }
.ct-author-avatar { border-radius:50%;width:28px;height:28px;object-fit:cover; }
.ct-date { font-size:12px;color:var(--ct-muted);margin-left:auto; }
.ct-fav-toggle {
  display:flex;align-items:center;gap:5px;padding:6px 14px;
  border:1.5px solid var(--ct-border);border-radius:20px;background:transparent;
  color:var(--ct-muted);font-size:13px;font-weight:600;cursor:pointer;
  transition:all var(--ct-speed);
}
.ct-fav-toggle.active,.ct-fav-toggle:hover { background:var(--ct-blue);color:#fff;border-color:var(--ct-blue); }

/* Content */
.ct-content { font-size:16px;line-height:1.85;color:var(--ct-text);margin-bottom:24px; }
.ct-content h2 { font-size:20px;font-weight:800;color:var(--ct-blue);margin:28px 0 12px; }
.ct-content h3 { font-size:17px;font-weight:700;margin:22px 0 10px; }
.ct-content p  { margin:0 0 16px; }
.ct-content blockquote { border-left:4px solid var(--ct-blue);padding:10px 16px;background:var(--ct-bg);border-radius:0 8px 8px 0;margin:16px 0;font-style:italic; }

/* Transcript */
.ct-transcript-wrap { margin-bottom:24px; }
.ct-transcript-toggle { display:flex;align-items:center;gap:6px;padding:8px 14px;border:1.5px solid var(--ct-border);border-radius:8px;background:transparent;cursor:pointer;font-size:13px;font-weight:600;color:var(--ct-text); }
.ct-transcript-toggle:hover { border-color:var(--ct-blue);color:var(--ct-blue); }
.ct-transcript-body { margin-top:10px;padding:14px;background:var(--ct-bg);border-radius:10px;font-size:14px;line-height:1.8;color:var(--ct-text);max-height:400px;overflow-y:auto; }

/* Series nav */
.ct-series-nav { display:flex;justify-content:space-between;gap:10px;margin-bottom:28px;flex-wrap:wrap; }
.ct-series-nav-btn { display:flex;align-items:center;gap:6px;padding:10px 16px;border:1.5px solid var(--ct-border);border-radius:10px;text-decoration:none;font-size:13px;font-weight:600;color:var(--ct-text);background:var(--ct-card);max-width:48%;transition:all var(--ct-speed); }
.ct-series-nav-btn:hover { border-color:var(--ct-blue);color:var(--ct-blue); }
.ct-prev { text-align:left; }
.ct-next { text-align:right;margin-left:auto; }

/* Comments inline */
.ct-comments-section { margin-top:24px; }
.ct-comments-title { font-size:16px;font-weight:800;color:var(--ct-text);margin:0 0 16px; }
.ct-comments-list-inline { display:flex;flex-direction:column;gap:12px;margin-bottom:20px; }
.ct-comment-item { display:flex;gap:10px; }
.ct-comment-avatar { width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid var(--ct-border); }
.ct-comment-body { flex:1; }
.ct-comment-author { font-size:13px;font-weight:700;color:var(--ct-blue); }
.ct-comment-date { font-size:11px;color:var(--ct-muted);margin-left:8px; }
.ct-comment-text { font-size:14px;color:var(--ct-text);line-height:1.6;margin:4px 0 0; }
.ct-add-comment-wrap { display:flex;gap:10px;align-items:flex-start; }
.ct-comment-form-inner { flex:1; }
.ct-inline-comment-input { width:100%;border:1.5px solid var(--ct-border);border-radius:10px;padding:10px 12px;font-size:14px;resize:none;outline:none;font-family:inherit;box-sizing:border-box;transition:border-color var(--ct-speed); }
.ct-inline-comment-input:focus { border-color:var(--ct-blue); }
.ct-inline-comment-send { margin-top:8px; }
.ct-login-to-comment { font-size:14px;color:var(--ct-muted); }
.ct-login-to-comment a { color:var(--ct-blue);font-weight:700; }

/* ══════════════════════════════════════════════════════════
   TikTok Player Overlay
══════════════════════════════════════════════════════════ */
.ct-player-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  flex-direction: column;
}
.ct-player-overlay[hidden] { display: none !important; }

.ct-player-feed {
  flex: 1;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ct-player-feed::-webkit-scrollbar { display: none; }

.ct-player-slide {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

/* Vertical video: fill height */
/* ── TikTok player slides ─────────────────────────────────── */
/* Base iframe — no pointer events, we use tap zone */
.ct-player-slide iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  pointer-events: none;
}

/* Vertical 9:16 video — fill the slide naturally */
.ct-player-slide.ct-slide-vertical iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Horizontal 16:9 video displayed full-screen vertically
   Strategy: make the iframe wider than the viewport so the
   correct center portion fills the screen, no black bars. */
.ct-player-slide.ct-slide-horizontal iframe {
  /* 16:9 ratio needs width = height × (16/9) */
  /* viewport height = 100vh, so width = 100vh × 16/9 ≈ 177.78vh */
  width: 177.78vh;
  height: 100vh;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  position: absolute;
}

/* Tap zone for play/pause */
.ct-tap-zone {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}
/* Center play/pause indicator */
.ct-tap-indicator {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px;
  transition: transform .15s, opacity .3s;
  opacity: 0;
  z-index: 6;
  pointer-events: none;
}
.ct-tap-indicator.show { transform: translate(-50%,-50%) scale(1); opacity: 1; }
.ct-tap-indicator.hide { opacity: 0; }

/* Fixed UI (over all slides) */
.ct-player-ui {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* Tall gradient covers bottom third of screen */
.ct-player-ui::after {
  content: '';
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 45vh;
  background: linear-gradient(to top,
    rgba(0,0,0,.95) 0%,
    rgba(0,0,0,.75) 35%,
    rgba(0,0,0,.3)  65%,
    transparent     100%);
  pointer-events: none;
  z-index: -1;
}
.ct-player-ui > * { pointer-events: auto; }

/* Top bar */
.ct-player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 16px 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,.7), transparent);
}
.ct-player-close {
  width: 40px; height: 40px;
  border: none; background: rgba(255,255,255,.15);
  border-radius: 50%; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.ct-player-close:hover { background: rgba(255,255,255,.25); }
.ct-player-category {
  font-size: 13px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.15); padding: 4px 12px;
  border-radius: 20px; backdrop-filter: blur(4px);
}
.ct-player-logo {
  width: 36px; height: 36px;
  border-radius: 6px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ct-player-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}
/* Fallback text if no logo */
.ct-player-logo span {
  font-size: 10px; font-weight: 900; color: var(--ct-yellow);
  letter-spacing: .08em;
}

/* Bottom */
.ct-player-bottom {
  padding: 0 16px 12px;
  /* No background here — gradient is on the whole UI bottom */
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.ct-player-info { flex: 1; min-width: 0; padding-bottom: 0; }
.ct-player-title  { font-size:16px;font-weight:800;color:#fff;margin:0 0 5px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.ct-player-verse  { font-size:12px;color:rgba(255,255,255,.8);margin:0 0 3px; }
.ct-player-series { font-size:11px;color:rgba(255,255,255,.6);margin:0; }

.ct-player-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 0;
  align-items: center;
}
.ct-player-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: none; background: transparent; color: #fff;
  font-size: 10px; font-weight: 600; cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.ct-player-action-btn svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.ct-player-action-btn.active svg { fill: var(--ct-yellow); stroke: var(--ct-yellow); }

/* Controls bar */
.ct-player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 32px;
  background: transparent;
}
.ct-ctrl-btn {
  border: none; background: transparent; color: #fff;
  cursor: pointer; padding: 0; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center;
  font-size: 11px;
}
.ct-ctrl-play { width: 48px; height: 48px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ct-progress-wrap { flex: 1; }
.ct-progress-bar {
  position: relative; height: 3px; background: rgba(255,255,255,.3);
  border-radius: 2px; cursor: pointer;
}
.ct-progress-fill { height: 100%; background: var(--ct-yellow); border-radius: 2px; width: 0; transition: width .5s linear; }
.ct-progress-thumb {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; background: #fff; border-radius: 50%;
  left: 0; transition: left .5s linear;
}
.ct-time { font-size: 10px; color: rgba(255,255,255,.8); margin-top: 4px; display: block; }

/* Comments panel */
.ct-comments-panel, .ct-playlist-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  background: #1a1a2e;
  border-radius: 20px 20px 0 0;
  max-height: 65vh;
  display: flex; flex-direction: column;
  animation: ctSlideUp .3s cubic-bezier(.32,.72,0,1);
}
@keyframes ctSlideUp { from{transform:translateY(100%);opacity:.5} to{transform:translateY(0);opacity:1} }
.ct-comments-panel[hidden], .ct-playlist-panel[hidden] { display: none; }

.ct-comments-header, .ct-playlist-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.ct-comments-header h4, .ct-playlist-header h4 { color: #fff; margin: 0; font-size: 15px; }
.ct-comments-close, .ct-playlist-close { border: none; background: transparent; color: rgba(255,255,255,.6); font-size: 18px; cursor: pointer; }

.ct-comments-list {
  flex: 1; overflow-y: auto; padding: 10px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.ct-comment-item-player {
  display: flex; gap: 8px;
}
.ct-comment-author-player { font-size: 12px; font-weight: 700; color: #a5b4fc; }
.ct-comment-text-player   { font-size: 13px; color: rgba(255,255,255,.85); margin: 2px 0 0; line-height: 1.5; }
.ct-comment-date-player   { font-size: 10px; color: rgba(255,255,255,.4); margin-left: 6px; }

.ct-comments-form {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px 24px; border-top: 1px solid rgba(255,255,255,.1); flex-shrink: 0;
}
.ct-comment-input {
  flex: 1; padding: 9px 14px; background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.15); border-radius: 24px;
  color: #fff; font-size: 14px; outline: none; font-family: inherit;
}
.ct-comment-input::placeholder { color: rgba(255,255,255,.4); }
.ct-comment-input:focus { border-color: var(--ct-yellow); }
.ct-comment-send { border: none; background: var(--ct-yellow); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #111; }
.ct-login-prompt { font-size: 13px; color: rgba(255,255,255,.6); text-align: center; flex: 1; }
.ct-login-prompt a { color: var(--ct-yellow); font-weight: 700; }

/* Playlist panel */
.ct-playlist-list { flex: 1; overflow-y: auto; padding: 8px 12px; }
.ct-playlist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 10px; cursor: pointer;
  transition: background var(--ct-speed);
}
.ct-playlist-item:hover, .ct-playlist-item.active { background: rgba(255,255,255,.1); }
.ct-playlist-thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.ct-playlist-thumb-placeholder { width:56px;height:40px;background:#333;border-radius:6px;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.4);font-size:16px;flex-shrink:0; }
.ct-playlist-info { flex: 1; min-width: 0; }
.ct-playlist-ep    { font-size: 10px; color: rgba(255,255,255,.5); }
.ct-playlist-title { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-playlist-duration { font-size: 11px; color: rgba(255,255,255,.5); }

/* Share panel */
.ct-share-panel { position: fixed; inset: 0; z-index: 25; display: flex; align-items: flex-end; }
.ct-share-panel[hidden] { display: none; }
.ct-share-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); cursor: pointer; }
.ct-share-inner { position: relative; z-index: 1; width: 100%; background: #1a1a2e; border-radius: 20px 20px 0 0; padding: 8px 20px 32px; }
.ct-action-drag { width: 36px; height: 4px; background: rgba(255,255,255,.2); border-radius: 4px; margin: 0 auto 16px; }
.ct-share-label { font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 14px; }
.ct-share-btns { display: flex; gap: 12px; }
.ct-share-btn { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1.5px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background var(--ct-speed); }
.ct-share-btn:hover { background: rgba(255,255,255,.15); }

/* Mobile responsive */
@media (max-width: 600px) {
  .ct-posts-grid { grid-template-columns: 1fr; }
  .ct-single-title { font-size: 19px; }
  .ct-vertical { max-width: 100%; }
}

/* ── Player bottom wrap — keeps info+controls together at very bottom ── */
.ct-player-bottom-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   Button hover / active states
══════════════════════════════════════════════════════ */

/* Action buttons (Enregistrer, Partager, Commenter, Série, Article) */
.ct-player-action-btn {
  border-radius: 10px;
  padding: 6px 8px;
  transition: background .2s, color .2s;
}
.ct-player-action-btn:hover,
.ct-player-action-btn:active {
  background: #3a489b !important;
  color: #fff !important;
}
.ct-player-action-btn:hover svg,
.ct-player-action-btn:active svg { stroke: #fff !important; }

/* Control buttons (Play, ±15s, Mute) */
.ct-ctrl-btn {
  border-radius: 8px;
  padding: 6px !important;
  transition: background .2s, color .2s;
}
.ct-ctrl-btn:hover,
.ct-ctrl-btn:active {
  background: #3a489b !important;
  color: #fff !important;
}
.ct-ctrl-btn:hover svg,
.ct-ctrl-btn:active svg { stroke: #fff !important; fill: none; }

/* Play button circle */
.ct-ctrl-play:hover,
.ct-ctrl-play:active { background: #3a489b !important; }
.ct-ctrl-play:hover svg,
.ct-ctrl-play:active svg { fill: #fff !important; stroke: none !important; }

/* Close button */
.ct-player-close:hover,
.ct-player-close:active { background: rgba(58,72,155,.7) !important; }

/* ══════════════════════════════════════════════════════
   Bio modal — readable text over background
══════════════════════════════════════════════════════ */
#ct-bio-modal-global { isolation: isolate; }
#ct-bio-modal-global > div {
  position: relative;
  z-index: 1;
}
/* Ensure modal content is never transparent */
#ct-bio-modal-global .ct-bio-body {
  background: #fff !important;
  position: relative;
  z-index: 2;
}

/* Bio animation */
@keyframes ctBioIn {
  from { transform: scale(.92) translateY(12px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}

/* Hide scrollbar inside bio modal */
#ct-bio-modal-global > div::-webkit-scrollbar { display: none; }
