/**
 * demo.refactored.css — structural refactor of demo.css
 *
 * Rollback: point index.php back to demo.css instead of this file.
 *
 * Test Your Stream — standalone visual styles
 *
 * Sources (extracted; WP/theme files not loaded at runtime):
 * - WPCode CSS 23518
 * - Page 18568 inline <style> (debug panel)
 * - blocks_elements.css (.dbio-default-button + outlined-alt)
 * - Theme form defaults (style.css input/select) scoped to this demo
 * - GeneratePress typography settings (h2/h6 sizes, letter-spacing)
 *
 * Page chrome lives on .test-stream-app (not html/body) so negative-z-index
 * pseudo-elements (e.g. metrics gradient ring) stay visible above the app
 * background. Demo rules are further scoped under .optiview-demo-app /
 * .dbio_test_the_stream_container.
 */

/* -------------------------------------------------------------------------
   Fonts
   Avenir Next is theme-hosted (not a public webfont). When co-hosted with WP
   these @font-face rules load the same files as production. Fallbacks cover
   pure standalone hosts without the theme fonts directory.
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "avenir-next-regular";
  src:
    url("/wp-content/themes/generatepress_child/fonts/6149662/146f526d-792d-4257-ba12-0fb6fbb8e31e.woff2") format("woff2"),
    url("/wp-content/themes/generatepress_child/fonts/6149662/2a1d06fe-73d7-4df1-9d59-5227c3c01d03.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "avenir-next-medium";
  src:
    url("/wp-content/themes/generatepress_child/fonts/6149672/9548fa3a-05c3-47ef-a6d5-f2f6fef54f84.woff2") format("woff2"),
    url("/wp-content/themes/generatepress_child/fonts/6149672/7667f1c1-c3ca-4520-aead-66f9d93d55a0.woff") format("woff");
  font-display: swap;
}

/*---------------------------------------------------------------------------
  Variable Declarations
  ---------------------------------------------------------------------------*/
