/* ============================================================
   DramoTV — Live-TV components layered on the Dramo design system
   (app.css carries the shared theme; this file only adds TV UI)
   ============================================================ */

/* ---------- channel cards ---------- */
.chancard {
  width: 132px;
  display: block;
  position: relative;
  animation: fadeup .4s both;
}
.chancard-link { display: block; border-radius: var(--r-card); }
.chancard-link:active { transform: scale(.96); }
.chancard-link:focus-visible { outline: 3px solid rgba(77,179,245,.7); outline-offset: 3px; }
.chancard .logo {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #252525;
  border: 1px solid var(--stroke);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .4);
  display: grid;
  place-items: center;
  transition: transform .15s, border-color .2s;
}
.chancard .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.chancard .logo .image-loading,
.chancard .logo .image-missing { background: transparent; }
.chancard .logo .image-missing::before {
  content: "TV";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .14em;
  color: rgba(255,255,255,.14);
}
.chancard:hover .logo { border-color: rgba(77,179,245,.34); }
.chancard .cn {
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--stroke);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
/* Favorite mark: a small icon tucked into the logo corner. The 44px tap area stays
   (invisible); the dark capsule is gone so it covers as little of the logo as possible. */
.chancard .favbtn {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #fff;
  touch-action: manipulation;
}
.chancard .favbtn::before {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-end: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #127fc0;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .18s, transform .18s;
}
.chancard .favbtn svg {
  position: absolute;
  top: 5px;
  inset-inline-end: 5px;
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.85)) drop-shadow(0 0 3px rgba(0,0,0,.45));
  opacity: .9;
  transition: transform .18s, opacity .18s;
}
.chancard .favbtn:hover svg, .chancard .favbtn:focus-visible svg { opacity: 1; transform: scale(1.12); }
.chancard .favbtn.on::before { opacity: 1; transform: none; }
.chancard .favbtn.on svg { opacity: 1; filter: none; top: 8px; inset-inline-end: 8px; width: 14px; height: 14px; }
.chancard .favbtn.on svg path { fill: currentColor; }
.chancard .favbtn:focus-visible { outline: 2px solid var(--main-light); outline-offset: -2px; }

.changrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  padding: 6px 16px 12px;
}
.changrid .chancard { width: 100%; }

