/**
 * BWW Design System — split from bww-ui.css
 * See /home/bway/design-system/MASTER.md
 */

/* ── Topic listing pages ─────────────────────────────────────────────────── */
.topic-page .bww-page-hero {
  padding: var(--bww-space-3) var(--bww-space-4);
  margin-bottom: 10px;
}
.topic-page .bww-page-hero + .container.pt-20 {
  padding-top: 0;
}
.topic-page.inner-page h1.bww-page-hero__title,
.topic-page .bww-page-hero__title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.25;
}
.topic-page .bww-page-hero__subtitle {
  margin-top: var(--bww-space-1);
  font-size: var(--bww-text-sm);
  line-height: 1.45;
  max-width: 48em;
}
.topic-page .bww-listings-section {
  margin-top: 0;
}
.topic-page .topic-newsletter {
  margin: var(--bww-space-5) 0 var(--bww-space-6);
}
.topic-page .topic-student-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bww-space-2);
  margin-top: var(--bww-space-3);
}
.topic-page .topic-header-html {
  margin: var(--bww-space-4) 0;
}
.topic-page .topic-header-html img {
  max-width: 100%;
  height: auto;
}
.topic-newsletter__body {
  padding: var(--bww-space-5) var(--bww-space-5) var(--bww-space-6);
}
.topic-newsletter__intro {
  margin: 0 0 var(--bww-space-4);
  font-size: var(--bww-text-sm);
  color: var(--bww-text-muted);
  line-height: 1.5;
}
.topic-newsletter__benefits {
  margin: 0 0 var(--bww-space-5);
  padding-left: 1.25em;
  font-size: var(--bww-text-sm);
  color: var(--bww-text);
  line-height: 1.6;
}
.topic-newsletter__form {
  margin: 0;
}
.topic-newsletter__form-row {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--bww-space-2);
  align-items: stretch;
}
.topic-newsletter__form-row .bww-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
}
.topic-newsletter__form-row .bww-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: stretch;
}
.topic-newsletter__plus {
  margin-top: var(--bww-space-5);
}
.topic-page .topic-newsletter + .bww-listings-section {
  margin-top: var(--bww-space-2);
}
.topic-page .topic-back-link {
  margin-bottom: var(--bww-space-4);
  font-size: var(--bww-text-sm);
}
.topic-page .topic-back-link a {
  color: var(--bww-red);
  font-weight: 600;
  text-decoration: none;
}
.topic-page .topic-back-link a:hover {
  text-decoration: underline;
}