:root {
    /* Colors */
    --ts-color-bg: #14141a;
    --ts-color-bg-muted: #18181b;
    --ts-color-bg-header: #111113;
    --ts-color-text: #b9b9ba;
    --ts-color-text-white: #fff;
    --ts-color-text-heading: #ffffff;
    --ts-color-text-muted: #ccc;
    --ts-color-text-secondary: #a1a1aa;
    --ts-color-text-dim: #71717a;
    --ts-color-text-faint: #52525b;
    --ts-color-accent: #b924ff;
    --ts-color-accent-outline: #aa33ff;
    --ts-color-accent-blue: #3e49f4;
    --ts-color-accent-blue-bright: #3e44fe;
    --ts-color-border: #2a2a2e;
    --ts-color-border-dot: #3f3f46;
    --ts-color-warning-bg: #3b1d4a;
    --ts-color-toggle-off: #6a6a6d;
    --ts-color-error: #f87171;
    --ts-color-form-text: #111827;
    --ts-color-form-bg: #ffffff;
    --ts-color-form-border: #ddd;
    --ts-color-form-border-focus: #999;
    --ts-color-form-placeholder: #6b7280;
    --ts-color-debug-tab: #a181a1;
    --ts-color-debug-fallback: #e4e4e7;
    --ts-color-debug-active: #f4f4f5;
    --ts-color-badge-buffer: #60a5fa;
    --ts-color-badge-bw: #34d399;
    --ts-color-badge-quality: #c084fc;
    --ts-color-badge-tracks: #facc15;
  
    /* Fonts */
    --ts-font-regular: "avenir-next-regular", "Noto Sans", system-ui, sans-serif;
    --ts-font-medium: "avenir-next-medium", "Noto Sans", system-ui, sans-serif;
    --ts-font-sans: "Noto Sans", sans-serif;
    --ts-font-debug: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
    /* Radii */
    --ts-radius-sm: 6px;
    --ts-radius-md: 8px;
    --ts-radius-pill: 26px;
    --ts-radius-toggle: 34px;
    --ts-radius-full: 50%;
    --ts-radius-badge: 9999px;
  
    /* Gradients */
    --ts-gradient-button: linear-gradient(99.69deg, #3e44fe -10.66%, #bb5cff 114.64%);
    --ts-gradient-button-hover: linear-gradient(0deg, rgba(62, 68, 254, 0.6), rgba(62, 68, 254, 0.6));
    --ts-gradient-outlined-alt: linear-gradient(150deg, hsla(337, 100%, 84%, 1) 0%, hsla(262, 100%, 60%, 1) 68.75%);
    --ts-gradient-metrics-ring: linear-gradient(to bottom, #fc639c 0%, #8339fc 100%);
}

/* -------------------------------------------------------------------------
   App shell
   Visual page styles belong on .test-stream-app so it owns the background
   and stacking context. html/body stay unpainted (margin reset only).
   ------------------------------------------------------------------------- */
html,
body.optiview-demo-embed {
  font-size: 16px;
  font-weight: 200;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: transparent;
}

.test-stream-app {
  position: relative;
  z-index: 0;
  isolation: isolate;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ts-color-bg);
  color: var(--ts-color-text);
  font-family: var(--ts-font-regular);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Embedded in WP iframe: do not lock shell to 100vh (causes infinite height growth). */
html.optiview-demo-embedded .test-stream-app,
body.optiview-demo-embedded .test-stream-app {
  min-height: 0;
}

.test-stream-app *,
.test-stream-app *::before,
.test-stream-app *::after {
  box-sizing: border-box;
}

.optiview-demo-app {
  box-sizing: border-box;
  padding: 16px 20px 32px;
  max-width: 1313px;
  margin: 0 auto;
  color: var(--ts-color-text-white);
}

.optiview-config-warning {
  background: var(--ts-color-warning-bg);
  border: 1px solid var(--ts-color-accent);
  padding: 12px 16px;
  border-radius: var(--ts-radius-md);
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--ts-color-text-white);
  font-family: "Noto Sans", system-ui, sans-serif;
  font-weight: 400;
}

.optiview-demo-app .hidden {
  display: none !important;
}

/* -------------------------------------------------------------------------
   Typography (from GeneratePress customizer, scoped)
   ------------------------------------------------------------------------- */
.dbio_test_the_stream_container h2.test_the_stream_title,
.optiview-demo-app .dbio_test_the_stream_container .test_the_stream_title {
  margin: 0 0 15px 0;
  color: var(--ts-color-text-heading);
  font-family: var(--ts-font-medium);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2em;
  letter-spacing: -0.01em;
}

.dbio_test_the_stream_container h6.metrics_title,
.optiview-demo-app h6.metrics_title {
  margin: 0 0 18px;
  color: var(--ts-color-text-heading);
  font-family: var(--ts-font-medium);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2em;
  letter-spacing: 0; /* WPCode override of GP -1 tracking */
}

.dbio_test_the_stream_container p.metric_stats_content,
.optiview-demo-app p.metric_stats_content {
  margin: 0;
  color: var(--ts-color-text-muted);
  font-size: 15px;
  line-height: 1.6;
  font-family: var(--ts-font-regular);
  font-weight: 600;
}

@media screen and (max-width: 1024px) {
  .dbio_test_the_stream_container h2.test_the_stream_title,
  .optiview-demo-app .dbio_test_the_stream_container .test_the_stream_title {
    font-size: 34px;
  }
}

@media screen and (max-width: 767.98px) {
  .dbio_test_the_stream_container h2.test_the_stream_title,
  .optiview-demo-app .dbio_test_the_stream_container .test_the_stream_title {
    font-size: 28px;
    line-height: 1.1em;
  }
}

/* -------------------------------------------------------------------------
   Play button — blocks_elements.css .dbio-default-button (scoped)
   Production markup uses .dbio-default-button (filled gradient pill),
   plus an .outlined_alt_hover_effect span (active only with outlined-alt).
   ------------------------------------------------------------------------- */
:is(.optiview-demo-app, .dbio_test_the_stream_container) .dbio-default-button-container {
  text-align: center;
  margin: 0;
}

.optiview-demo-app .test_the_stream_button_wrapper {
  margin: 0;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) a.dbio-default-button {
  display: inline-block;
  position: relative;
  background: var(--ts-gradient-button);
  border-radius: var(--ts-radius-pill);
  outline: none;
  padding: 0.8333333333em 1.6em;
  border: 1.5px solid transparent;
  font-weight: bold;
  font-size: 15px;
  line-height: 150%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--ts-font-medium);
  color: var(--ts-color-text-white);
  text-decoration: none;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 126% 126%;
  box-shadow: 0 2px 4px 0 #6161612e;
  -webkit-transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  -o-transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  overflow: visible;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) a.dbio-default-button:focus {
  color: var(--ts-color-text-white);
  outline: 2px solid var(--ts-color-accent-outline);
  outline-offset: 3px;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) a.dbio-default-button:hover {
  background: var(--ts-gradient-button-hover);
  border-color: var(--ts-color-accent-blue);
  box-sizing: border-box;
  box-shadow: 0 8px 14px rgb(62 68 254 / 26%);
  color: var(--ts-color-text-white);
}

