:root {
  --bg: #020617;
  --panel: #0b1120;
  --panel-2: #111827;
  --line: #334155;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --white: #ffffff;
  --accent: #9df019;
  --blue: #1d4ed8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background: var(--bg);
  font-family: Inter, Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(51, 65, 85, 0.35);
  background: rgba(2, 6, 23, 0.96);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(100% - 48px, 1230px);
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}

.brand-icon {
  position: relative;
  width: 34px;
  height: 27px;
  border: 4px solid var(--accent);
  border-radius: 5px;
}

.brand-icon::before {
  content: "";
  position: absolute;
  right: -7px;
  top: -9px;
  width: 11px;
  height: 11px;
  border-top: 4px solid var(--accent);
  border-right: 4px solid var(--accent);
}

.brand-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: -10px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.brand-name {
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-divider {
  width: 1px;
  height: 24px;
  margin: 0 2px 0 10px;
  background: var(--line);
}

.tagline {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 800;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
}

.trial-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 97px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 7px;
  color: #020617;
  background: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.page {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
}

.toolbar {
  padding: 44px 0 112px;
}

.search {
  width: min(100%, 674px);
  min-height: 49px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto 24px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #111827;
  color: var(--muted);
}

.search-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid var(--muted);
  border-radius: 999px;
  opacity: 0.9;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
  transform: rotate(45deg);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--soft);
  background: transparent;
  font-size: 16px;
}

.search input::placeholder {
  color: #8190a9;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tab {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--white);
  background: #0b1222;
  cursor: pointer;
}

.tab strong {
  color: var(--muted);
  font-size: 12px;
}

.tab.active {
  border-color: var(--accent);
  color: #020617;
  background: var(--accent);
}

.tab.active strong {
  color: #1f3b05;
}

.channels-section {
  padding-bottom: 80px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h1 {
  margin: 0;
  font-size: 31px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading small {
  margin-left: 12px;
  color: #93c5fd;
  font-size: 18px;
  font-weight: 500;
}

.section-heading p {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.channel-card {
  position: relative;
  min-height: 166px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b1120;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.channel-card:hover,
.channel-card.featured {
  border-color: rgba(157, 240, 25, 0.72);
}

.channel-card:hover {
  transform: translateY(-2px);
}

.tv-icon {
  width: 18px;
  height: 14px;
  display: block;
  margin-bottom: 37px;
  border: 2px solid var(--accent);
  border-radius: 2px;
}

.tv-icon::after {
  content: "";
  width: 11px;
  height: 2px;
  display: block;
  margin: 15px auto 0;
  border-radius: 999px;
  background: var(--accent);
}

.quality {
  position: absolute;
  top: 18px;
  right: 16px;
  padding: 1px 8px 2px;
  border-radius: 4px;
  color: #60a5fa;
  background: rgba(29, 78, 216, 0.45);
  font-size: 12px;
  font-weight: 800;
}

.channel-name {
  display: block;
  margin-bottom: 28px;
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
}

.channel-meta {
  color: #7da4c6;
  font-size: 13px;
}

.load-more {
  display: none;
  min-height: 42px;
  margin: 28px auto 0;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--white);
  background: #0b1222;
  cursor: pointer;
}

.load-more.visible {
  display: block;
}

.floating {
  position: fixed;
  right: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-size: 14px;
  z-index: 15;
}

.support {
  bottom: 55px;
  background: #22c55e;
}

.telegram {
  bottom: 20px;
  background: #0ea5e9;
}

@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }

  .brand {
    min-width: auto;
  }

  .channel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-shell,
  .page {
    width: min(100% - 24px, 1280px);
  }

  .tagline,
  .brand-divider {
    display: none;
  }

  .brand-name {
    font-size: 23px;
  }

  .toolbar {
    padding: 30px 0 60px;
  }

  .tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .tab {
    flex: 0 0 auto;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }
}