/* ── TV listing pages ────────────────────────────────────────────────────── */
.tv-page .bww-page-hero,
.tv-page .bww-tv-page-hero {
  padding: var(--bww-space-3) var(--bww-space-4);
  margin-bottom: 10px;
}
.tv-page .bww-page-hero + .container.pt-20,
.tv-page .bww-page-hero + .tv-page__content,
.tv-page .container + .container.pt-20,
.tv-page .container + .tv-page__content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.tv-page .container.pt-20 > .row,
.tv-page .tv-page__content > .row,
.tv-page .tv-page__layout {
  margin-top: 0;
  align-items: flex-start;
}
.tv-page .tv-page__main-row {
  align-items: flex-start;
}
.tv-page .tv-page__main-row > .col-lg-7.mobile1,
.tv-page .tv-page__main-row > .video-row.r-side {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.tv-page .container.pt-20 > .row > .col-lg-7.mobile1,
.tv-page .tv-page__content > .row > .col-lg-7.mobile1,
.tv-page .tv-page__main-row > .col-lg-7.mobile1 {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.tv-page .container.pt-20 > .row > .most-popular.l-side,
.tv-page .container.pt-20 > .row > .r-side,
.tv-page .tv-page__content > .row > .most-popular.l-side,
.tv-page .tv-page__content > .row > .r-side {
  margin-top: 0 !important;
}
.tv-page .section-tittle:has(.y-color),
.tv-page .video-row .section-tittle:has(.y-color) {
  margin-top: 0 !important;
  margin-bottom: var(--bww-space-3) !important;
}
.tv-page .bww-page-hero__title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.25;
}
.tv-page .bww-page-hero__subtitle {
  margin-top: var(--bww-space-1);
  font-size: var(--bww-text-sm);
  line-height: 1.45;
  max-width: 48em;
}
.bww-tv-hero-search {
  width: 100%;
  max-width: 420px;
  margin-top: 0;
}
.bww-tv-hero-search__fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--bww-space-2);
  width: 100%;
}
.bww-tv-hero-search .bww-input {
  flex: 1 1 180px;
  min-width: 0;
  margin: 0;
}
@media (min-width: 768px) {
  .bww-tv-page-hero .bww-page-hero__aside {
    margin-left: auto;
    text-align: right;
  }
  .bww-tv-page-hero .bww-tv-hero-search {
    margin-left: auto;
  }
  .bww-tv-page-hero .bww-tv-hero-search__fields {
    justify-content: flex-end;
  }
}
.bww-tv-series {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bww-space-1);
  background: #000;
  padding: var(--bww-space-2);
  margin-bottom: var(--bww-space-4);
}
.bww-tv-spotlight {
  margin-bottom: var(--bww-space-4);
  background: #000;
  overflow: hidden;
}
.bww-tv-spotlight__stage {
  width: 100%;
  line-height: 0;
}
.bww-tv-player-mount,
.bww-tv-player-mount > div,
.bww-tv-player-mount iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}
.bww-tv-spotlight .bww-tv-series {
  margin-bottom: 0;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 992px) {
  .tv-page .tv-page__main-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: var(--bww-space-3);
  }
  .tv-page .tv-page__main-row > .col-lg-7.mobile1 {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }
  .tv-page .tv-page__main-row > .video-row.r-side {
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;
    padding-left: 0;
  }
  .tv-page .bww-tv-spotlight-rail {
    display: flex;
    flex-direction: column;
    gap: var(--bww-space-2);
    min-height: 100%;
    margin-top: 0;
  }
  .tv-page .bww-tv-spotlight-rail__header {
    margin-top: 0;
    margin-bottom: var(--bww-space-2);
  }
  .tv-page .bww-tv-spotlight-rail > aside {
    display: flex;
    flex-direction: column;
    gap: var(--bww-space-2);
    margin: 0;
    background: #111;
    padding: var(--bww-space-2);
    border-radius: var(--bww-radius-sm);
  }
  .tv-page .bww-tv-spotlight-rail .short-video {
    margin: 0 !important;
    padding: var(--bww-space-2);
    background: #1a1a1a;
    border-radius: var(--bww-radius-sm);
  }
  .tv-page .bww-tv-spotlight-rail .short-video .right-cap a.title-16 {
    color: #fff !important;
  }
  .tv-page .bww-tv-spotlight-rail .short-video .right-cap a.title-16:hover {
    color: #fff202 !important;
  }
  .tv-page .bww-tv-spotlight-rail > .view-all {
    margin-top: var(--bww-space-2);
    text-align: left;
  }
  .tv-page .bww-tv-spotlight-rail > .view-all a {
    color: var(--bww-text-muted);
    font-size: var(--bww-text-sm);
    font-weight: 600;
    text-decoration: none;
  }
  .tv-page .bww-tv-spotlight-rail > .view-all a:hover {
    color: var(--bww-red);
    text-decoration: underline;
  }
}
@media (max-width: 991px) {
  .tv-page .bww-tv-spotlight-rail {
    margin-top: var(--bww-space-3);
  }
  .tv-page .bww-tv-spotlight-rail > aside {
    margin-top: 0;
  }
}

