/* SnappyIPTV site: the app's design language on a phone. Light on black, one white focus, no decoration. */
:root {
  --bg: #000;
  --text: #f5f5f7;
  --muted: #a7a7ad;
  --faint: #808088;
  --tile: rgba(255, 255, 255, 0.12);
  --tile-strong: rgba(255, 255, 255, 0.16);
  --hairline: rgba(255, 255, 255, 0.18);
  --selection: #f2f2f2;
  --on-selection: #0a0a0a;
  --error: #ff453a;
  --r-s: 8px; --r-m: 12px; --r-l: 16px;
  --font: Inter, Heebo, system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[dir="rtl"] { --font: Heebo, Inter, system-ui, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.5 var(--font); font-feature-settings: "tnum"; min-height: 100dvh; display: flex; flex-direction: column; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.top { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--tile); position: relative; }
.mark::after { content: ""; position: absolute; left: 11px; top: 8px; border-left: 9px solid var(--text); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.wordmark { font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }
.lang { background: var(--tile); color: var(--text); border: 0; border-radius: var(--r-s); padding: 6px 12px; font: inherit; font-weight: 500; }
.main { flex: 1; display: flex; flex-direction: column; align-items: center; }
.card { width: 100%; max-width: 520px; }
.card.center { text-align: center; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.muted { color: var(--muted); }
p { margin: 0 0 20px; }
.field { display: block; margin: 0 0 16px; }
.field > span { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.field small { display: block; margin-top: 6px; font-size: 13px; }
input, select { width: 100%; height: 52px; padding: 0 16px; font: inherit; font-size: 17px; color: var(--text); background: var(--tile); border: 2px solid transparent; border-radius: var(--r-m); outline: 0; -webkit-appearance: none; appearance: none; }
input:focus, select:focus { background: var(--tile-strong); border-color: rgba(255, 255, 255, 0.8); }
#code { font-size: 32px; letter-spacing: 0.18em; text-align: center; text-transform: uppercase; height: 64px; font-weight: 500; }
button { font: inherit; font-weight: 500; border: 0; border-radius: var(--r-m); cursor: pointer; }
.primary { width: 100%; height: 52px; margin-top: 8px; background: var(--selection); color: var(--on-selection); }
.secondary { flex: 1; height: 48px; background: var(--tile); color: var(--text); }
.ghost { background: transparent; color: var(--muted); padding: 6px 10px; border-radius: var(--r-s); }
.ghost:hover, .ghost:focus-visible { background: var(--tile); color: var(--text); outline: 0; }
button:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.8); outline-offset: 2px; }
button:disabled { opacity: 0.5; cursor: default; }
.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; gap: 12px; }
.row.gap { gap: 12px; margin: 16px 0 8px; }
.chip { background: var(--tile); border-radius: var(--r-s); padding: 4px 10px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--tile); border-radius: var(--r-l); }
.item-main { min-width: 0; }
.item-name { font-weight: 500; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-meta { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }
html[dir="rtl"] .item-meta { text-align: right; }
.item-actions { display: flex; gap: 4px; flex-shrink: 0; }
.empty { padding: 20px 16px; border-radius: var(--r-l); background: rgba(255, 255, 255, 0.06); color: var(--faint); text-align: center; }
.error { color: var(--error); font-size: 14px; margin: -6px 0 14px; }
.tick { width: 56px; height: 56px; margin: 24px auto 20px; border-radius: 16px; background: var(--tile); position: relative; }
.tick::after { content: ""; position: absolute; left: 20px; top: 14px; width: 12px; height: 22px; border: solid var(--text); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.foot { font-size: 13px; text-align: center; padding: 24px 0 0; color: var(--faint); }
@media (min-width: 720px) { body { padding: 32px; } .top { padding-bottom: 40px; } h1 { font-size: 32px; } }
@media (prefers-reduced-motion: no-preference) { .card { animation: in 240ms ease-out; } @keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } } }
