:root {
  --bg: #0f172a;
  --bg-deep: #0b1220;
  --bg-soft: #142036;
  --surface: #1e293b;
  --surface-2: #243449;
  --surface-3: #2b3c55;
  --border: #334155;
  --border-soft: rgba(148, 163, 184, .16);
  --text: #e2e8f0;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --sky: #38bdf8;
  --sky-2: #0284c7;
  --sky-3: #0369a1;
  --emerald: #10b981;
  --red: #ef4444;
  --red-2: #dc2626;
  --amber: #f59e0b;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 20px 50px -20px rgba(2, 6, 23, .85);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 650px at 12% -10%, rgba(56, 189, 248, .13), transparent 60%),
    radial-gradient(900px 600px at 100% 8%, rgba(16, 185, 129, .07), transparent 55%),
    radial-gradient(1000px 700px at 50% 110%, rgba(2, 132, 199, .08), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--sky); text-decoration: none; }
svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
[hidden] { display: none !important; }

::selection { background: rgba(56, 189, 248, .35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #33415588; border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #475569; background-clip: content-box; }

.app { width: min(1440px, 100%); margin: 0 auto; padding: 0 clamp(14px, 3vw, 40px) 40px; }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 4px;
  margin-bottom: 6px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, .96) 55%, rgba(15, 23, 42, .72) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
}
.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, .22), 0 8px 22px -8px rgba(56, 189, 248, .7);
}
.brand__name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1;
  white-space: nowrap;
}
.brand__name span { color: var(--sky); }

.topbar__status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(30, 41, 59, .55);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .16);
  flex: none;
}
.topbar__status.is-online .status-dot { background: var(--emerald); box-shadow: 0 0 0 3px rgba(16, 185, 129, .16); }
.topbar__status.is-offline .status-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, .16); }
.topbar__status.is-online { color: #a7f3d0; border-color: rgba(16, 185, 129, .25); }
.topbar__status.is-offline { color: #fecaca; border-color: rgba(239, 68, 68, .28); }

.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.icon-btn span { display: none; }
.icon-btn:hover { background: rgba(51, 65, 85, .65); color: var(--text); }
.icon-btn:active { transform: scale(.96); }
.icon-btn.is-active { color: var(--sky); background: rgba(56, 189, 248, .12); border-color: rgba(56, 189, 248, .24); }
.icon-btn--plain { border-color: var(--border-soft); background: rgba(30, 41, 59, .45); }
.icon-btn--plain:hover { border-color: var(--border); }
.icon-btn--dark {
  background: rgba(15, 23, 42, .55);
  border-color: rgba(148, 163, 184, .18);
  color: var(--text-soft);
  min-width: 42px;
}
.icon-btn--dark:hover { background: rgba(30, 41, 59, .9); color: #fff; }
.icon-btn--dark.is-active { color: var(--sky); border-color: rgba(56, 189, 248, .4); }
.icon-btn--dark.is-fav { color: var(--amber); border-color: rgba(245, 158, 11, .45); }
.icon-btn--dark.is-fav svg { fill: var(--amber); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 28px;
  min-height: 328px;
  margin: 8px 0 30px;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(120deg, #16233a, #0f1a2d 60%, #102b40);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero__art { position: absolute; inset: 0; z-index: -3; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .32; filter: saturate(1.15) contrast(1.05); transform: scale(1.02); }
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 18, 32, .96) 0%, rgba(11, 18, 32, .8) 42%, rgba(11, 18, 32, .15) 100%),
    linear-gradient(0deg, rgba(11, 18, 32, .86), transparent 60%);
}
.hero__content { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, .35);
  background: rgba(239, 68, 68, .12);
  color: #fecaca;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .6);
  animation: pulse 1.9s infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); }
  65% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.hero h1 {
  max-width: 780px;
  margin: 0 0 10px;
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero p { max-width: 640px; margin: 0 0 22px; color: var(--muted); font-size: clamp(13px, 1.6vw, 16px); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted-2); font-size: 12px; font-weight: 600; }
.hero__stats strong { color: var(--text-soft); font-weight: 800; }

