/* Шрифтовете идват от Google Fonts в base.html.twig */
:root { --font-unbounded: "Unbounded"; --font-manrope: "Manrope"; --font-golos: "Golos Text"; }

/* MovieHouse — стилове. Две теми с едни и същи токени:
   тъмна (телефон по подразбиране) и светла (компютър по подразбиране).
   data-theme на <html>: auto | light | dark. */

:root {
  --bg: #0d0b0a;
  --panel: #171311;
  --panel-2: #221b18;
  --panel-3: #120f0d;
  --line: #2a231f;
  --line-2: #3a312b;
  --ink: #f2ead8;
  --ink-2: #cfc4b3;
  --mute: #b9ad9c;
  --mute-2: #9a8f80;
  --mute-3: #6f665b;
  --red: #c8321f;
  --red-ink: #f0644a;
  --red-soft: rgba(200, 50, 31, 0.22);
  --red-tag: #ffb4a6;
  --red-deep: #3b0f09;
  --amber: #e9a23b;
  --amber-soft: rgba(233, 162, 59, 0.14);
  --sel: #1d1310;
  --hover: #1b1613;
  --on-red: #f2ead8;
  --wm-from: #f2ead8;
  --hero-fade: #0d0b0a;
  --dh-dark: inline-block;
  --dh-light: none;
  color-scheme: dark;

  --font-display: var(--font-unbounded), "Unbounded", system-ui, sans-serif;
  --font-body: var(--font-manrope), "Manrope", system-ui, sans-serif;
  --font-brand: var(--font-golos), "Golos Text", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --desk: 1024px;
}

/* Светлите токени — при изричен избор или в „Авто“ на широк екран. */
:root[data-theme="light"] {
  --bg: #f6f1e7; --panel: #ffffff; --panel-2: #f1e9db; --panel-3: #fbf8f2; --line: #e6dccb; --line-2: #d3c7b3;
  --ink: #1a1512; --ink-2: #3f362d; --mute: #5f5446; --mute-2: #75695a; --mute-3: #a3978a;
  --red: #b8321f; --red-ink: #b8321f; --red-soft: rgba(184, 50, 31, 0.12); --red-tag: #a32a17; --red-deep: #f3d9cf;
  --amber: #a8620f; --amber-soft: rgba(168, 98, 15, 0.12); --sel: #f7e4dc; --hover: #efe8db; --on-red: #fffaf2;
  --wm-from: #1a1512; --hero-fade: #fbf8f2; --dh-dark: none; --dh-light: inline-block;
  color-scheme: light;
}
@media (min-width: 1024px) {
  :root[data-theme="auto"] {
    --bg: #f6f1e7; --panel: #ffffff; --panel-2: #f1e9db; --panel-3: #fbf8f2; --line: #e6dccb; --line-2: #d3c7b3;
    --ink: #1a1512; --ink-2: #3f362d; --mute: #5f5446; --mute-2: #75695a; --mute-3: #a3978a;
    --red: #b8321f; --red-ink: #b8321f; --red-soft: rgba(184, 50, 31, 0.12); --red-tag: #a32a17; --red-deep: #f3d9cf;
    --amber: #a8620f; --amber-soft: rgba(168, 98, 15, 0.12); --sel: #f7e4dc; --hover: #efe8db; --on-red: #fffaf2;
    --wm-from: #1a1512; --hero-fade: #fbf8f2; --dh-dark: none; --dh-light: inline-block;
    color-scheme: light;
  }
}

/* Лявата лента е тъмна и при светла тема (като горната лента на IMDb). */
.sidebar {
  --bg: #0d0b0a; --panel: #171311; --line: #2a231f; --line-2: #3a312b; --ink: #f2ead8; --ink-2: #cfc4b3;
  --mute-2: #9a8f80; --mute-3: #6f665b; --red: #c8321f; --red-ink: #f0644a; --amber: #e9a23b; --sel: #1d1310;
  --on-red: #f2ead8; --wm-from: #f2ead8; --dh-dark: inline-block; --dh-light: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--mute-2); margin: 0; font-size: 14px; }

@keyframes mhblink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.mh-cursor { animation: mhblink 1.1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .mh-cursor { animation: none; } }

.wordmark {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, var(--wm-from) 30%, #f0644a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.brand { display: inline-flex; align-items: center; gap: 8px; }
.dash { border-top: 2px dashed var(--line-2); }
.eyebrow-sm { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-2); }

.splash { min-height: 100dvh; display: grid; place-items: center; background: var(--bg); }

/* ---------- Рамка ---------- */

.shell { min-height: 100dvh; }
.sidebar { display: none; }
.main { padding: calc(var(--safe-top) + 10px) 20px calc(96px + var(--safe-bottom)); max-width: 640px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 14px; }
.topbar-dash { margin-bottom: 4px; }
.avatar {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--amber);
}
.avatar-lg { width: 40px; height: 40px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 10px 8px calc(10px + var(--safe-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; color: var(--mute-2); font-size: 11px; font-weight: 600; }
.tab[aria-current="page"] { color: var(--ink); font-weight: 700; }
.tab[aria-current="page"] svg { color: var(--red-ink); }

.shell.no-chrome .topbar, .shell.no-chrome .topbar-dash { display: none; }
.shell.no-chrome .main { padding-top: 0; }

@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); height: 100dvh; }
  .sidebar {
    display: flex; flex-direction: column; padding: 28px 18px 22px; background: var(--bg); color: var(--ink);
    border-right: 1px solid var(--line); height: 100dvh; position: sticky; top: 0; overflow-y: auto;
  }
  .sidebar .brand { padding: 0 8px; }
  .sidebar > .dash { margin: 22px 8px 18px; }
  .side-nav { display: flex; flex-direction: column; gap: 4px; }
  .side-link { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--mute-2); font-size: 14px; font-weight: 700; }
  .side-link:hover { background: var(--panel); color: var(--ink); }
  .side-link[aria-current="page"] { background: var(--sel); color: var(--ink); font-weight: 800; }
  .side-link[aria-current="page"] svg { color: var(--red-ink); }
  .side-count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--line); color: var(--amber); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
  .side-genres { margin-top: 26px; padding: 0 8px; display: flex; flex-direction: column; gap: 10px; }
  .side-genres .eyebrow-sm { color: var(--mute-3); }
  .side-profile { margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
  .side-profile-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .side-profile-text b { font-size: 14px; }
  .side-profile-text span { font-size: 12px; color: var(--mute-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main { max-width: none; margin: 0; padding: 30px 36px 40px; height: 100dvh; overflow-y: auto; }
  .main-wide { padding: 0; overflow: hidden; }
  .topbar, .topbar-dash, .tabbar { display: none; }
  .shell.no-chrome .main { padding: 30px 36px 40px; }
}

/* ---------- Заглавие на страницата ---------- */

.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 4px; }
.page-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.page-title h1 { margin: 0; font-family: var(--font-display); font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.page-title p { margin: 0; font-size: 14px; color: var(--mute-2); }
.page-title p b { color: var(--ink); }
@media (min-width: 1024px) {
  .page-header { padding: 0; }
  .page-title h1 { font-size: 40px; }
  .page-title p { font-size: 15px; }
}

.calendar { flex-shrink: 0; width: 58px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; align-items: center; }
.calendar-month { align-self: stretch; text-align: center; padding: 3px 0; background: var(--red); color: var(--on-red); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; }
.calendar-day { font-family: var(--font-display); font-size: 24px; font-weight: 700; padding: 6px 0 2px; }
.calendar-wd { font-size: 10px; font-weight: 700; color: var(--mute-2); padding-bottom: 6px; }

/* ---------- Дни и жанрове ---------- */

.days { display: flex; gap: 8px; padding: 16px 0 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.days::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.day {
  min-width: 60px; height: 52px; border-radius: 16px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
}
.day small { font-size: 11px; font-weight: 600; opacity: 0.75; }
.day b { font-size: 15px; font-weight: 800; }
.day[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: var(--on-red); }
.chips { display: flex; gap: 6px; padding: 12px 0 16px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--mute); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px;
}
.chip small { font-size: 11px; opacity: 0.7; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chip-more { border-style: dashed; color: var(--mute-2); }
.pill { height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.pill-red { background: var(--red); color: var(--on-red); }
@media (min-width: 1024px) {
  .filters { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 0 20px; }
  .days, .chips { margin: 0; padding: 0; overflow: visible; }
  .chips { flex-wrap: wrap; }
  .day { min-width: 58px; height: 50px; border-radius: 14px; }
}

/* ---------- Програма ---------- */

.schedule { display: flex; flex-direction: column; gap: 18px; padding-top: 16px; }
.group { display: flex; flex-direction: column; gap: 8px; }
.group-title { margin: 0; display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-2); }
.group-title span:last-child { letter-spacing: 0; text-transform: none; font-weight: 600; }
.film-list { list-style: none; margin: 0; padding: 0; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.film-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.film-row:last-child { border-bottom: 0; }
.film-link { flex: 1; min-width: 0; display: flex; gap: 14px; align-items: flex-start; padding: 14px 0 14px 16px; }
.film-when { width: 50px; flex-shrink: 0; display: flex; flex-direction: column; gap: 3px; }
.film-time { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--amber); }
.film-ch { font-size: 11px; line-height: 1.2; color: var(--mute-2); }
.film-poster { display: none; }
.film-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.film-title { font-size: 15px; font-weight: 700; line-height: 1.25; }
.film-meta { display: none; }
.film-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--line); color: var(--mute); }
.tag-mine { background: var(--red-soft); color: var(--red-tag); }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--red-ink); box-shadow: 0 0 0 4px var(--red-soft); vertical-align: 2px; }
.bell { width: 56px; flex-shrink: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; color: var(--mute-3); }
.bell.is-on { color: var(--amber); }
.empty { margin: 32px 0; text-align: center; color: var(--mute-2); font-size: 14px; }
.notice { padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: var(--mute); }
.notice b { color: var(--ink); }

