:root {
  color-scheme: dark;
  --bg: #0e1116;
  --bg-soft: #151a22;
  --surface: #1b222d;
  --surface-strong: #222b38;
  --text: #f4f7fb;
  --muted: #aab5c4;
  --line: #344052;
  --accent: #37c29a;
  --accent-dark: #239173;
  --danger: #ffcc66;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(55, 194, 154, 0.12), transparent 28rem),
    linear-gradient(180deg, #111722 0%, var(--bg) 22rem);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 17, 22, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 2.7rem;
  height: 2.7rem;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
  line-height: 1;
}

.brand-copy strong {
  color: var(--text);
  font-size: 1.05rem;
}

.brand-copy em {
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.nav,
.actions,
.form-actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a,
.nav button,
.text-link {
  color: var(--muted);
  text-decoration: none;
}

.nav-pill,
.nav-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.nav-pill-accent,
.nav-plus {
  background: var(--accent);
  color: #06100d;
}

.nav-add-menu {
  position: relative;
}

.nav-add-menu summary {
  list-style: none;
  cursor: pointer;
}

.nav-add-menu summary::-webkit-details-marker {
  display: none;
}

.nav-add-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  display: grid;
  gap: 0.25rem;
  min-width: 11rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 17, 22, 0.98);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.35);
  z-index: 25;
}

.nav-add-panel a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  color: var(--text);
}

.nav-add-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav form {
  margin: 0;
}

.nav button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.page {
  width: 100%;
  margin: 0;
  padding: 2rem 0 4rem;
}

.messages {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.message {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  margin: 0;
  padding: 0.85rem 1rem;
}

.message.warning {
  border-color: rgba(255, 204, 102, 0.5);
  color: var(--danger);
}

.hero {
  max-width: 760px;
  padding: 5rem 0 3rem;
}

.compact-home {
  display: grid;
  gap: 1.2rem;
}

.compact-section {
  display: grid;
  min-width: 0;
  gap: 0.7rem;
}

.compact-section.compact-panel {
  display: none;
}

.compact-section.compact-panel.is-open,
.compact-section.compact-panel:target {
  display: grid;
}

.compact-tools {
  position: sticky;
  top: 4.8rem;
  z-index: 20;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  width: max-content;
}

.compact-drawer summary {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  color: #06100d;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  padding: 0.5rem 0.9rem;
}

.compact-search-drawer summary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.compact-drawer summary::-webkit-details-marker {
  display: none;
}

.drawer-panel {
  position: fixed;
  left: 1rem;
  top: 5rem;
  z-index: 30;
  width: min(24rem, calc(100vw - 2rem));
  max-height: calc(100vh - 6rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 17, 22, 0.96);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.4);
  padding: 1rem;
}

.search-drawer-panel {
  width: min(58rem, calc(100vw - 2rem));
}

.drawer-search-form {
  margin: 0;
}

.drawer-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.drawer-heading h2 {
  font-size: 1.15rem;
  margin: 0;
}

.drawer-heading span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.drawer-tags {
  justify-content: flex-start;
  margin: 0;
}

.compact-rail,
.compact-channel-rail {
  display: grid;
  grid-auto-flow: column;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0 1.4rem 0.65rem;
  scroll-snap-type: x proximity;
}

.compact-rail {
  grid-auto-columns: minmax(22rem, 26rem);
}

.compact-rail .visual-card {
  scroll-snap-align: start;
}

.compact-rail .card-body {
  padding: 0.75rem;
}

.compact-rail .card-body h3 {
  font-size: 0.95rem;
}

.compact-rail .card-actions {
  margin-top: 0.55rem;
}

.compact-channel-rail {
  grid-auto-columns: minmax(10rem, 13rem);
}

.compact-channel-card {
  display: grid;
  gap: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  scroll-snap-align: start;
}

.compact-channel-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, #17202b, #243646);
  background-position: center;
  background-size: cover;
}

