/* =============================================================
   SpookyApp Chunks — Custom Styles
   Версия: 1.0.0

   Подключите в <head> сайта (один раз):
     <link rel="stylesheet" href="/assets/css/spookyapp-chunks.css">

   Используется совместно с Bulma (для .card / .brief / .telegram)
   или самостоятельно (для .html-standalone / .text).
   ============================================================= */

/* ┌─────────────────────────────────────────────────────────────┐
   │  MOVIE CARD  (spookyapp.chunk.movie.card)                   │
   │  Использует Bulma: card, columns, tags, button, …           │
   └─────────────────────────────────────────────────────────────┘ */

.movie-card-wrap {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 12px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.movie-card-backdrop-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #0d0d1c;
}
@media (min-width: 769px) {
  .movie-card-backdrop-wrap { height: 340px; }
}

.movie-card-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  display: block;
}

.movie-card-poster-col {
  margin-top: -70px;
}
@media (min-width: 769px) {
  .movie-card-poster-col { margin-top: -80px; }
}

.movie-card-poster {
  width: 140px;
  height: 210px;
  object-fit: cover;
  border-radius: 8px;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  display: block;
  position: relative;
  z-index: 2;
}
@media (min-width: 769px) {
  .movie-card-poster { width: 200px; height: 300px; }
}

.movie-card-rating-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.93rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.movie-card-company-logo {
  max-height: 48px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.movie-card-company-logo:hover { opacity: 1; }

.movie-card-cast-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 6px;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.movie-card-screenshot {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  transition: transform 0.25s ease;
}
.movie-card-screenshot:hover {
  transform: scale(1.04);
}

.movie-card-section { margin-bottom: 24px; }

.movie-card-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 20px 0;
}

.movie-card-meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8e9eab;
  margin-bottom: 3px;
}

.movie-card-links .button { margin: 0 4px 6px 0; }


/* ┌─────────────────────────────────────────────────────────────┐
   │  MOVIE BRIEF  (spookyapp.chunk.movie.brief)                 │
   └─────────────────────────────────────────────────────────────┘ */

.movie-brief-wrap {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #fff;
}

.movie-brief-poster {
  width: 80px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.movie-brief-age {
  vertical-align: middle;
}


/* ┌─────────────────────────────────────────────────────────────┐
   │  MOVIE TELEGRAM  (spookyapp.chunk.movie.telegram)           │
   └─────────────────────────────────────────────────────────────┘ */

.movie-tg {
  max-width: 520px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
}

.movie-tg__poster {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.movie-tg__body {
  padding: 14px 16px 6px;
}

.movie-tg__title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin: 0 0 3px;
  line-height: 1.3;
}

.movie-tg__original {
  font-size: 13px;
  color: #707579;
  margin: 0 0 3px;
}

.movie-tg__tagline {
  font-size: 13px;
  color: #707579;
  font-style: italic;
  margin: 0 0 10px;
}

.movie-tg__badge {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}

.movie-tg__meta {
  font-size: 13px;
  color: #555;
  margin: 5px 0;
  line-height: 1.5;
}
.movie-tg__meta strong { color: #222; }

.movie-tg__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}

.movie-tg__tag {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.movie-tg__overview {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.55;
  margin: 10px 0;
}

.movie-tg__divider {
  border: 0;
  border-top: 1px solid #e8ecf0;
  margin: 10px 0;
}

.movie-tg__link {
  color: #2481cc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.movie-tg__link:hover { text-decoration: underline; }

.movie-tg__copy-block {
  background: #f7f7f7;
  border-top: 1px solid #e0e0e0;
  padding: 10px 14px 14px;
}

.movie-tg__copy-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.movie-tg__textarea {
  width: 100%;
  min-height: 130px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 10px;
  resize: vertical;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}


/* ┌─────────────────────────────────────────────────────────────┐
   │  MOVIE HTML STANDALONE  (spookyapp.chunk.movie.html)        │
   │  Без Bulma. Самодостаточный тёмный дизайн.                  │
   └─────────────────────────────────────────────────────────────┘ */

.movie-html-card {
  --c-bg:       #0d1117;
  --c-surface:  #161b22;
  --c-border:   #30363d;
  --c-accent:   #f0c832;
  --c-text:     #c9d1d9;
  --c-muted:    #8b949e;
  --c-link:     #58a6ff;
  --br:         10px;

  background: var(--c-bg);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  border-radius: var(--br);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--c-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.movie-html-backdrop-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--c-surface);
}
@media (min-width: 600px) {
  .movie-html-backdrop-wrap { height: 300px; }
}

.movie-html-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  display: block;
}

.movie-html-header {
  padding: 0 20px 20px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-top: -65px;
  position: relative;
}
@media (min-width: 600px) {
  .movie-html-header { margin-top: -80px; }
}

.movie-html-poster {
  width: 110px;
  height: 165px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid var(--c-accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}
@media (min-width: 600px) {
  .movie-html-poster { width: 150px; height: 225px; }
}

.movie-html-titles {
  flex: 1;
  min-width: 160px;
  padding-bottom: 4px;
}

.movie-html-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.2;
}
@media (min-width: 600px) {
  .movie-html-title { font-size: 1.9rem; }
}

.movie-html-original {
  font-size: 0.88rem;
  color: var(--c-muted);
  font-style: italic;
  margin: 0 0 8px;
}

.movie-html-tagline {
  font-size: 0.88rem;
  color: var(--c-accent);
  font-style: italic;
  margin: 0 0 10px;
}

.movie-html-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--c-accent);
  color: #000;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
}

.movie-html-body { padding: 20px; }

.movie-html-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.movie-html-meta-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--c-muted);
  margin-bottom: 3px;
}

.movie-html-meta-value {
  font-size: 0.88rem;
  color: var(--c-text);
  font-weight: 500;
}

.movie-html-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  font-weight: 700;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--c-border);
}

.movie-html-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.movie-html-tag {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(240, 200, 50, 0.12);
  color: var(--c-accent);
  border: 1px solid rgba(240, 200, 50, 0.28);
}
.movie-html-tag--country {
  background: rgba(88, 166, 255, 0.1);
  color: var(--c-link);
  border-color: rgba(88, 166, 255, 0.22);
}
.movie-html-tag--studio {
  background: rgba(139, 148, 158, 0.12);
  color: var(--c-muted);
  border-color: var(--c-border);
}
.movie-html-tag--similar {
  background: var(--c-surface);
  color: var(--c-text);
  border-color: var(--c-border);
}

.movie-html-overview {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--c-text);
  margin-bottom: 20px;
}

.movie-html-cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.movie-html-cast-item { text-align: center; }

.movie-html-cast-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 6px;
  border: 2px solid var(--c-border);
}

.movie-html-cast-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.movie-html-cast-role {
  display: block;
  font-size: 0.72rem;
  color: var(--c-muted);
}