/* ---------- category chips + category cards ---------- */
.chips {
  display: flex;
  gap: 8px;
  padding: 12px 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chips > * { flex: none; scroll-snap-align: start; }
.catchip {
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--stroke);
  color: var(--tx-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.catchip svg { width: 16px; height: 16px; }
.catchip.on {
  background: rgba(11,130,210,.16);
  border-color: rgba(77,179,245,.5);
  color: var(--main-light);
}

.catgrid { display: grid; gap: 12px; }
.catcard:active { transform: scale(.98); }

/* ---------- live-events hero slider (dashboard) ---------- */
.ev-slider-section { margin-top: 14px; }
.ev-hero { height: min(58dvh, 470px); min-height: 330px; border-radius: 22px; margin: 0 16px; }
.ev-slide .ev-shade {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px 16px calc(30px + var(--sab, 0px) * 0);
  background: linear-gradient(180deg, rgba(4, 8, 14, .34), rgba(4, 8, 14, .05) 36%, rgba(4, 8, 14, .88) 80%);
}
.ev-tags { display: flex; align-items: center; gap: 8px; }
.ev-tags .kind {
  position: static;
  font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 99px;
  background: rgba(4, 8, 14, .66); border: 1px solid var(--stroke);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ev-tags .livechip { position: static; }
.ev-bottom { display: grid; gap: 11px; justify-items: center; text-align: center; }
.ev-bottom .et { font-size: 16px; font-weight: 900; line-height: 1.55; min-height: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.ev-slide .vsrow { width: 100%; }
.ev-slide .vteam img { width: 52px; height: 52px; border-radius: 16px; background: rgba(4, 8, 14, .5); padding: 4px; }
.ev-slide .vsx { font-size: 14px; color: rgba(255, 255, 255, .75); }
.ev-hero .ev-slide .watch { width: auto; min-width: 170px; min-height: 42px; padding: 0 22px; }
.ev-slide .countdown { background: rgba(4, 8, 14, .55); border: 1px solid var(--stroke); border-radius: 14px; padding: 6px; }
@media (min-width: 1024px) {
  .ev-hero { height: min(62dvh, 540px); min-height: 400px; }
}

/* Phase 2: channel discovery and personal library */
.chancard .favbtn { z-index: 2; cursor: pointer; }
.chancard .favbtn:hover::before, .chancard .favbtn:focus-visible::before { background: rgba(11,130,210,.86); border-color: var(--main-light); transform: scale(1.06); }
.chancard .favbtn:active svg { transform: scale(.82); }
.chancard .favbtn:focus-visible, .category-all:focus-visible, .category-tile:focus-visible,
.chancard .favbtn:disabled { opacity: .48; cursor: wait; }

.category-intro { width: min(100% - 32px, 1180px); margin: calc(var(--sat) + 28px) auto 24px; }
.category-intro { padding: 0 2px; }
.category-eyebrow { display: inline-block; margin-bottom: 8px; color: var(--main-light); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.category-intro h1 { font-size: clamp(25px, 3.5vw, 38px); line-height: 1.3; }
.category-intro p { margin-top: 8px; color: var(--tx-2); font-size: 14px; line-height: 1.8; }
.category-all { width: min(100% - 32px, 1180px); min-height: 96px; display: flex; align-items: center; gap: 18px; margin: 0 auto 30px; padding: 17px 22px; border: 1px solid rgba(77,179,245,.4); border-radius: 22px; text-align: start; color: #fff; background: linear-gradient(110deg, rgba(12,134,216,.33), rgba(11,130,210,.09) 55%, rgba(255,255,255,.025)), var(--card); cursor: pointer; transition: border-color .2s, background .2s; }
.category-all:hover { border-color: var(--main-light); }
.category-all-icon { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border: 1px solid rgba(77,179,245,.35); border-radius: 17px; color: var(--main-light); background: rgba(77,179,245,.14); }
.category-all-icon svg { width: 27px; height: 27px; }
.category-all-copy { flex: 1; display: grid; gap: 3px; }
.category-all-copy strong { font-size: 19px; }
.category-all-copy small { color: var(--tx-2); font-size: 12px; }
.category-all-arrow, .category-tile-arrow { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.category-all-arrow svg, .category-tile-arrow svg { width: 18px; height: 18px; }
.category-grid-heading { width: min(100% - 32px, 1180px); display: flex; align-items: center; gap: 10px; margin: 0 auto 14px; }
.category-grid-heading h2 { font-size: 17px; }
.category-grid-heading span { padding: 2px 8px; border: 1px solid var(--stroke-strong); border-radius: 8px; color: var(--tx-2); font-size: 11px; }
.tabpane[data-tab="categories"] .catgrid.category-tiles { width: min(100% - 32px, 1180px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 auto 32px; padding: 0; }
.catcard.category-tile { min-height: 158px; aspect-ratio: auto; display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; padding: 16px; border: 1px solid var(--stroke-strong); border-radius: 20px; box-shadow: none; text-align: start; background: radial-gradient(80% 80% at 90% 8%, rgba(77,179,245,.13), transparent), var(--card); cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.catcard.category-tile:hover { border-color: rgba(77,179,245,.5); background: radial-gradient(80% 80% at 90% 8%, rgba(77,179,245,.22), transparent), var(--card); transform: translateY(-2px); }
.category-tile-index { align-self: flex-end; color: rgba(255,255,255,.33); font: 700 11px/1.2 ui-monospace, monospace; }
.category-tile-symbol { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--main-light); background: rgba(77,179,245,.13); }
.category-tile-symbol svg { width: 24px; height: 24px; }
.category-tile-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.catcard.category-tile .catname { position: static; min-width: 0; color: var(--tx); font-size: 15px; text-align: start; text-shadow: none; overflow-wrap: anywhere; }
.category-tile-arrow { width: 27px; height: 27px; flex: none; color: var(--main-light); }
.category-tile-arrow svg { width: 14px; height: 14px; }

/* Browse: topics (what is on) + places (where from) */
.category-grid-heading > div { display: grid; gap: 2px; margin-inline-end: auto; }
.category-grid-heading p { color: var(--tx-3); font-size: 12px; }
.tabpane[data-tab="categories"] .catgrid.category-topics { width: min(100% - 32px, 1180px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 158px), 1fr)); gap: 12px; margin: 0 auto 34px; padding: 0; }
.topic-tile {
  --accent: #4db3f5;
  position: relative; overflow: hidden; min-height: 132px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; align-items: end; gap: 10px 12px;
  padding: 16px; border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); border-radius: 22px; text-align: start; color: var(--tx); cursor: pointer;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%), var(--card);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .25s;
}
.topic-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 18px 40px -22px var(--accent); }
.topic-tile:active { transform: scale(.98); }
.topic-tile:focus-visible, .place-tile:focus-visible, .lang-chip:focus-visible { outline: 3px solid var(--main-light); outline-offset: 3px; }
.topic-tile-glow { position: absolute; inset-inline-end: -30px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--accent); opacity: .18; filter: blur(30px); pointer-events: none; }
.topic-tile-icon { grid-column: 1 / -1; align-self: start; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); box-shadow: 0 10px 24px -10px var(--accent); }
.topic-tile-icon svg { width: 24px; height: 24px; }
.topic-tile-copy { grid-column: 1; display: grid; gap: 2px; min-width: 0; }
.topic-tile-copy strong { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.topic-tile-copy small { color: var(--tx-2); font-size: 12px; }
.topic-tile-arrow { grid-column: 2; justify-self: end; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.topic-tile-arrow svg { width: 14px; height: 14px; }
[dir="rtl"] .topic-tile-arrow svg, [dir="rtl"] .place-tile .category-tile-arrow svg, [dir="rtl"] .category-all-arrow svg { transform: scaleX(-1); }
.tabpane[data-tab="categories"] .catgrid.category-places { width: min(100% - 32px, 1180px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; margin: 0 auto 36px; padding: 0; }
.place-tile { min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--stroke-strong); border-radius: 18px; text-align: start; color: var(--tx); background: var(--card); cursor: pointer; transition: border-color .2s, background .2s; }
.place-tile:hover { border-color: rgba(77,179,245,.5); background: radial-gradient(90% 120% at 100% 0%, rgba(77,179,245,.14), transparent), var(--card); }
.place-tile-mark { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; font-size: 18px; font-weight: 800; color: var(--main-light); background: rgba(77,179,245,.12); border: 1px solid rgba(77,179,245,.25); }
.place-tile-copy { flex: 1; min-width: 0; display: grid; gap: 1px; }
.place-tile-copy strong { font-size: 14px; overflow-wrap: anywhere; }
.place-tile-copy small { color: var(--tx-3); font-size: 11.5px; }
.lang-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 14px; scrollbar-width: none; }
.lang-chips::-webkit-scrollbar { display: none; }
.lang-chip { flex: none; height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--stroke-strong); color: var(--tx-2); background: var(--card); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.lang-chip.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, #0c86d8, #4db3f5); }

.favorites-empty { min-height: 258px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; padding: 28px; border: 1px dashed var(--stroke-strong); border-radius: 22px; text-align: center; background: rgba(255,255,255,.018); }
.favorites-empty-icon { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 17px; color: var(--main-light); background: rgba(77,179,245,.12); }
.favorites-empty-icon svg { width: 28px; height: 28px; }
.favorites-empty strong { font-size: 15px; }
.favorites-empty p { max-width: 46ch; color: var(--tx-2); font-size: 12px; line-height: 1.8; }
.favorites-empty .btn { min-height: 44px; margin-top: 5px; }
.folder-delete-confirm { display: grid; gap: 12px; margin-top: 12px; padding: 14px; border: 1px solid rgba(239,85,91,.3); border-radius: 14px; background: rgba(239,85,91,.07); }
.folder-delete-confirm[hidden] { display: none; }
.folder-delete-confirm .danger-copy { margin: 0; }
.folder-delete-actions { display: flex; gap: 10px; }
.folder-delete-actions .btn { min-height: 44px; flex: 1; }

@media (min-width: 720px) { .tabpane[data-tab="categories"] .catgrid.category-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tabpane[data-tab="categories"] .catgrid.category-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .catcard.category-tile { min-height: 148px; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .tabpane[data-tab="categories"] .catgrid.category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- live events (featured matches & programs) ---------- */
.eventcard {
  position: relative;
  width: 250px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
}
.eventcard:active { transform: scale(.97); }
.eventcard .bg {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(11,130,210,.28), rgba(6,44,70,.35)), var(--card);
}
.eventcard .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.eventcard .bg .image-missing { background: transparent; }
.eventcard .kind {
  position: absolute;
  top: 9px;
  inset-inline-start: 9px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(4,8,14,.66);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.eventcard .livechip { top: 9px; inset-inline-end: 9px; inset-inline-start: auto; position: absolute; }
.eventcard .body { padding: 12px 13px 13px; display: grid; gap: 9px; }
.eventcard .et {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 43px;
}
.vsrow { display: flex; align-items: center; justify-content: space-evenly; gap: 6px; }
.vteam { min-width: 0; flex: 1; display: grid; place-items: center; gap: 6px; }
.vteam img {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  object-fit: contain;
  padding: 5px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
}
.vteam span {
  width: 100%;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--tx-2);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vsx { flex: none; font-family: system-ui, sans-serif; font-size: 12px; font-weight: 900; color: var(--tx-3); letter-spacing: .06em; }
.eventcard .soon, .ev-slide .soon { font-size: 11px; font-weight: 700; color: #ffd48a; display: flex; align-items: center; gap: 6px; justify-content: center; }
.eventcard .soon svg, .ev-slide .soon svg { width: 15px; height: 15px; }
.eventcard .watch, .ev-slide .watch {
  width: 100%;
  min-height: 40px;
  border-radius: var(--r-btn);
  background: linear-gradient(135deg, var(--main), #0a6cb1);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 8px 20px rgba(11,130,210,.3);
}
.eventcard .watch svg, .ev-slide .watch svg { width: 16px; height: 16px; }

/* events page: big cards */
.events-grid { display: grid; gap: 14px; padding: 4px 16px 12px; max-width: 980px; margin-inline: auto; }
.events-grid .eventcard { width: 100%; }
.events-grid .eventcard .bg { aspect-ratio: 21 / 9; }

/* ---------- plans teaser (home) + plan cards ---------- */
.planteaser { display: flex; gap: 10px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.planteaser::-webkit-scrollbar { display: none; }
.planteaser > * { flex: none; scroll-snap-align: start; }
.plancard-mini {
  width: 150px;
  padding: 14px;
  border-radius: var(--r-card);
  border: 1px solid rgba(77,179,245,.22);
  background:
    radial-gradient(90% 130% at 20% 0%, rgba(77,179,245,.16), transparent 62%),
    var(--card);
  display: grid;
  gap: 7px;
}
.plancard-mini .pn { font-size: 14px; font-weight: 800; }
.plancard-mini .pp { font-size: 15px; font-weight: 800; color: #ffe39b; }
.plancard-mini .pp small { font-size: 10px; color: var(--tx-3); font-weight: 700; margin-inline-start: 3px; }
.plancard-mini .po { font-size: 11px; color: var(--tx-3); text-decoration: line-through; }
.plancard-mini .pb {
  justify-self: start;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
  color: #ffd76a;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.3);
}

.plan-features { display: grid; gap: 6px; margin-top: 4px; }
.plan-feature { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--tx-2); }
.plan-feature svg { width: 14px; height: 14px; color: #7ee2a0; flex: none; }
.subscription-option .plan-price { color: #ffe39b; font-size: 15px; font-weight: 800; }
.subscription-option .plan-price s { color: var(--tx-3); font-weight: 600; font-size: 11.5px; margin-inline-start: 7px; }
.subscription-option.highlighted { border-color: rgba(245,158,11,.45); }
.plan-badge {
  position: absolute;
  top: -1px;
  inset-inline-start: 14px;
  padding: 4px 10px;
  border-radius: 0 0 9px 9px;
  font-size: 9.5px;
  font-weight: 900;
  color: #ffd76a;
  background: rgba(245,158,11,.16);
  border: 1px solid rgba(245,158,11,.4);
  border-top: 0;
}

/* current subscription status */
.substatus {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  padding: 17px;
  border: 1px solid rgba(52,199,89,.26);
  border-radius: var(--r-card);
  background: linear-gradient(145deg, rgba(52,199,89,.12), rgba(52,199,89,.03)), var(--card);
}
.substatus.none { border-color: rgba(245,158,11,.26); background: linear-gradient(145deg, rgba(245,158,11,.1), rgba(245,158,11,.02)), var(--card); }
.substatus .ss-title { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; }
.substatus .ss-title svg { width: 19px; height: 19px; color: #7ee2a0; }
.substatus.none .ss-title svg { color: #ffd48a; }
.substatus .ss-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--tx-2); }
.substatus .ss-row b { color: var(--tx); font-weight: 700; }

/* Favorites page rules live alongside the Phase 2 card system above. */

/* ---------- playback error / device-busy card ---------- */
.pv-errorbox {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000;
}
.pv-errorcard {
  width: min(100%, 430px);
  padding: 24px 20px;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: radial-gradient(circle at 50% 0%, rgba(11,130,210,.16), transparent 55%), #121218;
  text-align: center;
  display: grid;
  gap: 9px;
  justify-items: center;
}
.pv-errorcard > svg { width: 44px; height: 44px; color: var(--main-light); }
.pv-errorcard h2 { font-size: 16.5px; line-height: 1.6; }
.pv-errorcard p { color: var(--tx-2); font-size: 12.5px; line-height: 1.9; }
.pv-errorcard .diag { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--tx-3); direction: ltr; }
.pv-errorcard .pv-actions { display: flex; gap: 9px; margin-top: 8px; width: 100%; }
.pv-errorcard .pv-actions .btn { flex: 1; min-height: 46px; }

/* channel page hero */
.chhero { position: relative; display: flex; flex-direction: column; align-items: center; padding: calc(var(--sat) + 76px) 20px 8px; }
.chhero::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: calc(var(--sat) - 110px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,130,210,.24), transparent 68%);
  pointer-events: none;
}
.chlogo {
  position: relative;
  width: 132px;
  height: 96px;
  padding: 8px;
  border: 1px solid rgba(77,179,245,.28);
  border-radius: 24px;
  background: rgba(11,130,210,.08);
  box-shadow: 0 16px 42px rgba(0,0,0,.4);
  display: grid;
  place-items: center;
}
.chlogo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.chtitle { position: relative; margin-top: 14px; font-size: 21px; font-weight: 800; text-align: center; text-wrap: balance; }
.chmeta { position: relative; margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }

/* ---------- desktop tweaks ---------- */
@media (min-width: 1024px) {
  .chancard { width: 168px; }
  .chancard:hover .logo { transform: translateY(-4px); }
  .changrid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px 16px; padding-inline: 0; }
  .catgrid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); padding-inline: 0; }
  .eventcard { width: 330px; }
  .events-grid { grid-template-columns: 1fr; padding-inline: 0; }
  .planteaser { padding-inline: 0; overflow: visible; flex-wrap: wrap; }
  .chips { padding-inline: 0; }
}

/* Channel card without a usable logo: a quiet monogram instead of an empty box. */
.chancard .logo { position: relative; }
.chancard .logo .logo-mono { position: absolute; inset: 0; display: none; place-items: center; font-size: 28px; font-weight: 800; letter-spacing: .02em; color: rgba(255,255,255,.55); background: radial-gradient(80% 80% at 70% 20%, rgba(77,179,245,.18), transparent 70%); }
.chancard .logo:has(img.image-missing) .logo-mono { display: grid; }

/* Browse: topic strip + provider catalogue (groups → families → versions) */
.category-skeleton { width: min(100% - 32px, 1180px); margin: 0 auto; display: grid; gap: 12px; }
.topic-rail { width: min(100% - 32px, 1180px); margin: 0 auto 30px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(136px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.topic-rail::-webkit-scrollbar { display: none; }
.topic-chip-tile {
  --accent: #4db3f5; position: relative; scroll-snap-align: start; min-height: 108px; display: grid; align-content: space-between; gap: 10px;
  padding: 13px; border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); border-radius: 20px; text-align: start; color: var(--tx); cursor: pointer;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 24%, transparent), transparent 65%), var(--card);
  transition: transform .2s, border-color .2s;
}
.topic-chip-tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.topic-chip-tile .topic-tile-icon { width: 38px; height: 38px; border-radius: 12px; grid-column: auto; }
.topic-chip-tile .topic-tile-icon svg { width: 20px; height: 20px; }
.topic-chip-tile .topic-tile-copy strong { font-size: 14px; }
.catalog-search { width: min(100% - 32px, 1180px); margin: 0 auto 12px; position: relative; }
.catalog-search svg { position: absolute; inset-inline-start: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--tx-3); }
.catalog-search-input { width: 100%; height: 48px; padding-inline: 44px 14px; border-radius: 15px; border: 1px solid var(--stroke-strong); background: var(--field, var(--card)); color: var(--tx); font: inherit; font-size: 14px; }
.catalog-search-input:focus { outline: none; border-color: var(--main-light); box-shadow: 0 0 0 3px rgba(77,179,245,.18); }
.group-jump { width: min(100% - 32px, 1180px); margin: 0 auto 18px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.group-jump::-webkit-scrollbar { display: none; }
.catalog-empty { width: min(100% - 32px, 1180px); margin: 10px auto 30px; color: var(--tx-3); text-align: center; }
.catalog-groups { width: min(100% - 32px, 1180px); margin: 0 auto 40px; display: grid; gap: 14px; }
.catalog-group { scroll-margin-top: calc(var(--sat) + 16px); padding: 14px; border: 1px solid var(--stroke); border-radius: 22px; background: rgba(255,255,255,.018); }
.catalog-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.catalog-group-head > div { flex: 1; min-width: 0; display: grid; }
.catalog-group-head h3 { font-size: 16px; }
.catalog-group-head small { color: var(--tx-3); font-size: 12px; }
.catalog-group-size { padding: 2px 9px; border: 1px solid var(--stroke-strong); border-radius: 8px; color: var(--tx-2); font-size: 11px; }
.family-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.catalog-results { width: min(100% - 32px, 1180px); margin: 0 auto 30px; }
.family-card { min-height: 62px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--stroke); border-radius: 15px; text-align: start; color: var(--tx); background: var(--card); cursor: pointer; transition: border-color .2s, background .2s; }
.family-card:hover { border-color: rgba(77,179,245,.5); background: radial-gradient(90% 120% at 100% 0%, rgba(77,179,245,.13), transparent), var(--card); }
.family-card:focus-visible, .family-more:focus-visible, .topic-chip-tile:focus-visible { outline: 3px solid var(--main-light); outline-offset: 3px; }
.family-card-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.family-card-copy strong { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.family-card-copy small { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--tx-3); font-size: 11.5px; }
.family-versions { padding: 0 6px; border-radius: 6px; color: var(--main-light); background: rgba(77,179,245,.12); }
[dir="rtl"] .family-card .category-tile-arrow svg { transform: scaleX(-1); }
.family-more { margin-top: 10px; width: 100%; height: 40px; border-radius: 12px; border: 1px dashed var(--stroke-strong); background: transparent; color: var(--main-light); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

/* These containers set display; keep the hidden attribute authoritative. */
.catalog-results[hidden], .catalog-groups[hidden], .group-jump[hidden], .lang-chips[hidden], .family-more[hidden] { display: none !important; }
.family-group { color: var(--tx-3); font-weight: 400; font-size: 12px; }

/* Countries: collapsible cards (big) and flag tiles (small) */
.catalog-group { padding: 0; overflow: hidden; transition: border-color .2s, background .2s; }
.catalog-group.open { border-color: rgba(77,179,245,.35); background: rgba(77,179,245,.035); }
.catalog-group-head { width: 100%; margin: 0; padding: 12px 14px; border: 0; background: none; color: var(--tx); font: inherit; text-align: start; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.catalog-group-head:focus-visible, .country-tile:focus-visible { outline: 3px solid var(--main-light); outline-offset: -3px; border-radius: 22px; }
.group-flag { width: 46px; height: 34px; flex: none; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 6px 14px -6px rgba(0,0,0,.6); }
.flag-fallback { display: grid; place-items: center; background: rgba(77,179,245,.14); color: var(--main-light); font-weight: 800; }
.catalog-group-title { flex: 1; min-width: 0; display: grid; gap: 1px; }
.catalog-group-title strong { font-size: 16px; }
.catalog-group-title small { color: var(--tx-3); font-size: 12px; }
.catalog-group-chevron { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--main-light); background: rgba(77,179,245,.1); }
.catalog-group-chevron svg { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.catalog-group.open .catalog-group-chevron svg { transform: rotate(-90deg); }
.catalog-group.single .catalog-group-chevron svg { transform: none; }
[dir="rtl"] .catalog-group.single .catalog-group-chevron svg { transform: scaleX(-1); }
.catalog-group-body { padding: 0 14px 14px; animation: groupOpen .25s cubic-bezier(.2,.8,.2,1); }
@keyframes groupOpen { from { opacity: 0; transform: translateY(-6px); } }
.catalog-subheading { margin: 12px 2px 0; color: var(--tx-2); font-size: 14px; font-weight: 800; }
.country-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.country-tile { min-height: 76px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--stroke); border-radius: 18px; background: var(--card); color: var(--tx); text-align: start; cursor: pointer; transition: border-color .2s, transform .2s; }
.country-tile:hover { border-color: rgba(77,179,245,.5); transform: translateY(-2px); }
.country-tile-flag { width: 42px; height: 31px; flex: none; object-fit: cover; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
/* ---------- continent boxes (categories): animated gradient, collapsed by default ---------- */
.continent { border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: var(--card); box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.continent + .continent { margin-top: 12px; }
.continent-head {
  position: relative; isolation: isolate; width: 100%; min-height: 96px;
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border: 0; color: #fff; text-align: start; cursor: pointer; overflow: hidden;
  background: linear-gradient(115deg, var(--c1), var(--c2) 35%, var(--c3) 65%, var(--c1));
  background-size: 300% 300%;
  animation: continent-flow 10s ease-in-out infinite;
}
/* soft light sweeping across, and a shade so the name always reads */
.continent-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: continent-shine 6.5s ease-in-out infinite;
}
.continent-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 140% at 85% 0%, transparent 40%, rgba(5,8,16,.38)); }
.continent-copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
.continent-name { font-size: 24px; font-weight: 900; letter-spacing: .01em; line-height: 1.25; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.continent-copy small { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.82); }
.continent-chevron { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .25s ease; transform: rotate(90deg); }
.continent-chevron svg { width: 18px; height: 18px; }
.continent.open .continent-chevron { transform: rotate(-90deg); }
/* a single-country continent links straight to it: the arrow points forward */
.continent-chevron.go { transform: none; }
[dir="rtl"] .continent-chevron.go { transform: scaleX(-1); }
.continent-body { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.continent-head:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
@keyframes continent-flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes continent-shine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .continent-head, .continent-head::before { animation: none; } }
@media (min-width: 1024px) { .continent-body .country-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.country-tile-copy { min-width: 0; display: grid; gap: 1px; }
.country-tile-copy strong { font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.country-tile-copy small { color: var(--tx-3); font-size: 11.5px; }
.group-page-grid { width: min(100% - 32px, 1180px); margin: 0 auto 30px; }
.catalog-group-body[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .catalog-group-body { animation: none; } .catalog-group-chevron svg { transition: none; } }

/* Category page: dropdown filters (default "All") */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 16px 14px; }
.filter-bar[hidden] { display: none !important; }
.filter-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding-inline: 14px 10px; border: 1px solid var(--stroke-strong); border-radius: 999px; background: var(--card); color: var(--tx-2); font-size: 12.5px; cursor: pointer; transition: border-color .2s, background .2s; }
.filter-pill:focus-within { border-color: var(--main-light); box-shadow: 0 0 0 3px rgba(77,179,245,.18); }
.filter-pill.active { border-color: rgba(77,179,245,.6); background: rgba(77,179,245,.12); color: var(--tx); }
.filter-pill-label { font-weight: 700; white-space: nowrap; }
.filter-pill-label::after { content: ":"; }
.filter-select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--tx); font: inherit; font-weight: 800; cursor: pointer; padding-inline-end: 18px; max-width: 46vw; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234db3f5' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center; }
[dir="rtl"] .filter-select { background-position: left 0 center; }
.filter-select:focus { outline: none; }
.filter-select option { background: #16161e; color: #fff; }

/* Big country card: name and a soft channel-count capsule on one line */
.catalog-group-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.count-pill { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--tx-2); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Country flag in the corner of a channel logo (mixed-country lists). */
.chancard .logo .logo-flag {
  position: absolute;
  bottom: 6px;
  inset-inline-start: 6px;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 2px 6px rgba(0, 0, 0, .55);
  pointer-events: none;
  z-index: 2;
}

/* Favorites: compact header, folder tabs, one toolbar for the open folder. */
.fav-head { width: min(100% - 32px, 1180px); margin: calc(var(--sat) + 22px) auto 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fav-head h1 { display: flex; align-items: center; gap: 8px; font-size: 22px; }
.fav-head-count { min-width: 26px; padding: 2px 9px; border-radius: 999px; color: var(--main-light); background: rgba(77,179,245,.13); font-size: 12px; font-weight: 800; text-align: center; }
.fav-add { min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 13px; border: 1px solid var(--stroke); border-radius: 999px; color: var(--tx-1); background: var(--card); font-size: 12px; font-weight: 700; cursor: pointer; }
.fav-add svg { width: 16px; height: 16px; color: var(--main-light); }
.fav-note { width: min(100% - 32px, 1180px); margin: -6px auto 14px; color: var(--tx-3); font-size: 11.5px; line-height: 1.7; }
.fav-toolbar { width: min(100% - 32px, 1180px); margin: 4px auto 10px; display: flex; align-items: center; justify-content: space-between; color: var(--tx-3); font-size: 12px; }
.favorites-empty { min-height: 0; gap: 8px; margin-top: 10px; padding: 32px 22px; border-radius: 18px; }
.favorites-empty-icon { width: 44px; height: 44px; border-radius: 14px; }
.favorites-empty-icon svg { width: 22px; height: 22px; }
.favorites-empty strong { font-size: 14px; }

/* Country header: flag + name open every channel; the chevron unfolds categories. */
.catalog-group-head { cursor: default; padding: 6px 10px 6px 6px; }
[dir="rtl"] .catalog-group-head { padding: 6px 6px 6px 10px; }
.catalog-group-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 6px 8px; border: 0; border-radius: 16px; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; transition: background .15s; }
.catalog-group-open:hover { background: rgba(255,255,255,.04); }
.catalog-group-open:focus-visible, .catalog-group-chevron:focus-visible { outline: 3px solid var(--main-light); outline-offset: -3px; }
button.catalog-group-chevron { width: 40px; height: 40px; border: 0; cursor: pointer; transition: background .15s; }
button.catalog-group-chevron:hover { background: rgba(77,179,245,.2); }

/* "Sign in with Google" (Google renders its own button inside). */
.google-auth { display: flex; justify-content: center; min-height: 44px; margin-bottom: 12px; color-scheme: normal; }
.google-auth:empty { min-height: 0; margin: 0; }

/* Device limit picker: choose which device to sign out. */
.device-limit-hero { width: 56px; height: 56px; margin: 4px auto 10px; display: grid; place-items: center; border-radius: 18px; color: var(--main-light); background: rgba(77,179,245,.12); }
.device-limit-hero svg { width: 28px; height: 28px; }
.device-limit-intro { margin: 0 0 14px; color: var(--tx-2); font-size: 13px; line-height: 1.8; text-align: center; }
.device-limit-list { display: grid; gap: 10px; }
.device-limit-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--stroke); border-radius: 16px; color: var(--tx); background: var(--card); font: inherit; text-align: start; cursor: pointer; transition: border-color .15s, background .15s; }
.device-limit-row:hover:not(:disabled) { border-color: rgba(77,179,245,.45); background: rgba(77,179,245,.06); }
.device-limit-row:focus-visible { outline: 3px solid var(--main-light); outline-offset: 2px; }
.device-limit-row:disabled { opacity: .6; cursor: default; }
.device-limit-row .device-copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
.device-limit-row .device-copy strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-limit-row .device-copy small { color: var(--tx-3); font-size: 11px; }
.device-limit-action { flex: none; padding: 6px 10px; border-radius: 999px; color: #fff; background: #d64545; font-size: 11px; font-weight: 800; }
.device-limit-row.loading .device-limit-action { opacity: .6; }
.device-limit-note { margin: 14px 0 0; color: var(--tx-3); font-size: 11px; text-align: center; }

/* First + last name side by side (stacked on narrow phones). */
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 340px) { .fields-row { grid-template-columns: 1fr; } }

