.pc-showcase-root {
  width: var(--shell);
  margin: -18px auto 28px;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

.pc-showcase-controls {
  margin-top: 14px;
}

.pc-showcase-open,
.pc-showcase-status {
  width: 100%;
  min-height: 43px;
  padding: 9px 16px;
  color: #20180a;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: 0;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
}

.pc-showcase-open {
  cursor: pointer;
}

.pc-showcase-status {
  display: grid;
  place-items: center;
}

.pc-showcase-video-open::after,
.pc-showcase-video-open .hero-copy {
  display: none;
}

.pc-showcase-video,
.pc-showcase-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pc-showcase-video {
  background: #000;
}

.pc-showcase-video iframe {
  border: 0;
}

.pc-showcase-panel {
  margin-top: 14px;
  color: #f7f3e8;
}

.pc-showcase-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.pc-showcase-tabs button {
  min-height: 36px;
  padding: 6px 8px;
  color: #eee5d1;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(232, 207, 143, .45);
  border-radius: 4px;
  font-size: .69rem;
  font-weight: 700;
  cursor: pointer;
}

.pc-showcase-tabs button[aria-selected="true"] {
  color: #20180a;
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.pc-showcase-result-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pc-showcase-result-head small {
  color: var(--gold-light);
  font-family: Arial, sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .13em;
}

.pc-showcase-result-head h3 {
  margin: 1px 0 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
}

.pc-showcase-result-head time {
  color: #d6ded9;
  font-size: .66rem;
  white-space: nowrap;
}

.pc-finish-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.pc-finish-list li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 7px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(232, 207, 143, .28);
  border-radius: 4px;
}

.pc-finish-rank {
  color: var(--gold-light);
  font-size: .62rem;
  font-weight: 700;
}

.pc-finish-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #082f26;
  background: var(--gold-light);
  border-radius: 50%;
  font-size: .88rem;
}

.pc-finish-mark.is-empty {
  color: #8e9c95;
  background: rgba(255, 255, 255, .08);
}

.pc-finish-horse {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: .62rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-finish-horse strong {
  margin-right: 3px;
  color: var(--gold-light);
}

.pc-payout-scroll {
  max-height: 150px;
  overflow: auto;
  border: 1px solid rgba(232, 207, 143, .3);
  border-radius: 4px;
}

.pc-showcase-payout {
  width: 100%;
  border-collapse: collapse;
  color: #f7f3e8;
  font-size: .66rem;
}

.pc-showcase-payout th,
.pc-showcase-payout td {
  padding: 5px 7px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.pc-showcase-payout thead th {
  position: sticky;
  top: 0;
  color: #082f26;
  background: var(--gold-light);
}

.pc-showcase-payout tbody th {
  color: var(--gold-light);
  white-space: nowrap;
}

.pc-showcase-payout td:last-child {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.pc-showcase-payout td.is-high {
  color: #ff5661;
}

.pc-showcase-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: .68rem;
}

.pc-showcase-actions a {
  color: var(--gold-light);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pc-showcase-actions button {
  margin-left: auto;
  padding: 4px 8px;
  color: #dae3de;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 3px;
  cursor: pointer;
}

.pc-race-ticker {
  width: 100%;
  overflow: hidden;
  color: #f8eed2;
  background: #03291f;
  border: 1px solid rgba(200, 155, 60, .7);
  border-radius: 5px;
}

.pc-race-ticker-track {
  display: flex;
  width: max-content;
  animation: pcsr-ticker 34s linear infinite;
}

.pc-race-ticker span {
  min-width: max-content;
  padding: 8px 56px 8px 0;
  font-size: .76rem;
  font-weight: 700;
}

@keyframes pcsr-ticker {
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .pc-showcase-root { margin-top: -7px; }
  .pc-finish-list { grid-template-columns: 1fr; }
  .pc-payout-scroll { max-height: 190px; }
}

@media (max-width: 720px) {
  .pc-showcase-open,
  .pc-showcase-status { font-size: .72rem; }
  .pc-showcase-tabs { grid-template-columns: 1fr; }
  .pc-showcase-result-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .pc-race-ticker span { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-race-ticker-track { animation: none; }
}
