body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #0f172a;
  color: #f8fafc;
  margin: 0;
  padding: 0;
}

/* NAVIGATION HEADER STYLES */
.nav-header {
  background-color: #1e293b;
  border-bottom: 1px solid #334155;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  color: #38bdf8;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.025em;
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-item {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: #f8fafc;
  background-color: #334155;
}

/* Core Content Layout */
.container {
  max-width: 950px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 {
  color: #38bdf8;
  font-size: 28px;
  margin-bottom: 8px;
}

p.subtitle {
  color: #94a3b8;
  margin-bottom: 32px;
}

.section-container {
  border-left: 4px solid #334155;
  padding-left: 16px;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.section-container.active-handshake {
  border-left-color: #38bdf8;
}

.section-container.active-activity {
  border-left-color: #a855f7;
}

.section-container.active-automation {
  border-left-color: #f59e0b;
}

.section-container.active-player {
  border-left-color: #10b981;
}

h2.section-main-title {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 16px;
  color: #f1f5f9;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  user-select: none;
}

h2.section-main-title:hover {
  color: #38bdf8;
}

h2.section-main-title::after {
  content: "▼";
  font-size: 12px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.section-container.collapsed h2.section-main-title::after {
  transform: rotate(-90deg);
}

.section-content {
  display: block;
  transition: all 0.2s ease-in-out;
}

.section-container.collapsed .section-content {
  display: none;
}

.input-card {
  background: #1e293b;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #334155;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.input-field {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.series-ui-addition {
  display: none;
  transition: all 0.3s ease;
}

label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input,
select,
textarea {
  background: #0f172a;
  border: 1px solid #475569;
  padding: 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border 0.2s;
}

textarea {
  font-family: "Courier New", Courier, monospace;
  resize: vertical;
  min-height: 180px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #38bdf8;
}

button {
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-blue {
  background: #0284c7;
}

.btn-blue:hover {
  background: #0369a1;
}

.btn-purple {
  background: #7e22ce;
}

.btn-purple:hover {
  background: #6b21a8;
}

.btn-amber {
  background: #d97706;
}

.btn-amber:hover {
  background: #b45309;
}

button:disabled {
  background: #475569 !important;
  cursor: not-allowed;
}

.status-alert {
  padding: 16px;
  border-radius: 8px;
  display: none;
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 14px;
}

.status-success {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid #16a34a;
  color: #4ade80;
}

.status-error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid #dc2626;
  color: #f87171;
}

.status-warning {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid #eab308;
  color: #fde047;
}

.response-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 12px;
  border-bottom: 1px solid #334155;
  padding-bottom: 6px;
}

.section-title {
  font-size: 16px;
  color: #f8fafc;
  margin: 0;
}

.btn-copy {
  background: #334155;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.btn-copy:hover {
  background: #475569;
}

.stream-results-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.stream-item-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stream-item-card:hover {
  border-color: #059669;
  background: #1f2937;
  transform: translateY(-1px);
}

.stream-meta-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stream-display-name {
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
}

.stream-badge {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #1e293b;
  padding: 2px 8px;
  border-radius: 4px;
}

.stream-url-string {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  color: #34d399;
  word-break: break-all;
  background: #0b1322;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #111827;
  margin-top: 4px;
}

.copy-toast-indicator {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 12px;
  color: #34d399;
  font-weight: 600;
  opacity: 0;
  transform: translateY(3px);
  transition: all 0.2s ease;
}

.stream-item-card:hover::after {
  content: "Copy & Auto Play →";
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 11px;
  color: #38bdf8;
  font-weight: 600;
}

.stream-item-card.copied-active .copy-toast-indicator {
  opacity: 1;
  transform: translateY(0);
}

/* MEDIA PLAYER SCREEN SPECIFICS */
.media-player-wrapper {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1e293b;
  position: relative;
  width: 100%;
  height: 480px;
  margin-top: 12px;
}

/* Target global Video.js standard element container */
.video-js {
  width: 100% !important;
  height: 100% !important;
}

.player-placeholder-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0b1329;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #64748b;
  gap: 12px;
  z-index: 5;
}

.player-placeholder-overlay svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
}

.player-meta-bar {
  background: #1e293b;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.active-track-title {
  font-size: 14px;
  font-weight: 600;
  color: #38bdf8;
}

.active-track-type {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  background: #0f172a;
  padding: 4px 10px;
  border-radius: 4px;
  color: #a7f3d0;
}
