/* LIVE idle archives (lia-) — rising-v10a. Load after study55-live-idle.css. */

body.s55 #on-air > #v8-live-content > div.v8-live-empty.lia-enhanced {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(243, 236, 220, 0.78);
  font-size: 13px;
  line-height: 1.5;
  box-shadow: none;
}

body.s55 #on-air:is([data-state="unknown"], [data-state="stale"]) > #v8-live-content > .v8-live-empty.lia-enhanced {
  box-shadow: none;
}

body.s55 #on-air:not([data-state="loading"]) > #v8-live-content > .v8-live-empty.lia-enhanced::before {
  content: none;
}

body.s55 #on-air:has(> #v8-live-content > .v8-live-empty.lia-enhanced) > .v8-live-foot {
  display: none !important;
}

body.s55 #on-air:has(> #v8-live-content > .v8-live-empty.lia-enhanced) > .v8-live-heading {
  margin-bottom: 0;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .v8-live-empty-copy {
  display: none;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .v8-live-empty-icon[hidden] {
  display: none;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-root {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 32px;
  padding-bottom: 96px;
}

@media (max-width: 767px) {
  body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-root {
    padding-bottom: 64px;
  }
}

/* Caption */
body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-caption {
  margin: 0;
  padding: 0;
  font-family: 'Zen Kaku Gothic New', var(--body, sans-serif);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: rgba(243, 236, 220, 0.78);
  text-align: left;
}

/* Archive list — phone */
body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 24px;
  min-width: 0;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-item {
  margin: 0;
  padding: 0;
  min-width: 0;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-link {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0724;
  overflow: hidden;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 0;
  background: rgba(13, 7, 36, 0.82);
  color: #f3ecdc;
  font-family: 'Barlow Condensed', var(--display, sans-serif);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-name {
  margin: 16px 0 0;
  font-family: 'Zen Kaku Gothic New', var(--body, sans-serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  color: #f3ecdc;
  overflow-wrap: anywhere;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-title {
  margin: 8px 0 0;
  font-family: 'Zen Kaku Gothic New', var(--body, sans-serif);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(243, 236, 220, 0.78);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-link:hover .lia-title,
body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-link:focus-visible .lia-title {
  color: #f3ecdc;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-meta {
  margin: 8px 0 0;
  font-family: 'Barlow Condensed', var(--display, sans-serif);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(243, 236, 220, 0.78);
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-link:focus-visible {
  outline: 2px solid rgba(184, 156, 255, 0.85);
  outline-offset: 4px;
}

/* Footer */
body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  min-width: 0;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-note {
  margin: 0;
  padding: 0;
  color: rgba(243, 236, 220, 0.78);
  font-family: 'Zen Kaku Gothic New', var(--body, sans-serif);
  font-size: 12px;
  line-height: 1.5;
  word-break: auto-phrase;
  text-wrap: pretty;
  text-align: left;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-retry[hidden] {
  display: none;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-retry {
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(243, 236, 220, 0.78);
  font-family: 'Zen Kaku Gothic New', var(--body, sans-serif);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  cursor: pointer;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-retry:hover {
  color: #f3ecdc;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-retry:focus-visible {
  outline: 2px solid rgba(184, 156, 255, 0.85);
  outline-offset: 2px;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-retry[aria-disabled="true"],
body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-retry[aria-disabled="true"]:hover {
  color: #7a6f92;
  cursor: progress;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-all {
  display: flex;
  justify-content: flex-start;
  min-width: 0;
  padding: 0;
  border: 0;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-all .v8-live-empty-link {
  order: unset;
  flex: unset;
  margin: 0;
  min-height: 44px;
  color: rgba(243, 236, 220, 0.78);
  font-family: 'Barlow Condensed', var(--display, sans-serif);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-decoration: none;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-all .v8-live-empty-link:hover {
  color: #f3ecdc;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-all .v8-live-empty-link:focus-visible {
  outline: 2px solid rgba(184, 156, 255, 0.85);
  outline-offset: 2px;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-all .v8-live-empty-link > .ui-icon {
  width: 17px;
  height: 17px;
}

body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-all .v8-live-empty-link > .ui-icon:last-child {
  width: 12px;
  height: 12px;
}

@media (min-width: 768px) {
  body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 0;
  }

  body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-footer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 16px;
  }

  body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-note {
    flex: 0 1 auto;
    min-width: 0;
  }

  body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-retry {
    flex: 0 0 auto;
  }

  body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-all {
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
  }
}

body.ik-plane:has(.ensemble-stage.ik) #on-air > #v8-live-content > .v8-live-empty.lia-enhanced,
#on-air > #v8-live-content > .v8-live-empty.lia-enhanced {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.ik-plane:has(.ensemble-stage.ik) #main > .edition-live-wrap + .s48-products,
.study16 #main > .edition-live-wrap + .s48-products {
  margin-top: 0;
}

body:has(.ensemble-stage) #main > .edition-live-wrap::before {
  bottom: 0;
}

@media (max-width: 520px) {
  body:has(.ensemble-stage) #main > .edition-live-wrap::before {
    bottom: 0;
  }
}

body.lia-retry-proxied #on-air > .v8-live-foot #v8-live-retry {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-link,
  body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-thumb-img {
    transition: none;
  }
}

/* Orchestrator (2026-09-28): an inherited idle-state rule gave the item link margin-left 16px (desktop) / margin-top 10px
   (phone), so the thumbnails sat off the gutter; and the title's line count shifted the meta rows between columns. */
body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-list .lia-link { margin: 0; }
body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-list .lia-title { min-height: calc(2 * 1.6em); }
/* gate 720eb824: MEMBER CHANNELS took its baseline from its leading icon, 4–5px off the note's; set the link as inline text
   so the row's baseline is the text's, with the icons riding on it */
body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-all .v8-live-empty-link { display: inline-block; }
body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-all .v8-live-empty-link > .ui-icon { display: inline-block; vertical-align: -3px; }
/* inline-block dropped the flex gap: keep 8px between the icons and the label */
body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-all .v8-live-empty-link > .ui-icon:first-child { margin-right: 8px; }
body.s55 #on-air:not([data-state="live"]) > #v8-live-content > .v8-live-empty.lia-enhanced .lia-all .v8-live-empty-link > .ui-icon:last-child { margin-left: 8px; }