/* ── Video play page (/videoplay/*) ───────────────────────────────────── */
.videoplay-page .col-lg-7.mobile1 {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.videoplay-page__inner {
  max-width: 100%;
  padding: 0;
  margin: 0;
}
.videoplay-page__header {
  margin-bottom: var(--bww-space-3);
}
.videoplay-page__header h1 {
  margin: 0 0 var(--bww-space-2);
  color: var(--bww-text);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.videoplay-page__subtitle {
  margin: 0 0 var(--bww-space-2);
  font-size: var(--bww-text-base);
  line-height: 1.45;
  color: var(--bww-text-muted);
}
.videoplay-page__meta {
  font-size: var(--bww-text-sm);
  color: var(--bww-text-muted);
}
.videoplay-page__meta a {
  color: var(--bww-red);
  text-decoration: none;
}
.videoplay-page__player.video-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: var(--bww-space-3);
}
.videoplay-page__player.video-container iframe,
.videoplay-page__player.video-container object,
.videoplay-page__player.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}
.videoplay-page__player video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.videoplay-page__related {
  max-width: 100%;
  margin-top: var(--bww-space-4);
}
.videoplay-page__related-item {
  overflow: hidden;
  margin-bottom: var(--bww-space-3);
}
.videoplay-page__related-link {
  display: block;
  font-size: var(--bww-text-lg);
  font-weight: 700;
  line-height: 1.3;
  color: var(--bww-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.videoplay-page__related-link:hover {
  color: var(--bww-red);
}
.videoplay-page__related-thumb {
  float: right;
  width: 150px;
  max-width: 40%;
  height: auto;
  margin: 0 0 var(--bww-space-2) var(--bww-space-2);
}
.videoplay-page__related-date {
  font-size: var(--bww-text-xs);
  color: var(--bww-text-muted);
}
.videoplay-page__related-blurb {
  margin: 0;
  padding-right: 0;
  font-size: var(--bww-text-sm);
  color: var(--bww-text-muted);
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .videoplay-page .l-side {
    display: none;
  }
}

.bww-tv-series a {
  flex: 1 1 calc(20% - 8px);
  min-width: 110px;
  text-align: center;
}
.bww-tv-series img {
  width: 100%;
  height: auto;
  display: block;
  border: 4px solid #000;
}
.bww-tv-series a:hover img {
  border-color: #fff202;
}
.bww-tv-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--bww-space-3);
  margin: 0 0 var(--bww-space-4);
}
.bww-tv-toolbar__title,
.bww-tv-section-heading {
  margin: 0;
  font-size: var(--bww-text-lg);
  font-weight: 700;
  line-height: 1.25;
  color: var(--bww-text);
}
.bww-tv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bww-space-2);
  justify-content: flex-end;
}
.bww-tv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--bww-space-4);
  margin-bottom: var(--bww-space-5);
}
.bww-tv-card,
.bww-tv-ad {
  border: 1px solid var(--bww-surface-border);
  background: var(--bww-surface);
  padding: var(--bww-space-2);
  min-width: 0;
}
.bww-tv-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: var(--bww-surface-muted);
}
.bww-tv-card .videoContainer {
  position: relative;
}
.bww-tv-card .videoContainer > a {
  display: block;
}
.bww-tv-card .videoContainer > a img {
  width: 100%;
  height: auto;
  display: block;
  padding-bottom: var(--bww-space-2);
}
.bww-tv-card .videoContainer .playBtn,
.tv-page .bww-tv-np-row .videoContainer .playBtn {
  position: absolute;
  right: var(--bww-space-2);
  bottom: var(--bww-space-2);
  left: auto;
  top: auto;
  margin: 0;
  opacity: 0.9;
  pointer-events: none;
}
.bww-tv-card .videoContainer .playBtn {
  width: 50px;
  height: 50px;
  max-width: 50px;
  max-height: 50px;
}
.tv-page .bww-tv-np-row .videoContainer .playBtn {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
}
.tv-page .bww-tv-np-row .videoContainer {
  position: relative;
}
.tv-page .bww-tv-np-row .videoContainer > a img {
  width: 100%;
  height: auto;
  display: block;
}
.bww-tv-card h2 {
  font-weight: 700;
  font-size: var(--bww-text-base);
  line-height: 1.15;
  margin: 0 0 var(--bww-space-2);
}
.bww-tv-card h2 a {
  color: var(--bww-text);
  text-decoration: none;
}
.bww-tv-card h2 a:hover {
  color: var(--bww-red);
}
.bww-tv-card .bww-tv-blurb {
  font-size: var(--bww-text-sm);
  line-height: 1.4;
  color: var(--bww-text-muted);
  margin: 0;
}
.bww-tv-pagination {
  text-align: right;
  margin: var(--bww-space-2) 0 var(--bww-space-6);
}
.bww-tv-pagination a {
  font-size: var(--bww-text-base);
  font-weight: 700;
}
.tv-page .bww-tv-np-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bww-space-4);
}
.tv-page .bww-tv-np-row .video {
  flex: 1 1 calc(25% - 16px);
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.tv-page .bww-tv-np-row .video img {
  width: 100%;
  height: auto;
}
.tv-page .bww-tv-np-row .video a {
  display: block;
  margin-top: var(--bww-space-2);
  font-size: 0.9em;
  color: var(--bww-text);
  text-decoration: none;
}
.tv-page .bww-tv-np-intro {
  margin: var(--bww-space-2) 0 var(--bww-space-4);
  color: var(--bww-text-muted);
}
@media (max-width: 992px) {
  .bww-tv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .tv-page .bww-tv-np-row .video {
    flex: 1 1 calc(50% - 16px);
  }
  .tv-page .bww-tv-np-row .desktop-only {
    display: none;
  }
}
@media (min-width: 769px) {
  .tv-page .bww-tv-np-row .mobile-only {
    display: none;
  }
}
@media (max-width: 600px) {
  .bww-tv-grid {
    grid-template-columns: 1fr;
  }
  .bww-tv-series a {
    flex: 1 1 calc(50% - 8px);
  }
  .bww-tv-toolbar {
    align-items: flex-start;
  }
  .bww-tv-filters {
    justify-content: flex-start;
  }
  .bww-tv-card h2 {
    font-size: var(--bww-text-lg);
  }
}

/* TV listing — dark theme (beat dark.htm body a { #F08080 }) */
:root[data-bww-theme="dark"] .tv-page .bww-tv-card {
  background: var(--bww-surface) !important;
  border-color: var(--bww-surface-border) !important;
}
:root[data-bww-theme="dark"] .tv-page .bww-tv-ad {
  background: var(--bww-surface-muted) !important;
  border-color: var(--bww-surface-border) !important;
}
:root[data-bww-theme="dark"] .tv-page .bww-tv-toolbar__title,
:root[data-bww-theme="dark"] .tv-page .bww-tv-section-heading {
  color: var(--bww-text) !important;
}
:root[data-bww-theme="dark"] .tv-page .bww-tv-card h2 a,
:root[data-bww-theme="dark"] .tv-page .bww-tv-np-row .video a,
:root[data-bww-theme="dark"] .tv-page .bww-tv-pagination a {
  color: var(--bww-text) !important;
}
:root[data-bww-theme="dark"] .tv-page .bww-tv-card h2 a:hover,
:root[data-bww-theme="dark"] .tv-page .bww-tv-np-row .video a:hover,
:root[data-bww-theme="dark"] .tv-page .bww-tv-pagination a:hover {
  color: var(--bww-table-link-hover) !important;
}
:root[data-bww-theme="dark"] .tv-page .bww-tv-blurb,
:root[data-bww-theme="dark"] .tv-page .bww-tv-np-intro {
  color: var(--bww-text-muted) !important;
}
:root[data-bww-theme="dark"] .tv-page .bww-tv-filters .bww-chip:not(.bww-chip--active) {
  background: var(--bww-surface-muted) !important;
  border-color: var(--bww-surface-border) !important;
  color: var(--bww-text) !important;
}
:root[data-bww-theme="dark"] .tv-page .bww-tv-filters .bww-chip:not(.bww-chip--active):hover {
  border-color: var(--bww-red) !important;
  color: var(--bww-table-link-hover) !important;
}
:root[data-bww-theme="dark"] .tv-page .bww-tv-spotlight-rail > aside {
  background: #151515;
}
:root[data-bww-theme="dark"] .tv-page .bww-tv-spotlight-rail .short-video {
  background: #202020;
}

/* ── Topic subscribe confirmation page ───────────────────────────────────── */
.topic-subscribe-page .bww-page-hero {
  padding: var(--bww-space-3) var(--bww-space-4);
  margin-bottom: var(--bww-space-2);
}
.topic-subscribe-page__content {
  padding-top: var(--bww-space-2);
}
.topic-subscribe-page__body {
  padding: var(--bww-space-5);
}
.topic-subscribe-page__hint {
  margin: var(--bww-space-3) 0 0;
  font-size: var(--bww-text-xs);
  color: var(--bww-text-muted);
}
.topic-subscribe-page__actions {
  margin: var(--bww-space-5) 0 var(--bww-space-6);
}
.topic-subscribe-page .topic-newsletter {
  margin-top: 0;
}
.topic-subscribe-page .bww-alert + .topic-newsletter {
  margin-top: var(--bww-space-4);
}