/* Outlined-alt hover label (present in markup; used when class is applied) */
:is(.optiview-demo-app, .dbio_test_the_stream_container) .outlined_alt_hover_effect {
  background: var(--ts-gradient-outlined-alt);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: var(--ts-radius-pill);
  padding: inherit;
  border-color: transparent;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  -webkit-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) a.dbio-default-button.dbio-outlined-alt-button {
  position: relative;
  border-color: var(--ts-color-accent-outline);
  background: var(--ts-gradient-outlined-alt);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) a.dbio-default-button.dbio-outlined-alt-button:hover {
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) a.dbio-default-button.dbio-outlined-alt-button:hover .outlined_alt_hover_effect {
  opacity: 1;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) a.dbio-default-button.dbio-outlined-alt-button::before,
:is(.optiview-demo-app, .dbio_test_the_stream_container) a.dbio-default-button.dbio-outlined-alt-button::after {
  content: "";
  position: absolute;
  border-radius: var(--ts-radius-pill);
  top: 1px;
  left: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  box-sizing: content-box;
  overflow: hidden;
  z-index: -1;
  background: var(--ts-color-bg);
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) a.dbio-default-button.dbio-outlined-alt-button::after {
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  z-index: -2;
  -webkit-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
  background: var(--ts-gradient-outlined-alt);
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) a.dbio-default-button.dbio-outlined-alt-button:hover::before,
:is(.optiview-demo-app, .dbio_test_the_stream_container) a.dbio-default-button.dbio-outlined-alt-button:hover::after {
  display: none;
}

/* -------------------------------------------------------------------------
   Title + toggle
   ------------------------------------------------------------------------- */
.dbio_test_the_stream_container .test_the_stream_title_wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dbio_test_the_stream_container .test_the_stream_title_wrapper .stream_source_toggle_switch {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
  min-width: 60px;
  height: 34px;
  flex-shrink: 0;
}

.dbio_test_the_stream_container .test_the_stream_title_wrapper .stream_source_toggle_switch input {
  display: none;
}

.dbio_test_the_stream_container .test_the_stream_title_wrapper .toggle {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--ts-color-toggle-off);
  transition: 0.4s;
  border-radius: var(--ts-radius-toggle);
}

.dbio_test_the_stream_container .test_the_stream_title_wrapper .toggle::before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--ts-color-text-white);
  transition: 0.4s;
  border-radius: var(--ts-radius-full);
}

