:root {
  --bg: #00050a;
  --bg2: #050a15;
  --surface: rgba(8, 16, 32, 0.92);
  --surface2: rgba(12, 24, 48, 0.88);
  --text: #f0f6ff;
  --muted: #8ba3c7;
  --accent: #00e5ff;
  --accent2: #007bff;
  --accent-soft: rgba(0, 229, 255, 0.12);
  --ok: #00e5a0;
  --warn: #ffb020;
  --danger: #ff5c7a;
  --border: rgba(0, 180, 255, 0.18);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --glow: 0 0 28px rgba(0, 229, 255, 0.28);
  --radius: 16px;
  --radius-lg: 22px;
  --font: "Sora", system-ui, sans-serif;
  --header-h: 64px;
  --bottom-h: 0px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
}
html { overflow-x: clip; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 123, 255, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(0, 229, 255, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  color: var(--text);
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom));
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }
.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(0, 5, 10, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.brand-short { display: none; color: var(--accent); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand em { font-style: normal; color: var(--accent); }
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.is-active {
  color: var(--text);
  background: var(--accent-soft);
}
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bal {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 10px 6px 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 0;
  max-width: 220px;
}
.bal b { color: var(--ok); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  font-weight: 700;
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
}
.btn-primary {
  color: #041018;
  background: linear-gradient(135deg, #00f2ff 0%, #007bff 100%);
  box-shadow: var(--glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-sm { padding: 0.45rem 0.75rem; font-size: 0.78rem; min-height: 38px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer;
}
.search-btn { display: none; }

.hero {
  position: relative;
  margin: 18px auto 8px;
  border-radius: 28px;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero img { width: 100%; height: 420px; object-fit: cover; }
.hero-copy {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,5,10,.88) 0%, rgba(0,5,10,.35) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 36px;
  gap: 10px;
}
.kicker {
  display: inline-flex; width: fit-content; gap: 8px; align-items: center;
  border: 1px solid var(--border); background: rgba(0,0,0,.35);
  border-radius: 999px; padding: 6px 10px; font-size: 0.72rem; color: var(--muted); font-weight: 700;
}
.kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.03em; max-width: 14ch; }
.hero p { margin: 0; color: var(--muted); max-width: 42ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.cat {
  position: relative; overflow: hidden; border-radius: 18px; min-height: 140px;
  border: 1px solid var(--border); color: #fff;
}
.cat img { width: 100%; height: 140px; object-fit: cover; }
.cat span {
  position: absolute; left: 12px; bottom: 12px; font-weight: 800; letter-spacing: 0.04em;
  text-shadow: 0 8px 24px #000;
}
.cat:hover { outline: 1px solid var(--accent); }

.section { margin: 28px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 1.15rem; }
.section-head p, .hint { margin: 0; color: var(--muted); font-size: 0.84rem; }

.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.card-body { padding: 10px 12px 12px; }
.card-body strong { display: block; font-size: 0.86rem; }
.meta { color: var(--muted); font-size: 0.72rem; margin-top: 4px; display: flex; justify-content: space-between; }
.badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.55); border: 1px solid var(--border);
  color: var(--accent); font-size: 0.65rem; font-weight: 800;
  padding: 4px 7px; border-radius: 999px; letter-spacing: .06em;
}
.thumb { position: relative; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 0.78rem; cursor: pointer;
}
.chip.is-on, .chip:hover { color: var(--text); background: var(--accent-soft); border-color: transparent; }

.match, .event, .prov, .promo, .vip-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px;
}
.matches, .events, .provs, .promos { display: grid; gap: 10px; }
.match { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; align-items: center; }
.match-teams { font-weight: 800; }
.match-liga { color: var(--muted); font-size: 0.75rem; margin-top: 4px; }
.odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.odds-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.odd {
  border: 1px solid var(--border); background: rgba(0,0,0,.25); color: var(--text);
  border-radius: 12px; padding: 8px 6px; cursor: pointer; text-align: center;
}
.odd small { display: block; color: var(--muted); font-size: 0.65rem; }
.odd b { color: var(--accent); }
.odd:hover, .odd.is-on { border-color: var(--accent); background: var(--accent-soft); }

.live-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.live-tile { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--border); min-height: 180px; cursor: pointer; }
.live-tile img { width: 100%; height: 180px; object-fit: cover; }
.live-tile .onair {
  position: absolute; top: 10px; left: 10px; background: #ff2d55; color: #fff;
  font-size: 0.65rem; font-weight: 800; padding: 4px 7px; border-radius: 999px;
}
.live-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px;
  background: linear-gradient(transparent, #000); font-weight: 800;
}

.provs { grid-template-columns: repeat(4, 1fr); display: grid; }
.prov { text-align: center; min-height: 120px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.prov .mark {
  width: 48px; height: 48px; margin: 0 auto 4px; border-radius: 14px;
  display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, #00f2ff, #007bff); color: #041018;
}
.prov small { color: var(--muted); }

.promos { grid-template-columns: repeat(3, 1fr); display: grid; }
.promo h3 { margin: 0 0 6px; }
.promo p { margin: 0; color: var(--muted); font-size: 0.84rem; }

.vip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vip-card h3 { margin: 0 0 8px; color: var(--accent); }
.vip-card ul { margin: 0; padding-left: 16px; color: var(--muted); font-size: 0.84rem; }

.page-hero { padding: 22px 0 8px; }
.page-hero h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cover {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--border); margin: 8px 0 18px;
}
.cover img { width: 100%; height: 240px; object-fit: cover; }

.site-footer {
  margin-top: 48px; border-top: 1px solid var(--border); padding: 28px 0 40px;
  color: var(--muted); font-size: 0.82rem;
}
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 18px; }
.foot strong { color: var(--text); display: block; margin-bottom: 8px; }
.foot a { display: block; color: var(--muted); padding: 3px 0; }
.foot a:hover { color: var(--text); }
.legal { margin-top: 18px; font-size: 0.72rem; opacity: .8; }

