.detail-live-status {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(280px, 1.28fr);
  gap: 22px;
  margin-top: 26px;
  margin-bottom: -18px;
  padding: 18px 20px;
  border: 1px solid rgba(121, 232, 163, .34);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(17, 54, 34, .52), rgba(6, 24, 15, .42));
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .1);
}

.detail-live-status__sync,
.detail-live-status__release {
  min-width: 0;
}

.detail-live-status__sync {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
}

.detail-live-status__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #092015;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 0 6px rgba(121, 232, 163, .1);
}

.detail-live-status small,
.detail-live-status time {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.detail-live-status strong {
  display: block;
  margin: 2px 0;
  color: #effbf3;
  font-size: 15px;
  line-height: 1.4;
}

.detail-live-status__release {
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.detail-live-status__release p {
  margin: 4px 0 0;
  color: #c7d8cd;
  font-size: 12px;
  line-height: 1.55;
}

.detail-live-status--candidate {
  border-color: rgba(239, 198, 108, .5);
  background: linear-gradient(135deg, rgba(72, 53, 13, .5), rgba(31, 27, 15, .38));
}

.detail-live-status--candidate .detail-live-status__icon {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(239, 198, 108, .1);
}

.detail-live-status--locked {
  border-color: rgba(250, 211, 106, .78);
  background: linear-gradient(135deg, rgba(88, 66, 12, .56), rgba(29, 38, 15, .4));
  box-shadow: 0 18px 48px rgba(87, 63, 7, .22), inset 0 1px rgba(255, 242, 191, .18);
}

.detail-live-status--locked .detail-live-status__icon {
  background: #f5d46f;
  box-shadow: 0 0 0 6px rgba(245, 212, 111, .13);
}

.detail-live-status--locked .detail-live-status__release strong {
  color: #f9dc80;
}

.detail-live-status--frozen {
  border-color: rgba(163, 200, 178, .4);
  background: linear-gradient(135deg, rgba(29, 49, 38, .5), rgba(18, 31, 24, .4));
}

.detail-live-status--frozen .detail-live-status__icon {
  color: #e9f5ee;
  background: #557565;
  box-shadow: 0 0 0 6px rgba(136, 177, 153, .1);
}

.detail-live-status--blocked {
  border-color: rgba(255, 138, 125, .48);
  background: linear-gradient(135deg, rgba(66, 28, 22, .52), rgba(31, 22, 19, .4));
}

.detail-live-status--blocked .detail-live-status__icon {
  color: #29100d;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(255, 138, 125, .1);
}

.detail-live-status--blocked .detail-live-status__release strong {
  color: #ffafa5;
}

@media (max-width: 720px) {
  .detail-live-status {
    grid-template-columns: 1fr;
    gap: 14px;
    width: calc(100% - 32px);
    margin-top: 18px;
    margin-bottom: -10px;
    padding: 16px;
  }

  .detail-live-status__release {
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-live-status { scroll-behavior: auto; }
}

/* The detail page uses one compact glass cluster in the lower-right hero
   area. It keeps the data/release state visible without competing with the
   match title or the formal verdict. */
.detail-hero-glass-cluster {
  width: min(700px, 100%);
  margin: 20px 0 0 auto;
  padding: 14px;
  border: 1px solid rgba(180, 235, 201, .28);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(18, 54, 35, .5), rgba(5, 22, 14, .38));
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .11);
}

.detail-hero-glass-cluster .detail-live-status {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 14px;
}

.detail-hero-glass-cluster .detail-live-status__release {
  padding-left: 14px;
  border-left-color: rgba(255, 255, 255, .14);
}

.detail-hero-glass-cluster .detail-meta-glass {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.detail-hero-glass-cluster .detail-chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.detail-hero-glass-cluster .detail-chips span {
  padding: 5px 8px;
  border-color: rgba(220, 244, 228, .22);
  background: rgba(5, 22, 14, .3);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.detail-hero-glass-cluster .detail-favorite {
  flex: 0 0 auto;
  min-height: 32px;
  margin: 0;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
}

@media (max-width: 720px) {
  .detail-hero-glass-cluster {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border-radius: 18px;
  }

  .detail-hero-glass-cluster .detail-live-status {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detail-hero-glass-cluster .detail-live-status__release {
    padding: 10px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-left: 0;
  }

  .detail-hero-glass-cluster .detail-meta-glass {
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .detail-hero-glass-cluster .detail-chips {
    flex-basis: 100%;
  }

  .detail-hero-glass-cluster .detail-favorite {
    margin-left: auto;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .detail-hero-glass-cluster {
    background: rgba(8, 28, 18, .94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Final compact glass treatment for the detail hero status and header actions. */
.detail-hero-glass-cluster {
  width: min(620px, 100%);
  margin-top: 14px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(18, 54, 35, .44), rgba(5, 22, 14, .3));
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .1);
}

.detail-hero-glass-cluster .detail-live-status {
  gap: 10px;
}

.detail-hero-glass-cluster .detail-live-status__icon {
  width: 24px;
  height: 24px;
  font-size: 10px;
  box-shadow: 0 0 0 5px rgba(91, 223, 145, .1);
}

.detail-hero-glass-cluster .detail-live-status small,
.detail-hero-glass-cluster .detail-live-status time {
  font-size: 10px;
}

.detail-hero-glass-cluster .detail-live-status strong {
  margin: 1px 0;
  font-size: 13px;
}

.detail-hero-glass-cluster .detail-live-status__release {
  padding-left: 10px;
}

.detail-hero-glass-cluster .detail-live-status__release p {
  font-size: 10.5px;
  line-height: 1.4;
}

.detail-hero-glass-cluster .detail-meta-glass {
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
}

.detail-hero-glass-cluster .detail-chips {
  gap: 5px;
}

.detail-hero-glass-cluster .detail-chips span {
  padding: 4px 7px;
  font-size: 10px;
}

.detail-meta-chip--good {
  color: #9ff2bd !important;
  border-color: rgba(121, 232, 163, .55) !important;
  background: rgba(121, 232, 163, .1) !important;
}

.detail-meta-chip--warn {
  color: #f2d083 !important;
  border-color: rgba(239, 198, 108, .55) !important;
  background: rgba(239, 198, 108, .1) !important;
}

.detail-meta-chip--bad {
  color: #ffaaa0 !important;
  border-color: rgba(255, 138, 125, .6) !important;
  background: rgba(255, 138, 125, .1) !important;
}

.detail-meta-chip--neutral {
  color: #d6e3d9 !important;
}

.detail-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  position: absolute;
  z-index: 4;
  top: 84px;
  left: max(24px, calc((100% - 1180px) / 2));
  margin: 0;
}

.detail-hero-actions-placeholder {
  width: 1px;
  height: 40px;
  margin: -32px 0 0 -8px;
  visibility: hidden;
  pointer-events: none;
}

.detail-hero-actions .detail-back,
.detail-hero-actions .detail-favorite--header {
  width: fit-content;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  background: rgba(8, 27, 17, .42);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .1);
}

.detail-hero-actions .detail-favorite--header {
  margin: 0;
  border-color: rgba(190, 235, 207, .35);
  font-size: 12px;
}

@media (max-width: 720px) {
  .detail-hero-glass-cluster {
    margin-top: 12px;
    padding: 9px;
  }

  .detail-hero-glass-cluster .detail-live-status {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 8px;
  }

  .detail-hero-glass-cluster .detail-live-status__release {
    padding: 0 0 0 9px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, .12);
  }

  .detail-hero-glass-cluster .detail-meta-glass {
    margin-top: 7px;
    padding-top: 7px;
  }

  .detail-hero-actions {
    display: flex;
    gap: 6px;
    top: max(72px, calc(env(safe-area-inset-top) + 72px));
    left: max(12px, calc(env(safe-area-inset-left) + 12px));
  }

  .detail-hero-actions-placeholder {
    height: 40px;
    margin: -32px 0 0 -8px;
  }

  .detail-hero-actions .detail-back,
  .detail-hero-actions .detail-favorite--header {
    min-width: 0;
    white-space: nowrap;
  }

  .detail-hero-actions .detail-back {
    flex: 0 1 auto;
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .detail-hero-actions .detail-favorite--header {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 9px;
    font-size: 11px;
  }
}

@media (max-width: 350px) {
  .detail-hero-glass-cluster .detail-live-status {
    grid-template-columns: 1fr;
  }

  .detail-hero-glass-cluster .detail-live-status__release {
    padding: 8px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-left: 0;
  }

  .detail-hero-actions .detail-back {
    font-size: 13px;
    padding: 0 10px;
  }

  .detail-hero-actions .detail-favorite--header {
    padding: 0 8px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .detail-hero-glass-cluster,
  .detail-hero-actions .detail-back,
  .detail-hero-actions .detail-favorite--header {
    background: rgba(8, 28, 18, .94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
