.channel-detail {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(58rem, calc(100% - 3rem));
  max-width: none;
  max-height: calc(100vh - 3rem);
  max-height: calc(100dvh - 3rem);
  margin: auto;
  padding: 0;
  border: 1px solid #355868;
  border-radius: 0.4rem;
  background: #0a2230;
  color: var(--paper);
  font-family: var(--sans);
  text-align: left;
  overscroll-behavior: contain;
  box-shadow: 0 2rem 8rem #0009;
}

.channel-detail[open] { animation: channel-detail-enter 230ms ease-out both; }
.channel-detail::backdrop { background: rgb(2 15 25 / 80%); backdrop-filter: blur(5px); }
.channel-detail__panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.channel-detail__media { position: relative; min-width: 0; overflow: hidden; }
.channel-detail__photo { position: absolute; inset: 0; height: 100%; width: 100%; display: block; object-fit: cover; }
.channel-detail__body { padding: 3.8rem 2.5rem 2.5rem; }
.channel-detail__name, .channel-detail__facts dt {
  margin: 0;
  font: 600 .95rem/1.35 var(--sans);
}
.channel-detail__name { color: var(--cyan); }
.channel-detail__headline {
  margin: .8rem 0 1.7rem;
  font: 600 clamp(2.7rem, 4.3vw, 4.1rem)/1 var(--display);
  letter-spacing: -.014em;
  color: inherit;
}
.channel-detail__facts { margin: 0 0 1.6rem; }
.channel-detail__facts > div { padding: .95rem 0; border-top: 1px solid var(--line); }
.channel-detail__facts dt { color: #d9e9ef; }
.channel-detail__facts dd { margin: .4rem 0 0; font-size: 1rem; line-height: 1.5; color: #bed2db; }
.channel-detail__close, .channel-detail__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  cursor: pointer;
  line-height: 1;
}
.channel-detail__close {
  position: absolute;
  top: .7rem;
  right: .7rem;
  width: 2.75rem;
  padding: 0;
  border: 1px solid #658391;
  border-radius: 50%;
  background: #0a2230;
  color: var(--paper);
}
.channel-detail__close span { position: relative; width: 1rem; height: 1rem; }
.channel-detail__close span::before, .channel-detail__close span::after {
  content: '';
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}
.channel-detail__close span::after { transform: rotate(-45deg); }
.channel-detail__action {
  padding: .7rem 1.3rem;
  border: 0;
  border-radius: 2rem;
  background: var(--green);
  color: #0a2230;
  font: 650 1rem/1.25 var(--sans);
}
.channel-detail__close:hover { border-color: var(--paper); }
.channel-detail__action:hover { background: #c0ff9c; }
.channel-detail button:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

@keyframes channel-detail-enter {
  from { transform: translateY(.55rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 42rem) {
  .channel-detail {
    width: calc(100% - 1.5rem);
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
  }
  .channel-detail__panel { display: block; }
  .channel-detail__media { height: clamp(6rem, 22vh, 13rem); }
  .channel-detail__photo { object-position: center 47%; }
  .channel-detail__body { padding: 1.4rem; }
  .channel-detail__headline { margin-bottom: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .channel-detail[open] { animation: none; }
}

[data-motion="paused"] .channel-detail[open]{animation:none}
