/**
 * The gig review sheet (giggly-gig-review-sheet.js) and its score rail: My Feed, user pages and
 * artist pages. Moved out of giggly-user-home.css so an artist page can load it on its own.
 */

/* —— Gig review compose / find sheet —— */
.giggly-gig-review-sheet {
  position: fixed;
  inset: 0;
  z-index: 12060;
  pointer-events: none;
  color: #fff;
  /* Opaque so the profile never shows through when the keyboard opens. */
  background: #000;
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}
.giggly-gig-review-sheet[hidden] {
  display: none !important;
}
.giggly-gig-review-sheet.is-open {
  pointer-events: auto;
}
.giggly-gig-review-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  padding: 0;
}
.giggly-gig-review-sheet__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #000;
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.22, 0.8, 0.24, 1);
  border-left: 0;
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}
.giggly-gig-review-sheet.is-open .giggly-gig-review-sheet__panel {
  transform: none;
}
.giggly-gig-review-sheet__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 10px 14px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(119, 172, 162, 0.45);
  background: #000;
  position: relative;
}
.giggly-gig-review-sheet__back {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--brand-teal, #77aca2) !important;
  background: #000 !important;
  color: var(--brand-teal, #77aca2) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.giggly-gig-review-sheet__back .pc-topbar__back-icon {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-teal, #77aca2);
  -webkit-text-fill-color: var(--brand-teal, #77aca2);
  background: transparent;
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.giggly-gig-review-sheet__title {
  position: absolute;
  left: 56px;
  right: 72px;
  margin: 0;
  text-align: center;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
}
.giggly-gig-review-sheet__view-block {
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(119, 172, 162, 0.25);
}
.giggly-gig-review-sheet__view-block h3 {
  margin: 0 0 8px;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.giggly-gig-review-sheet__view-body {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.giggly-gig-review-sheet__view-score {
  margin: 6px 0 0;
}
.giggly-gig-review-sheet__view-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 18px 0 8px;
  font-size: 0.92rem;
  opacity: 0.85;
  align-items: center;
}
.giggly-gig-review-sheet__view-who {
  color: var(--brand-teal, #77aca2);
  font-weight: 700;
  text-decoration: underline;
}
.giggly-gig-review-sheet__save {
  margin-left: auto;
  z-index: 1;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1.5px solid #fff;
  background: #000;
  color: #fff;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.giggly-gig-review-sheet__body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 14px 14px max(28px, env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}
.giggly-gig-review-sheet__event {
  margin: 0 0 14px;
  font-size: 0.92rem;
  opacity: 0.8;
  line-height: 1.4;
}
.giggly-gig-review-sheet__event-head {
  margin: 0 0 16px;
}
/* The thumbnail head, here as well as in giggly-user-home.css: the artist page loads only this file,
   so without it the flyer drew at full size (22 Nov 2026). */
.giggly-gig-review-sheet__event-head.giggly-user-home__review-gighead {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.giggly-gig-review-sheet__event-head .giggly-user-home__review-flyer {
  flex: 0 0 64px;
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  background: rgba(119, 172, 162, 0.2);
}
.giggly-gig-review-sheet__event-head .giggly-user-home__review-flyer--empty {
  display: block;
}
.giggly-gig-review-sheet__event-head .giggly-user-home__review-gigcopy {
  min-width: 0;
  flex: 1 1 auto;
}
.giggly-gig-review-sheet__event-head .giggly-user-home__review-title {
  margin: 0 0 4px;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}
.giggly-gig-review-sheet__event-head .giggly-user-home__review-meta {
  margin: 2px 0 0;
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.35;
}
.giggly-gig-review-sheet__hint {
  margin: 0 0 10px;
  font-size: 1.02rem;
  opacity: 0.85;
  line-height: 1.45;
}
.giggly-gig-review-sheet__hint--optional {
  margin-top: 8px;
  opacity: 0.7;
  font-size: 0.95rem;
}
.giggly-gig-review-sheet__section--gig > h3 {
  font-size: 1.35rem !important;
  letter-spacing: 0.06em;
}
.giggly-gig-review-sheet__section {
  margin: 0 0 14px;
  border: 1px solid rgba(119, 172, 162, 0.35);
  border-radius: 6px;
  overflow: hidden;
}
.giggly-gig-review-sheet__section h3,
.giggly-gig-review-sheet__collapse {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border: 0;
  background: #000;
  color: #fff;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.giggly-gig-review-sheet__section-body {
  display: none;
  padding: 12px;
  background: #000;
}
.giggly-gig-review-sheet__section.is-open .giggly-gig-review-sheet__section-body {
  display: block;
}
.giggly-gig-review-sheet__section.is-open .giggly-gig-review-sheet__collapse span[aria-hidden='true'] {
  transform: rotate(180deg);
}
.giggly-gig-review-sheet textarea[data-grs-body] {
  width: 100%;
  min-height: 160px;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 1.14rem;
  line-height: 1.5;
  resize: none;
  overflow: hidden;
}
.giggly-gig-review-sheet__search input,
.giggly-gig-review-sheet__pick {
  background: #000 !important;
}
.giggly-gig-review-sheet__status {
  margin: 10px 0 0;
  font-size: 0.88rem;
  opacity: 0.85;
}
.giggly-gig-review-sheet__status.is-err {
  color: #f2b632;
}
.giggly-gig-review-sheet__search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.giggly-gig-review-sheet__search input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #0a0a0a;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.giggly-gig-review-sheet__picks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.giggly-gig-review-sheet__pick {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.giggly-gig-review-sheet__pick img,
.giggly-gig-review-sheet__pick-empty {
  flex: 0 0 48px;
  width: 48px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  background: rgba(119, 172, 162, 0.2);
}
.giggly-gig-review-sheet__pick-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.giggly-gig-review-sheet__pick-copy strong {
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
}
.giggly-gig-review-sheet__pick-copy span {
  font-size: 0.82rem;
  opacity: 0.72;
}

/* Score rail + Review/Note — unscoped so My Feed sheet gets Festival Pro stars */
.fpd-score-picker {
  margin-top: 10px;
}
.fpd-score-picker__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.giggly-artist-score__head {
  margin: 0 0 8px;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fpd-score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
}
.fpd-score-row--stack {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 10px;
}
.fpd-score-rail {
  position: relative;
  width: 300px;
  flex: 0 0 auto;
  max-width: 100%;
  padding-bottom: 28px;
}
.fpd-score-row--stack .fpd-score-rail {
  width: 100%;
}
/* On a wide sheet (an artist page on desktop) the stars spread to the full width with big gaps;
   keep the rail the width it is on a phone, as on a user's page (owner, 22 Nov 2026). */
.giggly-gig-review-sheet .fpd-score-row--stack {
  max-width: 340px;
}
.fpd-score-stars {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 2;
}
.fpd-score-star {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(232, 238, 240, 0.28);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.fpd-score-star span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 1;
}
.fpd-score-star span[data-fpd-score-half='0.5'] {
  left: 0;
}
.fpd-score-star span[data-fpd-score-half='1'] {
  right: 0;
}
.fpd-score-star.is-full {
  color: #f5c451;
}
.fpd-score-star.is-half {
  background: linear-gradient(90deg, #f5c451 50%, rgba(232, 238, 240, 0.28) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fpd-score-star.is-full.is-red {
  color: #e15b4a;
}
.fpd-score-star.is-half.is-red {
  background: linear-gradient(90deg, #e15b4a 50%, rgba(232, 238, 240, 0.28) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fpd-score-star.is-full.is-orange {
  color: #e09a3e;
}
.fpd-score-star.is-half.is-orange {
  background: linear-gradient(90deg, #e09a3e 50%, rgba(232, 238, 240, 0.28) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fpd-score-star.is-full.is-gold {
  color: #f5c451;
}
.fpd-score-star.is-half.is-gold {
  background: linear-gradient(90deg, #f5c451 50%, rgba(232, 238, 240, 0.28) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fpd-score-star.is-full.is-green {
  color: #3fb56a;
}
.fpd-score-star.is-half.is-green {
  background: linear-gradient(90deg, #3fb56a 50%, rgba(232, 238, 240, 0.28) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fpd-score-star--read {
  width: auto;
  height: auto;
  font-size: 18px;
  cursor: default;
}
.fpd-score-out-of {
  margin-left: 8px;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}
.fpd-score-live {
  flex: 0 0 auto;
  min-width: 3.2em;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.fpd-score-row--stack .fpd-score-live {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 2px 0 0;
  text-align: center;
  font-size: 1.45rem;
}
.fpd-score-slider {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 36px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.fpd-score-slider::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-teal, #77aca2) 55%, transparent);
}
.fpd-score-slider::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-teal, #77aca2) 55%, transparent);
}
.fpd-score-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  margin-top: -10px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-teal, #77aca2);
  box-shadow: 0 0 0 3px #000;
}
.fpd-score-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-teal, #77aca2);
}
.fpd-score-vis,
.giggly-review-vis {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0 8px;
}
.fpd-score-vis button[data-fpd-review-vis],
.giggly-review-vis button[data-fpd-review-vis] {
  min-height: 36px;
  padding: 0 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: #000;
  color: #fff;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.fpd-score-vis button[data-fpd-review-vis][aria-pressed='true'],
.giggly-review-vis button[data-fpd-review-vis][aria-pressed='true'] {
  border-color: var(--brand-teal, #77aca2);
  background: var(--brand-teal, #77aca2);
  color: #031926;
}
.giggly-review-vis__hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.85;
}
.giggly-review-vis__info,
.fpd-score-vis__info {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.fpd-score-vis__tip {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  opacity: 0.85;
}
.giggly-review-note-info {
  position: fixed;
  inset: 0;
  z-index: 13000;
}
.giggly-review-note-info[hidden] {
  display: none !important;
}
.giggly-review-note-info__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}
.giggly-review-note-info__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 420px);
  max-height: min(80vh, 560px);
  overflow: auto;
  background: #000;
  color: #fff;
  border: 1px solid var(--brand-teal, #77aca2);
  border-radius: 6px;
  padding: 16px;
}
.giggly-review-note-info__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.giggly-review-note-info__title {
  margin: 0;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.giggly-review-note-info__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.giggly-review-note-info__body h4 {
  margin: 14px 0 6px;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.giggly-review-note-info__body p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  opacity: 0.9;
}

.giggly-gig-review-sheet__add-missing {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  cursor: pointer;
  margin: 18px 0 8px;
  padding: 14px 16px;
  border: 1.5px dashed rgba(119, 172, 162, 0.7);
  border-radius: 6px;
  color: #77aca2;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
}