.compact-channel-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.compact-channel-image,
.channel-hero,
.channel-tile-visual,
.collection-collage-tile {
  filter: none !important;
  mix-blend-mode: normal !important;
}

html[data-darkreader-mode] .compact-channel-image,
html[data-darkreader-mode] .channel-hero,
html[data-darkreader-mode] .channel-tile-visual,
html[data-darkreader-mode] .collection-collage-tile {
  filter: none !important;
  background-blend-mode: normal !important;
}

.compact-channel-card strong,
.compact-channel-card em {
  padding: 0 0.75rem;
}

.compact-channel-card em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  padding-bottom: 0.75rem;
  text-transform: uppercase;
}

.channel-tile em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.channel-tile:hover {
  border-color: rgba(55, 194, 154, 0.6);
  transform: translateY(-2px);
}

.eyebrow,
.meta {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.7rem, 8vw, 5.8rem);
  line-height: 0.95;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1rem;
}

.hero p,
.lead,
.form-intro {
  color: var(--muted);
  font-size: 1.15rem;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #06100d;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
button.button:hover {
  background: #55d7b4;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.visit-toggle-form {
  display: inline-flex;
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.45rem 0.8rem;
}

.intro,
.empty-state,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 34, 45, 0.9);
}

.intro,
.empty-state {
  padding: 1.5rem;
}

.channel-hero {
  position: relative;
  overflow: hidden;
  min-height: 24rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(14, 17, 22, 0.96), rgba(14, 17, 22, 0.64), rgba(14, 17, 22, 0.28)),
    var(--cover-image, linear-gradient(135deg, #182534, #263545 48%, #12664f));
  background-position: center;
  background-size: cover;
}

.channel-hero-content {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  gap: 1.2rem;
  max-width: 780px;
  padding: clamp(1.25rem, 5vw, 3rem);
}

.channel-hero h1 {
  font-size: clamp(2.4rem, 7vw, 5.4rem);
}

.channel-hero p {
  color: var(--muted);
  max-width: 680px;
}

.explore-header {
  max-width: 760px;
  margin-bottom: 2rem;
  padding: 3rem 0 1rem;
}

.explore-header h1 {
  min-height: 3.6rem;
  font-size: 3.6rem;
  line-height: 1;
  white-space: nowrap;
}

.explore-header p {
  color: var(--muted);
  font-size: 1.15rem;
}

.avatar {
  display: grid;
  width: 4rem;
  height: 4rem;
  flex: 0 0 4rem;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: #263545;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 900;
}

.filters {
  display: grid;
  grid-template-columns: minmax(12rem, 2fr) repeat(5, minmax(8rem, 1fr)) auto auto;
  gap: 0.8rem;
  align-items: end;
  margin: 0 0 2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 26, 34, 0.92);
}

.filters label,
.form-panel p {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0f141b;
  color: var(--text);
  font: inherit;
  padding: 0.72rem 0.8rem;
}

.section-block {
  min-width: 0;
  margin: 2.25rem 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.section-heading h2 {
  margin: 0;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

.rail {
  position: relative;
  display: grid;
  grid-auto-columns: minmax(22rem, 26rem);
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 1.4rem 1rem;
  scroll-snap-type: x proximity;
}

.media-rail-shell {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.media-rail-shell:has(.share-menu[open]) {
  z-index: 4000;
}

.media-rail {
  position: relative;
  width: 100%;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-padding-inline: 1.4rem;
  scrollbar-width: none;
}

.media-rail::-webkit-scrollbar {
  display: none;
}

.rail-arrow {
  position: absolute;
  top: 50%;
  z-index: 120;
  display: grid;
  width: 3.15rem;
  height: 5.6rem;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
    rgba(14, 17, 22, 0.88);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.34);
}

.rail-arrow:hover {
  border-color: rgba(55, 194, 154, 0.58);
  background: rgba(20, 32, 46, 0.96);
}

.rail-arrow:disabled {
  cursor: default;
  opacity: 0.28;
}

.rail-arrow-prev {
  left: -0.35rem;
}

.rail-arrow-next {
  right: -0.35rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap: 1rem;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 20rem));
  gap: 1rem;
  justify-content: start;
}