.dbio_test_the_stream_container .test_the_stream_title_wrapper input:checked + .toggle {
  background-color: var(--ts-color-accent);
}

.dbio_test_the_stream_container .test_the_stream_title_wrapper input:checked + .toggle::before {
  transform: translateX(26px);
}

/* -------------------------------------------------------------------------
   Custom stream controls
   ------------------------------------------------------------------------- */
.dbio_test_the_stream_container .test_the_stream_custom_stream_wrapper {
  display: none;
}

.dbio_test_the_stream_container .test_the_stream_custom_stream_wrapper.show {
  display: block !important;
}

.dbio_test_the_stream_container .test_the_stream_custom_stream_wrapper .custom_stream_types_wrapper {
  display: flex;
  gap: 32px;
  margin: 22px 0 40px 0;
  flex-wrap: wrap;
}

.dbio_test_the_stream_container .test_the_stream_custom_stream_wrapper .custom_stream_type_option {
  display: flex;
  gap: 10px;
  align-content: center;
  align-items: center;
}

.dbio_test_the_stream_container .test_the_stream_custom_stream_wrapper .custom_stream_type_option input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: var(--ts-color-accent);
  cursor: pointer;
}

.dbio_test_the_stream_container .test_the_stream_custom_stream_wrapper .custom_stream_type_option label {
  font-size: 17px;
  color: var(--ts-color-text-heading);
  cursor: pointer;
  font-family: var(--ts-font-regular);
  font-weight: 600;
}

.dbio_test_the_stream_container .test_the_stream_custom_stream_wrapper .custom_stream_url_wrapper {
  margin-bottom: 40px;
}

.dbio_test_the_stream_container .test_the_stream_custom_stream_wrapper .custom_stream_url_wrapper input {
  display: block;
  width: 100%;
  max-width: 100%;
  background: var(--ts-color-form-bg);
  color: var(--ts-color-form-text);
  border: 1px solid var(--ts-color-form-border);
  border-radius: var(--ts-radius-sm);
  box-shadow: none;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.5;
  padding: 10px 15px;
}

.dbio_test_the_stream_container .test_the_stream_custom_stream_wrapper .custom_stream_url_wrapper input::placeholder {
  color: var(--ts-color-form-placeholder);
  opacity: 1;
}

.dbio_test_the_stream_container .test_the_stream_custom_stream_wrapper .custom_stream_url_wrapper input:focus {
  border-color: var(--ts-color-form-border-focus);
  outline: none;
}

.dbio_test_the_stream_container #custom_stream_warning {
  margin-top: 8px;
  color: var(--ts-color-error);
  font-size: 14px;
}

/* -------------------------------------------------------------------------
   Preset stream select (theme form defaults + WPCode overrides)
   ------------------------------------------------------------------------- */
.dbio_test_the_stream_container .test_the_stream_options_wrapper {
  margin-bottom: 40px;
}

.dbio_test_the_stream_container .test_the_stream_options_wrapper.hide {
  display: none !important;
}

