.hero-media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 470px;
}

.media-frame {
  position: relative;
  height: clamp(430px, 62vh, 640px);
  aspect-ratio: 9 / 16;
  margin-left: auto;
  border: 1px solid var(--line-2);
  border-radius: 30px;
  overflow: hidden;
  background: #050403;
  box-shadow: var(--shadow), 0 0 90px -30px rgba(212, 119, 34, 0.55);
  isolation: isolate;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.45) 0%, transparent 18%, transparent 62%, rgba(8, 7, 6, 0.86) 100%);
}

.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

.sound-toggle {
  position: absolute;
  z-index: 4;
  top: 15px;
  left: 15px;
display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 7, 6, 0.62);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.sound-toggle:hover {
  border-color: rgba(240, 160, 75, 0.6);
  background: rgba(20, 13, 7, 0.9);
}

.sound-toggle svg {
  width: 16px;
  height: 16px;
}

.sound-toggle .mark-off {
  display: block;
}
.sound-toggle[aria-pressed="true"] .mark-off {
  display: none;
}

.availability {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(240, 160, 75, 0.3);
  border-radius: 999px;
  background: rgba(16, 11, 7, 0.78);
  backdrop-filter: blur(12px);
  color: #ffe7c8;
  font-size: 0.72rem;
  white-space: nowrap;
}

.availability .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 160, 75, 0.16);
}

.data-card {
  position: absolute;
  z-index: 6;
  left: clamp(-58px, -4vw, -22px);
  bottom: 34px;
  width: min(272px, 78%);
  padding: 16px 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(28, 21, 13, 0.96), rgba(13, 10, 7, 0.97));
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.95);
}

.data-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.data-card-top > span {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.data-card-top .live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gain);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.data-card-top .live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gain);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.data-card strong {
  display: block;
  margin: 4px 0 2px;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.data-card strong small {
  color: var(--gain);
  font-size: 0.6em;
  font-weight: 700;
}

.data-card p {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.spark {
  width: 100%;
  height: auto;
  margin-top: 6px;
  overflow: visible;
}

.spark .line-ret,
.spark .line-inv {
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  transition: stroke-dashoffset 1.6s var(--ease);
}

.spark .line-inv {
  transition-delay: 0.05s;
}

.spark .line-ret {
  transition-delay: 0.3s;
}

.is-drawn .spark .line-ret,
.is-drawn .spark .line-inv {
  stroke-dashoffset: 0;
}

.spark-legend {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.56rem;
}

.spark-legend i {
  display: inline-block;
  width: 12px;
  height: 2px;
  margin-right: 5px;
  border-radius: 2px;
  vertical-align: middle;
}

.spark-legend .l-ret {
  background: var(--gold);
}

.spark-legend .l-inv {
  background: rgba(255, 255, 255, 0.3);
}

.chart-note {
  margin-top: 6px;
  color: #6f6659;
  font-size: 0.54rem;
}