.channel-tile {
  display: grid;
  gap: 0.75rem;
  width: min(100%, 20rem);
  min-height: 13rem;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(55, 194, 154, 0.1), rgba(255, 255, 255, 0.035)),
    var(--surface);
  color: var(--text);
  padding: 1.25rem;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.channel-tile-visual {
  position: relative;
  display: block;
  min-height: 8rem;
  margin: -1.25rem -1.25rem 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(14, 17, 22, 0.05), rgba(14, 17, 22, 0.72)),
    var(--channel-cover),
    radial-gradient(circle at 72% 18%, rgba(55, 194, 154, 0.34), transparent 5rem),
    linear-gradient(135deg, #17202b, #243646);
  background-position: center;
  background-size: cover;
}

.channel-tile-visual::before,
.channel-tile-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.channel-tile-visual::before {
  inset: 16%;
}

.channel-tile-visual::after {
  inset: 34%;
  border-color: rgba(55, 194, 154, 0.28);
}

.channel-tile-visual .avatar {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
}

.avatar.small {
  width: 2.6rem;
  height: 2.6rem;
  flex-basis: 2.6rem;
  font-size: 1rem;
}

.channel-tile p {
  color: var(--muted);
  margin: 0;
}

.visual-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(8.8rem, 1fr) 4.1rem;
  height: clamp(13.5rem, 23vw, 16.1rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--surface);
  scroll-snap-align: start;
  transition: transform 160ms ease, border-color 160ms ease;
}

.visual-card:has(.share-menu[open]),
.visual-card.share-open {
  z-index: 5000;
  overflow: visible;
}

.visual-card:hover {
  border-color: rgba(55, 194, 154, 0.55);
  transform: translateY(-2px);
}

.card-image {
  position: relative;
  display: block;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, #233246, #14202e);
  color: var(--text);
  text-decoration: none;
}

.card-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image.has-image .poster-placeholder {
  position: absolute;
  inset: 0;
  visibility: hidden;
}

.card-image.image-missing img {
  display: none;
}

.card-image.image-missing .poster-placeholder {
  position: relative;
  visibility: visible;
}

.placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  place-items: center;
  padding: 1rem;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.text-placeholder {
  align-content: center;
  gap: 0.35rem;
  justify-items: start;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(55, 194, 154, 0.18), rgba(255, 255, 255, 0.04)),
    #17202b;
  text-align: left;
  text-transform: none;
}

.text-placeholder span {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.text-placeholder strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.text-placeholder em {
  color: var(--muted);
  font-style: normal;
}

.placeholder.large {
  min-height: 24rem;
}

.placeholder.large strong {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  -webkit-line-clamp: 5;
}

.poster-placeholder {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  min-height: 10rem;
  overflow: hidden;
  padding: 1rem;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.22), transparent 6rem),
    linear-gradient(135deg, rgba(55, 194, 154, 0.22), rgba(255, 255, 255, 0.05)),
    #17202b;
  color: var(--text);
}

.poster-placeholder .poster-orbit {
  background: url("/media/channel_covers/selectora_icon_dark.svg?v=20260604") center / contain no-repeat;
  opacity: 0.14;
}

.poster-video {
  background:
    radial-gradient(circle at 80% 20%, rgba(55, 194, 154, 0.36), transparent 6rem),
    linear-gradient(135deg, #17202b, #243646);
}

.poster-podcast {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 204, 102, 0.28), transparent 6rem),
    linear-gradient(135deg, #241c2b, #263545);
}

