.cosmo-player {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(18, 20, 20, 0.46), rgba(18, 20, 20, 0.72)),
    var(--cosmo-bg) center / cover no-repeat,
    #202424;
  color: #f7f3ea;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cosmo-player * {
  box-sizing: border-box;
}

.path-performance .main-content,
.path-test .main-content,
.path-performance .main-content__container,
.path-test .main-content__container,
.path-performance .region--content,
.path-test .region--content {
  width: 100%;
  max-width: none;
  padding: 0;
}

.path-performance .feed-icon,
.path-test .feed-icon,
.path-performance .site-footer,
.path-test .site-footer,
.path-performance .site-header,
.path-test .site-header,
.path-performance .region--breadcrumb,
.path-test .region--breadcrumb,
.path-performance .region--content-above,
.path-test .region--content-above {
  display: none;
}

.path-performance.toolbar-fixed,
.path-test.toolbar-fixed {
  padding-top: 0 !important;
}

.path-performance .toolbar,
.path-test .toolbar {
  display: none;
}

.cosmo-player__shell {
  display: grid;
  align-content: start;
  gap: 22px;
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 36px);
}

.cosmo-player__header {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.cosmo-player__logo {
  display: block;
  width: min(46vw, 180px);
  height: auto;
}

.cosmo-player__control-link {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.94);
  color: #22231f;
  font-weight: 800;
  text-decoration: none;
}

.cosmo-player__control-link:hover,
.cosmo-player__control-link:focus-visible {
  background: #f2cf5b;
  color: #22231f;
  outline: none;
}

.cosmo-player__eyebrow,
.cosmo-player__schedule,
.cosmo-player__part-kicker,
.cosmo-player__part-description {
  margin: 0;
  color: rgba(247, 243, 234, 0.74);
  font-size: 0.83rem;
  line-height: 1.35;
}

.cosmo-player__eyebrow {
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cosmo-player__title {
  margin: 4px 0 0;
  color: #fffdf7;
  font-size: 2.35rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.cosmo-player__description {
  max-width: 34rem;
  margin: 14px 0 0;
  color: rgba(247, 243, 234, 0.86);
  font-size: 1.05rem;
  line-height: 1.45;
}

.cosmo-player__status {
  display: grid;
  grid-template-columns: minmax(82px, 108px) 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(247, 243, 234, 0.18);
  border-radius: 8px;
  background: rgba(21, 25, 24, 0.72);
  backdrop-filter: blur(16px);
}

.cosmo-player__countdown {
  display: grid;
  min-height: 74px;
  place-items: center;
  border-radius: 8px;
  background: #f2cf5b;
  color: #22231f;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
}

.cosmo-player__status-label {
  margin: 0 0 6px;
  color: #fffdf7;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
}

.cosmo-player__parts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 10px;
}

.cosmo-player__part {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 14px;
  border: 1px solid rgba(247, 243, 234, 0.16);
  border-radius: 8px;
  background: rgba(250, 250, 245, 0.12);
  color: #fffdf7;
  text-align: left;
  cursor: pointer;
}

.cosmo-player__part:nth-child(4n+1) {
  background: rgba(184, 92, 83, 0.86);
}

.cosmo-player__part:nth-child(4n+2) {
  background: rgba(121, 149, 93, 0.88);
}

.cosmo-player__part:nth-child(4n+3) {
  background: rgba(73, 126, 157, 0.88);
}

.cosmo-player__part:nth-child(4n+4) {
  background: rgba(184, 132, 70, 0.9);
}

.cosmo-player__part:hover,
.cosmo-player__part:focus-visible {
  border-color: #fffdf7;
  outline: none;
}

.cosmo-player__part.is-selected {
  box-shadow: 0 0 0 3px #f2cf5b inset;
}

.cosmo-player__part[disabled] {
  cursor: default;
  opacity: 0.76;
}

.cosmo-player__part.is-locked:not(.is-selected) {
  cursor: not-allowed;
  opacity: 0.74;
}

.cosmo-player__part-title {
  color: #fffdf7;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.08;
}

.cosmo-player__part-count {
  align-self: end;
  width: fit-content;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.22);
  color: #fffdf7;
  font-size: 0.8rem;
  font-weight: 800;
}

.cosmo-player__part-state {
  align-self: end;
  width: fit-content;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(21, 25, 24, 0.72);
  color: #fffdf7;
  font-size: 0.82rem;
  font-weight: 700;
}