.movie-html-crew-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.movie-html-crew-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.movie-html-crew-job {
  display: block;
  font-size: 0.73rem;
  color: var(--c-muted);
}

.movie-html-shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.movie-html-shot {
  width: 100%;
  height: 115px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  transition: opacity 0.2s;
}
.movie-html-shot:hover { opacity: 0.82; }

.movie-html-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.movie-html-link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  background: var(--c-surface);
  transition: border-color 0.2s, color 0.2s;
}
.movie-html-link:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.movie-html-divider {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: 20px 0;
}


/* ┌─────────────────────────────────────────────────────────────┐
   │  MOVIE TEXT  (spookyapp.chunk.movie.text)                   │
   └─────────────────────────────────────────────────────────────┘ */

.movie-text-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  max-width: 680px;
}

.movie-text-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 3px;
}

.movie-text-original {
  font-size: 0.88rem;
  color: #666;
  font-style: italic;
  margin: 0 0 12px;
}

.movie-text-meta {
  color: #555;
  font-size: 0.88rem;
  margin-bottom: 5px;
}
.movie-text-meta b { color: #111; }

.movie-text-overview { margin: 14px 0; }

.movie-text-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin: 16px 0 6px;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

.movie-text-links { margin-top: 14px; }

.movie-text-link {
  color: #1a73e8;
  text-decoration: none;
  margin-right: 12px;
  font-size: 0.88rem;
}
.movie-text-link:hover { text-decoration: underline; }


/* ┌─────────────────────────────────────────────────────────────┐
   │  TV CARD  (spookyapp.chunk.tv.card)                         │
   │  Использует Bulma. Синяя тёмная тема.                       │
   └─────────────────────────────────────────────────────────────┘ */

.tv-card-wrap {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-radius: 12px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.tv-card-backdrop-wrap {
  height: 260px;
  overflow: hidden;
  background: #071a24;
}
@media (min-width: 769px) {
  .tv-card-backdrop-wrap { height: 320px; }
}

.tv-card-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  display: block;
}

.tv-card-poster-col { margin-top: -60px; }

.tv-card-poster {
  width: 120px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 4px solid #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  display: block;
}
@media (min-width: 769px) {
  .tv-card-poster { width: 150px; height: 220px; }
}

.tv-card-rating-badge {
  background: linear-gradient(135deg, #4fc3f7 0%, #0288d1 100%);
  color: #fff;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.93rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tv-card-season-box {
  background: rgba(79, 195, 247, 0.1);
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 3px solid #4fc3f7;
  color: #fff;
}

.tv-card-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 20px 0;
}

.tv-card-meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8e9eab;
  margin-bottom: 3px;
}


/* ┌─────────────────────────────────────────────────────────────┐
   │  TV BRIEF  (spookyapp.chunk.tv.brief)                       │
   └─────────────────────────────────────────────────────────────┘ */

.tv-brief-wrap {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #fff;
}

.tv-brief-poster {
  width: 70px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}


/* ┌─────────────────────────────────────────────────────────────┐
   │  TV TELEGRAM  (spookyapp.chunk.tv.telegram)                 │
   └─────────────────────────────────────────────────────────────┘ */

.tv-tg {
  max-width: 520px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
}

.tv-tg__poster {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.tv-tg__body { padding: 14px 16px 6px; }

.tv-tg__title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin: 0 0 3px;
  line-height: 1.3;
}

.tv-tg__original { font-size: 13px; color: #707579; margin: 0 0 3px; }
.tv-tg__tagline  { font-size: 13px; color: #707579; font-style: italic; margin: 0 0 10px; }

.tv-tg__badge {
  display: inline-block;
  background: #e3f2fd;
  color: #0277bd;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  margin-right: 6px;
  margin-bottom: 8px;
}

.tv-tg__status {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}

.tv-tg__meta { font-size: 13px; color: #555; margin: 5px 0; line-height: 1.5; }
.tv-tg__meta strong { color: #222; }

.tv-tg__tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }

.tv-tg__tag {
  background: #e3f2fd;
  color: #0277bd;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.tv-tg__overview {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.55;
  margin: 10px 0;
}

.tv-tg__divider { border: 0; border-top: 1px solid #e8ecf0; margin: 10px 0; }

.tv-tg__season {
  font-size: 13px;
  color: #333;
  padding: 4px 0 4px 10px;
  border-left: 2px solid #4fc3f7;
  margin: 4px 0;
}

.tv-tg__link { color: #2481cc; text-decoration: none; font-size: 13px; font-weight: 500; }
.tv-tg__link:hover { text-decoration: underline; }

.tv-tg__copy-block {
  background: #f7f7f7;
  border-top: 1px solid #e0e0e0;
  padding: 10px 14px 14px;
}

.tv-tg__copy-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.tv-tg__textarea {
  width: 100%;
  min-height: 160px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 10px;
  resize: vertical;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}


/* ┌─────────────────────────────────────────────────────────────┐
   │  TV HTML STANDALONE  (spookyapp.chunk.tv.html)              │
   │  Без Bulma. Синяя тёмная тема.                              │
   └─────────────────────────────────────────────────────────────┘ */

.tv-html-card {
  --c-bg:      #071a24;
  --c-surface: #0d2337;
  --c-border:  #1b3d55;
  --c-accent:  #4fc3f7;
  --c-text:    #c9d1d9;
  --c-muted:   #8b9baa;
  --c-link:    #4fc3f7;
  --br:        10px;

  background: var(--c-bg);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  border-radius: var(--br);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--c-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65);
}

.tv-html-backdrop-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--c-surface);
}
@media (min-width: 600px) {
  .tv-html-backdrop-wrap { height: 320px; }
}

.tv-html-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  display: block;
}

.tv-html-header {
  padding: 0 20px 20px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-top: -70px;
  position: relative;
}
@media (min-width: 600px) {
  .tv-html-header { margin-top: -90px; }
}

.tv-html-poster {
  width: 120px;
  height: 178px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid var(--c-accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}
@media (min-width: 600px) {
  .tv-html-poster { width: 160px; height: 237px; }
}

.tv-html-titles { flex: 1; min-width: 160px; padding-bottom: 4px; }

.tv-html-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.2;
}
@media (min-width: 600px) {
  .tv-html-title { font-size: 1.8rem; }
}

.tv-html-original { font-size: 0.88rem; color: var(--c-muted); font-style: italic; margin: 0 0 6px; }
.tv-html-tagline  { font-size: 0.88rem; color: var(--c-accent); font-style: italic; margin: 0 0 10px; }

.tv-html-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--c-accent);
  color: #000;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
}

.tv-html-body { padding: 20px; }

.tv-html-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.tv-html-meta-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--c-muted);
  margin-bottom: 3px;
}

.tv-html-meta-value { font-size: 0.88rem; color: var(--c-text); font-weight: 500; }