.poster-article,
.poster-newsletter {
  background:
    radial-gradient(circle at 80% 20%, rgba(130, 170, 255, 0.24), transparent 6rem),
    linear-gradient(135deg, #182534, #2d3340);
}

.poster-music {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 105, 180, 0.28), transparent 6rem),
    linear-gradient(135deg, #261a2d, #1b2d31);
}

.poster-placeholder::before {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.poster-placeholder::after {
  content: "";
  position: absolute;
  right: 2.15rem;
  top: 1.95rem;
  border-left: 0.9rem solid rgba(255, 255, 255, 0.78);
  border-top: 0.58rem solid transparent;
  border-bottom: 0.58rem solid transparent;
}

.poster-podcast::after,
.poster-article::after,
.poster-newsletter::after,
.poster-music::after {
  display: none;
}

.poster-orbit {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.poster-placeholder span {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.poster-placeholder strong {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  font-size: 1.08rem;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.poster-placeholder em {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 800;
}

.embed-badge {
  position: absolute;
  right: 0.45rem;
  top: 0.45rem;
  z-index: 3;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 0.62rem;
  font-weight: 800;
  opacity: 0.62;
  padding: 0.18rem 0.4rem;
  pointer-events: none;
}

.card-image-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  z-index: 2;
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.35rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4) 28%, rgba(0, 0, 0, 0.5));
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.12;
  padding: 2.45rem 0.68rem calc(0.48rem + 3px);
  text-shadow: 0 0.08rem 0.4rem rgba(0, 0, 0, 0.72);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 0.25rem;
  min-height: 0;
  overflow: hidden;
  padding: 0.36rem 0.48rem 0.42rem;
}

.card-body:has(.share-menu[open]) {
  overflow: visible;
}

.item-signal-strip {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.2rem;
  max-height: 2.1rem;
  overflow: hidden;
}

.item-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  max-width: 100%;
  min-height: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.18rem 0.34rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-signal::before {
  display: inline-grid;
  width: 0.68rem;
  height: 0.68rem;
  flex: 0 0 0.68rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
  font-size: 0.5rem;
  line-height: 1;
}

.signal-expiry {
  border-color: rgba(255, 204, 102, 0.58);
  background: rgba(255, 204, 102, 0.16);
  color: #ffe0a1;
}

.signal-expiry::before {
  content: "!";
}

.signal-type {
  border-color: rgba(55, 194, 154, 0.52);
  background: rgba(55, 194, 154, 0.14);
}

.signal-type::before {
  content: ">";
}

.signal-source {
  border-color: rgba(130, 170, 255, 0.48);
  background: rgba(130, 170, 255, 0.13);
  color: #c8d8ff;
}

.signal-source::before {
  content: "@";
}

.signal-tag {
  color: var(--muted);
}

.signal-tag::before {
  content: "#";
}

.card-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.48rem;
  min-height: 1rem;
  margin-top: 0;
  line-height: 1;
}

.card-actions a {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.share-menu {
  position: relative;
  display: inline-block;
  z-index: 5100;
}

.share-summary {
  color: var(--accent);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  list-style: none;
}

.share-summary::-webkit-details-marker {
  display: none;
}

.share-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.42rem);
  z-index: 5200;
  display: grid;
  gap: 0.35rem;
  min-width: 11rem;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 17, 22, 0.98);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.32);
  padding: 0.45rem;
}

.share-panel button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0.45rem 0.55rem;
  text-align: left;
}

.share-panel button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.share-status {
  min-height: 1rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0 0.55rem 0.25rem;
}

.tag-cloud {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.tag-filter-panel {
  margin: 0 0 2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 26, 34, 0.68);
}

.tag-filter-panel .section-heading {
  margin-bottom: 0.75rem;
}

.tag-tools {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0 0 0.8rem;
}

.tag-tools a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.35rem 0.65rem;
  text-decoration: none;
}

.tag-tools a.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.active-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0 0 0.8rem;
}

