/* =========================================================================
   ДИВО ТВ — стилі (v2)
   Естетика: «нічна мовлення», темне editorial, теплий бурштин + морський мʼят
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700;800&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --bg:            #0b0f17;
  --bg-2:          #0f141e;
  --surface:       #141a26;
  --surface-hi:    #1c2333;
  --surface-line:  #232b3d;
  --line:          rgba(255, 255, 255, 0.07);
  --line-strong:   rgba(255, 255, 255, 0.14);

  --text:          #f3eedf;
  --text-dim:      #b6b3a9;
  --text-muted:    #767481;

  --amber:         #f5b840;
  --amber-deep:    #c98a1f;
  --mint:          #5cd4b5;
  --crimson:       #e85a5a;
  --crimson-deep:  #a93131;

  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     22px;

  --shadow-card:   0 18px 38px -22px rgba(0, 0, 0, 0.7);

  --header-h:      72px;
  --filter-h:      62px;

  --container:     1320px;
  --gap:           clamp(14px, 1.6vw, 22px);

  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
*::selection { background: var(--amber); color: #1a1305; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(245, 184, 64, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(92, 212, 181, 0.05), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 36px);
}

.h-scroll { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.h-scroll::-webkit-scrollbar { display: none; }

/* ============================ ШАПКА ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(11, 15, 23, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 18px); }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand .logo {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, var(--amber), var(--amber-deep)), var(--amber-deep);
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 8px 22px -8px var(--amber);
  position: relative;
}
.brand .logo::before {
  content: ''; position: absolute; inset: 7px;
  border-radius: 6px; background: var(--bg);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.brand .logo::after {
  content: ''; position: absolute;
  width: 7px; height: 7px;
  background: var(--amber);
  border-radius: 50%;
  bottom: 8px; left: 50%; transform: translateX(-50%);
}
.brand b { font-weight: 800; }
.brand span { color: var(--amber); font-weight: 700; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 14.5px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  display: inline-flex; align-items: center; gap: 7px;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.is-active { color: var(--text); background: var(--surface-hi); }
.nav a.is-active::before {
  content: ''; width: 5px; height: 5px;
  background: var(--amber); border-radius: 50%;
  box-shadow: 0 0 12px var(--amber);
}

.header-spacer { flex: 1; }

/* Кнопки дій у хедері */
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-donate, .btn-pro, .btn-login {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.18s var(--ease);
  border: 1px solid transparent;
}
.btn-donate {
  background: rgba(232, 90, 90, 0.12);
  color: #ffb3b3;
  border-color: rgba(232, 90, 90, 0.32);
}
.btn-donate:hover {
  background: rgba(232, 90, 90, 0.22);
  color: #fff;
  border-color: rgba(232, 90, 90, 0.55);
}
.btn-donate svg { color: var(--crimson); }
.btn-pro {
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #1a1305;
  font-weight: 700;
}
.btn-pro:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-pro::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #1a1305;
}
.btn-login {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text-dim);
}
.btn-login:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-hi); }

/* мобільні іконки в хедері */
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: none;
  align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: all 0.18s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-hi); }
.icon-btn.donate-mobile {
  background: rgba(232, 90, 90, 0.15);
  border-color: rgba(232, 90, 90, 0.35);
  color: var(--crimson);
}

