/* css/style.css — Visual Polish & Micro-interactions */

:root {
  --primary-orange: #EE5D20;
  --primary-orange-soft: #FDF0EA;
  --primary-orange-glow: rgba(238, 93, 32, 0.15);
  --dark-black: #111111;
  --bg-app: #F8F7F4;
  --bg-card: #FFFFFF;
  --text-main: #18181B;
  --text-muted: #71717A;
  --border-light: #ECEAE4;
  --border-strong: #DCD8CF;
  --color-success: #10B981;
  --color-success-soft: #ECFDF5;
  
  --radius-2xl: 20px;
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  
  --shadow-subtle: 0 2px 8px rgba(17, 17, 17, 0.03);
  --shadow-card: 0 4px 16px rgba(17, 17, 17, 0.05);
  --shadow-hover: 0 8px 24px rgba(17, 17, 17, 0.08);
  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  --tabbar-height: 62px;
  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-app);
  color: var(--text-main);
  padding: 12px 14px calc(var(--tabbar-height) + var(--safe-bottom) + 16px);
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* ИКОНКИ SVG */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

/* ШИММЕР-СКЕЛЕТОНЫ */
@keyframes shimmerPulse {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.thumb-box, .news-slide-card {
  background: linear-gradient(90deg, #ECEAE4 25%, #F4F3EF 50%, #ECEAE4 75%) !important;
  background-size: 200% 100% !important;
  animation: shimmerPulse 1.8s infinite linear;
}

/* ШАПКА И ЖИВОЙ ПОИСК */
.header-panel {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 247, 244, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 4px 0 10px;
}
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-orange);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(238, 93, 32, 0.28);
}
.brand-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.stats-counter {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.stats-counter:active { transform: scale(0.96); }
.stats-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-orange);
}

.search-box-wrap {
  position: relative;
}
.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0 14px;
  box-shadow: var(--shadow-subtle);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-bar:focus-within {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px var(--primary-orange-glow);
}
.search-bar input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-main);
  outline: none;
}
.search-suggestions {
  position: absolute;
  top: 112%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  z-index: 60;
  overflow: hidden;
  display: none;
  animation: fadeIn 0.12s ease;
}
.suggestion-item {
  padding: 12px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.1s ease;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:active { background: var(--bg-app); }

/* ПЕРЕКЛЮЧЕНИЕ ЭКРАНОВ */
.screen-view { display: none; }
.screen-view.active { display: block; animation: fadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ШОРТКАТЫ */
.top-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
  margin-top: 4px;
}
.btn-top-action {
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.15s;
}
.btn-top-action:active { transform: scale(0.96); border-color: var(--dark-black); }
.btn-top-label {
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-top-badge {
  background: var(--bg-app);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}
.btn-top-action.highlight .btn-top-badge {
  background: var(--primary-orange-soft);
  color: var(--primary-orange);
}

/* БАННЕР ПРОДОЛЖЕНИЯ */
.resume-banner {
  display: none;
  background: linear-gradient(135deg, #18181B, #27272A);
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  color: #FFF;
  margin-bottom: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(17, 17, 17, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.resume-banner:active { transform: scale(0.98); }
.resume-banner.visible { display: flex; }
.resume-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-orange);
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.resume-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resume-btn {
  background: var(--primary-orange);
  color: #FFF;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* СЛАЙДЕР «НОВИНКИ» */
.slider-section { margin-bottom: 18px; }
.slider-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.news-slide-card {
  flex: 0 0 88%;
  scroll-snap-align: center;
  position: relative;
  height: 175px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}
.news-slide-card:active { transform: scale(0.98); }
.news-slide-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}
.news-slide-img.loaded { opacity: 0.65; }
.news-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.05) 0%, rgba(17,17,17,0.94) 85%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #FFF;
}
.news-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.news-tag {
  background: var(--primary-orange);
  color: #FFF;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.news-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.news-slide-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: #FFF;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.slider-dot.active {
  width: 20px;
  border-radius: var(--radius-pill);
  background: var(--dark-black);
}

/* УТИЛИТНАЯ СТРОКА */
.utilities-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.util-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.util-btn:active { transform: scale(0.96); background: var(--bg-app); }

/* СЕТКА УРОКОВ (2 КОЛОНКИ) */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 10px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}
.lessons-2col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.lesson-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 8px;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.lesson-card:active {
  transform: scale(0.96);
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.04);
}
.lesson-card.is-watched {
  border-color: rgba(16, 185, 129, 0.45);
}

.thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}
.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}
.thumb-img.loaded { opacity: 1; }

.badge-format {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(17, 17, 17, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFF;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  z-index: 2;
}
.badge-watched-pill {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--color-success);
  color: #FFF;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  z-index: 3;
}
.lesson-card.is-watched .badge-watched-pill { display: flex; }
.badge-dur {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  color: var(--dark-black);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  z-index: 2;
}

.lesson-info {
  padding: 2px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.lesson-title {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.card-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}
.tag-hash {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-app);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* КНОПКА ПЕРЕХОДА */
.view-all-btn {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  padding: 13px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 13.5px;
  margin: 16px 0 8px;
  cursor: pointer;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.view-all-btn:active { transform: scale(0.97); background: var(--bg-app); }

/* ПРУЖИНЯЩАЯ ГАРМОШКА ФИЛЬТРОВ */
.filter-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.filter-btn-toggle {
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.12s ease;
}
.filter-btn-toggle:active { transform: scale(0.96); }
.badge-count {
  background: var(--dark-black);
  color: #FFF;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
}
.smart-filter-accordion {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 14px;
  margin-bottom: 0;
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.3s ease, margin 0.3s ease;
}
.smart-filter-accordion.open {
  max-height: 700px;
  opacity: 1;
  padding: 14px;
  margin-bottom: 14px;
}
.filter-row-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin: 10px 0 6px;
}
.filter-row-label:first-child { margin-top: 0; }
.chips-group {
  display: flex;
  gap: 6px;
}
.chips-group.wrap { flex-wrap: wrap; }
.filter-chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.filter-chip:active { transform: scale(0.94); }
.filter-chip.active {
  background: var(--dark-black) !important;
  color: #FFFFFF !important;
  border-color: var(--dark-black) !important;
  font-weight: 600;
}
.active-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.active-tag-badge {
  background: var(--dark-black);
  color: #FFF;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  animation: fadeIn 0.15s ease;
  transition: transform 0.12s ease;
}
.active-tag-badge:active { transform: scale(0.94); }

/* ДЕТАЛЬНЫЙ ЭКРАН УРОКА */
.detail-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.back-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.12s ease;
}
.back-btn:active { transform: scale(0.95); }
.lesson-top-actions {
  display: flex;
  gap: 8px;
}
.circle-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease;
}
.circle-icon-btn:active { transform: scale(0.92); }
.circle-icon-btn.active {
  background: var(--primary-orange);
  color: #FFF;
  border-color: var(--primary-orange);
  box-shadow: 0 4px 12px rgba(238, 93, 32, 0.3);
}

/* ПЛЕЕР KINESCOPE */
.sew-video-container {
  position: relative;
  padding-top: 56.25%;
  width: 100%;
  background: #000;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.sew-video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.sew-fs-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  background: rgba(17, 17, 17, 0.78);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.sew-video-container.is-fullscreen {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100vw !important; height: 100vh !important;
  height: 100dvh !important;
  padding-top: 0 !important;
  z-index: 999999 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.sew-video-container.is-fullscreen iframe { width: 100% !important; height: 100% !important; }
.sew-video-container.is-fullscreen .sew-fs-btn {
  top: calc(env(safe-area-inset-top, 20px) + 60px) !important;
  right: 16px !important;
  background: var(--primary-orange);
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
}

.detail-card {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: 16px;
  border: 1px solid var(--border-light);
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.detail-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 8px;
}
.detail-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.d-chip {
  background: var(--bg-app);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
}
.d-chip.orange {
  background: var(--primary-orange-soft);
  color: var(--primary-orange);
}

/* ВКЛАДКИ ВНУТРИ УРОКА */
.tabs-bar {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.tab-nav-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.15s ease;
}
.tab-nav-btn.active { color: var(--primary-orange); }
.tab-nav-btn.active::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-orange);
  border-radius: 2px;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.15s ease; }