.cosmo-player__audio {
  display: none;
}

.cosmo-player__empty {
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: rgba(21, 25, 24, 0.72);
}

.cosmo-performance-list {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 40px);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cosmo-performance-list__header h1 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1;
}

.cosmo-performance-list__header p {
  margin: 10px 0 24px;
  color: #59615c;
}

.cosmo-performance-list__items {
  display: grid;
  gap: 14px;
}

.cosmo-performance-list__item {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid #d7ddd8;
  border-radius: 8px;
}

.cosmo-performance-list__details h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.cosmo-performance-list__details p {
  margin: 0 0 8px;
  color: #59615c;
}

.cosmo-performance-list__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #1f5d7a;
  font-weight: 700;
}

.cosmo-performance-list__qr {
  width: 130px;
  height: 130px;
}

.cosmo-performance-link {
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 18px;
  align-items: center;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid #d7ddd8;
  border-radius: 8px;
  background: #fff;
  color: #22231f;
}

.cosmo-performance-link__copy h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.cosmo-performance-link__copy p {
  margin: 0 0 14px;
  color: #59615c;
}

.cosmo-performance-link__button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #22231f;
  color: #fffdf7;
  font-weight: 800;
  text-decoration: none;
}

.cosmo-performance-link__button:hover,
.cosmo-performance-link__button:focus-visible {
  color: #fffdf7;
  text-decoration: underline;
}

.cosmo-performance-link__control {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-left: 8px;
  color: #1f5d7a;
  font-weight: 800;
}

.cosmo-performance-link__qr-link {
  display: block;
}

.cosmo-performance-link__qr {
  display: block;
  width: 148px;
  height: 148px;
}

.cosmo-control {
  display: grid;
  gap: 20px;
  min-height: 100vh;
  padding: 28px;
  background: #f5f2e9;
  color: #22231f;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cosmo-control__header,
.cosmo-control__summary,
.cosmo-control__footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cosmo-control__eyebrow,
.cosmo-control__label,
.cosmo-control__part-kicker,
.cosmo-control__status {
  margin: 0;
  color: #59615c;
  font-size: 0.88rem;
  line-height: 1.35;
}

.cosmo-control__header h1 {
  margin: 4px 0 0;
  font-size: 2.35rem;
  line-height: 1;
}

.cosmo-control__player-link,
.cosmo-control__sync,
.cosmo-control__reset {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #22231f;
  color: #fffdf7;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.cosmo-control__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cosmo-control__summary {
  flex-wrap: wrap;
  padding: 18px;
  border: 1px solid #d7ddd8;
  border-radius: 8px;
  background: #fff;
}

.cosmo-control__metric {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  line-height: 0.95;
}

.cosmo-control__toggle {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
}

.cosmo-control__toggle input {
  width: 22px;
  height: 22px;
}

.cosmo-control__parts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.cosmo-control__part {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 116px;
  padding: 16px;
  border: 1px solid #d7ddd8;
  border-radius: 8px;
  background: #fff;
}

.cosmo-control__part.is-empty {
  border-color: #c56d62;
}

.cosmo-control__part h2 {
  margin: 4px 0 0;
  font-size: 1.2rem;
  line-height: 1.12;
}

.cosmo-control__count {
  min-width: 62px;
  color: #1f5d7a;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

@media (max-width: 520px) {
  .cosmo-player__status {
    grid-template-columns: 1fr;
  }

  .cosmo-player__countdown {
    min-height: 86px;
  }

  .cosmo-performance-list__item {
    grid-template-columns: 1fr;
  }

  .cosmo-performance-link {
    grid-template-columns: 1fr;
  }

  .cosmo-control {
    padding: 18px;
  }

  .cosmo-control__header,
  .cosmo-control__summary,
  .cosmo-control__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .cosmo-control__actions {
    width: 100%;
  }

  .cosmo-control__actions > button {
    flex: 1 1 150px;
    justify-content: center;
  }
}

@media (min-width: 680px) {
  .cosmo-player__title {
    font-size: 3.8rem;
  }

  .cosmo-player__description {
    font-size: 1.2rem;
  }

  .cosmo-player__countdown {
    font-size: 3.45rem;
  }

  .cosmo-player__status-label {
    font-size: 1.3rem;
  }

  .cosmo-performance-list__header h1 {
    font-size: 3.7rem;
  }
}