/* ============================ МОБІЛЬНЕ МЕНЮ ============================ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7, 10, 17, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: none;
  flex-direction: column;
  padding: 22px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-close {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--surface);
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.mobile-menu .mm-search {
  margin-top: 22px;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.mobile-menu .mm-search input {
  flex: 1; background: none; border: 0; outline: 0; font-size: 15px;
}
.mm-actions {
  margin-top: 18px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.mm-actions a, .mm-actions button {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  font-family: 'Unbounded', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all 0.18s;
}
.mm-actions a:hover, .mm-actions button:hover { background: var(--surface-hi); border-color: var(--line-strong); }
.mm-actions .mm-donate {
  background: rgba(232, 90, 90, 0.1);
  border-color: rgba(232, 90, 90, 0.32);
  color: #ffd0d0;
}
.mm-actions .mm-pro {
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #1a1305;
  border-color: var(--amber);
  font-weight: 700;
}
.mm-actions svg { flex-shrink: 0; }
.mm-actions .mm-donate svg { color: var(--crimson); }

/* ============================ ВЕЛИКИЙ ПОШУК ============================ */
.top-search {
  margin: clamp(20px, 2.6vw, 30px) 0 clamp(16px, 2vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.top-search:focus-within {
  border-color: var(--amber);
  background: var(--surface-hi);
  box-shadow: 0 0 0 4px rgba(245, 184, 64, 0.08);
}
.top-search input {
  flex: 1;
  background: none; border: 0; outline: 0;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.top-search input::placeholder { color: var(--text-muted); font-weight: 400; }
.top-search > svg { color: var(--text-muted); flex-shrink: 0; }
.top-search .ts-go {
  padding: 8px 16px;
  background: var(--amber);
  color: #1a1305;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  transition: filter 0.15s;
}
.top-search .ts-go:hover { filter: brightness(1.08); }

/* ============================ ФІЛЬТРИ ============================ */
.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.filter-bar .container {
  height: var(--filter-h);
  display: flex; align-items: center; gap: 8px;
}
.chips { display: flex; gap: 8px; flex: 1; padding: 4px 0; }
.chip {
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: all 0.18s var(--ease);
  display: inline-flex; align-items: center; gap: 7px;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.is-active {
  background: var(--text);
  color: #0b0f17;
  border-color: var(--text);
}
.chip.is-amber.is-active {
  background: var(--amber);
  color: #1a1305;
  border-color: var(--amber);
}
.chip.is-live {
  background: rgba(232, 90, 90, 0.12);
  border-color: rgba(232, 90, 90, 0.35);
  color: #ffb3b3;
}
.chip.is-live .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 0 rgba(232, 90, 90, 0.6);
  animation: pulse-dot 1.4s ease-out infinite;
}
.chip.is-live.is-active {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}
.chip.is-live.is-active .dot { background: #fff; }
.chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}
.chip.has-selection {
  background: var(--amber);
  color: #1a1305;
  border-color: var(--amber);
  padding-right: 10px;
  font-weight: 600;
}
.chip.has-selection .clear-x {
  margin-left: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  display: grid; place-items: center;
  font-size: 11px;
  line-height: 1;
}
.chip.has-selection .clear-x:hover { background: rgba(0, 0, 0, 0.32); }

.subfilter-bar {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.subfilter-bar .container { display: flex; align-items: center; height: 54px; gap: 8px; }

/* ============================ СЕКЦІЇ ============================ */
.section { padding: clamp(20px, 2.6vw, 32px) 0 clamp(20px, 2.6vw, 32px); }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(14px, 1.6vw, 20px);
}
.section-head h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 12px;
}
.section-head .more {
  color: var(--text-dim);
  font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.18s;
}
.section-head .more:hover { color: var(--amber); }
.section-head .more svg { transition: transform 0.18s var(--ease); }
.section-head .more:hover svg { transform: translateX(3px); }
.section-counter {
  margin-left: 4px;
  color: var(--text-muted);
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

/* ============================ ПРЯМИЙ ЕФІР БАНЕР ============================ */
.live-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(232, 90, 90, 0.25);
  display: block;
  isolation: isolate;
  aspect-ratio: 21 / 9;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.live-banner:hover { border-color: rgba(232, 90, 90, 0.55); transform: translateY(-2px); }
.live-banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  filter: saturate(1.05) contrast(1.05);
}
.live-banner:hover img { transform: scale(1.04); }
.live-banner::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(11, 15, 23, 0.92) 0%, rgba(11, 15, 23, 0.62) 45%, transparent 75%),
    linear-gradient(180deg, transparent 50%, rgba(11, 15, 23, 0.6) 100%);
}
.live-banner .lb-meta {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 3vw, 36px);
  bottom: clamp(20px, 3vw, 36px);
  right: clamp(20px, 3vw, 36px);
  max-width: 540px;
}
.live-banner .lb-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.live-banner .lb-tag .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  animation: pulse-dot 1.4s ease-out infinite;
}
.live-banner h3 {
  margin-top: 14px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.live-banner .lb-sub {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: clamp(13.5px, 1.4vw, 15px);
}
.live-banner .lb-cta {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  background: var(--amber);
  color: #1a1305;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
}

/* ============================ КАРТКИ ============================ */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.grid.posters { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.grid.channels { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}
.card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2030, #0e1320);
}
.card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .thumb img { transform: scale(1.05); }
.card .thumb .play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(11, 15, 23, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid; place-items: center;
  opacity: 0;
  transition: all 0.3s var(--ease);
}
.card:hover .thumb .play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.card .thumb .play svg { color: var(--amber); }

.card .thumb .badge {
  position: absolute;
  top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: rgba(232, 90, 90, 0.95);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 6px;
  text-transform: uppercase;
}
.card .thumb .badge .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.4s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
}
.card .thumb .duration {
  position: absolute;
  bottom: 10px; right: 10px;
  padding: 4px 8px;
  background: rgba(11, 15, 23, 0.85);
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  color: var(--text);
}
.card .info {
  padding: 14px 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.card .info h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .info .sub {
  color: var(--text-muted);
  font-size: 12.5px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.card .info .sub b { color: var(--text-dim); font-weight: 600; }
.card .info .score {
  margin-top: 4px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  color: var(--amber);
  font-size: 16px;
  letter-spacing: 0.04em;
}

/* Постери */
.poster {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), border-color 0.25s;
  display: block;
}
.poster:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.poster .pthumb {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2030, #0e1320);
}
.poster .pthumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
  transition: transform 0.6s var(--ease), filter 0.3s;
}
.poster:hover .pthumb img { transform: scale(1.06); filter: saturate(1.1); }
.poster .pthumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 15, 23, 0.95) 100%);
}
.poster .pinfo {
  position: absolute; z-index: 2;
  inset: auto 12px 12px 12px;
}
.poster .pinfo h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}
.poster .pinfo .sub {
  margin-top: 3px;
  color: var(--text-dim);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.poster .ptype {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(11, 15, 23, 0.7);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--line-strong);
}
.poster .live-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(232, 90, 90, 0.95);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
}
.poster .live-badge .pulse {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.4s ease-out infinite;
}