.desc-text {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  white-space: pre-line;
}
.playlist-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  cursor: pointer;
  margin-bottom: 6px;
  transition: transform 0.12s ease, border-color 0.15s ease;
}
.playlist-card:active { transform: scale(0.98); }
.playlist-card.active {
  background: var(--primary-orange-soft);
  border-color: var(--primary-orange);
}
.playlist-card-title { font-size: 13px; font-weight: 600; }
.playlist-card.active .playlist-card-title { color: var(--primary-orange); }
.playlist-card-dur { font-size: 11.5px; color: var(--text-muted); }

/* РАБОЧАЯ ТЕТРАДЬ */
.workbook-box {
  background: var(--bg-app);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 12px;
  margin-top: 6px;
}
.workbook-box textarea {
  width: 100%;
  height: 110px;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-main);
  resize: none;
  line-height: 1.45;
}
.save-indicator {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

/* ПОХОЖИЕ УРОКИ */
.similar-section { margin-top: 20px; }
.similar-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.similar-carousel::-webkit-scrollbar { display: none; }
.similar-card-item {
  flex: 0 0 155px;
  scroll-snap-align: start;
}

/* ЭКРАН МАТЕРИАЛЫ */
.materials-list { display: flex; flex-direction: column; gap: 10px; }
.material-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: var(--shadow-subtle);
}
.material-cat { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--primary-orange); margin-bottom: 4px; }
.material-title { font-family: var(--font-serif); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.material-comment { font-size: 13px; color: #4B5563; line-height: 1.45; margin-bottom: 12px; }
.article-pill {
  background: var(--bg-app);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.article-pill:active { transform: scale(0.97); background: var(--primary-orange-soft); }

/* ЭКРАН МОЁ */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
}
.profile-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--dark-black);
  color: #FFF;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 10px 8px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-subtle);
}
.stat-val { font-size: 17px; font-weight: 700; color: var(--text-main); }
.stat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ШТОРКА ЗАКАЗОВ */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: flex-end;
}
.sheet-overlay.open { display: flex; animation: fadeIn 0.15s ease; }
.sheet-card {
  width: 100%;
  background: var(--bg-card);
  border-top-left-radius: var(--radius-2xl);
  border-top-right-radius: var(--radius-2xl);
  padding: 20px 16px calc(var(--safe-bottom) + 20px);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* НИЖНИЙ ТАББАР */
@keyframes tabPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--tabbar-height);
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 50;
}
.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  gap: 3px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.tabbar-item.active {
  color: var(--dark-black);
  font-weight: 700;
}
.tabbar-item.active .icon {
  animation: tabPop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ВСПЛЫВАЮЩИЙ ТОСТ */
.toast-msg {
  position: fixed;
  bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(40px) scale(0.9);
  background: var(--dark-black);
  color: #FFF;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.toast-msg.show {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
}


/* ПОДСВЕТКА ПОИСКА И КНОПКА СБРОСА */
.search-match {
  background: var(--primary-orange-soft);
  color: var(--primary-orange);
  font-weight: 700;
  padding: 0 3px;
  border-radius: 4px;
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 6px;
  display: none;
  align-items: center;
  justify-content: center;
}
.search-clear-btn.visible { display: flex; }

.search-snippet {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.suggestion-all-btn {
  background: var(--primary-orange-soft);
  color: var(--primary-orange);
  font-weight: 600;
  justify-content: center !important;
}


/* РЕЙТИНГ ИДЕЙ В СТОЛЕ ЗАКАЗОВ */
.suggest-list-wrap {
  margin-top: 16px;
  max-height: 48vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}
.suggest-card {
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.suggest-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}
.vote-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vote-btn:active { transform: scale(0.92); }
.vote-btn.voted {
  background: var(--primary-orange-soft);
  color: var(--primary-orange);
  border-color: var(--primary-orange);
}


/* СТОЛ ЗАКАЗОВ (ДВУХУРОВНЕВЫЙ) */
.suggest-modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.btn-open-suggest-form {
  background: var(--dark-black);
  color: #FFF;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-open-suggest-form:active { transform: scale(0.96); }

.suggest-section-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin: 16px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.suggest-list-scroll {
  max-height: 52vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 2px;
}

.suggest-item-card {
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}
.suggest-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.suggest-item-main {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.suggest-author-tag {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.suggest-item-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}
.suggest-item-details {
  font-size: 12.5px;
  color: #4B5563;
  margin-top: 6px;
  line-height: 1.45;
  display: none;
}
.suggest-item-card.expanded .suggest-item-details {
  display: block;
}
.suggest-ref-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary-orange);
  text-decoration: none;
  margin-top: 8px;
}

/* Карточки «Снято и в базе» */
.suggest-item-card.is-completed {
  opacity: 0.72;
  background: #F4F3F0;
  border-color: #E2DFD8;
}
.suggest-badge-done {
  background: var(--color-success-soft);
  color: var(--color-success);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Форма добавления */
.suggest-form-view {
  display: none;
  animation: fadeIn 0.18s ease;
}
.suggest-form-view.active { display: block; }
.form-input-field {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  margin-bottom: 10px;
  background: var(--bg-card);
}
.form-input-field:focus {
  border-color: var(--primary-orange);
}


/* ЭКРАН: ИДЕИ ДЛЯ УРОКОВ И СВЯЗКА С БАЗОЙ */
.ideas-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.btn-new-idea {
  background: var(--dark-black);
  color: #FFF;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.12s ease;
}
.btn-new-idea:active { transform: scale(0.96); }

.ideas-section-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 4px;
}
.ideas-section-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.idea-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.idea-card:active { transform: scale(0.985); }
.idea-card.expanded { border-color: var(--border-strong); }

.idea-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.idea-tags-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rank-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-app);
  color: var(--text-muted);
}
.rank-badge.top-1 {
  background: var(--primary-orange-soft);
  color: var(--primary-orange);
}
.rank-badge.top-2, .rank-badge.top-3 {
  background: #FEF3C7;
  color: #D97706;
}
.idea-author {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.idea-date {
  font-size: 11px;
  color: #A1A1AA;
}

.idea-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.idea-title {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.idea-fire-btn {
  background: var(--bg-app);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.idea-fire-btn:active { transform: scale(0.92); }
.idea-fire-btn.voted {
  background: var(--primary-orange-soft);
  color: var(--primary-orange);
  border-color: var(--primary-orange);
}

.idea-body {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
  animation: fadeIn 0.15s ease;
}
.idea-card.expanded .idea-body { display: block; }
.idea-desc-text {
  font-size: 13px;
  color: #4B5563;
  line-height: 1.5;
}
.idea-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-app);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-orange);
  text-decoration: none;
  margin-top: 8px;
}