.hero__side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.hero-card {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 14px;
  background: rgba(11, 18, 32, .55);
  backdrop-filter: blur(12px);
  text-align: left;
  transition: background .18s, border-color .18s, transform .18s;
}
.hero-card:hover { background: rgba(30, 41, 59, .72); border-color: rgba(56, 189, 248, .35); transform: translateY(-2px); }
.hero-card__label { display: flex; align-items: center; gap: 7px; color: var(--sky); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-card__title { margin: 7px 0 4px; font-size: 14px; font-weight: 800; line-height: 1.3; color: #fff; }
.hero-card__meta { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.hero-card__time { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 4px 8px; border-radius: 7px; background: rgba(56, 189, 248, .1); color: var(--sky); font-size: 10.5px; font-weight: 800; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .15s, filter .15s, background .15s, border-color .15s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(135deg, var(--sky), var(--sky-2) 70%);
  color: #04121d;
  box-shadow: 0 10px 24px -10px rgba(56, 189, 248, .8);
}
.btn--primary:hover { filter: brightness(1.07); }
.btn--ghost { border-color: var(--border); background: rgba(30, 41, 59, .6); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--muted-2); }
.btn--soft { border-color: var(--border-soft); background: rgba(30, 41, 59, .5); color: var(--text-soft); }
.btn--soft:hover { background: var(--surface-2); }
.btn--danger { border-color: rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .12); color: #fecaca; }
.btn--danger:hover { background: rgba(239, 68, 68, .2); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--sky);
  font-size: 12px;
  font-weight: 700;
}
.link-btn:hover { text-decoration: underline; }

/* ── Toolbar / search ───────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.mode-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(30, 41, 59, .45);
}
.mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition: background .16s, color .16s, border-color .16s;
}
.mode-tab svg { width: 17px; height: 17px; }
.mode-tab:hover { color: var(--text); }
.mode-tab.is-active { background: linear-gradient(135deg, rgba(56, 189, 248, .2), rgba(2, 132, 199, .1)); color: #bae6fd; border-color: rgba(56, 189, 248, .28); }
.mode-tab__count {
  min-width: 19px;
  padding: 1px 5px;
  border-radius: 99px;
  background: rgba(239, 68, 68, .22);
  color: #fecaca;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 260px;
  max-width: 520px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(30, 41, 59, .5);
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.search:focus-within { border-color: rgba(56, 189, 248, .5); background: rgba(30, 41, 59, .8); box-shadow: 0 0 0 3px rgba(56, 189, 248, .1); }
.search > svg { color: var(--muted-2); width: 19px; height: 19px; }
.search input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-size: 14px;
}
.search input::placeholder { color: var(--muted-2); }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--muted); }
.search__clear svg { width: 14px; height: 14px; }
.toolbar__refresh { margin-left: auto; }
.toolbar__refresh svg { width: 17px; height: 17px; }
.toolbar__refresh.is-spinning svg { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Chips ───────────────────────────────────────────────── */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  margin: 0 -2px 6px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(30, 41, 59, .42);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.chip:hover { color: var(--text); border-color: var(--border); transform: translateY(-1px); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip__count { padding: 1px 5px; border-radius: 99px; background: rgba(148, 163, 184, .18); font-size: 10px; font-weight: 800; }
.chip.is-active .chip__count { background: rgba(15, 23, 42, .16); color: var(--bg); }
.chip--fav.is-active { background: linear-gradient(135deg, #fbbf24, #f59e0b); border-color: #f59e0b; color: #271803; }

/* ── Sections ────────────────────────────────────────────── */
.shelf { margin: 6px 0 26px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: clamp(18px, 2.4vw, 23px); letter-spacing: -.02em; }
.section-sub { margin: 5px 0 0; color: var(--muted-2); font-size: 12.5px; }
.section-tools { display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(30, 41, 59, .45);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.shelf__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 12px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.shelf__row .card { scroll-snap-align: start; }

/* ── Cards ───────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, .6), rgba(20, 32, 54, .5));
  overflow: hidden;
  cursor: pointer;
  outline: 0;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: rgba(56, 189, 248, .38); box-shadow: 0 18px 32px -22px rgba(2, 6, 23, .95), 0 0 0 1px rgba(56, 189, 248, .1); }
.card:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.card__art {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(120% 120% at 30% 0%, rgba(56, 189, 248, .12), transparent 60%),
    linear-gradient(150deg, #243449, #16233a);
  overflow: hidden;
}
.card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 18, 32, .48), transparent 55%);
  pointer-events: none;
}
.card__logo {
  position: relative;
  z-index: 1;
  max-width: 82%;
  max-height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(2, 6, 23, .55));
  transition: transform .25s;
}
.card:hover .card__logo { transform: scale(1.06); }
.card__logo.is-broken { display: none; }
.card__fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: #dbeafe;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.04em;
  background:
    radial-gradient(80% 80% at 20% 10%, rgba(56, 189, 248, .28), transparent 60%),
    linear-gradient(140deg, #1e3a5f, #0f2a3d);
}
.card__logo.is-broken + .card__fallback { display: grid; }
.card__badges { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 44px); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, .2);
  background: rgba(11, 18, 32, .7);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.badge--live { border-color: rgba(239, 68, 68, .4); background: rgba(127, 29, 29, .72); color: #fecaca; }
.badge--live .live-dot { width: 5px; height: 5px; }
.badge--drm { border-color: rgba(245, 158, 11, .3); background: rgba(120, 53, 15, .55); color: #fde68a; }
.badge--event { border-color: rgba(56, 189, 248, .35); background: rgba(3, 105, 161, .55); color: #bae6fd; }
.card__live {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(127, 29, 29, .8);
  color: #fecaca;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}
.card.is-live .card__live { display: inline-flex; }
.card__fav {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 9px;
  background: rgba(11, 18, 32, .65);
  color: #cbd5e1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s, transform .16s, color .16s, background .16s;
  backdrop-filter: blur(6px);
}
.card__fav svg { width: 16px; height: 16px; }
.card:hover .card__fav, .card:focus-within .card__fav, .card__fav.is-fav { opacity: 1; transform: none; }
.card__fav:hover { background: rgba(245, 158, 11, .18); border-color: rgba(245, 158, 11, .4); color: var(--amber); }
.card__fav.is-fav { color: var(--amber); background: rgba(245, 158, 11, .16); border-color: rgba(245, 158, 11, .36); }
.card__fav.is-fav svg { fill: var(--amber); }
.card__play {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(56, 189, 248, .92);
  color: #04121d;
  box-shadow: 0 10px 26px -10px rgba(56, 189, 248, .9);
  opacity: 0;
  transform: scale(.82);
  transition: opacity .18s, transform .18s;
}
.card__play svg { width: 22px; height: 22px; margin-left: 2px; }
.card:hover .card__play { opacity: 1; transform: none; }
.card__play:hover { filter: brightness(1.08); }
.card__body { padding: 10px 11px 11px; min-width: 0; }
.card__name {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__meta {
  margin: 0;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__meta .dot { margin: 0 4px; opacity: .6; }
.card__event {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(148, 163, 184, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--sky);
  font-size: 10px;
  font-weight: 700;
}
.card__event span:last-child { color: var(--muted); font-weight: 600; }

.card--skeleton { pointer-events: none; }
.card--skeleton .card__art { background: linear-gradient(100deg, #1e293b 30%, #26364d 50%, #1e293b 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.card--skeleton .card__body { height: 55px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Empty ───────────────────────────────────────────────── */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(30, 41, 59, .22);
  text-align: center;
}
.empty__icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 14px; border-radius: 18px; background: rgba(56, 189, 248, .1); color: var(--sky); }
.empty__icon svg { width: 28px; height: 28px; }
.empty h3 { margin: 0 0 6px; font-size: 17px; }
.empty p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }

/* ── Info strip ──────────────────────────────────────────── */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 10px;
}
.info-strip__item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(30, 41, 59, .28);
}
.info-strip__item svg { width: 21px; height: 21px; margin-top: 2px; color: var(--sky); }
.info-strip__item strong { display: block; margin-bottom: 3px; font-size: 12.5px; }
.info-strip__item span { display: block; color: var(--muted-2); font-size: 11.5px; line-height: 1.5; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.footer__brand { display: flex; align-items: center; gap: 11px; }
.footer__brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.footer__brand strong { font-size: 13px; }
.footer__brand strong span { color: var(--sky); }
.footer__brand p { margin: 2px 0 0; color: var(--muted-2); font-size: 11px; }
.footer__links { display: flex; align-items: center; gap: 16px; margin-left: auto; flex-wrap: wrap; }
.footer__links .link-btn { color: var(--muted); }
.footer__links .link-btn:hover { color: var(--sky); }
.footer__note { width: 100%; margin: 4px 0 0; color: var(--muted-2); font-size: 10.5px; line-height: 1.5; }

/* ── Player ──────────────────────────────────────────────── */
.player {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  overflow: hidden;
  touch-action: none;
}
.player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  outline: 0;
}
.player video.fit-cover { object-fit: cover; }
.player video.fit-fill { object-fit: fill; }
.player__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .72), transparent 22%),
    linear-gradient(to top, rgba(0, 0, 0, .88), transparent 32%);
  opacity: 1;
  transition: opacity .3s;
}
.player.is-idle { cursor: none; }
.player.is-idle .player__vignette { opacity: 0; }
.player.is-idle .player__top,
.player.is-idle .player__bottom,
.player.is-idle .player__center { opacity: 0; pointer-events: none; }