/* Канали */
.ch-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.ch-card:hover { transform: translateY(-3px); background: var(--surface-hi); border-color: var(--line-strong); }
.ch-card .ch-bar { height: 4px; border-radius: 4px; background: var(--amber); }
.ch-card .ch-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ch-card .ch-name .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--crimson);
  margin-right: 8px;
  position: relative; top: -2px;
  box-shadow: 0 0 10px var(--crimson);
  animation: pulse-dot 1.6s ease-out infinite;
}
.ch-card .ch-desc {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.5;
}
.ch-card .ch-cat {
  color: var(--text-muted);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: auto;
}

/* ============================ DROPDOWN ============================ */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--surface-hi);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.65);
  z-index: 60;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-line) transparent;
}
.dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  text-align: left;
  font-size: 13.5px;
  border-radius: 8px;
  color: var(--text-dim);
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu button:hover { background: var(--surface); color: var(--text); }
.dropdown-menu button.is-active { color: var(--amber); background: var(--surface); font-weight: 600; }

/* ============================ WATCH ============================ */
.watch { padding: clamp(20px, 2.6vw, 36px) 0 clamp(40px, 5vw, 80px); }
.watch-main { max-width: 1080px; margin: 0 auto; }
.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-facade {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  display: grid; place-items: center;
  cursor: pointer;
  isolation: isolate;
  transition: filter 0.25s;
}
.player-facade::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
  z-index: 1;
}
.player-facade .big-play {
  position: relative;
  z-index: 2;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: rgba(11, 15, 23, 0.78);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: grid; place-items: center;
  color: var(--amber);
  transition: all 0.25s var(--ease);
}
.player-facade:hover .big-play {
  transform: scale(1.08);
  background: var(--amber);
  color: #1a1305;
  border-color: var(--amber);
  box-shadow: 0 0 0 8px rgba(245, 184, 64, 0.18);
}
.player-facade .hint {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(11, 15, 23, 0.6);
  padding: 8px 14px;
  border-radius: 100px;
  display: inline-flex; align-items: center; gap: 8px;
}