@media (min-width: 1024px) {
  .program { display: grid; grid-template-columns: minmax(0, 1fr) 440px; height: 100dvh; }
  .program-list { min-width: 0; overflow-y: auto; padding: 30px 36px 40px; }
  .program-list .dash { margin-bottom: 4px; }
  .schedule { padding-top: 14px; }
  .group-title { font-size: 11px; padding: 0 4px; }
  .film-list { background: transparent; border: 0; border-radius: 0; overflow: visible; display: flex; flex-direction: column; }
  .film-row { border: 0; border-radius: 14px; align-items: center; }
  .film-row:hover { background: var(--hover); }
  .film-row.is-selected { background: var(--sel); box-shadow: inset 3px 0 0 var(--red); }
  .film-link { align-items: center; gap: 16px; padding: 9px 0 9px 12px; }
  .film-when { width: 54px; }
  .film-ch { display: none; }
  .film-poster { display: block; width: 34px; height: 50px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--line); }
  .film-poster img { width: 100%; height: 100%; object-fit: cover; }
  .film-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 170px; grid-template-rows: auto auto; column-gap: 16px; row-gap: 3px; }
  .film-title { grid-column: 1; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .film-meta { display: block; grid-column: 1; font-size: 12px; color: var(--mute-2); }
  .film-tags { grid-column: 2; grid-row: 1 / span 2; align-self: center; flex-wrap: nowrap; overflow: hidden; }
  .bell { width: 44px; height: 44px; border-radius: 12px; }
  .program-panel { border-left: 1px solid var(--line); background: var(--panel-3); overflow-y: auto; }
}
@media (min-width: 1024px) {
  /* редът: час · постер · заглавие (канал · година · рейтинг) · жанрове · звънче */
  .film-link { display: grid; grid-template-columns: 54px 34px minmax(0, 1fr); }
  .film-main { grid-template-columns: minmax(0, 1fr) 210px; }
}
@media (max-width: 1023.98px) {
  .program-panel { display: none; }
}

/* ---------- Филм ---------- */