.modal {
  position: fixed; inset: 0; z-index: 80; display: none; place-items: center;
  background: rgba(0,0,0,.62);
}
.modal.open { display: grid; }
.sheet {
  width: min(520px, calc(100% - 24px));
  background: #07101d; border: 1px solid var(--border); border-radius: 22px;
  padding: 18px; box-shadow: var(--shadow);
}
.sheet h3 { margin: 0 0 8px; }
.field { display: grid; gap: 6px; margin: 10px 0; font-size: 0.8rem; color: var(--muted); }
.field input {
  background: #050a15; border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 10px 12px;
}
.reels { display: flex; justify-content: center; gap: 8px; margin: 16px 0; font-size: 2.4rem; }
.reel {
  width: 72px; height: 72px; border-radius: 16px;
  border: 1px solid var(--border); display: grid; place-items: center;
  background: #050a15;
}
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #07101d; border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: 12px; z-index: 90; display: none;
}
.search-overlay {
  position: fixed; inset: 0; z-index: 70; display: none; background: rgba(0,5,10,.92);
  padding: 80px 16px 24px;
}
.search-overlay.open { display: block; }
.search-overlay input {
  width: min(720px, 100%); display: block; margin: 0 auto 16px;
  background: #07101d; border: 1px solid var(--accent); color: var(--text);
  border-radius: 14px; padding: 14px 16px; font-size: 1rem;
}
.search-hits { width: min(720px, 100%); margin: 0 auto; display: grid; gap: 8px; }
.hit {
  display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer;
}
.hit img { width: 40px; height: 54px; object-fit: cover; border-radius: 8px; }

.sheet-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.sheet-actions .btn { flex: 1; min-width: 0; }

.bottom-nav { display: none; }
.menu-toggle { display: none; }
.drawer { display: none; }