.tv-html-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  font-weight: 700;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--c-border);
}

.tv-html-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }

.tv-html-tag {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(79, 195, 247, 0.1);
  color: var(--c-accent);
  border: 1px solid rgba(79, 195, 247, 0.25);
}
.tv-html-tag--network {
  background: rgba(88, 166, 255, 0.1);
  color: #58a6ff;
  border-color: rgba(88, 166, 255, 0.22);
}
.tv-html-tag--country {
  background: rgba(139, 148, 158, 0.12);
  color: var(--c-muted);
  border-color: var(--c-border);
}
.tv-html-tag--studio {
  background: rgba(139, 148, 158, 0.08);
  color: var(--c-muted);
  border-color: var(--c-border);
}

.tv-html-season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.tv-html-season-card {
  background: rgba(79, 195, 247, 0.07);
  border: 1px solid rgba(79, 195, 247, 0.18);
  border-left: 3px solid var(--c-accent);
  border-radius: 6px;
  padding: 10px 12px;
}

.tv-html-season-name { display: block; font-weight: 600; font-size: 0.88rem; color: #fff; margin-bottom: 3px; }
.tv-html-season-meta { font-size: 0.78rem; color: var(--c-muted); }

.tv-html-overview { font-size: 0.93rem; line-height: 1.7; color: var(--c-text); margin-bottom: 20px; }

.tv-html-cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.tv-html-cast-item { text-align: center; }

.tv-html-cast-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 6px;
  border: 2px solid var(--c-border);
}

