/* ═══════════════════════════════════════════
   OTR TIER 1: Error & Loading States

   RULES FOLLOWED:
   - ALL selectors prefixed with .otr-tier1-
   - ZERO bare element selectors
   - ZERO !important declarations
   - ZERO overrides of existing styles
   - All text properties set EXPLICITLY to prevent
     inheritance from body/html rules
   ═══════════════════════════════════════════ */

/* ── Offline Bar ── */
.otr-tier1-offline-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 105;
  background: #1a1a1a;
  color: #ccc;
  text-align: center;
  padding: 5px 0;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-style: normal;
  font-weight: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-indent: 0;
  line-height: normal;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  pointer-events: none;
  user-select: none;
}

.otr-tier1-offline-bar--visible {
  transform: translateY(0);
}

/* ── Loading State ── */
.otr-tier1-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: #999;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-style: normal;
  font-weight: normal;
  letter-spacing: 2px;
  text-indent: 0;
  line-height: normal;
}

.otr-tier1-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-top-color: #333;
  border-radius: 50%;
  animation: otr-tier1-spin 0.8s linear infinite;
  margin-left: 8px;
}

@keyframes otr-tier1-spin {
  to { transform: rotate(360deg); }
}

/* ── Error State ── */
.otr-tier1-error {
  text-align: center;
  padding: 32px 16px;
  color: #666;
  font-family: 'Courier New', monospace;
  font-style: normal;
  font-weight: normal;
  text-indent: 0;
  line-height: normal;
}

.otr-tier1-error-msg {
  font-size: 13px;
  font-style: normal;
  text-indent: 0;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.otr-tier1-retry-btn {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-style: normal;
  font-weight: normal;
  text-indent: 0;
  padding: 6px 16px;
  border: 1px solid #333;
  background: transparent;
  color: #333;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.otr-tier1-retry-btn:hover {
  background: #333;
  color: #fff;
}

/* ── Media Button States ── */
/* Base media button with transition */
.nav-btn.nav-media {
  display: flex;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Default state: media visible (media-active applied) - white bg */
.nav-btn.nav-media.media-active {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
}

.nav-btn.nav-media.media-active::after {
  display: none;
}

/* Clean read mode: media hidden (no media-active) - black bg */
.nav-btn.nav-media:not(.media-active) {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.nav-btn.nav-media:not(.media-active)::after {
  display: none;
}
