/* Catalogue transitions: only shown while Xtream metadata is loading. */

.catalog-loading-label {
  padding: 16px 16px 10px;
  font-size: .81rem;
  letter-spacing: .01em;
  color: #c6b0ea;
  font-weight: 650;
}
.catalog-skeleton-cat {
  height: 43px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid rgba(255,255,255,.025);
}
.catalog-skeleton-cat .catalog-skeleton-bar {
  height: 11px;
  width: 65%;
}
.catalog-skeleton-cat:nth-child(2n) .catalog-skeleton-bar {
  width: 48%;
}
.catalog-skeleton-row {
  min-height: 74px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 13px;
  border-bottom: 1px solid rgba(255,255,255,.035);
}
.catalog-skeleton-poster {
  width: 40px;
  height: 53px;
  flex: none;
  border-radius: 7px;
}
.catalog-skeleton-copy {
  flex: 1;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.catalog-skeleton-copy .catalog-skeleton-bar {
  height: 11px;
  width: 72%;
}
.catalog-skeleton-copy .catalog-skeleton-bar.short {
  height: 9px;
  width: 38%;
  opacity: .64;
}
.catalog-skeleton-bar,.catalog-skeleton-poster {
  display: block;
  background: linear-gradient(105deg,#252032 8%,#382c4a 48%,#252032 85%);
  background-size: 200% 100%;
  border-radius: 5px;
  animation: catalog-skeleton-shimmer 1.5s linear infinite;
}
.catalog-wait-detail {
  margin: 16px 8px;
  padding: 22px 18px 24px;
  border: 1px solid rgba(186,153,242,.16);
  border-radius: 13px;
  background: linear-gradient(160deg,rgba(172,125,250,.075),rgba(17,13,27,.15));
}
.catalog-wait-kicker {
  font-size: .7rem;
  color: #bb95ec;
  letter-spacing: .13em;
  font-weight: 750;
}
.catalog-wait-detail h2 {
  font-size: 1.05rem;
  font-weight: 680;
  margin: 14px 0 7px;
  color: #eee7f9;
}
.catalog-wait-detail p {
  margin: 0;
  font-size: .81rem;
  color: #a9a4b8;
}

@keyframes catalog-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media(prefers-reduced-motion:reduce) {
  .catalog-skeleton-bar,.catalog-skeleton-poster {
    animation: none;
  }
}

/* Voddler catalog transitions: the old Live TV panels are never visible while switching. */

#browser-view {
  position: relative;
  isolation: isolate;
}
#catalog-cover.catalog-cover {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #121019;
  background: linear-gradient(155deg,rgba(22,17,32,.995),rgba(11,10,18,.995));
  min-height: 300px;
  padding: 28px;
  box-sizing: border-box;
}
#catalog-cover[hidden] {
  display: none!important;
}
.catalog-cover-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  max-width: min(90vw,460px);
}
.catalog-spinner {
  display: block;
  width: 53px;
  height: 53px;
  box-sizing: border-box;
  border: 4px solid rgba(193,162,237,.19);
  border-top-color: #ad84eb;
  border-right-color: #d1aef4;
  border-radius: 50%;
  animation: voddler-catalog-spin .75s linear infinite;
  margin-bottom: 10px;
}
#catalog-cover-title {
  font-size: clamp(1.12rem,2.5vw,1.5rem);
  letter-spacing: .01em;
  color: #f3edff;
  font-weight: 700;
  margin: 0;
}
#catalog-cover-subtitle {
  color: #b9acc9;
  font-size: .9rem;
  line-height: 1.5;
  margin: 0;
}

@keyframes voddler-catalog-spin {
  to {
    transform: rotate(360deg);
  }
}

@media(prefers-reduced-motion:reduce) {
  .catalog-spinner {
    animation-duration: 2s;
  }
}

/* Feedback is independent from video playback, mobile-first and keyboard accessible. */

.voddler-feedback-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 660px;
  margin: 20px 0 10px;
}
.voddler-feedback-form>label:not(.feedback-checkbox) {
  font-size: .89rem;
  font-weight: 650;
  color: #e8dbf8;
  margin-top: 7px;
}
.voddler-feedback-form input:not([type=checkbox]),.voddler-feedback-form textarea,.voddler-feedback-form select {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(187,147,240,.28);
  background: #1b1726;
  color: #f6f0ff;
  border-radius: 9px;
  padding: 11px 12px;
  font: inherit;
  outline-offset: 2px;
}
.voddler-feedback-form :is(input,textarea,select):focus-visible {
  outline: 2px solid #b48ce8;
  border-color: #b48ce8;
}
.voddler-feedback-form textarea {
  line-height: 1.5;
  resize: vertical;
  min-height: 128px;
}

/* Avoid the global input{width:100%} rule stretching a checkbox across its label. */

.voddler-feedback-form .feedback-checkbox {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 2px 10px;
  line-height: 1.45;
  cursor: pointer;
}
.voddler-feedback-form .feedback-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  box-sizing: border-box;
  padding: 0;
  margin: 3px 0 0;
  border-radius: 4px;
  accent-color: #b38ae4;
}
.voddler-feedback-form .feedback-checkbox>span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #f6f0ff;
}
.voddler-feedback-form .feedback-checkbox small {
  display: block;
  color: #aaa1b8;
  margin-top: 4px;
  font-size: .79rem;
}
.voddler-feedback-form .feedback-privacy {
  color: #bcaed0;
  font-size: .82rem;
  line-height: 1.5;
  padding: 10px 13px;
  border: 1px solid rgba(175,144,217,.18);
  border-radius: 9px;
  background: rgba(112,78,150,.07);
  margin: 4px 0;
}
.voddler-feedback-form .feedback-result {
  font-size: .88rem;
  color: #c5eccb;
  line-height: 1.5;
  margin: 12px 0;
}
.voddler-feedback-form .feedback-result.feedback-error {
  color: #ffb7af;
}
.voddler-feedback-form .feedback-honeypot {
  position: absolute!important;
  left: -9999px!important;
  width: 1px!important;
  height: 1px!important;
  opacity: 0!important;
  pointer-events: none!important;
}

@media(max-width:620px) {
  .voddler-feedback-form {
    margin: 14px 0;
  }
}