/* City picker search: themed like every other field (it lives in a sheet, outside .field). */
.city-search-wrap { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; padding: 2px 0 12px; background: var(--sheet); }
.city-search-wrap > span { position: absolute; inset-inline-start: 14px; top: calc(50% - 6px); transform: translateY(-50%); width: 18px; height: 18px; margin: 0; color: var(--tx-3); pointer-events: none; }
.city-search-input {
  width: 100%; min-height: 48px; padding: 12px 14px; padding-inline-start: 44px !important;
  border: 1px solid var(--stroke); border-radius: var(--r-btn); outline: 0;
  color: var(--tx); background: var(--field); font-family: inherit; font-size: 16px;
  -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s;
}
.city-search-input::placeholder { color: var(--tx-3); }
.city-search-input:focus { border-color: rgba(77,179,245,.55); box-shadow: 0 0 0 3px rgba(77,179,245,.12); }
.city-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.city-option { border: 1px solid transparent; }
.city-option.selected { border-color: rgba(77,179,245,.35); }

/* Info pages (guide / download / FAQ / contact): compact on phones. */
.info-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; }
.info-step { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--stroke); border-radius: 16px; background: var(--card); }
.info-step-no { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #0c86d8, #4db3f5); font-size: 13px; font-weight: 900; box-shadow: 0 6px 16px rgba(12,134,216,.35); }
.info-step-copy { min-width: 0; flex: 1; }
.info-step-copy h2 { display: flex; align-items: center; gap: 7px; font-size: 14.5px; line-height: 1.6; }
.info-step-icon { width: 18px; height: 18px; flex: none; color: var(--main-light); }
.info-step-icon svg { width: 18px; height: 18px; }
.info-step-copy p { margin-top: 4px; color: var(--tx-2); font-size: 12px; line-height: 1.85; }

.info-rows { display: grid; gap: 10px; }
.info-row-card { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--stroke); border-radius: 16px; background: var(--card); }
.info-row-head { display: flex; gap: 12px; align-items: flex-start; }
.info-row-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--main-light); background: rgba(11,130,210,.13); }
.info-row-icon svg { width: 20px; height: 20px; }
.info-row-copy { min-width: 0; }
.info-row-copy h2 { font-size: 14.5px; }
.info-row-copy p { margin-top: 3px; color: var(--tx-2); font-size: 12px; line-height: 1.8; }
.info-row-card .btn { width: 100%; min-height: 44px; }