.watch-info { margin-top: 22px; }
.watch-info .crumbs {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.watch-info .crumbs .sep { color: var(--surface-line); }
.watch-info h1 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.watch-info .meta {
  margin-top: 12px;
  display: flex; flex-wrap: wrap; gap: 14px;
  color: var(--text-dim);
  font-size: 13.5px;
}
.watch-info .desc {
  margin-top: 18px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 720px;
}
.watch-actions {
  margin-top: 22px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.btn {
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  transition: all 0.18s var(--ease);
}
.btn:hover { background: var(--surface-hi); border-color: var(--line-strong); }
.btn.primary {
  background: var(--amber);
  color: #1a1305;
  border-color: var(--amber);
}
.btn.primary:hover { background: #ffc756; }

.watch-related {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.watch-related h2 {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 18px;
}

/* ============================ МОДАЛКА ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(7, 10, 17, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s;
  overflow-y: auto;
}
.modal-overlay.is-open { display: flex; opacity: 1; }
.modal {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  box-shadow: 0 32px 80px -10px rgba(0, 0, 0, 0.7);
  margin: auto;
}
.modal h2 { font-size: 22px; margin-bottom: 8px; }
.modal h2 em { font-style: normal; color: var(--amber); }
.modal .modal-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 22px;
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-hi);
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: all 0.15s;
}
.modal-close:hover { color: var(--text); background: var(--surface-line); }
.modal label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.modal input[type="tel"], .modal input[type="email"], .modal input[type="text"] {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s;
}
.modal input:focus { border-color: var(--amber); }
.modal .btn-primary {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  background: var(--amber);
  color: #1a1305;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: filter 0.15s;
}
.modal .btn-primary:hover { filter: brightness(1.08); }
.modal .or {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 16px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.modal .or::before, .modal .or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.modal .btn-google {
  width: 100%;
  padding: 13px;
  background: #fff;
  color: #1f1f1f;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14.5px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: filter 0.15s;
}
.modal .btn-google:hover { filter: brightness(0.96); }
.modal .terms {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.modal.pro h2 { font-size: 26px; }
.modal.pro .price-box {
  margin: 18px 0;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(245, 184, 64, 0.1), rgba(245, 184, 64, 0.02));
  border: 1px solid rgba(245, 184, 64, 0.32);
  border-radius: 14px;
}
.modal.pro .price-row {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 12px;
}
.modal.pro .price {
  font-family: 'Unbounded', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--amber);
}
.modal.pro .per { color: var(--text-dim); font-size: 14px; }
.modal.pro ul {
  margin: 0; padding: 0;
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.modal.pro ul li { display: flex; align-items: center; gap: 10px; }
.modal.pro ul li::before { content: '✓'; color: var(--amber); font-weight: 700; }

/* ============================ ПОШУК-СТОРІНКА ============================ */
.search-page { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 80px); }
.search-input-big {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.search-input-big:focus-within { border-color: var(--amber); }
.search-input-big input {
  flex: 1;
  background: none; border: 0; outline: 0;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: -0.015em;
  font-weight: 500;
}
.search-input-big input::placeholder { color: var(--text-muted); }
.search-input-big svg { color: var(--text-muted); }
.search-empty, .search-hint {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.search-empty h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-weight: 500;
}

/* ============================ ПІДВАЛ ============================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 36px 0 28px;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 48px;
}
.site-footer .container { display: flex; flex-direction: column; gap: 18px; }
.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-cols h4 {
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 12px;
}
.footer-cols a {
  display: block;
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.15s;
}
.footer-cols a:hover { color: var(--text); }
.footer-bot {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px;
}

/* ============================ АДАПТИВ ============================ */
@media (max-width: 1180px) {
  .btn-donate .lbl, .btn-login .lbl { display: none; }
  .btn-pro .lbl-long { display: none; }
}
@media (max-width: 1080px) {
  .nav { gap: 2px; }
  .nav a { padding: 8px 11px; font-size: 13.5px; }
}
@media (max-width: 920px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; --filter-h: 56px; }
  .nav, .header-actions { display: none; }
  .icon-btn { display: inline-flex; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .grid.posters { grid-template-columns: repeat(2, 1fr); }
  .grid.channels { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ch-card { padding: 14px 14px 12px; }
  .ch-card .ch-name { font-size: 15px; }
  .ch-card .ch-desc { font-size: 12.5px; }
  .ch-card.hide-on-mobile { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .filter-bar .container { padding: 0 16px; }
  .chip { padding: 8px 13px; font-size: 13px; }
  .top-search { padding: 12px 16px; }
  .top-search .ts-go { display: none; }
  .live-banner { aspect-ratio: 4 / 3; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card .info { padding: 10px 11px 12px; }
  .card .info h3 { font-size: 13.5px; }
  .card .info .sub { font-size: 11.5px; }
}

/* ============================ Мобільні таби ============================ */
.mobile-tabs {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}
.mobile-tabs nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 64px;
  padding: 0 8px;
}
.mobile-tabs a {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.mobile-tabs a.is-active { color: var(--amber); }
@media (max-width: 600px) {
  .mobile-tabs { display: block; }
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================================
   КОМПОНЕНТИ V3
   ========================================================================= */

/* — Стрічка каналів в один рядок (на головній і ТБ) — */
.ch-strip {
  display: flex;
  gap: 10px;
  padding: 4px 2px 14px;
  flex-wrap: nowrap;
}
.ch-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  color: var(--text);
  white-space: nowrap;
  transition: all 0.18s var(--ease);
}
.ch-chip:hover {
  background: var(--surface-hi);
  transform: translateY(-2px);
}
.ch-chip-bar {
  width: 4px;
  height: 18px;
  border-radius: 2px;
}
.ch-chip-name { font-weight: 600; }
.ch-chip-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(232, 90, 90, 0.18);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffb3b3;
}
.ch-chip-live .pulse {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--crimson);
  animation: pulse-dot 1.4s ease-out infinite;
}

@media (max-width: 600px) {
  .ch-chip { padding: 9px 14px; font-size: 12.5px; }
  .ch-chip-bar { height: 14px; }
}

/* — Партнерські ТВ-канали — */
.grid.tv-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.tv-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.tv-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}
.tv-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}
.tv-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 70%);
  z-index: 1;
}
.tv-logo {
  position: relative; z-index: 2;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 3vw, 26px);
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 10px;
  text-align: center;
}
.tv-card .badge {
  position: absolute;
  top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: rgba(232, 90, 90, 0.95);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 6px;
  text-transform: uppercase;
  z-index: 3;
}
.tv-card .badge .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.4s ease-out infinite;
}
.tv-card .info {
  padding: 14px 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  flex: 1;
}
.tv-card .info h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tv-card .info .sub {
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.4;
}
.tv-partner {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 600px) {
  .grid.tv-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tv-logo { font-size: 16px; }
}

/* — Sentinel для безкінечного завантаження — */
.load-sentinel {
  display: flex;
  justify-content: center;
  padding: 28px 0 12px;
}
.load-sentinel .spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
}
@keyframes spinner-rotate {
  to { transform: rotate(360deg); }
}

/* Мобільні таби — 5 пунктів */
.mobile-tabs nav { grid-template-columns: repeat(5, 1fr) !important; }
.mobile-tabs a { font-size: 10.5px; }
.mobile-tabs a span { font-size: 10px; }

/* =========================================================================
   КОМПОНЕНТИ V4 — квота, преролл, банери, юр. блоки
   ========================================================================= */

/* — Прогрес-бар квоти у хедері — */
.quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.quota-pill:hover { border-color: var(--line-strong); color: var(--text); }
.quota-pill .qp-icon { font-size: 13px; opacity: 0.8; }
.quota-pill .qp-track {
  width: 70px;
  height: 5px;
  border-radius: 100px;
  background: var(--surface-line);
  overflow: hidden;
  position: relative;
}
.quota-pill .qp-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--mint);
  border-radius: 100px;
  transition: width 0.6s var(--ease), background 0.3s;
}
.quota-pill.is-low .qp-fill { background: var(--amber); }
.quota-pill.is-empty .qp-fill { background: var(--crimson); }
.quota-pill.is-empty {
  background: rgba(232, 90, 90, 0.12);
  border-color: rgba(232, 90, 90, 0.32);
  color: #ffb3b3;
}
.quota-pill.is-premium {
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #1a1305;
  border-color: var(--amber);
}
.quota-pill.is-premium .qp-fill { background: rgba(0, 0, 0, 0.3); }
.quota-pill .qp-text { font-variant-numeric: tabular-nums; }

@media (max-width: 1180px) {
  .quota-pill .qp-track { width: 50px; }
}
@media (max-width: 860px) {
  .quota-pill {
    /* На мобілці компактний — лише іконка + смужка, без числа */
    padding: 6px 8px;
    gap: 6px;
  }
  .quota-pill .qp-track { width: 40px; height: 4px; }
  .quota-pill .qp-text { display: none; }
  .quota-pill.is-empty .qp-text,
  .quota-pill.is-low .qp-text { display: inline; font-size: 11px; }
  .quota-pill.is-premium .qp-text { display: inline; font-size: 11px; }
}
@media (max-width: 600px) {
  .quota-pill {
    /* Ще компактніше — лише іконка та смужка */
    padding: 5px 8px;
  }
  .quota-pill .qp-track { width: 32px; }
  .quota-pill .qp-icon { font-size: 11px; }
}

