/* 3OT · hoops.css (v406)
   Hoops Channels: the channels page, channel pages, the home page strip and the video player.
   Uses the site's shared colour tokens (--panel, --line, --text, --muted, --orange), so it follows light and dark mode. */

.hcp { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.hcp-head h1, .hcp-chan h1 { margin: 0 0 6px; }
.hcp-head > p { margin: 0 0 14px; line-height: 1.5; }

.hcp-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.hcp-cats a {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.hcp-cats a:hover { color: var(--text); border-color: var(--orange); }
.hcp-cats a.is-on { color: var(--text); border-color: var(--orange); background: rgba(255, 122, 26, .14); }

.hcp-section h2 { margin: 0 0 12px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.hcp-pager { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.hcp-note { margin: 14px 0 0; font-size: 13px; }
.hcp-note a { color: var(--orange); font-weight: 700; }

/* Channel header */
.hcp-back { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.hcp-back:hover { color: var(--orange); }
.hcp-chan-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hcp-chan-row > div { flex: 1 1 200px; min-width: 0; }
.hcp-chan-row p { margin: 0; }
.hcp-chan-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.hcp-desc { margin: 12px 0 0; color: var(--muted); line-height: 1.5; font-size: 14px; }

/* Channel chips */
.hcp-chans { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.hcp-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.hcp-chip:hover { border-color: var(--orange); }
.hcp-chip img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.hcp-chip span { display: flex; flex-direction: column; min-width: 0; }
.hcp-chip b { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcp-chip small { font-size: 12px; color: var(--muted); }

/* Video grid and cards */
.hc-grid { display: grid; gap: 16px 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.hc-grid-live { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.hc-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.hc-card { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hc-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 12px;
  overflow: hidden; background: var(--panel2, #11151d); cursor: pointer;
}
.hc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.hc-thumb:hover img { transform: scale(1.04); }
.hc-card.is-live .hc-thumb { outline: 2px solid #ff3b4f; outline-offset: -2px; }
.hc-play {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s ease;
}
.hc-play::after { content: ''; position: absolute; left: 21px; top: 16px; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.hc-thumb:hover .hc-play, .hc-thumb:focus-visible .hc-play { opacity: 1; }
.hc-badge {
  position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .78);
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.hc-badge.is-live { left: 8px; right: auto; top: 8px; bottom: auto; background: #e8283d; }
.hc-badge.is-up { left: 8px; right: auto; top: 8px; bottom: auto; background: rgba(0, 0, 0, .78); }
.hc-info { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.hc-info > div { min-width: 0; }
.hc-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--line); }
.hc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-info h3 { margin: 0 0 3px; font-size: 14.5px; line-height: 1.35; letter-spacing: 0; text-transform: none; }
.hc-info h3 button {
  all: unset; cursor: pointer; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hc-info h3 button:hover { color: var(--orange); }
.hc-info p { margin: 0; font-size: 12.5px; color: var(--muted); }
.hc-info p a { color: var(--muted); font-weight: 600; }
.hc-info p a:hover { color: var(--orange); }
.hc-card.is-small .hc-info h3 { font-size: 13.5px; }
.hc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #e8283d; box-shadow: 0 0 0 0 rgba(232, 40, 61, .6); animation: hcPulse 1.6s infinite; }
@keyframes hcPulse { 0% { box-shadow: 0 0 0 0 rgba(232, 40, 61, .55); } 70% { box-shadow: 0 0 0 9px rgba(232, 40, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 40, 61, 0); } }
@media (prefers-reduced-motion: reduce) { .hc-dot { animation: none; } .hc-thumb img { transition: none; } }

/* Home page strip */
.hc-home .hm-head h2 { display: flex; align-items: center; gap: 8px; }
.hc-grid-home { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.hc-home.has-live { border-color: rgba(232, 40, 61, .45); }
@media (max-width: 640px) {
  .hc-grid-home { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .hc-grid-home .hc-card { scroll-snap-align: start; }
}

/* Player */
.hc-dialog { width: min(1100px, 96vw, calc((100vh - 150px) * 16 / 9)); max-width: none; padding: 0; border: 0; border-radius: 16px; background: var(--panel); color: var(--text); }
.hc-dialog::backdrop { background: rgba(5, 8, 13, .82); }
.hc-dialog-inner { position: relative; }
.hc-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 16px 16px 0 0; overflow: hidden; }
.hc-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.hc-dialog-meta { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 16px; }
.hc-dialog-meta b { font-size: 16px; line-height: 1.35; }
.hc-dialog-meta span { font-size: 13px; color: var(--muted); }
.hc-dialog-meta a { color: var(--orange); font-weight: 700; }
.hc-close {
  position: absolute; right: 10px; top: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 24px; line-height: 1;
}

/* The site styles every <button> as an orange-bordered pill (with !important); these are plain click targets. */
.hc-card button.hc-thumb,
.hc-card button.hc-thumb:hover {
  display: block !important; min-height: 0 !important; padding: 0 !important; gap: 0 !important;
  border: 0 !important; border-radius: 12px !important; background: var(--panel2, #11151d) !important;
  box-shadow: none !important; transform: none !important; line-height: normal !important;
}
.hc-card .hc-info h3 button,
.hc-card .hc-info h3 button:hover {
  display: -webkit-box !important; min-height: 0 !important; padding: 0 !important; gap: 0 !important;
  border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
  transform: none !important; line-height: 1.35 !important; font: inherit !important; font-weight: 700 !important;
  text-align: left !important; color: var(--text) !important; justify-content: flex-start !important;
}
.hc-card .hc-info h3 button:hover { color: var(--orange) !important; }
.hc-dialog button.hc-close,
.hc-dialog button.hc-close:hover {
  display: flex !important; align-items: center !important; justify-content: center !important;
  min-height: 0 !important; width: 36px; height: 36px; padding: 0 !important; border: 0 !important;
  border-radius: 50% !important; background: rgba(0, 0, 0, .6) !important; color: #fff !important;
  font-size: 24px !important; transform: none !important;
}