.slip {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; width: min(320px, calc(100% - 24px));
  background: #07101d; border: 1px solid var(--border); border-radius: 18px; padding: 12px;
  box-shadow: var(--shadow); display: none;
  max-height: min(52vh, 420px); overflow: auto;
}
.slip.open { display: block; }
.slip-line {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  margin: 8px 0; color: var(--muted); font-size: 0.8rem;
}
.slip-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 980px) {
  :root { --header-h: 54px; --bottom-h: 84px; }
  .wrap { width: min(1180px, calc(100% - 20px)); }
  .nav { gap: 8px; }
  .nav-links { display: none; }
  .menu-toggle { display: none !important; }
  .search-btn { display: inline-flex; }
  .desk-only { display: none !important; }
  .brand { flex: 1; letter-spacing: 0.04em; font-size: 0.78rem; }
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .brand img { width: 28px; height: 28px; border-radius: 7px; }
  .icon-btn { width: 34px; height: 34px; flex-shrink: 0; }
  .bal { padding: 4px 8px 4px 4px; font-size: 0.7rem; max-width: 46vw; }
  .bal img { width: 18px; height: 18px; }
  .bal span { display: none; }
  .bal b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { min-height: 0; margin: 12px auto 8px; border-radius: 16px; }
  .hero img { height: 220px; min-height: 0; }
  .hero-copy {
    padding: 14px;
    gap: 6px;
    background: linear-gradient(180deg, transparent 12%, rgba(0, 5, 10, 0.92) 100%);
  }
  .hero h1 { font-size: 1.38rem; max-width: 16ch; }
  .hero p {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1; min-width: 0; padding: 0.55rem 0.5rem; font-size: 0.74rem; }
  .hero-actions .btn-soft { display: none; }
  .kicker { font-size: 0.64rem; padding: 4px 8px; }
  .cats { grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
  .cat { min-height: 0; border-radius: 14px; }
  .cat img { height: 96px; }
  .cat span { font-size: 0.78rem; left: 10px; bottom: 8px; }
  .section { margin: 18px 0 6px; }
  .section-head { margin-bottom: 10px; align-items: center; }
  .section-head h2 { font-size: 1rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card { border-radius: 14px; }
  .card:hover { transform: none; }
  .card-body { padding: 8px; }
  .card-body strong {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .meta { font-size: 0.62rem; gap: 6px; }
  .meta span:last-child { display: none; }
  .live-row, .provs, .promos, .vip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .live-tile { min-height: 0; border-radius: 14px; }
  .live-tile img { height: 118px; }
  .live-tile figcaption { font-size: 0.78rem; padding: 10px; }
  .match, .event, .prov, .promo, .vip-card { padding: 10px; border-radius: 14px; }
  .match { grid-template-columns: 1fr; }
  .match-teams, .event h3 {
    font-size: 0.84rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .odd { padding: 7px 4px; min-width: 0; }
  .odd small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -10px 12px;
    padding: 0 10px 6px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; padding: 6px 10px; font-size: 0.72rem; }
  .cover { border-radius: 14px; margin: 6px 0 12px; }
  .cover img { height: 132px; }
  .page-hero { padding: 12px 0 4px; }
  .page-hero h1 { font-size: 1.28rem; }
  .page-hero .hint { font-size: 0.78rem; }
  .foot { grid-template-columns: 1fr 1fr; gap: 12px; }
  .site-footer { margin-top: 28px; padding: 18px 0 20px; }
  .prov { min-height: 96px; }
  .prov .mark { width: 40px; height: 40px; border-radius: 12px; }
  .sheet {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 14px;
    border-radius: 16px;
  }
  .sheet-actions { flex-direction: column; }
  .sheet-actions .btn { width: 100%; }
  .reels { gap: 6px; font-size: 1.7rem; }
  .reel { width: 56px; height: 56px; border-radius: 12px; }
  .search-overlay { padding: 64px 12px 24px; }
  .search-overlay input, .field input { font-size: 16px; }
  .slip {
    left: 10px;
    right: 10px;
    bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + 10px);
    width: auto;
  }
  .toast {
    bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + 12px);
    max-width: calc(100% - 24px);
    font-size: 0.8rem;
  }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    background: rgba(0, 5, 10, 0.96);
    border-top: 1px solid var(--border);
    padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
    gap: 4px;
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35);
  }
  .bottom-nav a,
  .bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 64px;
    color: var(--muted);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 8px 2px;
    min-width: 0;
    width: 100%;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
  }
  .bottom-nav a.is-active,
  .bottom-nav button.is-active,
  .bottom-nav button[aria-expanded="true"] {
    color: #041018;
    background: linear-gradient(135deg, #00f2ff 0%, #007bff 100%);
    box-shadow: var(--glow);
  }
  .tab-ico {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  .tab-ico svg { width: 26px; height: 26px; display: block; }
  .tab-lbl {
    font-size: 0.78rem;
    line-height: 1;
    letter-spacing: 0.01em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
html.drawer-open { overflow: hidden; }
  .drawer {
    display: block; position: fixed; inset: 0; z-index: 55; pointer-events: none;
  }
  .drawer.open { pointer-events: auto; }
  .drawer-back {
    position: absolute; inset: 0;
    background: rgba(0, 4, 12, 0.62);
    opacity: 0; transition: opacity .22s;
    backdrop-filter: blur(4px);
  }
  .drawer.open .drawer-back { opacity: 1; }
  .drawer-panel {
    position: absolute;
    top: 0; left: 0;
    bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom));
    width: min(320px, 86vw);
    background: linear-gradient(180deg, #07111f 0%, #050a15 100%);
    border-right: 1px solid var(--border);
    border-radius: 0 22px 22px 0;
    padding: calc(14px + env(safe-area-inset-top)) 14px 16px;
    transform: translateX(-105%);
    transition: transform .24s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: auto;
    box-shadow: 18px 0 50px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .drawer.open .drawer-panel { transform: none; }
  .drawer-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-bottom: 8px;
  }
  .drawer-panel .brand {
    flex: 1;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }
  .drawer-panel .brand img { width: 32px; height: 32px; border-radius: 8px; }
  .drawer-kicker { margin: 0 0 8px; }
  .drawer-group {
    display: flex; flex-direction: column; gap: 4px;
    margin: 8px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  .drawer-group span {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 4px 4px 2px;
  }
  .drawer-link {
    display: block;
    color: var(--text);
    font-weight: 700;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 0.92rem;
  }
  .drawer-link.is-active,
  .drawer-link:hover {
    background: var(--accent-soft);
    border-color: var(--border);
    color: var(--accent);
  }
  .drawer-foot { margin-top: auto; padding-top: 8px; }
  .mv-splash-inner img { width: 72px; height: 72px; border-radius: 18px; }
  .mv-splash-word { font-size: 11px; letter-spacing: 0.16em; text-indent: 0.16em; }
}

@media (max-width: 640px) {
  .foot { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .cats { gap: 6px; }
  .cat img { height: 84px; }
  .hero img { height: 196px; }
  .hero h1 { font-size: 1.2rem; }
}