/* — Преролл-реклама в плеєрі — */
.preroll {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}
.preroll-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(245, 184, 64, 0.22), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(232, 90, 90, 0.22), transparent 50%),
    linear-gradient(135deg, #1a2030, #0e1320);
  z-index: 0;
}
.preroll-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(20px, 4vw, 40px);
  z-index: 1;
  gap: 14px;
}
.preroll-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dim);
}
.preroll-brand {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.04em;
  color: var(--amber);
  text-transform: uppercase;
  font-weight: 600;
}
.preroll-headline {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 680px;
  color: var(--text);
}
.preroll-sub {
  font-size: clamp(13px, 1.5vw, 16px);
  color: var(--text-dim);
  max-width: 560px;
}
.preroll-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px clamp(12px, 2vw, 22px);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.preroll-timer {
  font-size: 12.5px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.preroll-timer b { color: var(--amber); }
.preroll-skip {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  cursor: not-allowed;
  transition: all 0.18s;
}
.preroll-skip:not([disabled]) {
  cursor: pointer;
  background: var(--text);
  color: #0b0f17;
  border-color: var(--text);
}
.preroll-skip:not([disabled]):hover { transform: translateY(-1px); }
.preroll-pro {
  padding: 7px 14px;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  border-radius: 8px;
  color: #1a1305;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  transition: filter 0.15s;
}
.preroll-pro:hover { filter: brightness(1.08); }

/* — Lock-екран коли ліміт вичерпано — */
.quota-lock {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 17, 0.94);
  backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  z-index: 5;
  padding: 20px;
  text-align: center;
}
.quota-lock-inner {
  max-width: 480px;
}
.quota-lock-icon {
  font-size: 56px;
  margin-bottom: 14px;
  filter: grayscale(0.4);
}
.quota-lock h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.quota-lock p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 420px;
  margin: 0 auto;
}
.quota-lock-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
  flex-wrap: wrap;
}
.quota-lock-actions .btn { padding: 12px 22px; font-size: 14px; }
.quota-lock-reset {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* — Слот реклами — */
.ad-slot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  background: linear-gradient(135deg, rgba(245, 184, 64, 0.04), rgba(154, 134, 255, 0.04));
  margin: 0 auto;
}
.ad-stub { display: none; }
.ad-horizontal { width: 100%; max-width: 970px; aspect-ratio: 970 / 250; }
.ad-square { width: 300px; aspect-ratio: 1; }
.ad-vertical { width: 300px; aspect-ratio: 300 / 600; }
.ad-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}
.ad-tag {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dim);
}
.ad-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ad-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 500;
}
.ad-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Manrope', sans-serif;
}
.ad-close {
  position: absolute;
  top: 6px; right: 6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
}
.ad-close:hover { background: var(--amber); color: #1a1305; }
.ad-section { padding-top: 0; padding-bottom: 0; }
@media (max-width: 600px) {
  .ad-horizontal { aspect-ratio: 4 / 1; }
}

/* — Зірочка обраного на ТВ-картці — */
.tv-fav {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(11, 15, 23, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.18s;
  z-index: 4;
}
.tv-fav:hover { background: rgba(0, 0, 0, 0.85); color: var(--amber); }
.tv-fav.is-fav {
  background: var(--amber);
  color: #1a1305;
  border-color: var(--amber);
}

/* — Юридичний блок у футері — */
.footer-legal {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.7;
  max-width: 320px;
}
.footer-legal b {
  color: var(--text-dim);
  font-weight: 600;
}
.footer-legal a {
  color: var(--text-dim) !important;
  text-decoration: underline;
  display: inline !important;
  padding: 0 !important;
}
.footer-legal a:hover { color: var(--amber) !important; }

/* — Платіжна форма у модалці — */
.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.18s, background 0.18s;
}
.pay-method:hover { border-color: var(--line-strong); background: var(--surface-hi); }
.pay-method input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--amber);
}
.pay-method:has(input:checked) {
  border-color: var(--amber);
  background: rgba(245, 184, 64, 0.08);
}

/* — Юридичні сторінки (terms / privacy) — */
.legal-page {
  padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px);
  font-size: 15px;
  line-height: 1.7;
}
.legal-page h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.legal-page h2 {
  font-size: clamp(17px, 1.8vw, 20px);
  margin-top: 28px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--amber);
}
.legal-page p {
  color: var(--text-dim);
  max-width: 740px;
  margin-bottom: 12px;
}
.legal-page .legal-meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.legal-page a {
  color: var(--amber);
  text-decoration: underline;
}

/* — Помітна ліцензійна плашка перед футером (на кожній сторінці) — */
.license-bar {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(245, 184, 64, 0.04));
  padding: 18px 0;
  font-size: 12.5px;
  color: var(--text-dim);
}
.license-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.license-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.license-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.5;
}
.license-line { display: inline-block; }
.license-line b { color: var(--text); font-weight: 700; }
.license-line.license-meta {
  color: var(--text-muted);
  font-size: 11.5px;
}
.license-line a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.license-line a:hover { color: var(--amber); }

