#channels .section-heading { align-items: center; gap: 24px; }
.channels-total { flex-shrink: 0; color: var(--muted); font: 400 12px/1.8 var(--sans); }

.channel-grid {
  display: grid;
  width: 100%;
  max-width: 1040px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.channel-card {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1.5;
  overflow: hidden;
  border: 1px solid #8ea9b88c;
  border-radius: 14px;
  background: #253440;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 10px #17384c0c;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.channel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.channel-image img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center top;
  transition: transform .45s ease;
}
.channel-image::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgb(11 21 29 / 52%);
}
.channel-copy {
  position: absolute;
  right: 17px;
  bottom: 15px;
  left: 17px;
  padding-right: 18px;
}
.channel-platform {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 7px;
  border: 1px solid #ffffffc7;
  border-radius: 999px;
  background: #fffffff5;
  box-shadow: 0 3px 12px #07152026;
  color: #253744;
  font: 600 12px/1.5 var(--sans);
  white-space: nowrap;
}
.channel-platform img {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}
:root #channels .channel-copy h3 {
  margin: 0 0 5px;
  min-width: 0;
  color: #fff;
  font: 500 21px/1.35 var(--serif);
  white-space: nowrap;
  text-shadow: 0 2px 8px #0005;
}
:root #channels .channel-copy p {
  display: block;
  margin: 0;
  color: #f2f5f8;
  font: 400 11px/1.6 var(--sans);
  white-space: nowrap;
  text-shadow: 0 1px 5px #0006;
}
.channel-open { position: absolute; right: 0; bottom: 3px; color: #fff; font: 400 18px/1 var(--sans); transition: transform .28s ease; }

@media (hover: hover) {
  .channel-card:hover { transform: translateY(-6px); border-color: #c9dce9; box-shadow: 0 16px 30px #18374933, 0 4px 10px #1837491a; }
  .channel-card:hover .channel-image img { transform: scale(1.045); }
  .channel-card:hover .channel-open { transform: translate(2px, -2px); }
}
a.channel-card:focus-visible { transform: translateY(-6px); outline: 2px solid var(--accent); outline-offset: 4px; box-shadow: 0 16px 30px #18374933; }

:root[data-theme='dark'] .channel-card { border-color: #9fb7c45c; }
:root[data-theme='dark'] .channel-card:is(:hover, :focus-visible) { border-color: #c9dce9; box-shadow: 0 16px 30px #0005; }

@media (max-width: 1120px) {
  .channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 820px; }
}
@media (max-width: 760px) {
  #channels .section-heading { align-items: flex-start; }
  .channels-total { display: none; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .channel-copy { right: 13px; left: 13px; bottom: 12px; }
  .channel-platform { top: 10px; right: 10px; font-size: 11px; }
  :root #channels .channel-copy h3 { font-size: 19px; }
}
@media (max-width: 420px) {
  .channel-grid { grid-template-columns: 1fr; gap: 15px; }
  .channel-copy { right: 17px; left: 17px; bottom: 16px; }
  .channel-platform { top: 13px; right: 13px; font-size: 12px; }
  :root #channels .channel-copy h3 { font-size: 22px; }
  :root #channels .channel-copy p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .channel-card, .channel-image img, .channel-open { transition: none; }
  .channel-card:is(:hover, :focus-visible),
  .channel-card:is(:hover, :focus-visible) .channel-image img,
  .channel-card:is(:hover, :focus-visible) .channel-open { transform: none; }
}