.tv-html-cast-name { display: block; font-size: 0.8rem; font-weight: 600; color: #fff; }
.tv-html-cast-role { display: block; font-size: 0.72rem; color: var(--c-muted); }

.tv-html-crew-list { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.tv-html-crew-name { display: block; font-size: 0.82rem; font-weight: 600; color: #fff; }
.tv-html-crew-job  { display: block; font-size: 0.73rem; color: var(--c-muted); }

.tv-html-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.tv-html-link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  background: var(--c-surface);
  transition: border-color 0.2s, color 0.2s;
}
.tv-html-link:hover { border-color: var(--c-accent); color: var(--c-accent); }

.tv-html-divider { border: 0; border-top: 1px solid var(--c-border); margin: 20px 0; }


/* ┌─────────────────────────────────────────────────────────────┐
   │  TV TEXT  (spookyapp.chunk.tv.text)                         │
   └─────────────────────────────────────────────────────────────┘ */

.tv-text-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  max-width: 680px;
}

.tv-text-title  { font-size: 1.4rem; font-weight: 700; color: #111; margin: 0 0 3px; }
.tv-text-original { font-size: 0.88rem; color: #666; font-style: italic; margin: 0 0 12px; }
.tv-text-meta   { color: #555; font-size: 0.88rem; margin-bottom: 5px; }
.tv-text-meta b { color: #111; }
.tv-text-overview { margin: 14px 0; }

.tv-text-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin: 16px 0 6px;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

.tv-text-links { margin-top: 14px; }

.tv-text-link {
  color: #1a73e8;
  text-decoration: none;
  margin-right: 12px;
  font-size: 0.88rem;
}
.tv-text-link:hover { text-decoration: underline; }


/* ┌─────────────────────────────────────────────────────────────┐
   │  PERSON CARD  (spookyapp.chunk.person.card)                 │
   │  Использует Bulma. Фиолетовая тема.                         │
   └─────────────────────────────────────────────────────────────┘ */

.person-card-wrap {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-radius: 12px;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.person-card-photo {
  width: 180px;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: block;
}
@media (min-width: 769px) {
  .person-card-photo { width: 200px; height: 290px; }
}

.person-card-photo-credit {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 5px;
}

.person-card-credit {
  background: rgba(187, 134, 252, 0.1);
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 3px solid #2481cc;
  margin-bottom: 8px;
  color: #fff;
}

.person-card-credit strong { color: #2481cc; }

.person-card-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 18px 0;
}

.person-card-meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #a89ec9;
  margin-bottom: 3px;
}


/* ┌─────────────────────────────────────────────────────────────┐
   │  PERSON BRIEF  (spookyapp.chunk.person.brief)               │
   └─────────────────────────────────────────────────────────────┘ */

.person-brief-wrap {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #fff;
}

.person-brief-photo {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}


/* ┌─────────────────────────────────────────────────────────────┐
   │  PERSON TELEGRAM  (spookyapp.chunk.person.telegram)         │
   └─────────────────────────────────────────────────────────────┘ */

.person-tg {
  max-width: 500px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.person-tg__photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.person-tg__body { padding: 12px 16px 8px; }

.person-tg__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #000;
}

.person-tg__dept {
  font-size: 13px;
  color: #2481cc;
  font-weight: 500;
  margin: 0 0 8px;
}

.person-tg__meta { font-size: 13px; color: #707579; margin: 4px 0; line-height: 1.4; }
.person-tg__meta strong { color: #222; }

.person-tg__bio {
  font-size: 14px;
  color: #1a1a1a;
  margin: 8px 0;
  line-height: 1.5;
}

.person-tg__divider { border: 0; border-top: 1px solid #e1e8ed; margin: 10px 0; }

.person-tg__credit {
  background: #f5f5f5;
  padding: 6px 10px;
  border-radius: 6px;
  margin: 4px 0;
  font-size: 13px;
  color: #333;
}
.person-tg__credit strong { color: #111; }

.person-tg__link { color: #2481cc; text-decoration: none; font-size: 13px; }
.person-tg__link:hover { text-decoration: underline; }

.person-tg__copy-block {
  background: #f7f7f7;
  border-top: 1px solid #e0e0e0;
  padding: 10px 14px 14px;
}

.person-tg__copy-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.person-tg__textarea {
  width: 100%;
  min-height: 150px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 10px;
  resize: vertical;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}


/* ┌─────────────────────────────────────────────────────────────┐
   │  PERSON HTML STANDALONE  (spookyapp.chunk.person.html)      │
   │  Без Bulma. Фиолетовая тёмная тема.                         │
   └─────────────────────────────────────────────────────────────┘ */

.person-html-card {
  --c-bg:      #1a0533;
  --c-surface: #2a0d4f;
  --c-border:  #4a2880;
  --c-accent:  #bb86fc;
  --c-text:    #e0d0f8;
  --c-muted:   #9b7fcb;
  --c-link:    #bb86fc;
  --br:        10px;

  background: var(--c-bg);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  border-radius: var(--br);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--c-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65);
}

.person-html-header {
  display: flex;
  gap: 24px;
  padding: 28px 24px 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.person-html-photo {
  width: 150px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid var(--c-accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
  display: block;
}
@media (min-width: 600px) {
  .person-html-photo { width: 180px; height: 265px; }
}

.person-html-photo-credit {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-top: 5px;
}

.person-html-intro { flex: 1; min-width: 200px; }

.person-html-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.2;
}
@media (min-width: 600px) {
  .person-html-name { font-size: 2rem; }
}

.person-html-dept {
  font-size: 0.88rem;
  color: var(--c-accent);
  font-weight: 500;
  margin: 0 0 16px;
}

.person-html-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.person-html-meta-label {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2px;
}

.person-html-meta-value { font-size: 0.88rem; color: #fff; font-weight: 500; }

.person-html-body { padding: 20px 24px; }

.person-html-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  font-weight: 700;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--c-border);
}

.person-html-aka { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }

.person-html-aka-tag {
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  background: rgba(187, 134, 252, 0.12);
  color: var(--c-accent);
  border: 1px solid rgba(187, 134, 252, 0.28);
}

.person-html-bio { font-size: 0.93rem; line-height: 1.7; color: var(--c-text); margin-bottom: 20px; }

.person-html-credit {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.person-html-credit-title { display: block; font-weight: 600; font-size: 0.88rem; color: #fff; }
.person-html-credit-meta  { display: block; font-size: 0.78rem; color: var(--c-muted); margin-top: 2px; }

.person-html-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.person-html-link {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  background: var(--c-surface);
  transition: border-color 0.2s, color 0.2s;
}
.person-html-link:hover { border-color: var(--c-accent); color: var(--c-accent); }

.person-html-divider { border: 0; border-top: 1px solid var(--c-border); margin: 20px 0; }


/* ┌─────────────────────────────────────────────────────────────┐
   │  PERSON TEXT  (spookyapp.chunk.person.text)                 │
   └─────────────────────────────────────────────────────────────┘ */

.person-text-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

.person-text-name   { font-size: 1.4rem; font-weight: 700; color: #111; margin: 0 0 3px; }
.person-text-dept   { font-size: 0.88rem; color: #7b5ea7; font-weight: 500; margin: 0 0 12px; }
.person-text-meta   { color: #555; font-size: 0.88rem; margin-bottom: 5px; }
.person-text-meta b { color: #111; }
.person-text-bio    { margin: 14px 0; line-height: 1.75; }

.person-text-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin: 16px 0 6px;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

.person-text-links { margin-top: 14px; }

.person-text-link {
  color: #1a73e8;
  text-decoration: none;
  margin-right: 12px;
  font-size: 0.88rem;
}
.person-text-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   GAME CHUNKS — card, brief, telegram, html, text
   ═══════════════════════════════════════════════════════ */

/* ── game.card (Bulma + dark navy) ─────────────────────── */
.game-bulma-custom {
  background: linear-gradient(135deg, #141e30 0%, #243b55 100%);
  border-radius: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.game-bulma-poster {
  height: 330px;
  object-fit: cover;
  width: 100%;
}
.game-bulma-screenshot {
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  width: 100%;
  display: block;
}

/* ── game.brief (Bulma box + dark grey-blue) ────────────── */
.game-brief-custom {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-left: 4px solid #ff6b6b;
}
.game-brief-poster {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

/* ── game.telegram (preview block) ─────────────────────── */
.game-tg__wrap {
  max-width: 680px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.game-tg__preview {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #181818;
  color: #eee;
}
.game-tg__cover {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}
.game-tg__body { padding: 16px 18px; }
.game-tg__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ff6b6b;
  margin: 0 0 10px;
}
.game-tg__divider {
  border: none;
  border-top: 1px solid #333;
  margin: 12px 0;
}
.game-tg__scores { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.game-tg__rating { font-weight: 700; color: #ffd700; font-size: 0.97rem; }
.game-tg__metacritic { font-size: 0.9rem; color: #66bb6a; }
.game-tg__meta { font-size: 0.88rem; color: #bbb; margin: 5px 0; }
.game-tg__meta strong { color: #eee; }
.game-tg__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.game-tg__tag {
  background: rgba(255,107,107,0.15);
  border: 1px solid rgba(255,107,107,0.35);
  color: #ff8a80;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.8rem;
}
.game-tg__desc { font-size: 0.9rem; color: #ccc; line-height: 1.6; }
.game-tg__link { color: #ff6b6b; text-decoration: none; }
.game-tg__link:hover { text-decoration: underline; }
.game-tg__textarea {
  width: 100%;
  margin-top: 14px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px;
  font-size: 0.82rem;
  font-family: monospace;
  color: #333;
  box-sizing: border-box;
  resize: vertical;
}

/* ── game.html (dark navy standalone) ─────────────────── */
.game-html-card {
  --c-bg: #0d1b2a;
  --c-surface: #1a2f47;
  --c-border: #2e4a6a;
  --c-accent: #ff6b6b;
  --c-accent2: #ffd700;
  --c-text: #dce8f5;
  --c-muted: #7da4c4;
  --c-link: #ff8a80;
  --c-meta: #66bb6a;
  background: var(--c-bg);
  color: var(--c-text);
  border-radius: 14px;
  border: 1px solid var(--c-border);
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.game-html-cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}
.game-html-cover-credit {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.3);
  text-align: right;
  padding: 2px 10px;
  background: var(--c-surface);
}
.game-html-header {
  background: linear-gradient(135deg, #1a2f47 0%, #0f2233 100%);
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--c-border);
}
.game-html-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}
@media (max-width: 600px) { .game-html-title { font-size: 1.3rem; } }
.game-html-esrb {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.game-html-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0 0;
  align-items: center;
}
.game-html-score-rawg {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-accent2);
}
.game-html-score-meta {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-meta);
}
.game-html-body { padding: 22px 24px; }
.game-html-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.game-html-meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-muted);
  margin-bottom: 2px;
}
.game-html-meta-value {
  font-size: 0.93rem;
  color: var(--c-text);
  font-weight: 600;
}
.game-html-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-accent);
  font-weight: 700;
  margin: 18px 0 8px;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 4px;
}
.game-html-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.game-html-tag {
  background: rgba(255,107,107,0.12);
  border: 1px solid rgba(255,107,107,0.3);
  color: #ff8a80;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.82rem;
}
.game-html-tag--platform {
  background: rgba(77,208,225,0.12);
  border: 1px solid rgba(77,208,225,0.3);
  color: #4dd0e1;
}
.game-html-desc {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--c-text);
  white-space: pre-wrap;
}
.game-html-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.game-html-screenshot {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--c-border);
}
.game-html-divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 20px 0;
}
.game-html-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.game-html-link {
  display: inline-block;
  padding: 6px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  color: var(--c-link);
  text-decoration: none;
  font-size: 0.84rem;
  transition: border-color .15s, color .15s;
}
.game-html-link:hover { border-color: var(--c-accent); color: var(--c-accent); }
.game-html-sysreq {
  background: rgba(255,255,255,.04);
  border-left: 3px solid var(--c-accent);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 10px;
}
.game-html-sysreq-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-accent);
  margin-bottom: 4px;
}
.game-html-sysreq-text {
  font-size: 0.82rem;
  color: var(--c-text);
  white-space: pre-line;
  line-height: 1.55;
}
.game-tg__sysreq {
  font-size: 0.79rem;
  white-space: pre-line;
  opacity: .9;
}

/* ── game.text (light publication) ─────────────────────── */
.game-text-wrap {
  max-width: 680px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Georgia, serif;
  color: #222;
  line-height: 1.65;
}
.game-text-title { font-size: 1.4rem; font-weight: 700; color: #111; margin: 0 0 4px; }
.game-text-esrb {
  display: inline-block;
  background: #e53935;
  color: #fff;
  border-radius: 3px;
  padding: 1px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.game-text-meta { font-size: 0.88rem; color: #555; margin: 4px 0; }
.game-text-meta strong { color: #111; }
.game-text-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #c0392b;
  font-weight: 700;
  margin: 14px 0 4px;
}
.game-text-desc { font-size: 0.93rem; color: #333; }
.game-text-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.game-text-link { color: #1a73e8; font-size: 0.88rem; text-decoration: none; }
.game-text-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   DEVICE CHUNKS — card, brief, telegram, html, text
   ═══════════════════════════════════════════════════════ */

/* ── device.card (Bulma + dark charcoal) ───────────────── */
.device-bulma-custom {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 12px;
}
.device-bulma-image {
  width: 100%;
  max-width: 250px;
  height: 250px;
  object-fit: contain;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 20px;
  margin: 0 auto;
  display: block;
}
.device-bulma-spec {
  background: rgba(14,165,233,0.1);
  padding: 10px;
  border-radius: 6px;
  border-left: 3px solid #0ea5e9;
  margin-bottom: 8px;
}

/* ── device.brief (Bulma box + dark slate) ──────────────── */
.device-brief-custom {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-left: 4px solid #0ea5e9;
}
.device-brief-image {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 8px;
}

/* ── device.telegram (light preview block) ──────────────── */
.device-tg__wrap {
  max-width: 540px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.device-tg__preview {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.device-tg__image {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: #f5f5f5;
  padding: 20px;
  display: block;
  box-sizing: border-box;
}
.device-tg__body { padding: 12px 16px; }
.device-tg__title { font-size: 1rem; font-weight: 600; color: #000; margin: 0 0 4px; }
.device-tg__meta { font-size: 0.82rem; color: #707579; margin: 4px 0; }
.device-tg__meta strong { color: #000; }
.device-tg__divider { border: 0; border-top: 1px solid #e1e8ed; margin: 10px 0; }
.device-tg__spec {
  background: #f5f5f5;
  padding: 7px 12px;
  border-radius: 6px;
  margin: 4px 0;
  font-size: 0.82rem;
  border-left: 3px solid #0ea5e9;
}
.device-tg__link { color: #2481cc; text-decoration: none; }
.device-tg__link:hover { text-decoration: underline; }
.device-tg__textarea {
  width: 100%;
  margin-top: 12px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px;
  font-size: 0.82rem;
  font-family: monospace;
  color: #333;
  box-sizing: border-box;
  resize: vertical;
}

/* ── device.html (dark standalone) ─────────────────────── */
.device-html-card {
  --c-bg: #111827;
  --c-surface: #1e293b;
  --c-border: #334155;
  --c-accent: #0ea5e9;
  --c-accent2: #38bdf8;
  --c-text: #e2e8f0;
  --c-muted: #94a3b8;
  --c-link: #38bdf8;
  background: var(--c-bg);
  color: var(--c-text);
  border-radius: 14px;
  border: 1px solid var(--c-border);
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.device-html-header {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 28px 24px;
  border-bottom: 1px solid var(--c-border);
  flex-wrap: wrap;
}
.device-html-photo-wrap { flex-shrink: 0; text-align: center; }
.device-html-photo {
  width: 160px;
  height: 200px;
  object-fit: contain;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--c-border);
  display: block;
}
@media (max-width: 600px) { .device-html-photo { width: 120px; height: 150px; } }
.device-html-photo-credit {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
  text-align: center;
}
.device-html-intro { flex: 1; min-width: 200px; }
.device-html-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}
@media (max-width: 600px) { .device-html-name { font-size: 1.25rem; } }
.device-html-brand {
  font-size: 0.95rem;
  color: var(--c-accent2);
  font-weight: 600;
  margin-bottom: 16px;
}
.device-html-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.device-html-meta-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-muted);
  margin-bottom: 2px;
}
.device-html-meta-value { font-size: 0.9rem; color: var(--c-text); font-weight: 600; }
.device-html-body { padding: 22px 24px; }
.device-html-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-accent);
  font-weight: 700;
  margin: 18px 0 8px;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 4px;
}
.device-html-spec {
  background: rgba(14,165,233,0.08);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.device-html-spec strong { color: var(--c-accent2); margin-right: 6px; }
.device-html-spec-extra { color: var(--c-text); }
.device-html-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.device-html-tag {
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.3);
  color: #7dd3fc;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.82rem;
}
.device-html-divider { border: none; border-top: 1px solid var(--c-border); margin: 18px 0; }
.device-html-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.device-html-link {
  display: inline-block;
  padding: 6px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  color: var(--c-link);
  text-decoration: none;
  font-size: 0.84rem;
  transition: border-color .15s, color .15s;
}
.device-html-link:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ── device spec sections table (shared: card + html) ─────── */
.device-spec-section { margin-bottom: 14px; }
.device-spec-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  color: var(--c-accent, #38bdf8);
  padding: 0 0 3px;
  border-bottom: 1px solid var(--c-border, rgba(255,255,255,.1));
  margin-bottom: 5px;
}
.device-spec-table { width: 100%; border-collapse: collapse; font-size: 0.81rem; }
.device-spec-table tr:not(:last-child) td,
.device-spec-table tr:not(:last-child) th { border-bottom: 1px solid rgba(255,255,255,.05); }
.device-spec-table th {
  width: 34%;
  vertical-align: top;
  padding: 3px 8px 3px 0;
  font-weight: 600;
  opacity: .7;
  white-space: nowrap;
}
.device-spec-table td {
  vertical-align: top;
  padding: 3px 0;
  white-space: pre-line;
  line-height: 1.45;
}
.device-spec-rows { font-size: 0.85rem; }
.device-spec-row {
  display: flex;
  gap: 10px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  line-height: 1.45;
}
.device-spec-row:last-child { border-bottom: none; }
.device-spec-row > span:first-child {
  flex: 0 0 34%;
  opacity: .7;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.device-spec-row > span:last-child {
  flex: 1;
  white-space: pre-line;
}
/* text-theme overrides */
.device-text-spec-section-title {
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #0369a1;
  font-weight: 700;
  margin: 16px 0 4px;
}
.device-text-spec-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-bottom: 4px; }
.device-text-spec-table th {
  width: 34%;
  text-align: left;
  font-weight: 600;
  color: #374151;
  padding: 2px 8px 2px 0;
  vertical-align: top;
  white-space: nowrap;
}
.device-text-spec-table td { color: #374151; padding: 2px 0; vertical-align: top; white-space: pre-line; }

/* ── device.text (light publication) ───────────────────── */
.device-text-wrap {
  max-width: 680px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Georgia, serif;
  color: #222;
  line-height: 1.65;
}
.device-text-title { font-size: 1.4rem; font-weight: 700; color: #111; margin: 0 0 2px; }
.device-text-brand { font-size: 0.9rem; color: #0369a1; font-weight: 600; margin-bottom: 8px; }
.device-text-meta { font-size: 0.88rem; color: #555; margin: 4px 0; }
.device-text-meta strong { color: #111; }
.device-text-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #0369a1;
  font-weight: 700;
  margin: 14px 0 4px;
}
.device-text-spec { font-size: 0.88rem; color: #333; margin: 3px 0; }
.device-text-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.device-text-link { color: #1a73e8; font-size: 0.88rem; text-decoration: none; }
.device-text-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   GITHUB CHUNKS — card, brief, telegram, html, text
   ═══════════════════════════════════════════════════════ */

/* ── github.card (Bulma + dark github-style) ────────────── */
.github-bulma-custom {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  border-radius: 12px;
  border: 1px solid #30363d;
}
.github-bulma-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #58a6ff;
  display: block;
}
.github-bulma-stat {
  background: rgba(88,166,255,0.1);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(88,166,255,0.2);
}

/* ── github.brief (Bulma box) ───────────────────────────── */
.github-brief-custom {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  border-left: 4px solid #58a6ff;
  border-top: 1px solid #30363d;
  border-right: 1px solid #30363d;
  border-bottom: 1px solid #30363d;
}
.github-brief-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
}

/* ── github.telegram (preview block) ────────────────────── */
.github-tg__wrap {
  max-width: 520px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.github-tg__preview {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 10px;
  overflow: hidden;
  color: #c9d1d9;
}
.github-tg__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}
.github-tg__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #58a6ff;
  flex-shrink: 0;
}
.github-tg__title {
  font-size: 0.97rem;
  font-weight: 700;
  color: #58a6ff;
  margin: 0;
}
.github-tg__owner { font-size: 0.78rem; color: #8b949e; margin-top: 2px; }
.github-tg__body { padding: 14px 16px; }
.github-tg__meta { font-size: 0.85rem; color: #8b949e; margin: 5px 0; }
.github-tg__meta strong { color: #c9d1d9; }
.github-tg__divider { border: none; border-top: 1px solid #30363d; margin: 12px 0; }
.github-tg__desc { font-size: 0.88rem; color: #8b949e; line-height: 1.6; }
.github-tg__stats { display: flex; gap: 0; border: 1px solid #30363d; border-radius: 8px; overflow: hidden; margin: 8px 0; }
.github-tg__stat { flex: 1; text-align: center; padding: 10px 6px; border-right: 1px solid #30363d; }
.github-tg__stat:last-child { border-right: none; }
.github-tg__stat-value { font-size: 0.97rem; font-weight: 700; color: #58a6ff; }
.github-tg__stat-label { font-size: 0.7rem; color: #8b949e; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.github-tg__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.github-tg__tag {
  background: rgba(88,166,255,0.12);
  border: 1px solid rgba(88,166,255,0.25);
  color: #58a6ff;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.78rem;
}
.github-tg__link { color: #58a6ff; text-decoration: none; }
.github-tg__link:hover { text-decoration: underline; }
.github-tg__textarea {
  width: 100%;
  margin-top: 12px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px;
  font-size: 0.82rem;
  font-family: monospace;
  color: #333;
  box-sizing: border-box;
  resize: vertical;
}

/* ── github.html (dark github-style standalone) ─────────── */
.github-html-card {
  --c-bg: #0d1117;
  --c-surface: #161b22;
  --c-border: #30363d;
  --c-accent: #58a6ff;
  --c-accent2: #79c0ff;
  --c-text: #c9d1d9;
  --c-muted: #8b949e;
  --c-link: #58a6ff;
  --c-green: #3fb950;
  background: var(--c-bg);
  color: var(--c-text);
  border-radius: 14px;
  border: 1px solid var(--c-border);
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.github-html-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  flex-wrap: wrap;
}
.github-html-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--c-accent);
  flex-shrink: 0;
}
.github-html-intro { flex: 1; min-width: 200px; }
.github-html-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-accent);
  margin: 0 0 2px;
  word-break: break-word;
}
.github-html-owner { font-size: 0.85rem; color: var(--c-muted); margin-bottom: 10px; }
.github-html-lang-badge {
  display: inline-block;
  background: rgba(88,166,255,0.15);
  border: 1px solid rgba(88,166,255,0.3);
  color: var(--c-accent);
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.github-html-body { padding: 20px 24px; }
.github-html-desc { font-size: 0.93rem; color: var(--c-text); line-height: 1.7; margin-bottom: 16px; }
.github-html-stats { display: flex; gap: 0; border: 1px solid var(--c-border); border-radius: 8px; overflow: hidden; margin-bottom: 18px; }
.github-html-stat { flex: 1; text-align: center; padding: 14px 8px; border-right: 1px solid var(--c-border); }
.github-html-stat:last-child { border-right: none; }
.github-html-stat-value { font-size: 1.1rem; font-weight: 700; color: var(--c-accent); }
.github-html-stat-label { font-size: 0.7rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.github-html-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-accent);
  font-weight: 700;
  margin: 16px 0 8px;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 4px;
}
.github-html-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.github-html-meta-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-muted);
  margin-bottom: 2px;
}
.github-html-meta-value { font-size: 0.9rem; color: var(--c-text); font-weight: 600; }
.github-html-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.github-html-tag {
  background: rgba(88,166,255,0.12);
  border: 1px solid rgba(88,166,255,0.25);
  color: var(--c-accent);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.8rem;
}
.github-html-divider { border: none; border-top: 1px solid var(--c-border); margin: 16px 0; }
.github-html-links { display: flex; flex-wrap: wrap; gap: 8px; }
.github-html-link {
  display: inline-block;
  padding: 6px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  color: var(--c-link);
  text-decoration: none;
  font-size: 0.84rem;
  transition: border-color .15s, color .15s;
}
.github-html-link:hover { border-color: var(--c-accent); color: var(--c-accent2); }

/* ── github.text (light publication) ───────────────────── */
.github-text-wrap {
  max-width: 680px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Georgia, serif;
  color: #222;
  line-height: 1.65;
}
.github-text-title { font-size: 1.3rem; font-weight: 700; color: #0969da; margin: 0 0 2px; word-break: break-word; }
.github-text-owner { font-size: 0.85rem; color: #656d76; margin-bottom: 8px; }
.github-text-meta { font-size: 0.88rem; color: #555; margin: 4px 0; }
.github-text-meta strong { color: #111; }
.github-text-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #0969da;
  font-weight: 700;
  margin: 14px 0 4px;
}
.github-text-desc { font-size: 0.93rem; color: #333; line-height: 1.7; }
.github-text-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.github-text-tag {
  background: rgba(9,105,218,0.08);
  border: 1px solid rgba(9,105,218,0.2);
  color: #0969da;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.8rem;
}
.github-text-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.github-text-link { color: #1a73e8; font-size: 0.88rem; text-decoration: none; }
.github-text-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   PRODUCT CHUNKS — card, brief, telegram, html, text
   ═══════════════════════════════════════════════════════ */

/* ── product.card (Bulma + light) ───────────────────────── */
.product-bulma-custom { background: #f5f5f5; }
.product-bulma-image {
  height: 300px;
  object-fit: cover;
  background: #fff;
  width: 100%;
  display: block;
}
.product-bulma-offer {
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  border-left: 3px solid #10b981;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-bulma-offer strong { color: #111; }
.product-bulma-offer a { color: #10b981; text-decoration: none; }
.product-bulma-offer a:hover { text-decoration: underline; }

/* ── product.brief (Bulma box + light) ─────────────────── */
.product-brief-custom {
  background: #f9fafb;
  border-left: 4px solid #10b981;
}
.product-brief-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  background: #fff;
  display: block;
}

/* ── product.telegram (preview block) ──────────────────── */
.product-tg__wrap {
  max-width: 520px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.product-tg__preview {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.product-tg__cover {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  background: #f3f4f6;
}
.product-tg__body { padding: 14px 16px; }
.product-tg__title { font-size: 1rem; font-weight: 700; color: #111; margin: 0 0 4px; }
.product-tg__brand { font-size: 0.82rem; color: #6b7280; margin-bottom: 8px; }
.product-tg__meta { font-size: 0.85rem; color: #374151; margin: 5px 0; }
.product-tg__meta strong { color: #111; }
.product-tg__price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #059669;
  margin: 8px 0;
}
.product-tg__divider { border: none; border-top: 1px solid #e5e7eb; margin: 10px 0; }
.product-tg__desc { font-size: 0.88rem; color: #4b5563; line-height: 1.6; }
.product-tg__offer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0fdf4;
  border-left: 3px solid #10b981;
  border-radius: 0 6px 6px 0;
  padding: 8px 12px;
  margin: 4px 0;
  font-size: 0.85rem;
}
.product-tg__offer strong { color: #111; }
.product-tg__offer span { color: #059669; font-weight: 700; }
.product-tg__offer a { color: #10b981; text-decoration: none; font-size: 0.8rem; }
.product-tg__offer a:hover { text-decoration: underline; }
.product-tg__link { color: #2563eb; text-decoration: none; }
.product-tg__link:hover { text-decoration: underline; }
.product-tg__textarea {
  width: 100%;
  margin-top: 12px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px;
  font-size: 0.82rem;
  font-family: monospace;
  color: #333;
  box-sizing: border-box;
  resize: vertical;
}

/* ── product.html (light standalone) ───────────────────── */
.product-html-card {
  --c-bg: #f9fafb;
  --c-surface: #ffffff;
  --c-border: #e5e7eb;
  --c-accent: #10b981;
  --c-accent2: #059669;
  --c-text: #111827;
  --c-muted: #6b7280;
  --c-price: #059669;
  background: var(--c-bg);
  color: var(--c-text);
  border-radius: 14px;
  border: 1px solid var(--c-border);
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.product-html-cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  background: #fff;
}
.product-html-header {
  padding: 22px 24px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.product-html-title { font-size: 1.55rem; font-weight: 800; color: var(--c-text); margin: 0 0 4px; }
@media (max-width: 600px) { .product-html-title { font-size: 1.2rem; } }
.product-html-brand { font-size: 0.9rem; color: var(--c-muted); margin-bottom: 12px; }
.product-html-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-price);
  margin: 10px 0 6px;
}
.product-html-rating {
  display: inline-block;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}
.product-html-body { padding: 22px 24px; }
.product-html-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-accent);
  font-weight: 700;
  margin: 16px 0 8px;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 4px;
}
.product-html-desc { font-size: 0.93rem; color: #374151; line-height: 1.75; }
.product-html-offer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.product-html-offer-name { font-weight: 600; color: var(--c-text); font-size: 0.92rem; }
.product-html-offer-price { font-weight: 700; color: var(--c-price); font-size: 0.95rem; }
.product-html-offer-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--c-accent);
  text-decoration: none;
}
.product-html-offer-link:hover { text-decoration: underline; }
.product-html-divider { border: none; border-top: 1px solid var(--c-border); margin: 18px 0; }

/* ── product.text (light publication) ──────────────────── */
.product-text-wrap {
  color: #222;
  line-height: 1.65;
}
.product-text-title { font-size: 1.4rem; font-weight: 700; color: #111; margin: 0 0 2px; }
.product-text-brand { font-size: 0.88rem; color: #6b7280; margin-bottom: 6px; }
.product-text-price { font-size: 1.5rem; font-weight: 800; color: #059669; margin: 6px 0; }
.product-text-meta { font-size: 0.88rem; color: #555; margin: 4px 0; }
.product-text-meta strong { color: #111; }
.product-text-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #10b981;
  font-weight: 700;
  margin: 14px 0 4px;
}
.product-text-desc { font-size: 0.93rem; color: #333; }
.product-text-offer { font-size: 0.88rem; color: #374151; margin: 4px 0; }
.product-text-offer strong { color: #111; }
.product-text-offer span { color: #059669; font-weight: 700; }
.product-text-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.product-text-link { color: #1a73e8; font-size: 0.88rem; text-decoration: none; }
.product-text-link:hover { text-decoration: underline; }

/* ===== FOOTBALL (API-Football) ===== */
.football-bulma-custom { background: linear-gradient(135deg, #064e3b 0%, #000000 100%) }
.football-bulma-score { font-size: 42px; font-weight: 700; color: #ffffff; line-height: 1; }
.football-bulma-team-logo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto; }
.football-brief-custom { background: linear-gradient(135deg, #064e3b 0%, #000000 100%); border-left: 4px solid #ffffff; }
/* Telegram football */
.football-tg { font-family: Arial, sans-serif; max-width: 600px; }
.football-tg__header { background: linear-gradient(135deg, #064e3b 0%, #047857 100%); color: #fff; padding: 16px; border-radius: 8px 8px 0 0; text-align: center; }
.football-tg__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.football-tg__score-row { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 12px 0; }
.football-tg__team { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.football-tg__team-score { font-size: 36px; font-weight: 700; color: #ffffff; line-height: 1; }
.football-tg__status { display: inline-block; background: #34d399; color: #064e3b; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 12px; margin-top: 6px; }
.football-tg__separator { color: #a7f3d0; font-size: 24px; font-weight: 300; }
.football-tg__content { background: #f8fdf9; padding: 12px 16px; border-radius: 0 0 8px 8px; border: 1px solid #d1fae5; border-top: none; }
.football-tg__meta { font-size: 13px; color: #374151; margin: 4px 0; }
.football-tg__textarea { width: 100%; box-sizing: border-box; font-family: monospace; font-size: 12px; border: 1px solid #ddd; border-radius: 4px; padding: 8px; margin-top: 8px; background: #fff; color: #111; resize: vertical; }
/* HTML standalone football */
.football-html-wrap { --c-bg: #064e3b; --c-bg2: #047857; --c-score: #fbbf24; --c-text: #f0fdf4; --c-muted: #a7f3d0; font-family: 'Segoe UI', Arial, sans-serif; max-width: 700px; margin: 0 auto; background: linear-gradient(135deg, var(--c-bg) 0%, var(--c-bg2) 100%); border-radius: 14px; overflow: hidden; color: var(--c-text); }
.football-html-header { padding: 24px 28px 16px; text-align: center; }
.football-html-league { font-size: 0.85rem; color: var(--c-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.football-html-match-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.football-html-score-row { display: flex; align-items: center; justify-content: center; gap: 32px; margin: 16px 0; }
.football-html-team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.football-html-team-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.2); }
.football-html-team-name { font-size: 1rem; font-weight: 600; }
.football-html-score { font-size: 52px; font-weight: 700; color: var(--c-score); line-height: 1; }
.football-html-vs { font-size: 0.9rem; color: var(--c-muted); }
.football-html-status { display: inline-block; background: #34d399; color: #064e3b; font-size: 0.8rem; font-weight: 700; padding: 3px 14px; border-radius: 999px; margin: 8px 0 16px; }
.football-html-meta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 0 28px 20px; font-size: 0.85rem; color: var(--c-muted); }
.football-html-meta-item strong { color: var(--c-text); }
/* Text publication football */
.football-text-wrap { font-family: Georgia, serif; max-width: 640px; padding: 16px 0; }
.football-text-title { font-size: 1.4rem; font-weight: 700; color: #111; margin: 0 0 4px; }
.football-text-league { font-size: 0.88rem; color: #047857; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.football-text-score { font-size: 2rem; font-weight: 700; color: #064e3b; margin: 8px 0; }
.football-text-meta { font-size: 0.88rem; color: #6b7280; margin: 3px 0; }
.football-text-meta strong { color: #374151; }
.football-text-section-title { font-size: 0.78rem; font-weight: 700; color: #047857; text-transform: uppercase; letter-spacing: 0.07em; margin: 14px 0 4px; }

/* ===== SPORTS (universal) ===== */
.sports-bulma-custom { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); border-radius: 12px; }
.sports-bulma-score { font-size: 42px; font-weight: 700; color: #facc15; line-height: 1; }
.sports-bulma-team-logo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto; }
.sports-bulma-sport-badge { background: #3b82f6; color: #ffffff; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; display: inline-block; margin-bottom: 4px; }
.sports-brief-custom { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); border-left: 4px solid #3b82f6; }
/* Telegram sports */
.sports-tg { font-family: Arial, sans-serif; max-width: 600px; }
.sports-tg__header { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); color: #ffffff; padding: 16px; border-radius: 8px 8px 0 0; text-align: center; }
.sports-tg__sport { font-size: 11px; background: #3b82f6; color: #ffffff; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; display: inline-block; margin-bottom: 6px; }
.sports-tg__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.sports-tg__score-row { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 12px 0; }
.sports-tg__team { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sports-tg__team-score { font-size: 36px; font-weight: 700; color: #facc15; line-height: 1; }
.sports-tg__status { display: inline-block; background: #60a5fa; color: #0f172a; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 12px; margin-top: 6px; }
.sports-tg__separator { color: #93c5fd; font-size: 24px; font-weight: 300; }
.sports-tg__content { background: #f8faff; padding: 12px 16px; border-radius: 0 0 8px 8px; border: 1px solid #dbeafe; border-top: none; }
.sports-tg__meta { font-size: 13px; color: #374151; margin: 4px 0; }
.sports-tg__textarea { width: 100%; box-sizing: border-box; font-family: monospace; font-size: 12px; border: 1px solid #ddd; border-radius: 4px; padding: 8px; margin-top: 8px; background: #fff; color: #111; resize: vertical; }
/* HTML standalone sports */
.sports-html-wrap { --c-bg: #0f172a; --c-bg2: #1e3a5f; --c-score: #facc15; --c-accent: #3b82f6; --c-text: #e2e8f0; --c-muted: #94a3b8; max-width: 700px; margin: 0 auto; background: linear-gradient(135deg, var(--c-bg) 0%, var(--c-bg2) 100%); border-radius: 14px; overflow: hidden; color: var(--c-text); }
.sports-html-header { padding: 24px 28px 16px; text-align: center; }
.sports-html-sport-badge { background: var(--c-accent); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 4px; text-transform: uppercase; display: inline-block; margin-bottom: 6px; }
.sports-html-league { font-size: 0.85rem; color: var(--c-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.sports-html-match-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.sports-html-score-row { display: flex; align-items: center; justify-content: center; gap: 32px; margin: 16px 0; }
.sports-html-team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sports-html-team-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.15); }
.sports-html-team-name { font-size: 1rem; font-weight: 600; }
.sports-html-score { font-size: 52px; font-weight: 700; color: var(--c-score); line-height: 1; }
.sports-html-vs { font-size: 0.9rem; color: var(--c-muted); }
.sports-html-status { display: inline-block; background: var(--c-accent); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 3px 14px; border-radius: 999px; margin: 8px 0 16px; }
.sports-html-meta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 0 28px 20px; font-size: 0.85rem; color: var(--c-muted); }
.sports-html-meta-item strong { color: var(--c-text); }
/* Text publication sports */
.sports-text-wrap { font-family: Georgia, serif; max-width: 640px; padding: 16px 0; }
.sports-text-title { font-size: 1.4rem; font-weight: 700; color: #111; margin: 0 0 4px; }
.sports-text-sport { font-size: 0.78rem; font-weight: 700; color: #3b82f6; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.sports-text-league { font-size: 0.88rem; color: #1e3a5f; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.sports-text-score { font-size: 2rem; font-weight: 700; color: #0f172a; margin: 8px 0; }
.sports-text-meta { font-size: 0.88rem; color: #6b7280; margin: 3px 0; }
.sports-text-meta strong { color: #374151; }
.sports-text-section-title { font-size: 0.78rem; font-weight: 700; color: #3b82f6; text-transform: uppercase; letter-spacing: 0.07em; margin: 14px 0 4px; }