.detail { display: flex; flex-direction: column; }
.detail-hero { position: relative; overflow: hidden; background: var(--red-deep); }
.detail-page .detail-hero { height: calc(300px + var(--safe-top)); margin: 0 -20px; }
.detail-panel .detail-hero { height: 270px; }
.detail-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-backdrop-empty { display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; font-family: var(--font-display); font-size: 200px; font-weight: 700; color: rgba(242, 234, 216, 0.07); }
.detail-hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--hero-fade) 10%, transparent) 0%, color-mix(in srgb, var(--hero-fade) 30%, transparent) 50%, var(--hero-fade) 100%); }
.detail-panel .detail-hero-fade { background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--panel-3) 70%, transparent) 78%, var(--panel-3) 100%); }
.detail-back { position: absolute; top: calc(var(--safe-top) + 12px); left: 16px; width: 44px; height: 44px; border-radius: 14px; background: rgba(13, 11, 10, 0.55); color: #f2ead8; display: flex; align-items: center; justify-content: center; }
.detail-hero-text { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.detail-panel .detail-hero-text { left: 24px; bottom: 14px; }
.detail-pills { display: flex; gap: 6px; }
.pill-solid { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--red); color: var(--on-red); }
.pill-ghost { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: rgba(242, 234, 216, 0.16); color: var(--ink); }
.detail-title { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.08; }
.detail-panel .detail-title { font-size: 26px; line-height: 1.1; }
.detail-sub { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.detail-panel .detail-sub { color: var(--mute); }
.detail-body { display: flex; flex-direction: column; gap: 18px; padding: 8px 0 0; }
.detail-panel .detail-body { padding: 14px 24px 28px; }
.detail-head { display: flex; flex-direction: column; gap: 8px; }
.detail-desc { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.detail-desc.is-open { display: block; cursor: auto; }
.detail-panel .detail-desc { -webkit-line-clamp: 7; }
.detail-cast { margin: -8px 0 0; font-size: 13px; color: var(--mute-2); }
.detail-section { display: flex; flex-direction: column; gap: 10px; }
.airings { list-style: none; margin: 0; padding: 0; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.airing { display: flex; align-items: center; gap: 14px; padding: 12px; border-bottom: 1px solid var(--line); }
.airing:last-child { border-bottom: 0; }
.airing-day { width: 54px; flex-shrink: 0; padding: 7px 0; border-radius: 12px; background: var(--panel-2); display: flex; flex-direction: column; align-items: center; }
.airing-day span { font-size: 11px; font-weight: 700; color: var(--mute-2); }
.airing-day b { font-family: var(--font-display); font-size: 16px; font-weight: 500; }
.airing-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.airing-time { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--amber); display: flex; align-items: center; gap: 8px; }
.airing-ch { font-size: 13px; color: var(--mute); }
.live-tag { font-family: var(--font-body); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-tag); }
.btn-remind { flex-shrink: 0; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; font-size: 13px; font-weight: 700; }
.btn-remind.is-on { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-actions .btn { flex: 1 1 140px; white-space: nowrap; font-size: 14px; }
.detail-empty { min-height: 240px; display: grid; place-items: center; color: var(--mute-2); padding: 24px; text-align: center; }
.tmdb-link { font-size: 11px; color: var(--mute-3); }

/* ---------- Бутони и полета ---------- */

.btn { height: 50px; padding: 0 18px; border-radius: 16px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 800; background: transparent; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-red { background: var(--red); color: var(--on-red); }
.btn-red-outline { border-color: var(--red); background: var(--red); color: var(--on-red); }
.btn-ghost { border-color: var(--line-2); background: var(--panel); }
.btn-danger { border-color: var(--line-2); color: var(--red-ink); }
.btn-block { width: 100%; height: 56px; }
.btn-link { border: 0; background: none; padding: 0; color: var(--amber); font-size: 13px; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--mute-2); }
.input { height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-size: 15px; outline: none; width: 100%; }
.input:focus { border-color: var(--amber); }
.input::placeholder { color: var(--mute-3); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--red-soft); color: var(--red-tag); font-size: 13px; font-weight: 600; }
.form-ok { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-size: 13px; font-weight: 600; }

.segmented { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.segmented :is(button, a) { height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--mute); font-size: 13px; font-weight: 700; padding: 0 12px; }
.segmented :is(button, a)[aria-pressed="true"], .segmented :is(button, a)[aria-selected="true"] { background: var(--ink); color: var(--bg); }

.switch { width: 52px; height: 32px; flex-shrink: 0; border-radius: 999px; border: 0; padding: 3px; display: flex; background: var(--line-2); transition: background 0.15s; }
.switch::after { content: ""; width: 26px; height: 26px; border-radius: 50%; background: #f2ead8; transition: transform 0.15s; }
.switch[aria-checked="true"] { background: var(--red); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

.card { border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.card-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-row:last-child { border-bottom: 0; }
.card-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card-row-text b { font-size: 15px; font-weight: 700; }
.card-row-text span { font-size: 12px; line-height: 1.35; color: var(--mute-2); }
.card-row-link { color: inherit; }
.card-row-link svg { color: var(--mute-3); }
.options { display: flex; gap: 6px; flex-wrap: wrap; }
.option { height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--mute); font-size: 13px; font-weight: 700; }
.option[aria-pressed="true"] { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.section { display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.section-head span { font-size: 12px; color: var(--mute-2); font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 18px; padding-top: 16px; }
@media (min-width: 1024px) {
  .two-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 24px; max-width: 1100px; }
  .two-cols > .stack { padding-top: 0; }
}

/* ---------- Канали ---------- */

.channel-tools { display: flex; flex-direction: column; gap: 12px; padding: 16px 0 4px; }
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--mute-2); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 15px; }
.search input::placeholder { color: var(--mute-3); }
.channels { list-style: none; margin: 0; padding: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ch-card { display: flex; align-items: center; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.ch-hero, .ch-progress { display: none; }
.ch-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 10px; }
.ch-logo { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: #f2ead8; }
.ch-logo.is-long { font-size: 11px; }
.ch-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ch-text b { font-size: 13px; font-weight: 800; }
.ch-line { display: flex; gap: 6px; align-items: baseline; min-width: 0; font-size: 13px; color: var(--ink-2); }
.ch-line > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-when { flex-shrink: 0; font-size: 12px; font-weight: 800; color: var(--amber); }
.ch-when.is-live { color: var(--red-tag); }
.ch-next { display: none; }
.star { width: 44px; height: 44px; flex-shrink: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; color: var(--mute-3); }
.star.is-on { color: var(--amber); }
.star.ch-hide { width: 40px; }
.ch-unhide { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; }
.ch-card.is-hidden .ch-logo { filter: grayscale(1); opacity: 0.55; }
.ch-card.is-hidden .ch-text b { color: var(--mute-2); }
@media (min-width: 1024px) {
  .channel-tools { flex-direction: row; align-items: center; padding: 0; }
  .channel-tools .search { width: 320px; height: 44px; }
  .channels-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
  .channels-head .page-header { flex: 1; }
  .channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding-top: 22px; }
  .ch-card { flex-direction: column; align-items: stretch; border-radius: 20px; }
  .ch-card:hover { border-color: var(--line-2); }
  .ch-hero { display: block; position: relative; height: 150px; background: #241c18; }
  .ch-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .ch-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(23, 19, 17, 0.92) 100%); }
  .ch-hero-badge { position: absolute; z-index: 1; left: 14px; top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(13, 11, 10, 0.7); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: #ffb4a6; }
  .ch-hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f0644a; }
  .ch-hero-text { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 3px; color: #f2ead8; }
  .ch-hero-text b { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ch-hero-text span { font-size: 12px; color: #cfc4b3; }
  .ch-hero.is-empty { display: flex; align-items: center; justify-content: center; color: var(--mute-2); font-size: 13px; }
  .ch-hero.is-empty::after { display: none; }
  .ch-progress { display: block; height: 3px; background: var(--line); }
  .ch-progress span { display: block; height: 3px; background: var(--red); }
  .ch-body { padding: 12px 8px 12px 14px; }
  .ch-logo { width: 38px; height: 38px; border-radius: 10px; font-size: 12px; }
  .ch-logo.is-long { font-size: 10px; }
  .ch-text b { font-size: 14px; }
  .ch-line { display: none; }
  .ch-next { display: block; font-size: 12px; color: var(--mute-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ch-next b { color: var(--amber); }
}

/* ---------- Вход ---------- */

.auth { position: relative; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(var(--safe-top) + 72px) 20px calc(30px + var(--safe-bottom)); max-width: 440px; margin: 0 auto; overflow: hidden; }
.auth-glow { position: absolute; left: -60px; right: -60px; top: -120px; height: 380px; background: radial-gradient(closest-side, var(--red-soft), transparent); pointer-events: none; }
.auth-brand { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.auth-by { display: inline-block; white-space: nowrap; font-family: var(--font-brand); font-size: 13px; font-weight: 500; color: var(--mute-3); }
.auth-by b { font-weight: 700; color: var(--mute); }
.auth-lead { margin: 6px 0 0; max-width: 290px; font-family: var(--font-brand); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; color: var(--ink-2); }
.auth-form { position: relative; margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.auth-foot { position: relative; margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.auth-fine { margin: 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--mute-3); }
@media (min-width: 1024px) {
  .auth { justify-content: center; padding-top: 40px; }
  .auth-foot { margin-top: 24px; }
}

/* ---------- Първо пускане ---------- */

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { height: 64px; border-radius: 16px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; text-align: left; border: 1px solid var(--line); background: var(--panel); font-size: 15px; font-weight: 800; }
.tile[aria-pressed="true"] { border-color: var(--red); background: var(--sel); }
.tile-check { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line-2); color: transparent; }
.tile[aria-pressed="true"] .tile-check { background: var(--red); border-color: var(--red); color: var(--on-red); }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Профил ---------- */

.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head .avatar { width: 60px; height: 60px; font-size: 22px; }
.profile-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.profile-name b { font-size: 18px; }
.profile-name span { font-size: 13px; color: var(--mute-2); overflow: hidden; text-overflow: ellipsis; }
.profile-stat { font-size: 12px; font-weight: 700; color: var(--mute); text-align: right; line-height: 1.35; }
.profile-stat b { color: var(--ink); }
.device-tag { margin-left: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; background: var(--amber-soft); color: var(--amber); }
.btn-small { height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--mute); font-size: 13px; font-weight: 700; }
.app-foot { padding: 16px 0 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.app-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-brand); font-size: 13px; color: var(--mute-3); }
.app-foot-row b { color: var(--ink); font-weight: 700; }
.tmdb-note { display: flex; align-items: center; gap: 10px; font-size: 11px; line-height: 1.4; color: var(--mute-3); }
.tmdb-badge { flex-shrink: 0; height: 22px; padding: 0 8px; border-radius: 5px; background: linear-gradient(90deg, #90cea1, #01b4e4); color: #0d253f; font-size: 11px; font-weight: 800; display: flex; align-items: center; }
.reminder-row { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 14px; border-bottom: 1px solid var(--line); }
.reminder-row:last-child { border-bottom: 0; }
.reminder-when { width: 80px; flex-shrink: 0; font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--amber); }
.reminder-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reminder-ch { font-size: 12px; color: var(--mute-2); white-space: nowrap; }

/* ---------- Дребни довършителни ---------- */
.card-row { flex-wrap: wrap; }
.card-row > .card-row-text { min-width: 180px; }
button.card-row { color: inherit; }
@media (min-width: 1024px) {
  .detail-page { max-width: 920px; }
  .detail-page .detail-hero { margin: 0; height: 380px; border-radius: 22px; }
  .detail-page .detail-back { top: 16px; }
  .detail-page .detail-body { padding-top: 20px; max-width: 680px; }
  .detail-page .detail-title { font-size: 36px; }
}

/* devhouse лого: оригиналните SVG за тъмен/светъл фон */
.dh-logo { display: inline-block; line-height: 0; }
.dh-logo img { height: 100%; width: auto; }
.dh-on-dark { display: var(--dh-dark); }
.dh-on-light { display: var(--dh-light); }

/* ---------- Стрийминг ---------- */
.stream-head { display: flex; flex-direction: column; gap: 14px; }
.svc-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc-toggle { position: relative; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-3); display: flex; align-items: center; justify-content: center; }
.svc-toggle .dh-logo { opacity: 0.3; }
.svc-toggle[aria-pressed="true"] { border-color: var(--line-2); background: var(--panel); }
.svc-toggle[aria-pressed="true"] .dh-logo { opacity: 1; }
.svc-toggle[aria-pressed="true"]::after { content: "✓"; position: absolute; right: -6px; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); color: var(--on-red); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.stream-filters { display: flex; flex-direction: column; }
.kind-tabs { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.kind-tabs :is(button, a) { height: 48px; border: 0; background: transparent; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--mute-3); display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: inset 0 -3px 0 transparent; }
.kind-tabs :is(button, a) small { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--mute-3); }
.kind-tabs :is(button, a)[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--red); }
.kind-tabs :is(button, a)[aria-selected="true"] small { color: var(--amber); }
.stream-hero { position: relative; margin-top: 16px; height: 220px; border-radius: 20px; overflow: hidden; background: #1a1512; color: #f2ead8; }
.stream-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.stream-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,11,10,0.95) 0%, rgba(13,11,10,0.4) 60%, rgba(13,11,10,0.1) 100%); }
.stream-hero-text { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.stream-hero-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 999px; background: #c8321f; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; }
.stream-hero h2 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.08; }
.stream-hero p { margin: 0; font-size: 12px; color: #cfc4b3; }
.stream-hero-actions { display: flex; gap: 8px; margin-top: 4px; }
.stream-hero-actions .btn { height: 42px; font-size: 13px; padding: 0 14px; }
.btn-ghost-dark { border: 1px solid rgba(242,234,216,0.35); color: #f2ead8; }
.stream-hero-actions .btn-ghost-dark { display: none; }
.rail-section { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }
.rail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.rail::-webkit-scrollbar { display: none; }
.rail .poster { width: 112px; flex-shrink: 0; }
.poster { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.poster-img { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--line); display: block; }
.poster-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-logos { position: absolute; left: 6px; top: 6px; display: flex; gap: 4px; }
.poster-logo { height: 20px; padding: 0 7px; border-radius: 6px; background: rgba(13,11,10,0.8); display: inline-flex; align-items: center; }
.poster-flag { position: absolute; left: 6px; bottom: 6px; height: 20px; padding: 0 7px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: 0.05em; }
.poster-flag.is-new { background: #c8321f; color: #f2ead8; }
.poster-flag.is-leaving { background: #e9a23b; color: #0d0b0a; }
.poster-flag.is-dub { background: rgba(13,11,10,0.8); color: #f2ead8; }
.poster-title { font-size: 13px; font-weight: 800; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster-sub { font-size: 11px; color: var(--mute-2); margin-top: -3px; }
.poster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
.catalog-title { align-items: center; flex-wrap: wrap; gap: 8px; }
.catalog-title .options { letter-spacing: 0; text-transform: none; }
.catalog-title .option { height: 28px; font-size: 12px; }
.pill-ink { background: #f2ead8; color: #0d0b0a; }
.pill-logo { height: 22px; padding: 0 9px; border-radius: 6px; background: rgba(13,11,10,0.72); display: inline-flex; align-items: center; }
.watch-row { flex-wrap: wrap; }
.watch-row .airing-main { gap: 8px; }
.watch-btn { height: 40px; padding: 0 14px; font-size: 14px; flex-shrink: 0; }
.watch-leaving { flex-basis: 100%; font-size: 13px; font-weight: 700; color: var(--amber); }
@media (min-width: 1024px) {
  .stream-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .stream-head .page-header { flex: 1; }
  .svc-toggles { display: flex; }
  .svc-toggle { height: 44px; padding: 0 18px; background: var(--panel); }
  .stream-filters { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); margin-top: 8px; }
  .kind-tabs { margin: 0; display: flex; gap: 28px; border: 0; }
  .kind-tabs :is(button, a) { height: 52px; padding: 0; font-size: 20px; }
  .kind-tabs :is(button, a) small { font-size: 13px; }
  .stream-filters .chips { padding: 0 0 10px; justify-content: flex-end; flex-wrap: wrap; max-width: 62%; }
  .stream-filters + .dash { display: none; }
  .stream-hero { margin-top: 20px; height: 280px; border-radius: 22px; }
  .stream-hero::after { background: linear-gradient(90deg, rgba(13,11,10,0.92) 0%, rgba(13,11,10,0.65) 40%, rgba(13,11,10,0) 75%); }
  .stream-hero-text { left: 32px; right: auto; top: 0; bottom: 0; width: 460px; justify-content: center; gap: 12px; }
  .stream-hero h2 { font-size: 34px; }
  .stream-hero p { font-size: 13px; }
  .stream-hero-actions .btn { height: 44px; font-size: 14px; padding: 0 18px; }
  .stream-hero-actions .btn-ghost-dark { display: inline-flex; }
  .rail { margin: 0; padding: 0; gap: 16px; }
  .rail .poster { width: 150px; }
  .poster-title { font-size: 14px; }
  .poster-sub { font-size: 12px; }
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
}

/* ---------- Общият екран за филм / сериал ---------- */
/* Всички отметки (вид, жанр, канал, услуга) — една височина, един размер. */
.tag-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill { height: 24px; padding: 0 9px; border-radius: 7px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.tag-pill.is-kind { background: #f2ead8; color: #0d0b0a; }
.tag-pill.is-genre { background: rgba(13, 11, 10, 0.62); color: #f2ead8; box-shadow: inset 0 0 0 1px rgba(242, 234, 216, 0.22); }
.tag-pill.is-genre.is-mine { background: #c8321f; box-shadow: none; }
.tag-pill.is-platform { background: rgba(13, 11, 10, 0.62); color: #f2ead8; box-shadow: inset 0 0 0 1px rgba(242, 234, 216, 0.22); text-transform: none; letter-spacing: 0; font-size: 11px; }
.tag-pill.is-platform img { display: block; }
.detail-hero .detail-title { color: #f2ead8; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.detail-hero .detail-sub { color: #e5dccb; }
.detail-hero-fade { background: linear-gradient(180deg, rgba(13,11,10,0.15) 0%, rgba(13,11,10,0.35) 45%, rgba(13,11,10,0.88) 100%) !important; }
.detail-panel .detail-hero { height: 270px; }

/* Плочки: оценка, година, времетраене, сезони */
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.fact { margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact dt { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact dd { margin: 0; font-family: var(--font-display); font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact-rating { grid-column: span 2; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; background: var(--amber-soft); border-color: transparent; }
.fact-rating dt { color: var(--amber); white-space: normal; }
.fact-rating dd { font-size: 26px; font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: 2px; }
.fact-rating dd small { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--mute-2); }
.fact-star { color: var(--amber); font-size: 20px; margin-right: 4px; }

/* Екип */
.credits { display: flex; flex-direction: column; gap: 14px; }
.credit-row { display: flex; flex-direction: column; gap: 8px; }
.credit-label { font-size: 12px; font-weight: 700; color: var(--mute-2); }
.credit-people { display: flex; flex-wrap: wrap; gap: 6px; }
.person { height: 34px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.person-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--panel-2); color: var(--amber); font-family: var(--font-display); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.btn.is-on { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.detail-actions .btn { flex: 1 1 160px; }
.poster.is-selected .poster-img { box-shadow: 0 0 0 3px var(--red); }
@media (min-width: 1024px) {
  .program-list .stream-head { padding-top: 0; }
}

/* корекции: оценката на цял ред, етикетите се пренасят, жанровете — на свой ред */
.fact-rating { grid-column: 1 / -1; }
.fact dt { white-space: normal; line-height: 1.25; }
.fact-rating dt { display: flex; flex-direction: column; gap: 2px; }
.fact-rating dt small { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--mute-2); }
@media (min-width: 1024px) {
  .stream-filters { flex-direction: column; align-items: stretch; gap: 0; border-bottom: 0; }
  .kind-tabs { border-bottom: 1px solid var(--line); }
  .stream-filters .chips { max-width: none; justify-content: flex-start; padding: 14px 0 0; }
}

/* ---------- „Плакат“: общият екран за филм / сериал ---------- */
.poster-hero { position: relative; overflow: hidden; background: #1a1512; color: #f2ead8; }
.detail-page .poster-hero { height: calc(460px + var(--safe-top)); margin: 0 -20px; }
.detail-panel .poster-hero { height: 420px; }
.poster-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.poster-hero-empty { display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; font-family: var(--font-display); font-size: 200px; font-weight: 700; color: rgba(242,234,216,0.07); }
.poster-hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,11,10,0.35) 0%, rgba(13,11,10,0) 22%, rgba(13,11,10,0) 38%, rgba(13,11,10,0.95) 100%); }
.poster-hero-top { position: absolute; left: 16px; right: 16px; top: calc(var(--safe-top) + 14px); display: flex; align-items: center; gap: 10px; }
.detail-panel .poster-hero-top { top: 18px; left: 18px; right: 18px; }
.hero-btn { width: 42px; height: 42px; border-radius: 14px; background: rgba(13,11,10,0.55); backdrop-filter: blur(6px); color: #f2ead8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-platform { height: 28px; padding: 0 10px; border-radius: 8px; background: rgba(13,11,10,0.62); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(242,234,216,0.22); display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; color: #f2ead8; white-space: nowrap; }
.hero-platform img { display: block; }
.hero-rating { margin-left: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(13,11,10,0.7); backdrop-filter: blur(6px); border: 2px solid #e9a23b; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; }
.hero-rating b { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.hero-rating small { margin-top: 3px; font-size: 8px; font-weight: 800; letter-spacing: 0.04em; color: #e9a23b; }
.poster-hero-bottom { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: flex-end; gap: 14px; }
.detail-panel .poster-hero-bottom { left: 24px; right: 24px; bottom: 22px; }
.poster-hero-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.poster-hero-title { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.04; text-shadow: 0 1px 14px rgba(0,0,0,0.35); }
.poster-hero-meta { margin: 0; font-size: 13px; font-weight: 600; color: #e5dccb; }
.hero-play { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; background: #c8321f; color: #f2ead8; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(200,50,31,0.45); }
.hero-play svg { margin-left: 3px; }
.tag-pill.is-genre { background: rgba(13,11,10,0.6); }

/* Актьорски състав — като в IMDb */
.credits-head { margin: 0 0 2px; display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.credits-bar { width: 4px; height: 22px; border-radius: 2px; background: #e9a23b; }
.credits-count { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--mute-2); }
.cast-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.cast-card { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cast-photo { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px; color: var(--amber); }
.cast-photo img { width: 100%; height: 100%; object-fit: cover; }
.cast-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cast-text b { font-size: 14px; font-weight: 800; line-height: 1.2; }
.cast-text span { font-size: 12px; color: var(--mute-2); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cast-card:hover b { color: var(--amber); }
.credits-more { align-self: flex-start; margin-top: 2px; }
.crew-rows { margin: 6px 0 0; border-top: 1px solid var(--line); }
.crew-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.crew-row dt { width: 84px; flex-shrink: 0; font-weight: 800; }
.crew-row dd { margin: 0; min-width: 0; }
.crew-row a { color: #2f6fa3; font-weight: 600; }
.crew-row a:hover { text-decoration: underline; }
.crew-dot, .crew-role { color: var(--mute-2); }
:root:not([data-theme="light"]) .crew-row a { color: #6fb3e8; }
@media (min-width: 1024px) { :root[data-theme="auto"] .crew-row a { color: #2f6fa3; } }
@media (min-width: 1024px) {
  .detail-page .poster-hero { margin: 0; height: 520px; border-radius: 22px; }
  .detail-page .poster-hero-title { font-size: 40px; }
}

/* корекции: бутонът за трейлъра, имената без линкове */
.hero-play svg { margin-left: 0; }
.crew-name { color: var(--ink); font-weight: 700; }
.cast-card:hover b { color: inherit; }
.page-poster { display: none; }

/* Цялата страница на компютър — като в IMDb:
   постер | корица
   къде се гледа | описание, актьорски състав, екип */
@media (min-width: 1024px) {
  .detail-page { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 320px minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .detail-page .page-poster { display: block; width: 320px; height: 480px; object-fit: cover; border-radius: 18px; box-shadow: 0 12px 34px rgba(26, 21, 18, 0.22); }
  .detail-page .poster-hero { margin: 0; height: 480px; border-radius: 18px; }
  .detail-page:not(:has(.page-poster)) .poster-hero { grid-column: 1 / -1; }
  .detail-page .detail-body { grid-column: 1 / -1; display: grid; grid-template-columns: 320px minmax(0, 1fr); column-gap: 28px; row-gap: 22px; padding-top: 26px; align-items: start;
    grid-template-areas: "where desc" "where credits" "where footer"; }
  .detail-page .area-where { grid-area: where; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
  .detail-page .area-where .detail-actions { flex-direction: column; }
  .detail-page .area-where .detail-actions .btn { flex: none; width: 100%; }
  .detail-page .area-desc { grid-area: desc; font-size: 16px; line-height: 1.65; -webkit-line-clamp: unset; display: block; max-width: 760px; }
  .detail-page .area-credits { grid-area: credits; }
  .detail-page .area-footer { grid-area: footer; }
  .detail-page .cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
  .detail-page .cast-photo { width: 72px; height: 72px; }
  .detail-page .credits-head { font-size: 22px; }
  .detail-page .crew-row { font-size: 15px; }
  .detail-page .crew-row dt { width: 110px; }
  .detail-page .poster-hero-title { font-size: 44px; }
}
@media (min-width: 1024px) {
  .detail-page .detail-body { max-width: none; }
}

/* ---------- Цялата страница на компютър: заглавен ред като в IMDb ---------- */
.page-head { display: none; }
@media (min-width: 1024px) {
  .detail-page { max-width: none; margin: 0; grid-template-columns: 340px minmax(0, 1fr); column-gap: 28px; }
  .detail-page .page-head { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 14px; padding-bottom: 22px; }
  .page-head-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .page-head-line { display: flex; align-items: center; gap: 12px; }
  .page-back { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: flex; align-items: center; justify-content: center; color: var(--ink); }
  .page-back:hover { border-color: var(--line-2); }
  .page-platform { height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); display: inline-flex; align-items: center; font-size: 13px; font-weight: 800; }
  .page-title { margin: 4px 0 0; font-family: var(--font-display); font-size: 46px; font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
  .page-meta { margin: 0; font-size: 15px; font-weight: 600; color: var(--mute-2); }
  .page-head-side { display: flex; align-items: flex-start; gap: 22px; }
  .imdb-label { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-2); }
  .imdb-rating, .age-rating { display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .imdb-value { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--mute-2); }
  .imdb-value b { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); }
  .imdb-star { font-size: 28px; color: #f5c518; line-height: 1; }
  .imdb-votes { font-size: 12px; color: var(--mute-2); }
  .age-badge { min-width: 46px; height: 38px; padding: 0 10px; border-radius: 9px; border: 2px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 16px; font-weight: 700; }
  .page-genres { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
  .genre-chip { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink-2); }
  .genre-chip.is-mine { border-color: var(--red); background: var(--red-soft); color: var(--red-tag); }
  .detail-page .page-poster { width: 340px; height: 510px; }
  .detail-page .poster-hero { height: 510px; }
  /* корицата тук носи само бутона за трейлъра */
  .detail-page .poster-hero-top, .detail-page .poster-hero-text { display: none; }
  .detail-page .poster-hero-fade { background: linear-gradient(180deg, rgba(13,11,10,0) 60%, rgba(13,11,10,0.35) 100%) !important; }
  .detail-page .poster-hero-bottom { left: auto; right: 22px; bottom: 22px; }
  .detail-page .hero-play { width: 72px; height: 72px; }
  .detail-page .detail-body { grid-template-columns: 340px minmax(0, 1fr); }
}
/* заглавен ред: [назад] [заглавие · канал / мета / жанрове] [оценка · възраст] */
@media (min-width: 1024px) {
  .detail-page .page-head { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; column-gap: 18px; row-gap: 0; }
  .page-back { margin-top: 6px; }
  .page-title-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .page-title { margin: 0; }
  .page-head-main { gap: 10px; }
  .page-genres { grid-column: auto; margin-top: 2px; }
  .page-head-side { padding-top: 4px; }
}

/* ---------- Цялата страница на компютър: хедър „Билет“ ---------- */
@media (min-width: 1024px) {
  .detail-page .page-head.ticket { display: flex; grid-column: 1 / -1; padding: 0; margin-bottom: 24px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; column-gap: 0; row-gap: 0; }
  .ticket-main { flex: 1; min-width: 0; padding: 16px 24px 18px; display: flex; flex-direction: column; gap: 6px; }
  .ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 28px; }
  .ticket-back { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--amber); text-transform: lowercase; }
  .ticket-back:hover { text-decoration: underline; }
  .ticket-platforms { display: inline-flex; align-items: center; gap: 12px; }
  .ticket-watch { font-size: 11px; font-weight: 700; color: var(--mute-2); text-transform: lowercase; }
  .ticket-platform { display: inline-flex; align-items: center; gap: 12px; }
  .ticket-sep { width: 1px; height: 18px; background: var(--line-2); }
  .ticket-channel { height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--ink-2); }
  .ticket-more { font-size: 12px; font-weight: 800; color: var(--mute-2); }
  .ticket-title { margin: 0; font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
  .ticket-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 2px; font-size: 14px; color: var(--mute-2); }
  .ticket-genres { display: inline-flex; gap: 6px; margin-left: 6px; }
  .ticket-genre { height: 24px; padding: 0 9px; border-radius: 7px; background: var(--panel-2); color: var(--ink-2); display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
  .ticket-genre.is-mine { background: var(--red); color: var(--on-red); }
  .ticket-stub { width: 230px; flex-shrink: 0; border-left: 2px dashed var(--line-2); margin: 14px 0; padding: 0 18px; display: flex; align-items: center; justify-content: space-around; }
  .stub-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
  .stub-label { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-2); }
  .stub-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
  .stub-value.is-age { color: var(--red); }
  .stub-sub { font-size: 11px; color: var(--mute-2); }
}
/* перфорацията — по цялата височина на билета, с полукръгли изрези горе и долу */
@media (min-width: 1024px) {
  .detail-page .page-head.ticket { align-items: stretch; }
  .ticket-stub { position: relative; margin: 0; padding: 14px 18px; border-left: 2px dashed var(--line-2); align-self: stretch; }
  .ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
  .ticket-stub::before { top: -12px; }
  .ticket-stub::after { bottom: -12px; }
}

/* ---------- Колекции: ТВ (кехлибарено) и стрийминг (синьо) ---------- */
:root { --blue: #2fb7d6; --blue-soft: rgba(47, 183, 214, 0.14); }
:root[data-theme="light"] { --blue: #1585a3; --blue-soft: rgba(21, 133, 163, 0.12); }
@media (min-width: 1024px) { :root[data-theme="auto"] { --blue: #1585a3; --blue-soft: rgba(21, 133, 163, 0.12); } }
.cf-tv { --accent: var(--amber); --accent-soft: var(--amber-soft); }
.cf-st { --accent: var(--blue); --accent-soft: var(--blue-soft); }
.switch.cf-tv[aria-checked="true"], .switch.cf-st[aria-checked="true"] { background: var(--accent); }
.chip.cf-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.option.cf-st[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.cf-primary { background: var(--accent); color: #0d0b0a; border: 0; }
.cf-section, .cf-section.section { display: flex; flex-direction: column; gap: 10px; }
.cf-hint { margin: -4px 0 0; font-size: 12px; line-height: 1.45; color: var(--mute-3); }
.cf-small { font-size: 11px !important; color: var(--mute-3) !important; }
.cf-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cf-days button { height: 50px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel); color: var(--mute); font-size: 14px; font-weight: 800; }
.cf-days button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #0d0b0a; }
.cf-range { display: flex; align-items: center; gap: 10px; }
.cf-range-dash { color: var(--mute-3); }
.cf-time { flex: 1; height: 56px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: center; padding: 0 14px; }
.cf-time span { font-size: 11px; color: var(--mute-2); }
.cf-time select { border: 0; background: transparent; outline: none; font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--ink); padding: 0; appearance: none; cursor: pointer; }
.cf-clock { height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--amber); background: var(--panel-2); display: inline-flex; align-items: center; gap: 8px; color: var(--amber); }
.cf-clock select { border: 0; background: transparent; outline: none; font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--ink); appearance: none; cursor: pointer; }
.cf-minutes { flex-wrap: wrap; }
.cf-stepper { display: flex; align-items: center; gap: 8px; }
.cf-stepper button { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-2); background: transparent; font-size: 20px; font-weight: 700; }
.cf-stepper span { min-width: 64px; text-align: center; font-size: 12px; color: var(--mute-2); }
.cf-stepper b { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--ink); }
.cf-slider { flex-basis: 100%; accent-color: var(--amber); }
.cf-name { display: flex; align-items: center; gap: 8px; }
.cf-name .input { border-color: var(--accent); }
.cf-name-emoji { font-size: 26px; }

/* съветникът */
.wizard { min-height: 100dvh; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; padding: calc(var(--safe-top) + 12px) 20px 0; }
.wizard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wizard-badge { height: 26px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; }
.wizard-progress { display: flex; gap: 5px; margin-top: 14px; }
.wizard-progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); }
.wizard-progress span.is-on { background: var(--accent); }
.wizard-body { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 20px 0 24px; }
.wizard-head h1 { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.wizard-head p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--mute); }
.wizard-choices { display: flex; flex-direction: column; gap: 12px; }
.wizard-choice { padding: 18px 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--panel); display: flex; align-items: center; gap: 14px; text-align: left; }
.wizard-choice[aria-pressed="true"] { border-color: var(--accent); }
.wizard-choice-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--panel-2); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.wizard-choice-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.wizard-choice-text b { font-size: 17px; }
.wizard-choice-text span { font-size: 12px; line-height: 1.4; color: var(--mute-2); }
.wizard-check { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; }
.wizard-choice[aria-pressed="true"] .wizard-check { background: var(--accent); border-color: var(--accent); color: #0d0b0a; }
.wizard-foot { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 14px 0 calc(24px + var(--safe-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.wizard-foot .btn-ghost { width: 120px; flex-shrink: 0; }
.wizard-foot .btn-block { height: 54px; }
.wizard-tv { --accent: var(--amber); --accent-soft: var(--amber-soft); }
.wizard-st { --accent: var(--blue); --accent-soft: var(--blue-soft); }

/* „Известия“ — карти на колекциите */
.coll-layout { display: flex; flex-direction: column; gap: 22px; padding-top: 16px; }
.coll-layout > .stack { padding-top: 0; }
.coll-head { display: flex; align-items: center; justify-content: space-between; }
.coll-title { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.coll-new { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--accent); color: var(--accent); display: inline-flex; align-items: center; font-size: 13px; font-weight: 800; }
.coll-card { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.coll-card.is-off { opacity: 0.6; }
.coll-main { display: flex; align-items: center; gap: 12px; color: inherit; }
.coll-main svg { color: var(--mute-3); }
.coll-emoji { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.coll-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.coll-text b { font-size: 15px; }
.coll-status { font-size: 12px; font-weight: 700; color: var(--accent); }
.coll-lines { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--mute); }
.coll-actions { display: flex; align-items: center; justify-content: space-between; }
.coll-back { display: inline-flex; margin-top: 18px; }
.coll-edit-foot { display: flex; justify-content: space-between; gap: 10px; padding: 24px 0; }
.coll-edit-foot .cf-primary { min-width: 160px; }
@media (min-width: 1024px) {
  .coll-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 24px; max-width: 1180px; }
  .coll-back { margin-top: 0; margin-bottom: 8px; }
  .wizard { padding-top: 40px; }
}

/* „Какво ще гледаш тази вечер?“ */
.today { max-width: 640px; display: flex; flex-direction: column; gap: 6px; }
.today-eyebrow { margin-top: 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.today-title { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.15; }
.today-list { list-style: none; margin: 14px 0 0; padding: 0; }
.today-list li + li { border-top: 1px solid var(--line); }
.today-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: transparent; text-align: left; }
.today-poster { width: 44px; height: 66px; flex-shrink: 0; border-radius: 8px; object-fit: cover; background: var(--line); }
.today-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.today-text b { font-size: 15px; }
.today-when { font-family: var(--font-display); font-size: 14px; color: var(--amber); }
.today-when small { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--mute-2); }
.today-meta { font-size: 12px; color: var(--mute-2); }
.today-check { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; }
.today-row[aria-pressed="true"] .today-check { background: var(--red); border-color: var(--red); color: var(--on-red); }
.today-foot { position: sticky; bottom: calc(80px + var(--safe-bottom)); padding-top: 14px; }
@media (min-width: 1024px) { .today-foot { bottom: 0; padding-bottom: 20px; } }

/* ---------- Колекции: спокойно — без отделни цветове за ТВ и стрийминг ---------- */
.cf-tv, .cf-st, .wizard-tv, .wizard-st { --accent: var(--red); --accent-soft: var(--red-soft); }
.chip.cf-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cf-days button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.option.cf-st[aria-pressed="true"] { border-color: var(--ink); background: transparent; color: var(--ink); }
.cf-primary { background: var(--red); color: var(--on-red); }
.cf-clock { border: 1px solid var(--line-2); color: var(--mute-2); }
.cf-slider { accent-color: var(--red); }
.wizard-badge { background: transparent; border: 1px solid var(--line-2); color: var(--mute-2); }
.wizard-choice[aria-pressed="true"] { border-color: var(--ink); }
.wizard-choice-icon { color: var(--ink-2); }
.wizard-choice[aria-pressed="true"] .wizard-check { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.wizard-progress span.is-on { background: var(--ink); }
.coll-title { color: var(--mute-2); }
.coll-new { border-color: var(--line-2); color: var(--ink); }
.coll-new:hover { border-color: var(--ink); }
.coll-status { color: var(--mute-2); font-weight: 600; }
.coll-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; background: var(--panel-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.today-eyebrow { color: var(--mute-2); }

/* ---------- Карта на колекция (вариант 1) ---------- */
.coll-layout { display: flex; flex-direction: column; gap: 22px; padding-top: 16px; }
.coll-layout > .section { gap: 12px; }
.coll-extra { display: flex; flex-direction: column; gap: 22px; }
.cc { border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.cc-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cc-head { display: flex; align-items: center; gap: 12px; }
.cc-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; background: var(--panel-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.cc-name { flex: 1; min-width: 0; font-size: 17px; font-weight: 800; color: var(--ink); }
.cc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-tags .ticket-genre { height: 24px; padding: 0 9px; border-radius: 7px; background: var(--panel-2); color: var(--ink-2); display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.cc-when { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cc-days { display: flex; gap: 4px; }
.cc-days span { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--mute-3); }
.cc-days span.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cc-time { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--panel-2); }
.cc-time-val { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.cc-time-val sup { font-family: var(--font-body); font-size: 9px; font-weight: 800; color: var(--mute-2); margin-left: 1px; }
.cc-time-line { position: relative; width: 54px; height: 2px; background: var(--line-2); border-radius: 1px; display: flex; justify-content: center; }
.cc-time-line::before, .cc-time-line::after { content: ""; position: absolute; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); }
.cc-time-line::before { left: -1px; }
.cc-time-line::after { right: -1px; }
.cc-time-line span { position: absolute; top: -15px; font-size: 9px; font-weight: 800; color: var(--mute-2); white-space: nowrap; }
.cc-svcs { display: flex; align-items: center; gap: 14px; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chips span { height: 26px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.cc-notes { font-size: 12px; color: var(--mute-2); }
.cc-posters { display: flex; gap: 8px; }
.cc-posters img, .cc-posters > span { width: 54px; height: 80px; flex-shrink: 0; border-radius: 8px; object-fit: cover; background: var(--panel-2); }
.cc-more { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 14px; color: var(--ink-2); }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 800; color: var(--ink); }
a.cc-foot:hover { background: var(--panel-2); }
.cc-foot-n { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--mute-2); }
.cc-foot.is-empty { font-weight: 600; color: var(--mute-3); }
.cc-off { flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; background: transparent; border-style: dashed; border-color: var(--line-2); }
.cc-off .cc-icon { background: transparent; color: var(--mute-3); }
.cc-off-text { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--mute-2); font-size: 12px; }
.cc-off-text b { font-size: 15px; color: var(--ink-2); }
.coll-new { height: 34px; padding: 0 14px; }
@media (max-width: 420px) { .cc-days span { width: 28px; height: 28px; } .cc-time-line { width: 34px; } }
@media (min-width: 1024px) {
  .coll-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; max-width: 1280px; }
  .coll-extra { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
}

/* „Тази вечер“ — постери в кутийки */
.today { max-width: none; }
.today-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
.today-box { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; display: flex; flex-direction: column; gap: 5px; color: inherit; }
.today-box-img { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--panel-2); transition: box-shadow 0.15s; }
.today-box-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.today-box-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px; text-align: center; font-size: 12px; font-weight: 700; color: var(--mute-2); }
.today-box[aria-pressed="true"] .today-box-img { box-shadow: 0 0 0 3px var(--red); }
.today-box-time { position: absolute; left: 7px; top: 7px; height: 22px; padding: 0 7px; border-radius: 6px; background: rgba(13, 11, 10, 0.82); color: #f2ead8; display: inline-flex; align-items: center; font-family: var(--font-display); font-size: 11px; }
.today-box-check { position: absolute; right: 7px; top: 7px; width: 26px; height: 26px; border-radius: 8px; background: rgba(13, 11, 10, 0.5); border: 1.5px solid rgba(255, 255, 255, 0.85); color: #fff; display: flex; align-items: center; justify-content: center; }
.today-box[aria-pressed="true"] .today-box-check { background: var(--red); border-color: var(--red); }
.today-box b { font-size: 13px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.today-box-ch { margin-top: -2px; font-size: 11px; color: var(--mute-2); }
@media (min-width: 640px) { .today-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .today-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 16px; }
  .today-box b { font-size: 14px; }
  .today-foot { position: sticky; bottom: 16px; max-width: 420px; margin-left: auto; }
}
.cc-posters img, .cc-posters > span { flex: 1 1 0; min-width: 0; max-width: 54px; width: auto; height: auto; aspect-ratio: 2 / 3; }
@media (min-width: 1024px) {
  .today-foot { position: sticky; bottom: 0; max-width: none; margin: 8px 0 0; padding: 28px 0 20px; display: flex; justify-content: flex-end; background: linear-gradient(to bottom, transparent, var(--bg) 40%); }
  .today-foot .btn-block { width: auto; min-width: 340px; }
}
/* дните под името — заедно колкото иконата (40px) */
.cc-head { align-items: center; }
.cc-title { flex: 1; min-width: 0; height: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.cc-title .cc-name { flex: none; font-size: 16px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-title .cc-days { gap: 3px; }
.cc-title .cc-days span { width: 22px; height: 17px; border-radius: 5px; font-size: 9px; letter-spacing: 0.02em; }
.cc-when { justify-content: flex-start; gap: 8px; }
.cc-pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--panel-2); color: var(--mute-2); }
.cc-pill svg { flex-shrink: 0; color: var(--ink-2); }
.cc-pill small { margin-left: -3px; font-size: 11px; font-weight: 700; color: var(--mute-2); }
.cc-pill-text { font-size: 12px; font-weight: 700; color: var(--ink-2); }
@media (max-width: 420px) { .cc-title .cc-days span { width: 20px; height: 16px; } }
.cc-title.is-single { justify-content: center; }
@media (max-width: 420px) { .cc-hide-sm { display: none; } .cc-when { gap: 6px; } .cc-pill, .cc-time { padding: 0 9px; } .cc-time-line { width: 30px; } }
/* часовете в долния ред на картата — по-компактни */
.cc-foot { padding: 10px 16px; flex-wrap: wrap; row-gap: 8px; }
.cc-when-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cc-when-foot .cc-time, .cc-when-foot .cc-pill { height: 26px; padding: 0 9px; gap: 6px; border-radius: 7px; }
.cc-when-foot .cc-time-val { font-size: 13px; }
.cc-when-foot .cc-time-line { width: 36px; }
.cc-when-foot .cc-time-line span { top: -12px; font-size: 8px; }
.cc-when-foot svg { width: 13px; height: 13px; }
.cc-when-foot .cc-pill small { font-size: 10px; }
.cc-foot-n.is-empty { color: var(--mute-3); }
.cc-foot-n { margin-left: auto; font-size: 13px; }
@media (max-width: 420px) { .cc-when-foot .cc-time-line { width: 24px; } .cc-when-foot .cc-time-line span { display: none; } }
@media (max-width: 420px) {
  .cc-foot { padding: 10px 12px; column-gap: 6px; }
  .cc-when-foot { gap: 4px; flex-wrap: nowrap; }
  .cc-when-foot .cc-time, .cc-when-foot .cc-pill { padding: 0 7px; gap: 4px; }
  .cc-when-foot .cc-time-val { font-size: 12px; }
  .cc-when-foot .cc-time-line { width: 14px; }
  .cc-when-foot .cc-time-val sup { display: none; }
  .cc-foot-n { font-size: 12px; gap: 4px; }
}
@media (max-width: 420px) {
  .cc-when-foot .cc-time-line { display: none; }
  .cc-when-foot .cc-time-val:first-child::after { content: "–"; margin: 0 2px; color: var(--mute-2); }
}

/* ---------- Карта на колекция — компактна (компютър) ---------- */
.cc { border-radius: 16px; }
.cc-body { padding: 14px 16px 12px; gap: 10px; }
.cc-head { gap: 11px; }
.cc-icon { width: 36px; height: 36px; border-radius: 10px; }
.cc-title { height: 36px; justify-content: space-between; }
.cc-title .cc-name { font-size: 15px; line-height: 18px; font-weight: 800; letter-spacing: -0.01em; }
.cc-title .cc-days span { width: 20px; height: 15px; border-radius: 4px; font-size: 8.5px; font-weight: 800; }
.cc-sub { height: 15px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.cc-sub img { display: block; flex-shrink: 0; }
.cc-sub-text { font-size: 11px; font-weight: 700; color: var(--mute-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-head .switch { transform: scale(0.85); transform-origin: right center; }
.cc-tags { gap: 5px; }
.cc-tags .ticket-genre { height: 20px; padding: 0 7px; border-radius: 6px; font-size: 9.5px; letter-spacing: 0.08em; }
.cc-posters { gap: 6px; }
.cc-posters img, .cc-posters > span { max-width: 46px; border-radius: 7px; }
.cc-more { font-size: 12px; }
.cc-foot { padding: 9px 16px; gap: 10px; flex-wrap: nowrap; }
.cc-when-foot { display: flex; align-items: center; gap: 5px; min-width: 0; flex-wrap: wrap; }
.cc-when-foot .cc-time, .cc-when-foot .cc-pill { height: 24px; padding: 0 8px; gap: 5px; border-radius: 6px; }
.cc-when-foot .cc-time-val { font-size: 12px; font-weight: 500; }
.cc-when-foot .cc-time-val sup { font-size: 8px; }
.cc-when-foot .cc-time-line { width: 30px; height: 1.5px; }
.cc-when-foot .cc-time-line::before, .cc-when-foot .cc-time-line::after { width: 5px; height: 5px; top: -2px; }
.cc-when-foot .cc-time-line span { top: -11px; font-size: 7.5px; }
.cc-when-foot svg { width: 12px; height: 12px; }
.cc-when-foot .cc-pill small { font-size: 10px; font-weight: 700; }
.cc-when-foot .cc-pill-text { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.cc-foot-n { flex-shrink: 0; font-size: 12px; font-weight: 700; gap: 6px; }
.cc-foot-n svg { width: 14px; height: 14px; }
.cc-off { padding: 10px 16px; }
.cc-off .cc-icon { width: 36px; height: 36px; }
.cc-off-text b { font-size: 14px; }
.coll-layout > .section { gap: 10px; }
/* долният ред — една група с разделители */
.cc-seg { display: inline-flex; align-items: center; min-width: 0; height: 26px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.cc-seg-item { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 9px; font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-seg-item + .cc-seg-item { border-left: 1px solid var(--line); }
.cc-seg-item svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--mute-3); }
.cc-seg-item sup { font-size: 8px; color: var(--mute-2); margin-left: 1px; }
/* стрийминг: логата под превключвателя */
.cc-side { height: 36px; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; flex-shrink: 0; }
.cc-side .switch { transform: scale(0.75); transform-origin: right top; margin-bottom: -6px; }
.cc-logos { display: flex; align-items: center; gap: 8px; height: 11px; }

.cc-head > .switch { transform: scale(0.75); }
.cc-tags { align-items: flex-end; }
.cc-tags .cc-logos { margin-left: auto; height: auto; align-self: flex-end; padding-bottom: 4px; gap: 10px; align-items: flex-end; }
.coll-title { gap: 0; }
.cc-tags { align-items: center; }
.cc-tags .cc-logos { height: 20px; padding: 0 0 5px; align-self: center; display: flex; align-items: flex-end; box-sizing: border-box; }
.cc-tags .cc-logos .dh-logo { display: flex; align-items: flex-end; }
.cc-tags { align-items: flex-end; }
.cc-tags .cc-logos { height: auto; align-self: flex-end; padding: 0 0 4px; gap: 14px; }

/* ---------- Twig версията: връзки и форми вместо бутони ---------- */
.segmented a { height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--mute); font-size: 13px; font-weight: 700; padding: 0 12px; text-decoration: none; }
.segmented a[aria-selected="true"], .segmented a[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
a.day, a.chip { text-decoration: none; }
.bell-form { display: contents; }
.detail-actions form { display: contents; }
.airing form { margin-left: auto; }
a.svc-toggle, .kind-tabs a, a.option { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.kind-tabs a[aria-selected="true"] { }

/* Отметки като чипове/бутони: <label class="chip"><input type="checkbox">…</label> */
.chip > input, .option > input, .cf-days label > input, .svc-toggle > input, .wizard-choice > input, .today-box > input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
label.chip, label.option, label.svc-toggle, label.wizard-choice, label.today-box, .cf-days label { cursor: pointer; position: relative; }
label.chip, label.option { display: inline-flex; align-items: center; }
.chip:has(> input:checked) { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.option:has(> input:checked) { border-color: var(--ink); background: transparent; color: var(--ink); }
.cf-days label { height: 50px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel); color: var(--mute); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cf-days label:has(> input:checked) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.svc-toggle:has(> input:checked) { border-color: var(--line-2); background: var(--panel); }
.svc-toggle:has(> input:checked) .dh-logo { opacity: 1; }
.svc-toggle:has(> input:checked)::after { content: "✓"; position: absolute; right: -6px; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); color: var(--on-red); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.wizard-choice:has(> input:checked) { border-color: var(--ink); }
.wizard-choice:has(> input:checked) .wizard-check { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.wizard-choice .wizard-check svg { display: none; }
.wizard-choice:has(> input:checked) .wizard-check svg { display: block; }
.today-box:has(> input:checked) .today-box-img { box-shadow: 0 0 0 3px var(--red); }
.today-box:has(> input:checked) .today-box-check { background: var(--red); border-color: var(--red); }
.today-box .today-box-check svg { display: none; }
.today-box:has(> input:checked) .today-box-check svg { display: block; }
input.switch { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; }
input.switch:checked { background: var(--red); }
input.switch:checked::after { transform: translateX(20px); }
input.switch:disabled { opacity: 0.5; }
.switch-form { display: contents; }
[data-step][hidden] { display: none !important; }
.profile-more > summary { list-style: none; cursor: pointer; }
.profile-more > summary::-webkit-details-marker { display: none; }


[hidden] { display: none !important; }

/* „Кога дават“ — билетчета в лента */
.tix { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tix::-webkit-scrollbar { display: none; }
.tix-card { flex: 0 0 112px; scroll-snap-align: start; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.tix-card.is-on { background: var(--red); border-color: var(--red); color: var(--on-red); }
.tix-day { font-size: 11px; font-weight: 700; color: var(--mute-2); }
.tix-time { font-family: var(--font-display); font-size: 19px; font-weight: 500; line-height: 1.2; }
.tix-ch { font-size: 11px; color: var(--mute-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tix-card.is-on .tix-day, .tix-card.is-on .tix-ch { color: inherit; opacity: 0.9; }
.tix-card form { margin-top: auto; padding-top: 8px; }
.tix-btn { width: 100%; height: 26px; border-radius: 8px; border: 0; background: var(--panel-2); color: var(--ink-2); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 5px; }
.tix-btn:hover { background: var(--line); }
.tix-card.is-on .tix-btn { background: rgba(255, 255, 255, 0.2); color: inherit; }
.tix-live { margin-top: auto; padding-top: 8px; font-size: 11px; font-weight: 800; color: var(--red-ink); }
/* под билетчетата: „следиш“ вляво, „Цялата страница“ вдясно */
.detail-follow { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.follow-pill { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; }
.follow-pill.is-on { border-color: transparent; background: var(--red-soft); color: var(--red-ink); }
.full-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink); text-decoration: none; }
.full-link:hover { text-decoration: underline; }
.detail-follow form { display: block; }
.tix-card { flex-basis: 122px; }
.tix-btn { white-space: nowrap; padding: 0 6px; }

/* „Известия“ на телефона: табове Телевизия / Стрийминг като Филми / Сериали */
.coll-add { display: none; }
@media (max-width: 1023px) {
  .coll-tabs { margin-top: 14px; }
  .coll-dash { display: none; }
  .coll-sec { display: none; }
  .coll-sec.is-active { display: flex; }
  .coll-sec .coll-head { display: none; }
  .coll-add { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 16px; border: 1.5px dashed var(--line-2); color: var(--ink-2); font-size: 14px; font-weight: 800; text-decoration: none; }
  .coll-add:active { background: var(--panel); }
}
@media (min-width: 1024px) { .coll-tabs { display: none; } }

/* Карта на колекция на телефона: броят е плочка до постерите, долу само настройките */
.cc-count-tile { display: none; }
@media (max-width: 1023px) {
  .cc-posters .cc-more, .cc-posters .cc-p6 { display: none; }
  .cc-count-tile { flex: 0 0 96px; aspect-ratio: auto; height: auto; align-self: stretch; min-height: 69px; border-radius: 7px; background: var(--red); color: var(--on-red); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; text-decoration: none; }
  .cc-count-tile b { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
  .cc-count-tile small { font-size: 10px; font-weight: 800; }
  .cc-foot { padding: 12px 14px; }
  .cc-foot-n:not(.is-empty) { display: none; }
  .cc-when-foot, .cc-seg { width: 100%; }
  .cc-seg { border: 0; height: auto; border-radius: 0; justify-content: space-between; overflow: visible; }
  .cc-seg-item { padding: 0; font-size: 12px; }
  .cc-seg-item + .cc-seg-item { border-left: 0; }
  .cc-seg-item svg { width: 13px; height: 13px; }
  .cc-foot:has(.cc-foot-n.is-empty) .cc-seg { width: auto; gap: 14px; }
}
@media (max-width: 1023px) {
  .cc-foot-n { display: none !important; }
  .cc-foot .cc-seg { width: 100%; gap: 0; }
  .cc-count-tile.is-empty { background: var(--panel-2); color: var(--mute-2); padding: 0 8px; text-align: center; }
  .cc-posters:not(:has(img)) .cc-count-tile { flex: 1 1 auto; min-height: 44px; flex-direction: row; gap: 6px; }
}
@media (min-width: 1024px) { .cc-posters:not(:has(img, .cc-more)) { display: none; } }
@media (max-width: 1023px) {
  .cc-posters > .cc-count-tile.is-empty { max-width: none; aspect-ratio: auto; height: auto; }
  .cc-foot:has(.cc-foot-n.is-empty) .cc-seg { width: 100%; gap: 0; }
}

/* Лого на ТВ канал (от базата). Тъмна плочка по подразбиране; със светла версия — без плочка на светлата тема. */
:root { --logo-plate: #171311; --logo-show-light: none; --logo-show-dark: block; }
:root[data-theme="light"] { --logo-plate: transparent; --logo-show-light: block; --logo-show-dark: none; }
@media (min-width: 1024px) { :root[data-theme="auto"] { --logo-plate: transparent; --logo-show-light: block; --logo-show-dark: none; } }
.sidebar { --logo-plate: #171311; --logo-show-light: none; --logo-show-dark: block; }
.ch-badge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; height: calc(var(--ch-h) + 10px); padding: 5px 8px; border-radius: 8px; background: var(--ch-bg, #171311); box-sizing: border-box; }
.ch-badge img { height: var(--ch-h); width: auto; max-width: calc(var(--ch-h) * 4); object-fit: contain; display: block; }
.ch-badge.has-light { background: var(--ch-bg, var(--logo-plate)); }
.ch-badge.has-light .ch-badge-dark { display: var(--logo-show-dark); }
.ch-badge.has-light .ch-badge-light { display: var(--logo-show-light); }
.ch-badge.on-image { background: rgba(13, 11, 10, 0.55); }
/* „Канали“: логото на мястото на цветните инициали */
.ch-logo-img { width: 54px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--ch-bg, #171311); display: flex; align-items: center; justify-content: center; padding: 6px; box-sizing: border-box; }
.ch-logo-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.ch-logo-img.has-light { background: var(--ch-bg, var(--logo-plate)); border: 1px solid var(--line); }
.ch-logo-img.has-light .ch-badge-dark { display: var(--logo-show-dark); }
.ch-logo-img.has-light .ch-badge-light { display: var(--logo-show-light); }