.player__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) clamp(12px, 2.6vw, 30px) 18px;
  transition: opacity .3s;
}
.player__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 50%;
  background: rgba(15, 23, 42, .65);
  color: #fff;
  backdrop-filter: blur(8px);
  flex: none;
}
.player__close:hover { background: rgba(51, 65, 85, .9); }
.player__identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.player__identity img { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: rgba(30, 41, 59, .65); padding: 4px; flex: none; }
.player__identity > div { min-width: 0; }
.player__identity h3 { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__identity p { margin: 3px 0 0; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__badges { display: flex; gap: 5px; }
.player__top-actions { display: flex; gap: 6px; margin-left: auto; }
.player__top-actions .icon-btn { min-width: 42px; }

.player__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity .3s;
}
.player__bigplay {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(15, 23, 42, .55);
  color: #fff;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .2s, transform .2s, background .2s;
  pointer-events: none;
}
.player.is-paused .player__bigplay { opacity: 1; transform: none; pointer-events: auto; }
.player__bigplay:hover { background: rgba(56, 189, 248, .3); }
.player__bigplay svg { width: 38px; height: 38px; margin-left: 3px; }
.player.is-paused .player__bigplay svg.play-pause-icon { margin-left: 0; }

.player__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(2, 6, 23, .55);
  backdrop-filter: blur(2px);
  text-align: center;
  padding: 20px;
}
.player__loading p { margin: 0; font-size: 14px; font-weight: 700; }
.player__loading span { color: var(--muted); font-size: 11.5px; max-width: 560px; line-height: 1.5; }
.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(148, 163, 184, .2);
  border-top-color: var(--sky);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.player__error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 32px));
  padding: 26px;
  border: 1px solid rgba(239, 68, 68, .28);
  border-radius: 18px;
  background: rgba(11, 18, 32, .88);
  backdrop-filter: blur(16px);
  text-align: center;
  box-shadow: 0 30px 70px -30px #000;
  z-index: 5;
}
.player__error-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; background: rgba(239, 68, 68, .14); color: #fca5a5; }
.player__error-icon svg { width: 26px; height: 26px; }
.player__error h3 { margin: 0 0 6px; font-size: 18px; }
.player__error > p { margin: 0 0 18px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.player__error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.player__error-actions .btn { min-height: 40px; padding: 8px 14px; font-size: 12.5px; }
.player__error-hint { margin: 16px 0 0 !important; padding-top: 12px; border-top: 1px solid rgba(148, 163, 184, .12); color: var(--muted-2) !important; font-size: 10.5px !important; text-align: left; white-space: pre-line; }

.player__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px clamp(12px, 2.6vw, 30px) max(16px, env(safe-area-inset-bottom));
  transition: opacity .3s;
}
.player__bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; min-height: 28px; }
.player__bar-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(127, 29, 29, .55);
  border: 1px solid rgba(239, 68, 68, .3);
  color: #fecaca;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .1em;
}
.player__bar-live .live-dot { width: 6px; height: 6px; }
.volume { display: flex; align-items: center; gap: 4px; }
.volume input[type="range"] { width: 92px; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 99px;
  background: rgba(148, 163, 184, .3);
  outline: 0;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.player__time { color: var(--muted); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.player__bar-spacer { flex: 1; }
.player__hint { color: rgba(148, 163, 184, .55); font-size: 10px; font-weight: 600; white-space: nowrap; }

.player__controls { display: flex; align-items: center; gap: 8px; }
.player__controls-left, .player__controls-right { display: flex; align-items: center; gap: 6px; }
.player__controls-right { margin-left: auto; }
.player__play { color: #fff; background: rgba(56, 189, 248, .22); border-color: rgba(56, 189, 248, .35); }
.player__play:hover { background: rgba(56, 189, 248, .34); }
#pAspect { min-width: 48px; font-size: 11px; font-weight: 800; }
.player__toast {
  position: absolute;
  left: 50%;
  bottom: 126px;
  transform: translateX(-50%);
  padding: 9px 14px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 10px;
  background: rgba(11, 18, 32, .88);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 6;
}

/* ── Modal ───────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .74); backdrop-filter: blur(5px); }
.modal__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, #1b283e, #111b2e);
  box-shadow: 0 40px 90px -30px #000;
  overflow: hidden;
  animation: modal-in .22s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.modal__head h2 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.modal__body { padding: 18px; overflow-y: auto; overscroll-behavior: contain; }
.modal__body h3 { margin: 20px 0 4px; font-size: 13px; color: var(--text-soft); }
.modal__body h3:first-child { margin-top: 0; }
.modal__body p { color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.modal__body p:first-child { margin-top: 0; }
.modal__body ul { margin: 8px 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.modal__body strong { color: var(--text); }
.modal__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(148, 163, 184, .1); }
.modal__row:last-child { border-bottom: 0; }
.modal__row-label { font-size: 12.5px; font-weight: 700; }
.modal__row-label small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 10.5px; font-weight: 500; line-height: 1.45; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.modal__actions .btn { flex: 1 1 auto; }
.modal__note {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, .16);
  background: rgba(56, 189, 248, .06);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.modal__note--warn { border-color: rgba(245, 158, 11, .22); background: rgba(245, 158, 11, .07); }
.modal__note--danger { border-color: rgba(239, 68, 68, .24); background: rgba(239, 68, 68, .07); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.field input[type="text"], .field input[type="url"], .field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(15, 23, 42, .6);
  color: var(--text);
  font-size: 13px;
  outline: 0;
}
.field input:focus, .field select:focus { border-color: rgba(56, 189, 248, .55); box-shadow: 0 0 0 3px rgba(56, 189, 248, .1); }
.field small { display: block; margin-top: 6px; color: var(--muted-2); font-size: 10.5px; line-height: 1.5; }
.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(30, 41, 59, .3);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.file-drop:hover { border-color: rgba(56, 189, 248, .45); background: rgba(56, 189, 248, .05); }
.file-drop svg { width: 24px; height: 24px; color: var(--sky); }
.file-drop strong { color: var(--text-soft); font-size: 12.5px; }
.source-list { display: flex; flex-direction: column; gap: 8px; }
.source-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: rgba(30, 41, 59, .35);
  text-align: left;
  transition: border-color .15s, background .15s;
}
.source-option:hover { border-color: rgba(56, 189, 248, .4); background: rgba(56, 189, 248, .06); }
.source-option.is-active { border-color: rgba(56, 189, 248, .55); background: rgba(56, 189, 248, .1); }
.source-option__badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(15, 23, 42, .65);
  color: var(--sky);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .02em;
  flex: none;
}
.source-option__body { flex: 1; min-width: 0; }
.source-option__title { display: block; font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-option__meta { display: block; margin-top: 3px; color: var(--muted-2); font-size: 10.5px; }
.source-option__check { color: var(--sky); font-size: 16px; font-weight: 900; }
.detail-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.detail-head img { width: 76px; height: 76px; padding: 8px; border-radius: 14px; object-fit: contain; background: rgba(15, 23, 42, .55); border: 1px solid var(--border-soft); flex: none; }
.detail-head h3 { margin: 0 0 4px; font-size: 19px; }
.detail-head p { margin: 0; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 4px 10px; font-size: 11.5px; line-height: 1.5; }
.kv dt { color: var(--muted-2); font-weight: 700; }
.kv dd { margin: 0; color: var(--text-soft); word-break: break-word; }
.donate-qr { width: min(240px, 74%); margin: 4px auto 14px; border-radius: 14px; border: 6px solid #fff; background: #fff; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ── Toasts ──────────────────────────────────────────────── */
.toasts {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(17, 27, 46, .96);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 16px 36px -16px #000;
  animation: toast-in .22s ease-out;
  backdrop-filter: blur(10px);
}
.toast.is-out { animation: toast-out .2s ease-in forwards; }
.toast__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); flex: none; }
.toast--ok .toast__dot { background: var(--emerald); }
.toast--warn .toast__dot { background: var(--amber); }
.toast--error .toast__dot { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

.noscript { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; padding: 30px; background: var(--bg); text-align: center; }

/* ── Responsive ──────────────────────────────────────────── */
@media (min-width: 720px) {
  .icon-btn span { display: inline; }
  .topbar__actions .icon-btn { padding-inline: 12px; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 300px; }
  .hero__side { display: none; }
  .hero__shade { background: linear-gradient(90deg, rgba(11, 18, 32, .95), rgba(11, 18, 32, .55)), linear-gradient(0deg, rgba(11, 18, 32, .9), transparent 70%); }
  .info-strip { grid-template-columns: 1fr; }
}
@media (max-width: 740px) {
  .app { padding-inline: 12px; }
  .topbar { gap: 10px; padding-block: 10px; }
  .brand__logo { width: 38px; height: 38px; border-radius: 11px; }
  .brand__name { font-size: 18px; }
  .topbar__status { padding: 6px 9px; font-size: 10.5px; }
  .topbar__status #serverStatusText { max-width: 82px; overflow: hidden; text-overflow: ellipsis; }
  .topbar__actions { gap: 2px; }
  .topbar__actions .icon-btn { min-width: 38px; padding: 8px; }
  .topbar__actions .icon-btn svg { width: 19px; height: 19px; }
  .hero { padding: 24px 18px; border-radius: 18px; margin-bottom: 22px; }
  .hero h1 { font-size: 30px; }
  .hero__stats { display: none; }
  .toolbar { gap: 8px; }
  .mode-tabs { width: 100%; }
  .mode-tab { flex: 1; justify-content: center; padding-inline: 8px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .toolbar__refresh { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .card__art { padding: 13px; }
  .card__name { font-size: 12.5px; }
  .card__fav { opacity: 1; transform: none; width: 28px; height: 28px; }
  .card__play { display: none; }
  .shelf__row { grid-auto-columns: minmax(154px, 172px); }
  .section-head { align-items: center; }
  .section-sub { display: none; }
  .footer { gap: 10px; }
  .footer__links { margin-left: 0; width: 100%; }
  .player__top { gap: 8px; padding-inline: 10px; }
  .player__close { width: 38px; height: 38px; }
  .player__identity img { display: none; }
  .player__identity h3 { font-size: 13px; max-width: 42vw; }
  .player__identity p { max-width: 42vw; }
  .player__badges .badge:not(.badge--live) { display: none; }
  .player__top-actions .icon-btn { min-width: 38px; min-height: 38px; padding: 7px; }
  .player__hint { display: none; }
  .volume input[type="range"] { width: 62px; }
  .player__controls { gap: 2px; }
  .player__controls-left, .player__controls-right { gap: 2px; }
  .player__controls .icon-btn { min-width: 40px; min-height: 40px; }
  #pAspect { display: none; }
  .player__bar-live { display: none; }
  .player__toast { bottom: 118px; }
  .modal { padding: 0; align-items: end; }
  .modal__panel { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; border-bottom: 0; animation: sheet-in .24s ease-out; }
  @keyframes sheet-in { from { transform: translateY(30px); opacity: .6; } }
  .modal__body { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .toasts { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
  .toast { max-width: none; }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar__status { display: none; }
  .brand__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body.is-modal-open { overflow: hidden; }
.hero h1 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
code {
  padding: 1px 5px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 5px;
  background: rgba(15, 23, 42, .5);
  color: #bae6fd;
  font-size: .92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--sky);
  cursor: pointer;
  flex: none;
}
.player__top { z-index: 3; }
.player__bottom { z-index: 3; }
.player__center { z-index: 2; }
.player__loading { z-index: 4; }
.player__error { z-index: 5; }
a.btn { text-decoration: none; }

/* ── Ad slots ────────────────────────────────────────────── */
.ad-slot {
  position: relative;
  display: block;
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  margin: 4px auto 26px;
  padding: 18px 10px 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(20, 27, 38, .35);
  overflow: hidden;
}
.ad-slot--bottom { margin: 30px auto 4px; }
.ad-slot__label {
  position: absolute;
  top: 6px;
  left: 12px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  pointer-events: none;
}
.ad-slot .adsbygoogle { display: block; width: 100%; min-height: 62px; }

/* ── Telegram join popup ────────────────────────────────── */
body.is-tg-open { overflow: hidden; }
.tg-pop {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 20px;
}
.tg-pop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 11, .8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.tg-pop__panel {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: 30px 24px 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(42, 171, 238, .14), transparent 58%),
    linear-gradient(180deg, #182333, #0c1119);
  box-shadow: 0 46px 110px -32px #000, inset 0 1px 0 rgba(255, 255, 255, .04);
  text-align: center;
  animation: tg-pop-in .24s ease-out;
}
@keyframes tg-pop-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.tg-pop__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  transition: background .16s, color .16s;
}
.tg-pop__close:hover { background: rgba(148, 163, 184, .12); color: var(--text); }
.tg-pop__close svg { width: 18px; height: 18px; }
.tg-pop__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 21px;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  color: #fff;
  box-shadow: 0 18px 34px -16px rgba(42, 171, 238, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.tg-pop__icon svg { width: 34px; height: 34px; }
.tg-pop__eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tg-pop__panel h2 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.03em; }
.tg-pop__panel p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.tg-pop__join {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  padding: 11px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 30px -18px rgba(42, 171, 238, .95);
  transition: filter .16s, transform .16s;
}
.tg-pop__join:hover { filter: brightness(1.08); }
.tg-pop__join:active { transform: scale(.98); }
.tg-pop__join svg { width: 20px; height: 20px; }
.tg-pop__later {
  margin-top: 8px;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.tg-pop__later:hover { color: var(--text); }

@media (max-width: 740px) {
  .ad-slot { margin-bottom: 20px; padding: 18px 6px 6px; border-radius: 12px; }
  .ad-slot--bottom { margin-top: 24px; }
  .tg-pop { padding: 14px; }
  .tg-pop__panel { padding: 26px 18px 16px; border-radius: 20px; }
  .tg-pop__panel h2 { font-size: 19px; }
}