@media (max-width: 600px) {
  .license-bar { padding: 14px 0; }
  .license-inner { gap: 10px; align-items: flex-start; }
  .license-icon { font-size: 18px; margin-top: 2px; }
  .license-line { font-size: 11.5px; }
  .license-line.license-meta { font-size: 11px; }
}

/* — HLS-відеоплеєр (для регіональних телеканалів) — */
.player video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}
.player-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0b0f17;
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* — TV-картка зі справжнім логотипом (а не текстом) — */
.tv-thumb-logo {
  display: grid !important;
  place-items: center;
  padding: 10px;
}
.tv-thumb-logo img {
  max-width: 92%;
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}
@media (max-width: 600px) {
  .tv-thumb-logo { padding: 8px; }
  .tv-thumb-logo img { max-width: 94%; max-height: 94%; }
}

/* ================================================
   Особистий кабінет (profile.html)
   ================================================ */
.profile-page {
  padding: 40px 0 80px;
  min-height: 70vh;
}
.profile-page .container { max-width: 1080px; }

.profile-guest {
  text-align: center;
  padding: 80px 24px;
}
.profile-guest h1 { font-size: 32px; margin-bottom: 12px; }
.profile-guest .profile-hint { font-size: 16px; margin-bottom: 28px; max-width: 420px; margin-inline: auto; }

.profile-header {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 32px 0;
  border-bottom: 1px solid var(--surface-hi);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 700;
  color: #0b0f17;
  flex-shrink: 0;
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-headline { flex: 1; min-width: 0; }
.profile-headline h1 {
  font-size: 28px;
  margin: 0 0 6px;
  font-family: 'Unbounded', sans-serif;
}
.profile-meta { color: var(--text-muted); font-size: 14px; margin: 0; }
.profile-meta.is-premium { color: var(--amber); font-weight: 600; }
.profile-logout {
  align-self: flex-start;
  padding: 8px 16px !important;
  font-size: 13px !important;
}

.profile-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--surface-hi);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  font-family: inherit;
}
.profile-tab:hover { color: var(--text); }
.profile-tab.is-active { color: var(--amber); }
.profile-tab.is-active::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: -1px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px 2px 0 0;
}

.profile-section {
  animation: fade-in .25s ease;
}
.profile-section h2 {
  font-size: 20px;
  margin: 0 0 8px;
  font-family: 'Unbounded', sans-serif;
}
.profile-hint {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.profile-form {
  display: grid;
  gap: 16px;
  max-width: 640px;
}
.profile-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.profile-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.profile-form input,
.profile-form select {
  background: var(--surface);
  border: 1px solid var(--surface-hi);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s ease;
}
.profile-form input:focus,
.profile-form select:focus {
  outline: none;
  border-color: var(--amber);
}
.profile-form .form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.form-status {
  font-size: 13px;
  color: var(--text-muted);
}
.form-status.is-success { color: var(--mint); font-weight: 500; }

@media (max-width: 600px) {
  .profile-form .form-row { grid-template-columns: 1fr; }
  .profile-header { padding: 20px 0; gap: 16px; }
  .profile-avatar { width: 64px; height: 64px; font-size: 26px; }
  .profile-headline h1 { font-size: 22px; }
}

/* Підписка */
.sub-card {
  background: var(--surface);
  border: 1px solid var(--surface-hi);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
.sub-status { margin-bottom: 24px; }
.sub-status p { color: var(--text-muted); margin: 8px 0 0; }
.sub-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sub-badge-free { background: var(--surface-hi); color: var(--text-muted); }
.sub-badge-pro {
  background: linear-gradient(90deg, var(--amber), var(--amber-deep));
  color: #0b0f17;
}
.sub-pro-pitch {
  border-top: 1px solid var(--surface-hi);
  padding-top: 24px;
}
.sub-pro-pitch h3 {
  font-size: 22px;
  margin: 0 0 16px;
  font-family: 'Unbounded', sans-serif;
}
.sub-pro-pitch ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.sub-pro-pitch li {
  position: relative;
  padding: 6px 0 6px 26px;
  color: var(--text);
}
.sub-pro-pitch li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 700;
}

.sub-history h3 {
  font-size: 16px;
  margin: 0 0 12px;
}

/* Обрані канали */
.profile-favorites {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.profile-fav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--surface-hi);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease;
}
.profile-fav-item:hover { border-color: var(--amber); }
.profile-fav-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  overflow: hidden;
}
.profile-fav-logo img { max-width: 70%; max-height: 70%; object-fit: contain; }
.profile-fav-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profile-fav-info strong { font-size: 14px; }
.profile-fav-info span { font-size: 12px; color: var(--text-muted); }

