/* =========================================================================
   ДИВО ТВ — стилі (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: 64px;
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  padding: 0 8px;
}
.mobile-tabs nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100%;
}
.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: 64px; }
}

/* =========================================================================
   КОМПОНЕНТИ 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; }
