html, body {
  margin: 0;
  height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 11px;
  color: #fff;
  background: #000;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.status {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(560px, calc(100% - 24px));
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.flex-container {
  display: flex;
  height: 100%;
  box-sizing: border-box;
  gap: 6px;
  padding: 3px;
}

.categories,
.channels {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.categories {
  flex: 1 1 360px;
  max-width: 460px;
}

.channels {
  flex: 3 1 auto;
}

.header {
  padding: 10px 13px;
  background: #111;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.header .label {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  background: #2a2a2a;
  border-radius: 6px;
  font-size: 22px;
  vertical-align: baseline;
}

.header.channel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.header.channel .credit {
  margin-left: auto;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.groups {
  display: flex;
  flex-direction: row;
  gap: 3px;
  margin-top: 3px;
}

.groups .button {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 12px 4px;
  text-align: center;
  font-size: 14px;
  white-space: nowrap;
}

.groups .button .label {
  margin-left: 4px;
  padding: 1px 6px;
  font-size: 12px;
}

.note {
  margin: 0;
  padding: 8px 13px;
  background: #161616;
  color: #ddd;
  font-size: 13px;
}

form {
  position: relative;
  margin-top: 3px;
}

form .icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #bbb;
  display: flex;
  pointer-events: none;
}

input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 16px 16px 16px 40px;
  border: 1px solid transparent;
  background: #1a1a1a;
  color: #fff;
  font: inherit;
  font-size: 14px;
}

input[type="search"]::placeholder {
  color: #8a8a8a;
}

input[type="search"]:focus {
  outline: none;
  border-color: #1a6fd4;
  box-shadow: 0 0 0 1px #1a6fd4;
}

.scroll {
  position: relative;
  flex: 1;
  overflow: auto;
  margin-top: 3px;
}

.button {
  display: block;
  width: 100%;
  margin: 0 0 3px;
  padding: 16px 18px;
  border: 0;
  background: #1a1a1a;
  color: #fff;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.button .label {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  background: #333;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
}

.button:hover {
  background: #2a2a2a;
}

.button.active,
.button.active:hover {
  background: #1a6fd4;
  color: #fff;
}

.button.active .label {
  background: rgba(255, 255, 255, 0.22);
}

.button:focus-visible {
  outline: 2px solid #1a6fd4;
  outline-offset: -2px;
}

.spacer {
  position: relative;
  width: 100%;
}

.rows {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rows li {
  box-sizing: border-box;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #141414;
}

.rows li.alt {
  background: #1c1c1c;
}

.rows img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
  background: #111;
}

.rows .title {
  min-width: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rows .meta {
  margin-left: auto;
  flex: none;
  max-width: 42%;
  font-size: 12px;
  color: #bdbdbd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rows li.skeleton .title,
.rows li.skeleton .meta {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  color: transparent;
}

.rows li.skeleton .title {
  width: 46%;
}

.empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .flex-container {
    flex-direction: column;
    height: auto;
    min-height: 100%;
  }

  .categories,
  .channels {
    flex: none;
    max-width: none;
    height: 70vh;
  }

  .categories {
    height: 42vh;
  }
}