.active-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(55, 194, 154, 0.75);
  border-radius: 999px;
  background: rgba(55, 194, 154, 0.18);
  color: var(--text);
  font-weight: 900;
  padding: 0.42rem 0.75rem;
  text-decoration: none;
}

.active-tag.clear-all {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.active-tag span {
  display: grid;
  width: 1.1rem;
  height: 1.1rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
}

.tag-cloud span,
.tag-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
}

.tag-link:hover,
.tag-link.active {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.global-cloud {
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 26, 34, 0.64);
}

.compact-cloud {
  justify-content: flex-start;
  margin-bottom: 1rem;
  padding: 1rem;
}

.global-cloud .tag-link:nth-child(3n + 1) {
  font-size: 1.15rem;
}

.global-cloud .tag-link:nth-child(4n + 2) {
  font-size: 1.35rem;
  color: var(--text);
}

.global-cloud .tag-link:nth-child(5n) {
  font-size: 1rem;
  border-color: rgba(55, 194, 154, 0.45);
}

.tag-cloud.compact {
  margin: 1rem 0;
}

.form-page {
  max-width: 760px;
}

.form-page h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.form-panel {
  padding: 1.5rem;
}

.integration-panel {
  margin: 1rem 0;
  border: 1px solid rgba(55, 194, 154, 0.35);
  border-radius: 8px;
  background: rgba(55, 194, 154, 0.08);
  padding: 1.2rem;
}

.integration-panel h2 {
  margin: 0 0 0.6rem;
}

.integration-panel code {
  display: block;
  margin: 0.8rem 0;
  overflow-wrap: anywhere;
  border-radius: 7px;
  background: #0f141b;
  color: var(--text);
  padding: 0.8rem;
}

.form-panel label {
  color: var(--text);
  font-weight: 800;
}

.form-panel p {
  display: grid;
  gap: 0.4rem;
}

.expiry-inline {
  display: grid;
  grid-template-columns: max-content 5.8rem minmax(8rem, 11rem);
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 0.5rem;
}

.expiry-inline select {
  width: 100%;
}

.priority-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.priority-inline label,
.expiry-inline label {
  margin-right: 0.15rem;
}

.priority-prefix,
.expiry-prefix,
.expiry-joiner {
  color: var(--muted);
  font-weight: 700;
}

.dev-magic-link {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
  border: 1px solid rgba(55, 194, 154, 0.45);
  border-radius: 8px;
  background: rgba(55, 194, 154, 0.1);
  padding: 1rem;
}

.dev-magic-link p {
  color: var(--muted);
  margin: 0;
}

.dev-magic-link a {
  overflow-wrap: anywhere;
}

.helptext {
  color: var(--muted);
  font-size: 0.86rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  gap: 2rem;
  align-items: start;
}

.detail-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-media img,
.detail-media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: cover;
}

.detail-media.vertical-embed {
  max-width: 32rem;
  justify-self: center;
  width: 100%;
}

.detail-media.vertical-embed iframe {
  aspect-ratio: 9 / 16;
  min-height: min(78vh, 54rem);
}

.embed-help {
  margin: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
}

.detail-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.metadata-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.metadata-list div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.metadata-list dt {
  color: var(--muted);
  font-weight: 800;
}

.metadata-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.raw-metadata {
  margin-top: 1.5rem;
}

.raw-metadata pre {
  overflow: auto;
  max-height: 20rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080b0f;
  padding: 1rem;
}

/* Dense layout pass: keep the visual language but reduce vertical footprint. */
body {
  line-height: 1.38;
}

.site-header {
  gap: 0.75rem;
  padding: 0.55rem clamp(0.75rem, 3vw, 1.4rem);
}

.brand img {
  width: 2.95rem;
  height: 2.95rem;
}

.brand-copy strong {
  font-size: 1.12rem;
}

.brand-copy em {
  font-size: 0.7rem;
}

.nav,
.actions,
.form-actions,
.card-actions {
  gap: 0.6rem;
}