.dbio_test_the_stream_container .test_the_stream_options_wrapper select.test_the_stream_options {
  display: block;
  width: 100%;
  height: 46px;
  padding: 9px 40px 9px 13px;
  color: var(--ts-color-form-text);
  background-color: var(--ts-color-form-bg);
  background-image: url("../img/custom-selector.svg");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
  border: 1px solid var(--ts-color-form-border);
  border-radius: var(--ts-radius-sm);
  box-shadow: none;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.25;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

.dbio_test_the_stream_container .test_the_stream_options_wrapper select.test_the_stream_options:active,
.dbio_test_the_stream_container .test_the_stream_options_wrapper select.test_the_stream_options:focus {
  color: var(--ts-color-form-text);
  border-color: var(--ts-color-form-border-focus);
  outline: none;
}

/* -------------------------------------------------------------------------
   Player + metrics layout
   ------------------------------------------------------------------------- */
.dbio_test_the_stream_container .test_the_stream_video_player_wrapper {
  display: flex;
  align-items: flex-start;
  margin: 46px 0;
  gap: 32px;
}

.dbio_test_the_stream_container .test_the_stream_video_player_wrapper .test_the_stream_video_player {
  width: 66.7%;
  min-width: 0;
}

.dbio_test_the_stream_container .test_the_stream_video_player_wrapper .test_the_stream_video_player .theoplayer-container,
.dbio_test_the_stream_container .test_the_stream_video_player_wrapper .test_the_stream_video_player theoplayer-default-ui {
  position: relative;
  display: block;
  width: 100%;
  font-family: var(--ts-font-sans);
}

.dbio_test_the_stream_container .test_the_stream_video_player_wrapper .theoplayer-skin .vjs-big-play-button {
  color: var(--ts-color-accent);
}

/*
 * Metrics card — original ::before gradient ring (z-index: -1).
 * Visible because .test-stream-app owns the page background + stacking
 * context; the ring paints above that background, behind the card face.
 */
.dbio_test_the_stream_container .test_the_stream_video_player_wrapper .test_the_stream_video_metrics {
  position: relative;
  width: 33.3%;
  min-width: 0;
  padding: 24px 58px 24px 24px;
  background-color: var(--ts-color-bg);
  border-radius: var(--ts-radius-md);
}

.dbio_test_the_stream_container .test_the_stream_video_player_wrapper .test_the_stream_video_metrics::before {
  content: "";
  position: absolute;
  border-radius: var(--ts-radius-md);
  background-image: var(--ts-gradient-metrics-ring);
  top: -1px;
  left: -1px;
  bottom: -1px;
  right: -1px;
  z-index: -1;
  pointer-events: none;
}

.dbio_test_the_stream_container .test_the_stream_video_player_wrapper .test_the_stream_video_metrics .metric_stats_content {
  font-size: 15px;
}

.dbio_test_the_stream_container .test_the_stream_video_player_wrapper .test_the_stream_video_metrics .metric_stats_content .stats_wrapper {
  display: block;
  margin: 0 0 0.35em;
}

.dbio_test_the_stream_container .test_the_stream_video_player_wrapper .test_the_stream_video_metrics .metric_stats_content .stats_wrapper:last-child {
  margin-bottom: 0;
}

.dbio_test_the_stream_container .test_the_stream_video_player_wrapper .test_the_stream_video_metrics .metric_stats_content strong {
  font-family: var(--ts-font-medium);
  font-weight: 700;
  color: var(--ts-color-text-white);
}

.dbio_test_the_stream_container .test_the_stream_video_chart_data_wrapper {
  display: flex;
  gap: 32px;
}

.dbio_test_the_stream_container .test_the_stream_video_chart_data_wrapper .chart_content {
  width: 50%;
}

/* -------------------------------------------------------------------------
   Debug panel (page 18568 inline styles — exact values)
   ------------------------------------------------------------------------- */
:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel {
  margin-top: 20px;
  border: 1px solid var(--ts-color-border);
  border-radius: var(--ts-radius-md);
  background: var(--ts-color-bg-muted);
  overflow: hidden;
  font-family: var(--ts-font-debug);
  font-size: 16px; /* keep .65em tab labels matching production */
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  background: var(--ts-color-bg-header);
  border-bottom: 1px solid var(--ts-color-border);
  min-height: 0;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__tab {
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: .1rem;
  text-transform: uppercase;
  color: var(--ts-color-debug-tab);
  background: transparent;
  border: none;
  border-radius: var(--ts-radius-sm);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__tab:hover {
  color: var(--ts-color-text-secondary);
  background: rgba(255, 255, 255, 0.04);
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__tab--active,
:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__tab[aria-selected="true"] {
  color: var(--ts-color-debug-active);
  background: rgba(255, 255, 255, 0.08);
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__tab:focus-visible {
  outline: 2px solid var(--ts-color-accent);
  outline-offset: 2px;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__body {
  position: relative;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__pane {
  display: none;
  padding: 16px;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__pane--active {
  display: block;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__pane[hidden] {
  display: none !important;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__pane--active:not([hidden]) {
  display: block;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__fallback {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--ts-radius-sm);
  background: rgba(185, 36, 255, 0.12);
  border: 1px solid rgba(185, 36, 255, 0.35);
  color: var(--ts-color-debug-fallback);
  font-size: 13px;
  line-height: 1.4;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__pane--metrics-ready .debug-panel__fallback[data-metrics-fallback] {
  display: none;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__pane canvas {
  width: 100% !important;
  height: 260px !important;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--ts-radius-badge);
  vertical-align: middle;
  letter-spacing: normal;
  text-transform: none; /* keep badge values (e.g. Mbps) from inheriting tab uppercase */
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__badge--buffer {
  background: rgba(59, 130, 246, 0.15);
  color: var(--ts-color-badge-buffer);
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__badge--bw {
  background: rgba(16, 185, 129, 0.15);
  color: var(--ts-color-badge-bw);
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__badge--quality {
  background: rgba(168, 85, 247, 0.15);
  color: var(--ts-color-badge-quality);
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__badge--tracks {
  background: rgba(250, 204, 21, 0.15);
  color: var(--ts-color-badge-tracks);
}

/* Track list */
:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: start;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-tracks__column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-tracks__group-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ts-color-text-dim);
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-tracks__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-tracks__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--ts-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--ts-color-text-secondary);
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-tracks__item--active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--ts-color-debug-active);
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-tracks__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--ts-radius-full);
  background: var(--ts-color-border-dot);
  flex-shrink: 0;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-tracks__item--active .debug-tracks__dot {
  background: var(--ts-color-badge-buffer);
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-tracks__label {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-tracks__meta {
  font-size: 11px;
  color: var(--ts-color-text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-tracks__item--active .debug-tracks__meta {
  color: var(--ts-color-text-dim);
}

:is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-tracks__empty {
  font-size: 12px;
  color: var(--ts-color-text-faint);
  font-style: italic;
  padding: 4px 0;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media screen and (max-width: 767.98px) {
  .dbio_test_the_stream_container .test_the_stream_video_chart_data_wrapper .chart_content {
    width: 100%;
  }

  .dbio_test_the_stream_container .test_the_stream_video_player_wrapper {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .dbio_test_the_stream_container .test_the_stream_video_player_wrapper .test_the_stream_video_player,
  .dbio_test_the_stream_container .test_the_stream_video_player_wrapper .test_the_stream_video_metrics {
    width: 100%;
  }

  .dbio_test_the_stream_container .test_the_stream_video_player_wrapper .test_the_stream_video_metrics {
    padding: 24px;
  }

  .dbio_test_the_stream_container .test_the_stream_video_chart_data_wrapper {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {
  :is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__tab {
    padding: 6px 10px;
    font-size: 0.65em;
  }

  :is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__pane {
    padding: 12px;
  }

  :is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-panel__pane canvas {
    height: 180px !important;
  }

  :is(.optiview-demo-app, .dbio_test_the_stream_container) .debug-tracks {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 479.98px) {
  .dbio_test_the_stream_container .test_the_stream_custom_stream_wrapper .custom_stream_types_wrapper {
    flex-direction: column;
  }

  .dbio_test_the_stream_container .test_the_stream_title_wrapper {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 349.98px) {
  .dbio_test_the_stream_container .test_the_stream_video_player_wrapper .test_the_stream_video_player .theoplayer-container,
  .dbio_test_the_stream_container .test_the_stream_video_player_wrapper .test_the_stream_video_player theoplayer-default-ui {
    width: auto;
  }
}
