/* AVAAIO_ENTERTAINMENT_WATCH_COMPANION_V2
   Isolated add-on. Does not alter the working iframe/player DOM. */

.avaaio-watch-v2 {
  box-sizing: border-box;
  width: 100%;
  margin: 12px 0 18px;
  padding: 15px;
  border: 1px solid rgba(255, 174, 82, 0.30);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 142, 48, 0.12), transparent 42%),
    rgba(19, 14, 11, 0.84);
  box-shadow:
    inset 0 0 30px rgba(255, 126, 30, 0.035),
    0 14px 38px rgba(0, 0, 0, 0.17);
  color: inherit;
}

.avaaio-watch-v2-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.avaaio-watch-v2-safe {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(255, 174, 82, 0.44);
  border-radius: 999px;
  background: rgba(255, 139, 45, 0.10);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.avaaio-watch-v2-meta {
  min-width: 0;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-align: right;
  opacity: 0.74;
}

.avaaio-watch-v2-eyebrow {
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  opacity: 0.72;
}

.avaaio-watch-v2-title {
  margin-bottom: 6px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 850;
  line-height: 1.08;
}

.avaaio-watch-v2-copy {
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.74;
}

.avaaio-watch-v2-context {
  margin-bottom: 11px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 170, 76, 0.20);
  border-radius: 12px;
  background: rgba(255, 150, 65, 0.055);
  font-size: 12px;
  line-height: 1.4;
}

.avaaio-watch-v2-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0;
}

.avaaio-watch-v2-input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid rgba(255, 174, 82, 0.28);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  color: inherit;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.avaaio-watch-v2-input:focus {
  border-color: rgba(255, 181, 92, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 147, 47, 0.10);
}

.avaaio-watch-v2-submit {
  padding: 10px 12px;
  border: 1px solid rgba(255, 180, 89, 0.48);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 163, 67, 0.22),
    rgba(255, 121, 28, 0.12)
  );
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.055em;
}

.avaaio-watch-v2-submit:disabled,
.avaaio-watch-v2-input:disabled {
  opacity: 0.55;
}

.avaaio-watch-v2-status {
  max-height: 190px;
  overflow: auto;
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 13px;
  line-height: 1.48;
  white-space: pre-wrap;
  -webkit-overflow-scrolling: touch;
}

.avaaio-watch-v2-status[data-state="error"] {
  border: 1px solid rgba(255, 120, 95, 0.28);
}

.avaaio-watch-v2-status[data-state="success"] {
  border: 1px solid rgba(255, 177, 89, 0.20);
}

@media (max-width: 620px) {
  .avaaio-watch-v2 {
    padding: 13px;
  }

  .avaaio-watch-v2-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .avaaio-watch-v2-meta {
    text-align: left;
  }

  .avaaio-watch-v2-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .avaaio-watch-v2-submit {
    width: 100%;
  }
}