/* Реализованная идея с кнопкой перехода в урок */
.idea-card.is-completed {
  background: #FAFAF9;
  border-color: var(--border-light);
}
.idea-completed-badge {
  background: var(--color-success-soft);
  color: var(--color-success);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.btn-watch-from-idea {
  background: var(--primary-orange);
  color: #FFF;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  box-shadow: 0 3px 10px rgba(238, 93, 32, 0.25);
  transition: transform 0.12s ease;
}
.btn-watch-from-idea:active { transform: scale(0.95); }

/* Бейдж в карточке урока: Снято по идее клуба */
.detail-idea-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-orange-soft);
  color: var(--primary-orange);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.detail-idea-link-badge:active { transform: scale(0.96); }

/* Модальное окно */
.idea-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(4px);
  z-index: 120;
  display: none;
  align-items: flex-end;
}
.idea-modal-backdrop.open { display: flex; }
.idea-modal-content {
  width: 100%;
  background: var(--bg-card);
  border-top-left-radius: var(--radius-2xl);
  border-top-right-radius: var(--radius-2xl);
  padding: 20px 16px calc(var(--safe-bottom) + 20px);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ОБНОВЛЕННЫЙ ВИЗУАЛ ИДЕЙ И ПЛАШКИ СОАВТОРСТВА */
.idea-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.idea-card:active { transform: scale(0.985); }
.idea-card.expanded { border-color: var(--border-strong); }

.idea-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.idea-main-col {
  flex: 1;
  min-width: 0;
}
.idea-meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.idea-author-name {
  font-weight: 500;
  color: var(--text-muted);
}
.idea-sep {
  color: var(--border-strong);
  font-size: 10px;
}
.idea-date-val {
  color: #A1A1AA;
}

.rank-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-app);
  color: var(--text-muted);
}
.rank-badge.top-1 {
  background: var(--primary-orange-soft);
  color: var(--primary-orange);
}
.rank-badge.top-2, .rank-badge.top-3 {
  background: #FEF3C7;
  color: #B45309;
}