.nav a,
.nav button,
.text-link {
  font-size: 0.9rem;
}

.page {
  width: 100%;
  margin: 0;
  padding: 0.85rem 0 1.5rem;
}

.message {
  padding: 0.55rem 0.7rem;
}

.compact-home {
  gap: 0.75rem;
}

.compact-section {
  gap: 0.45rem;
}

.compact-tools {
  top: 3.4rem;
}

.compact-drawer summary {
  min-height: 2.05rem;
  padding: 0.34rem 0.7rem;
}

.drawer-panel {
  top: 3.6rem;
  padding: 0.75rem;
}

.drawer-search-form {
  grid-template-columns: minmax(11rem, 2fr) repeat(5, minmax(7rem, 1fr)) auto auto;
}

.compact-rail,
.compact-channel-rail,
.rail {
  gap: 0.55rem;
  padding-bottom: 0.45rem;
}

.compact-rail {
  grid-auto-columns: minmax(20rem, 24rem);
}

.compact-channel-rail {
  grid-auto-columns: minmax(8.5rem, 10.5rem);
}

.compact-channel-card {
  gap: 0.35rem;
}

.compact-channel-card strong,
.compact-channel-card em {
  padding-inline: 0.55rem;
}

.compact-channel-card em {
  padding-bottom: 0.55rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  margin-bottom: 0.55rem;
}

h2 {
  font-size: 1.15rem;
}

h3 {
  font-size: 0.94rem;
}

.eyebrow,
.meta {
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
}

.hero p,
.lead,
.form-intro,
.explore-header p {
  font-size: 0.98rem;
}

.button,
button.button,
.status-pill {
  min-height: 2.15rem;
  padding: 0.42rem 0.7rem;
  font-size: 0.9rem;
}

.intro,
.empty-state,
.form-panel,
.tag-filter-panel,
.global-cloud,
.compact-cloud,
.filters {
  padding: 0.75rem;
}

.intro,
.empty-state {
  padding: 0.9rem;
}

.channel-hero {
  min-height: 13rem;
  margin-bottom: 0.8rem;
}

.channel-hero-content {
  gap: 0.75rem;
  max-width: 1000px;
  padding: 1rem;
}

.channel-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 3.4rem);
}

.channel-hero p {
  max-width: 760px;
  margin-bottom: 0.5rem;
}

.avatar {
  width: 2.75rem;
  height: 2.75rem;
  flex-basis: 2.75rem;
  font-size: 1.1rem;
}

.explore-header {
  max-width: none;
  margin-bottom: 0.8rem;
  padding: 0.8rem 0 0.2rem;
}

.explore-header h1 {
  min-height: 0;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  white-space: normal;
}

.filters {
  grid-template-columns: minmax(11rem, 2fr) repeat(5, minmax(7rem, 1fr)) auto auto;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.filters label,
.form-panel p {
  gap: 0.22rem;
  font-size: 0.78rem;
}

input,
textarea,
select {
  padding: 0.48rem 0.58rem;
  font-size: 0.92rem;
}

.section-block {
  margin: 1rem 0;
}

.section-heading {
  margin-bottom: 0.45rem;
}

.section-heading p {
  font-size: 0.86rem;
}

.rail {
  grid-auto-columns: minmax(20rem, 24rem);
}

.card-grid {
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 0.6rem;
}

.channel-grid {
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 15rem));
  gap: 0.6rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.6rem;
}

.collection-card {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--surface);
  padding: 0.75rem;
}

.collection-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  aspect-ratio: 16 / 7;
  overflow: hidden;
  margin: -0.75rem -0.75rem 0;
  border-radius: 8px 8px 0 0;
  background:
    url("/media/channel_covers/selectora_icon_dark.svg?v=20260604") center / 3.2rem auto no-repeat,
    linear-gradient(135deg, #17202b, #243646);
}