.faq-accordion { display: grid; gap: 8px; }
.faq-entry { border: 1px solid var(--stroke); border-radius: 14px; background: var(--card); overflow: hidden; }
.faq-entry[open] { border-color: rgba(77,179,245,.3); }
.faq-entry summary { display: flex; align-items: center; gap: 10px; padding: 13px 14px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 800; line-height: 1.7; }
.faq-entry summary::-webkit-details-marker { display: none; }
.faq-entry summary > span:first-child { flex: 1; }
.faq-chevron { width: 16px; height: 16px; flex: none; color: var(--tx-3); transform: rotate(90deg); transition: transform .2s; }
.faq-chevron svg { width: 16px; height: 16px; }
.faq-entry[open] .faq-chevron { transform: rotate(-90deg); color: var(--main-light); }
.faq-entry p { padding: 0 14px 14px; color: var(--tx-2); font-size: 12.5px; line-height: 1.9; }

.contact-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.contact-row { color: var(--tx); text-decoration: none; padding: 12px 14px; }
.contact-row div { flex: 1; }
.contact-row small { letter-spacing: 0; font-weight: 700; }
.contact-row strong { font-size: 13px; overflow-wrap: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-go { width: 16px !important; height: 16px !important; background: none !important; color: var(--tx-3) !important; }
.contact-go svg { width: 16px; height: 16px; }
[dir="rtl"] .contact-go svg { transform: scaleX(-1); }
@media (max-width: 600px) {
  .contact-list { grid-template-columns: 1fr; }
  .site-info-hero { min-height: 0; margin-bottom: 16px; padding: 16px !important; gap: 12px !important; border-radius: 20px; }
  .site-info-hero > span { width: 46px; height: 46px; border-radius: 14px; }
  .site-info-hero svg { width: 22px; height: 22px; }
}

/* Payment method picker in the checkout review */
.gateway-picker { margin: 14px 0 4px; }
.gateway-title { margin-bottom: 8px; color: var(--tx-3); font-size: 12px; font-weight: 800; }
.gateway-list { display: grid; gap: 8px; }
.gateway-option { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--stroke); border-radius: 14px; color: var(--tx); background: var(--card); font: inherit; text-align: start; cursor: pointer; transition: border-color .15s, background .15s; }
.gateway-option.on { border-color: rgba(77,179,245,.6); background: rgba(77,179,245,.08); }
.gateway-option:focus-visible { outline: 3px solid var(--main-light); outline-offset: 2px; }
.gateway-logo { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; color: #fff; background: #2b2f3a; font-size: 12px; font-weight: 900; letter-spacing: .5px; }
.gateway-logo.gateway-fastpay { background: linear-gradient(135deg, #e11d48, #f97316); }
.gateway-name { flex: 1; font-size: 14px; font-weight: 800; }
.gateway-radio { width: 20px; height: 20px; flex: none; border: 2px solid var(--stroke-strong, rgba(255,255,255,.3)); border-radius: 50%; }
.gateway-option.on .gateway-radio { border-color: var(--main-light); box-shadow: inset 0 0 0 4px var(--sheet), inset 0 0 0 10px var(--main-light); }
.subscription-success-mark.muted span { background: rgba(255,255,255,.12) !important; }

/* Favorites: folders as cards (icon, name, channel count), then one folder's channels. */
.fav-folder-grid { width: min(100% - 32px, 1180px); margin: 0 auto 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fav-folder-card { --accent: #4db3f5; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon name" "count count"; align-items: center; column-gap: 10px; row-gap: 10px; padding: 12px; border: 1px solid var(--stroke); border-radius: 18px; color: var(--tx); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--card); font: inherit; text-align: start; cursor: pointer; transition: transform .15s, border-color .15s; }
.fav-folder-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.fav-folder-card:active { transform: scale(.98); }
.fav-folder-card:focus-visible { outline: 3px solid var(--main-light); outline-offset: 2px; }
.fav-folder-card > .fav-folder-icon { grid-area: icon; }
.fav-folder-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 13px; color: var(--accent, #4db3f5); background: color-mix(in srgb, var(--accent, #4db3f5) 16%, transparent); }
.fav-folder-icon svg { width: 21px; height: 21px; }
.fav-folder-icon.sm { width: 34px; height: 34px; border-radius: 11px; }
.fav-folder-icon.sm svg { width: 18px; height: 18px; }
.fav-folder-card > .fav-folder-name { grid-area: name; }
.fav-folder-name { width: 100%; font-size: 14.5px; font-weight: 800; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-folder-card .count-pill { grid-area: count; justify-self: center; }
.fav-folder-card.add { --accent: #94a3b8; grid-template-areas: "icon name"; border-style: dashed; background: transparent; color: var(--tx-2); }
.fav-folder-head { --accent: #4db3f5; width: min(100% - 32px, 1180px); margin: calc(var(--sat) + 16px) auto 10px; display: flex; align-items: center; gap: 10px; }
.fav-folder-head h1 { flex: 1; min-width: 0; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* Splash: "DramoTV" wordmark (Outfit, OFL — fonts/OUTFIT-LICENSE.txt). */
@font-face { font-family: "Dramo Display"; src: url("../fonts/outfit-800.woff2") format("woff2"); font-weight: 800; font-display: block; }
.boot { gap: 14px; }
.boot-logo img { width: 132px; max-width: 38vw; }
/* Animated mark: D draws, play pops, waves sweep out and then breathe. */
.boot-logo svg.boot-mark { width: 132px; height: 132px; max-width: 38vw; overflow: visible; animation: none;
  filter: drop-shadow(0 12px 40px rgba(11, 130, 210, .45)); }
.bm-d { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bm-draw .75s cubic-bezier(.65,0,.35,1) .05s forwards; }
.bm-play { transform-box: fill-box; transform-origin: center; transform: scale(0);
  animation: bm-pop .5s cubic-bezier(.34,1.56,.64,1) .55s forwards; }
.bm-w1, .bm-w2 { opacity: 0; transform-box: fill-box; transform-origin: left center;
  animation: bm-wave .45s cubic-bezier(.2,.8,.2,1) forwards, bm-pulse 1.6s ease-in-out infinite; }
.bm-w1 { animation-delay: .8s, 1.5s; }
.bm-w2 { animation-delay: .95s, 1.7s; }
@keyframes bm-draw { to { stroke-dashoffset: 0; } }
@keyframes bm-pop { to { transform: scale(1); } }
@keyframes bm-wave { from { opacity: 0; transform: translateX(-26px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes bm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  .bm-d, .bm-play, .bm-w1, .bm-w2 { animation: none; stroke-dashoffset: 0; transform: none; opacity: 1; }
}
.boot-word {
  direction: ltr; display: flex; align-items: baseline;
  font: 800 clamp(40px, 11vw, 64px)/1 "Dramo Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -.02em; color: #fff;
}
.boot-word span { display: inline-block; opacity: 0; transform: translateY(18px) scale(.96); filter: blur(6px);
  animation: boot-letter .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.7s + var(--i) * .07s); }
.boot-word .tv {
  background: linear-gradient(100deg, #ffb547 0%, #ff7a18 45%, #ffd08a 50%, #ff7a18 55%, #ffb547 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: boot-letter .7s cubic-bezier(.2,.8,.2,1) forwards, boot-shine 2.4s ease-in-out 1s infinite;
  animation-delay: calc(.7s + var(--i) * .07s), 1.6s;
}
.boot-word .tv:first-of-type { margin-inline-start: .06em; }
.boot-bar { width: 132px; height: 3px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); opacity: 0; animation: boot-fade .4s ease 1.3s forwards; }
.boot-bar i { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent, #4db3f5, #ff9a3c, transparent); animation: boot-bar 1.2s ease-in-out infinite; }
@keyframes boot-letter { to { opacity: 1; transform: none; filter: none; } }
@keyframes boot-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes boot-bar { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@keyframes boot-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .boot-word span, .boot-word .tv, .boot-bar, .boot-bar i { animation: none; opacity: 1; transform: none; filter: none; }
}

/* player: server picker (copies of one channel are "server 1…N") */
.pv-btn[hidden] { display: none; }
.server-sheet-desc { margin: -4px 0 12px; color: var(--tx-2); font-size: 11.5px; line-height: 1.8; }