/* Налаштування */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--surface-hi);
}
.settings-row:last-child { border-bottom: none; }
.settings-row strong { display: block; margin-bottom: 4px; }
.settings-row .profile-hint { margin: 0; font-size: 13px; }
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute;
  inset: 0;
  background: var(--surface-hi);
  border-radius: 26px;
  cursor: pointer;
  transition: background .2s ease;
}
.switch-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: var(--text);
  border-radius: 50%;
  transition: transform .2s ease;
}
.switch input:checked + .switch-slider { background: var(--amber); }
.switch input:checked + .switch-slider::before { transform: translateX(22px); background: #0b0f17; }

.btn-danger {
  background: var(--crimson);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}
.btn-danger:hover { filter: brightness(1.1); }

/* ================================================
   Сторінка реклами (ads.html)
   ================================================ */
.ads-page {
  padding: 40px 0 80px;
}
.ads-page .container { max-width: 980px; }
.ads-hero {
  text-align: center;
  padding: 32px 0 48px;
}
.ads-hero h1 {
  font-size: 38px;
  margin: 0 0 16px;
  font-family: 'Unbounded', sans-serif;
}
.ads-lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

.ads-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 0 0 56px;
}
.ads-stat-card {
  background: var(--surface);
  border: 1px solid var(--surface-hi);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
}
.ads-stat-card strong {
  display: block;
  font-size: 32px;
  font-family: 'Unbounded', sans-serif;
  color: var(--amber);
  margin-bottom: 4px;
}
.ads-stat-card span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.ads-formats h2,
.ads-process h2,
.ads-rules h2,
.ads-contact h2 {
  font-size: 24px;
  margin: 48px 0 20px;
  font-family: 'Unbounded', sans-serif;
}
.ads-format {
  background: var(--surface);
  border: 1px solid var(--surface-hi);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}
.ads-format h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.ads-format p { color: var(--text-muted); line-height: 1.6; margin: 0 0 12px; }
.ads-format ul { margin: 12px 0; padding-left: 22px; color: var(--text-muted); line-height: 1.7; }
.ads-format ul li { margin-bottom: 4px; }
.ads-price {
  margin-top: 16px !important;
  padding-top: 16px;
  border-top: 1px solid var(--surface-hi);
  color: var(--text) !important;
  font-size: 16px;
}
.ads-price b { color: var(--amber); font-size: 18px; }

.ads-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: grid;
  gap: 14px;
}
.ads-steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-hi);
  border-radius: 12px;
  padding: 20px 22px 20px 64px;
  counter-increment: step;
  line-height: 1.6;
}
.ads-steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  background: var(--amber);
  color: #0b0f17;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: 'Unbounded', sans-serif;
}

.ads-rules-list {
  background: var(--surface);
  border: 1px solid var(--surface-hi);
  border-radius: 12px;
  padding: 18px 22px 18px 42px;
  list-style: '✗  ';
  color: var(--text);
  line-height: 1.8;
}

.ads-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.ads-contact-grid > div {
  background: var(--surface);
  border: 1px solid var(--surface-hi);
  border-radius: 12px;
  padding: 18px 20px;
}
.ads-contact-grid strong {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.ads-contact-grid a {
  color: var(--amber);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.ads-contact-grid a:hover { text-decoration: underline; }
.ads-contact-grid span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

@media (max-width: 600px) {
  .ads-hero { padding: 16px 0 32px; }
  .ads-hero h1 { font-size: 26px; }
  .ads-lead { font-size: 15px; }
  .ads-format { padding: 18px; }
}

/* Радіо-бейдж замість LIVE */
.badge-radio {
  background: linear-gradient(90deg, #5cd4b5, #5ca8d4) !important;
  color: #0b0f17 !important;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 10px !important;
  border-radius: 6px !important;
}
.tv-card-radio .tv-thumb-logo {
  /* Радіо-картки трохи відрізняються — пульсуючий обідок */
  position: relative;
}
.tv-card-radio .tv-thumb-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(92, 212, 181, 0.25);
}

/* — Статус оплати в Pro модалці — */
.pay-status {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(232, 89, 89, 0.12);
  border: 1px solid rgba(232, 89, 89, 0.4);
  color: #ff9090;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}