.idea-card-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.idea-fire-btn {
  background: var(--bg-app);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-main);
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.idea-fire-btn:active { transform: scale(0.92); }
.idea-fire-btn.voted {
  background: var(--primary-orange-soft);
  color: var(--primary-orange);
  border-color: var(--primary-orange);
}

.idea-body {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
  animation: fadeIn 0.15s ease;
}
.idea-card.expanded .idea-body { display: block; }
.idea-desc-text {
  font-size: 13px;
  color: #4B5563;
  line-height: 1.5;
}
.idea-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-app);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-orange);
  text-decoration: none;
  margin-top: 8px;
}

/* Карточки «Уже вышли в клубе» */
.idea-card.is-completed {
  background: #FAFAF9;
  border-color: var(--border-light);
}
.idea-completed-pill {
  background: var(--color-success-soft);
  color: var(--color-success);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.btn-watch-completed {
  background: var(--primary-orange);
  color: #FFF;
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  box-shadow: 0 3px 12px rgba(238, 93, 32, 0.25);
  transition: transform 0.12s ease;
}
.btn-watch-completed:active { transform: scale(0.96); }
.completed-dur {
  opacity: 0.85;
  font-weight: 500;
  font-size: 11px;
}

/* Плашка внутри урока (Social Proof) */
.lesson-community-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--primary-orange-soft);
  border: 1px solid rgba(238, 93, 32, 0.22);
  border-radius: var(--radius-xl);
  margin-bottom: 14px;
  width: 100%;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.lesson-community-callout:active { transform: scale(0.98); }
.callout-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.callout-info {
  flex: 1;
  min-width: 0;
}
.callout-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-orange);
}
.callout-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-black);
  margin-top: 2px;
  line-height: 1.3;
}
.callout-arrow {
  color: var(--primary-orange);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

/* ОБНОВЛЕННЫЕ КАРТОЧКИ ИДЕЙ */
.idea-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.idea-card:active { transform: scale(0.985); }
.idea-card.expanded { border-color: var(--border-strong); }

.idea-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.idea-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.rank-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-app);
  color: var(--text-muted);
}
.rank-pill.top-1 {
  background: var(--primary-orange-soft);
  color: var(--primary-orange);
}
.rank-pill.top-2, .rank-pill.top-3 {
  background: #FEF3C7;
  color: #B45309;
}
.idea-author-txt {
  font-weight: 500;
  color: var(--text-muted);
}
.idea-meta-dot {
  font-size: 9px;
  color: var(--border-strong);
}
.idea-date-txt {
  color: #A1A1AA;
}

.idea-fire-btn {
  background: var(--bg-app);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-main);
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.idea-fire-btn:active { transform: scale(0.92); }
.idea-fire-btn.voted {
  background: var(--primary-orange-soft);
  color: var(--primary-orange);
  border-color: var(--primary-orange);
}

.idea-card-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.idea-body {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
  animation: fadeIn 0.15s ease;
}
.idea-card.expanded .idea-body { display: block; }
.idea-desc-text {
  font-size: 13px;
  color: #4B5563;
  line-height: 1.5;
}
.idea-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-app);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-orange);
  text-decoration: none;
  margin-top: 8px;
}

/* Карточка в «Уже вышли в клубе» */
.idea-card.is-completed {
  background: #FAFAF9;
  border-color: var(--border-light);
}
.idea-done-tag {
  background: var(--color-success-soft);
  color: var(--color-success);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}
.btn-watch-completed-pill {
  width: 100%;
  background: var(--primary-orange);
  color: #FFF;
  border: none;
  padding: 9px 14px;
  border-radius: var(--radius-lg);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  box-shadow: 0 3px 12px rgba(238, 93, 32, 0.22);
}
.btn-watch-completed-pill:active { transform: scale(0.98); }
/* ПЛАШКА НАД ВИДЕО (РАЗДЕЛЕННЫЕ ТЕГИ) */
.lesson-top-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.12s ease, border-color 0.15s ease;
}
.lesson-top-callout:active {
  transform: scale(0.98);
  border-color: var(--primary-orange);
}
.callout-tags-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.callout-tag-idea {
  background: var(--primary-orange-soft);
  color: var(--primary-orange);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.callout-tag-votes {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}
.callout-tag-author {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.callout-link-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
