/* TV Simulator Stylesheet */

body {
  margin: 0;
  padding: 0;
  background-color: #030305;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.tv-container {
  width: 1200px;
  max-width: 95vw;
  height: 675px;
  background-color: #0b0b12;
  border: 12px solid #1a1a26;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 229, 255, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* TV Header */
.tv-header {
  height: 60px;
  background-color: #07070d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.tv-channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tv-channel-info h2 {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.tv-signals {
  display: flex;
  gap: 20px;
}

.signal-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Screen Layout */
.tv-screen-layout {
  flex: 1;
  display: flex;
  position: relative;
}

.video-container {
  flex: 1;
  position: relative;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

#sports-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay-watermark {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.2);
  text-transform: uppercase;
}

.telemetry-box {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.tel-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.75rem;
  font-family: monospace;
}

.tel-row span {
  color: var(--text-secondary);
}

/* Handoff Panel */
.handoff-panel {
  width: 290px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-top: none;
  border-bottom: none;
  border-right: none;
  border-radius: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(11, 11, 18, 0.9);
}

.handoff-header {
  text-align: center;
}

.handoff-header h3 {
  font-size: 1.15rem;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.handoff-header p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.qr-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 16px auto;
  background: white;
  padding: 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 229, 255, 0.15);
}

#qrcode-container img {
  width: 154px;
  height: 154px;
  display: block;
}

.qr-scan-line {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: scan-anim 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan-anim {
  0% { top: 8px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 162px; opacity: 0; }
}

.qr-instructions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.inst-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-txt {
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
}

.audio-control-warning {
  background: rgba(255, 234, 0, 0.08);
  border: 1px solid rgba(255, 234, 0, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.audio-control-warning .warning-icon {
  font-size: 1.1rem;
}

.audio-control-warning .warning-text {
  font-size: 0.7rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-controls .btn-sm {
  font-size: 0.75rem;
  padding: 8px 12px;
  width: 100%;
}

/* TV Footer Ticker */
.tv-footer {
  height: 40px;
  background-color: #07070d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-label {
  height: 100%;
  background: var(--gradient-primary);
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  padding: 0 16px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  z-index: 10;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-wrapper {
  display: inline-flex;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker-anim 25s linear infinite;
}

.ticker-item {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 15px;
  display: flex;
  align-items: center;
}

@keyframes ticker-anim {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}
