:root {
  color-scheme: dark;
  --bg: #050a13;
  --surface: #0b1423;
  --surface-strong: #101c2f;
  --line: rgba(153, 178, 214, 0.17);
  --line-strong: rgba(82, 141, 255, 0.38);
  --text: #f6f9ff;
  --muted: #9dacbf;
  --blue: #2d7fff;
  --blue-bright: #66a3ff;
  --green: #39d98a;
  --amber: #ffbd59;
  --red: #ff6577;
  --radius: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -14%, rgba(45, 127, 255, 0.2), transparent 38rem),
    linear-gradient(180deg, #08111f 0%, var(--bg) 52%, #03070e 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button,
video {
  font: inherit;
}

.page-shell {
  width: min(100%, 49rem);
  margin: 0 auto;
  padding: max(2.25rem, env(safe-area-inset-top)) 1rem max(1.75rem, env(safe-area-inset-bottom));
}

.intro {
  margin: 0 0 1.5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  color: #a9c7ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow-mark {
  width: 1.65rem;
  height: 0.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #7cb1ff);
  box-shadow: 0 0 1rem rgba(45, 127, 255, 0.72);
}

h1 {
  max-width: 16em;
  margin: 0;
  font-size: clamp(1.8rem, 7.2vw, 2.85rem);
  font-weight: 720;
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.intro p {
  max-width: 36rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.player-card {
  padding: 0.55rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 30, 50, 0.98), rgba(8, 16, 29, 0.98));
  box-shadow:
    0 1.6rem 4.2rem rgba(0, 0, 0, 0.44),
    inset 0 1px rgba(255, 255, 255, 0.04);
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: calc(var(--radius) - 7px);
  background: #02050a;
}

.player-frame .video-js,
.player-frame .tcplayer,
.player-frame video {
  width: 100% !important;
  height: 100% !important;
}

.player-frame .video-js {
  position: absolute;
  inset: 0;
  background: #02050a;
}

.player-frame .vjs-poster {
  background-size: cover;
}

.player-frame .vjs-big-play-button {
  display: none;
}

.status-panel {
  min-height: 5.8rem;
  padding: 1.05rem 0.8rem 0.75rem;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-dot {
  flex: 0 0 auto;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0.75rem rgba(45, 127, 255, 0.72);
}

.status-dot.is-loading {
  animation: status-pulse 1.6s ease-in-out infinite;
}

.status-dot.is-success {
  background: var(--green);
  box-shadow: 0 0 0.75rem rgba(57, 217, 138, 0.56);
}

.status-dot.is-warning {
  background: var(--amber);
  box-shadow: 0 0 0.75rem rgba(255, 189, 89, 0.52);
}

.status-dot.is-error {
  background: var(--red);
  box-shadow: 0 0 0.75rem rgba(255, 101, 119, 0.54);
}

.status-caption {
  display: block;
  margin-bottom: 0.16rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.2;
}

#status-text {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.status-detail {
  margin: 0.65rem 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.play-button {
  display: flex;
  width: 100%;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  border-radius: 15px;
  color: white;
  background: linear-gradient(135deg, #1669ed, var(--blue));
  box-shadow: 0 0.8rem 1.8rem rgba(19, 87, 193, 0.28);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.play-button:not(:disabled):active {
  transform: scale(0.985);
}

.play-button:focus-visible {
  outline: 3px solid rgba(102, 163, 255, 0.62);
  outline-offset: 3px;
}

.play-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 0.38rem solid transparent;
  border-bottom: 0.38rem solid transparent;
  border-left: 0.62rem solid currentColor;
}

.environment-note {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--muted);
  background: rgba(11, 20, 35, 0.68);
}

.environment-note.is-compatible {
  border-color: rgba(57, 217, 138, 0.25);
}

.environment-note svg {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  fill: var(--blue-bright);
}

.environment-note p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.environment-note strong {
  color: var(--text);
}

.verification-scope {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.verification-scope div {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1rem;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  background: linear-gradient(90deg, rgba(45, 127, 255, 0.065), transparent 84%);
}

.verification-scope span {
  color: var(--blue-bright);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.verification-scope p {
  margin: 0;
  font-size: 0.9rem;
}

footer {
  margin-top: 2rem;
  text-align: center;
}

footer p,
noscript {
  color: #718096;
  font-size: 0.78rem;
  line-height: 1.6;
}

noscript {
  display: block;
  padding: 1rem;
  text-align: center;
}

@keyframes status-pulse {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.52;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (min-width: 42rem) {
  .page-shell {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .player-card {
    padding: 0.7rem;
  }

  .status-panel {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .verification-scope {
    grid-template-columns: repeat(3, 1fr);
  }

  .verification-scope div {
    min-height: 5.1rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