.collection-collage-tile {
  min-width: 0;
  min-height: 0;
  background-image: var(--collage-image);
  background-position: center;
  background-size: cover;
}

.collection-collage-tile:first-child:nth-last-child(1) {
  grid-column: 1 / -1;
}

.collection-collage-tile:first-child:nth-last-child(3) {
  grid-row: span 2;
}

.collection-collage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 17, 22, 0.06), rgba(14, 17, 22, 0.42));
  pointer-events: none;
}

.collection-card h3,
.collection-card p {
  margin: 0;
}

.collection-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.collection-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.channel-tile {
  gap: 0.45rem;
  min-height: 9rem;
  padding: 0.75rem;
}

.channel-tile-visual {
  min-height: 5.6rem;
  margin: -0.75rem -0.75rem 0;
}

.visual-card:hover,
.channel-tile:hover {
  transform: none;
}

.poster-placeholder {
  min-height: 7rem;
  padding: 0.7rem;
}

.poster-placeholder::before {
  width: 2.4rem;
  height: 2.4rem;
}

.poster-placeholder::after {
  right: 1.82rem;
  top: 1.7rem;
  border-left-width: 0.65rem;
  border-top-width: 0.42rem;
  border-bottom-width: 0.42rem;
}

.poster-placeholder span,
.text-placeholder span {
  font-size: 0.68rem;
}

.poster-placeholder strong,
.text-placeholder strong {
  font-size: 0.9rem;
  line-height: 1.12;
  -webkit-line-clamp: 2;
}

.poster-placeholder em,
.card-body p:not(.meta) {
  font-size: 0.78rem;
}

.embed-badge {
  right: 0.4rem;
  bottom: 0.4rem;
  font-size: 0.68rem;
  padding: 0.18rem 0.42rem;
}

.card-body,
.compact-rail .card-body {
  padding: 0.55rem;
}

.card-body h3 {
  margin-bottom: 0.32rem;
}

.card-actions {
  margin-top: 0.45rem;
}

.tag-cloud {
  gap: 0.4rem;
  margin: 0.8rem 0;
}

.tag-filter-panel {
  margin-bottom: 0.9rem;
}

.tag-tools {
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.tag-tools a,
.tag-cloud span,
.tag-link,
.active-tag {
  font-size: 0.76rem;
  padding: 0.25rem 0.5rem;
}

.active-tags {
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.global-cloud .tag-link:nth-child(n) {
  font-size: 0.8rem;
}

.form-page {
  max-width: 680px;
}

.form-page h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
}

.integration-panel,
.dev-magic-link {
  margin: 0.7rem 0;
  padding: 0.75rem;
}

.detail-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 1rem;
}

.detail-content h1 {
  font-size: clamp(1.6rem, 3.8vw, 2.8rem);
}

.placeholder.large {
  min-height: 16rem;
}

.detail-media.vertical-embed {
  max-width: 24rem;
}

.detail-media.vertical-embed iframe {
  min-height: min(72vh, 42rem);
}

.embed-help {
  font-size: 0.78rem;
  padding: 0.55rem 0.7rem;
}

.metadata-list {
  gap: 0.45rem;
  margin: 0.9rem 0;
}

.metadata-list div {
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.6rem;
  padding-bottom: 0.45rem;
}

.raw-metadata,
.tag-cloud.compact {
  margin-top: 0.8rem;
}

@media (max-width: 980px) {
  .filters,
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .channel-hero-content {
    align-items: stretch;
    flex-direction: column;
  }

  .channel-hero {
    min-height: 15rem;
  }

  .rail {
    grid-auto-columns: minmax(18rem, 84vw);
  }

  .compact-rail {
    grid-auto-columns: minmax(18rem, 84vw);
  }

  .compact-channel-rail {
    grid-auto-columns: minmax(8.5rem, 48vw);
  }

  .metadata-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .explore-header h1 {
    min-height: 0;
    font-size: 1.9rem;
  }
}
