/* Pick what you like (layout/block/home/_taste.html). The picker follows the
   tenant's primary colour (--vod-btn-primary-bg); everything else is the
   site's dark ground. A dialog on desktop, a full-screen sheet on a phone. */

.vx-taste {
  --vxt-accent: var(--vod-btn-primary-bg, var(--vod-primary, #dd2c00));
  --vxt-on-accent: var(--vod-btn-primary-text, #fff);
  --vxt-surface: #1c1c1e;
  --vxt-raised: #26262a;
  --vxt-line: #2e2e32;
  --vxt-muted: #b3b3b3;
  --vxt-chip-line: #5a5a60;
}

html.vx-taste-open,
html.vx-taste-open body {
  overflow: hidden;
}

/* A guest's home follows its picks for this visit: under the hero, above the rows */
.vx-taste__strip {
  position: relative;
  z-index: 5; /* the hero's fade reaches over the top of the rows */
  margin: 0 4% 8px;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 16px;
  background: #1f1f23;
  border: 1px solid var(--vxt-line);
  color: #d4d4d8;
  font-size: 15px;
}
.vx-taste__strip-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.vx-taste__strip-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.vx-taste__link {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.vx-taste__link:hover,
.vx-taste__link:focus-visible {
  color: #fff;
  text-decoration-thickness: 2px;
}

/* The dialog */
.vx-taste__overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.vx-taste__dialog {
  width: 100%;
  max-width: 1100px;
  max-height: calc(100vh - 80px);
  background: var(--vxt-surface);
  border: 1px solid var(--vxt-line);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.vx-taste__dialog:focus {
  outline: none;
}
.vx-taste__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px 0;
}
.vx-taste__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}
.vx-taste__sub {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--vxt-muted);
}
.vx-taste__close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: #2c2c30;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.vx-taste__close:hover {
  background: #3a3a3f;
}
.vx-taste__note {
  margin: 16px 40px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--vxt-raised);
  font-size: 14px;
  line-height: 1.45;
  color: #d4d4d8;
}
.vx-taste__note svg {
  flex: none;
}
.vx-taste__note a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}
.vx-taste__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 40px 16px;
}
.vx-taste__section {
  margin-top: 20px;
}
.vx-taste__label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #a1a1aa;
}
.vx-taste__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vx-taste__chip {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid var(--vxt-chip-line);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vx-taste__chip:hover {
  border-color: #8e8e93;
}
.vx-taste__chip.is-on {
  background: var(--vxt-accent);
  border-color: var(--vxt-accent);
  color: var(--vxt-on-accent);
}
.vx-taste__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  padding: 4px;
}
.vx-taste__poster {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #2c2c30;
  cursor: pointer;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  color: #fff;
}
.vx-taste__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s ease;
}
.vx-taste__poster-name {
  position: absolute;
  inset: auto 8px 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.vx-taste__poster.is-on {
  box-shadow: 0 0 0 3px var(--vxt-accent), 0 0 0 6px var(--vxt-surface);
}
.vx-taste__poster.is-on img {
  opacity: 0.72;
}
.vx-taste__check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background: var(--vxt-accent);
  color: var(--vxt-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.vx-taste__chip:focus-visible,
.vx-taste__poster:focus-visible,
.vx-taste__btn:focus-visible,
.vx-taste__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.vx-taste__status {
  margin: 24px 0;
  color: #d4d4d8;
}
.vx-taste__status--error {
  margin: 0;
  color: #fca5a5;
}
.vx-taste__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 40px;
  border-top: 1px solid var(--vxt-line);
}
.vx-taste__count {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  font-size: 15px;
  font-weight: 600;
}
.vx-taste__bar {
  width: 220px;
  height: 6px;
  border-radius: 3px;
  background: #3a3a3f;
  overflow: hidden;
}
.vx-taste__bar span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--vxt-accent);
  transition: width 0.2s ease;
}
.vx-taste__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.vx-taste__btn {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vx-taste__btn--primary {
  background: var(--vxt-accent);
  color: var(--vxt-on-accent);
}
.vx-taste__btn--primary:disabled {
  background: #3a3a3f;
  color: #a1a1aa;
  cursor: not-allowed;
}
.vx-taste__btn--ghost {
  border: 1px solid #4a4a50;
  background: transparent;
  color: #fff;
}
.vx-taste__btn--text {
  background: transparent;
  color: #d4d4d8;
  font-weight: 600;
}
.vx-taste__btn--text:hover,
.vx-taste__btn--ghost:hover {
  color: #fff;
  background: #2c2c30;
}
.vx-taste__spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: vx-taste-spin 0.8s linear infinite;
}
@keyframes vx-taste-spin {
  to { transform: rotate(360deg); }
}

/* "Tune your picks" on the Picked for you row (new-swiper.html actionLabel) */
.vx-row-action {
  margin-left: auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid #4a4a50;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.vx-row-action:hover {
  background: #2c2c30;
}

/* A phone: a full-screen sheet, three posters across, the buttons kept in view */
@media (max-width: 640px) {
  .vx-taste__overlay {
    padding: 0;
  }
  .vx-taste__dialog {
    max-height: none;
    min-height: 100%;
    border-radius: 0;
    border: 0;
  }
  .vx-taste__head {
    padding: 16px 16px 0 20px;
  }
  .vx-taste__title {
    font-size: 26px;
  }
  .vx-taste__sub {
    font-size: 15px;
  }
  .vx-taste__note {
    margin: 12px 20px 0;
    font-size: 13px;
  }
  .vx-taste__body {
    padding: 0 20px 16px;
  }
  .vx-taste__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -20px;
    padding: 0 20px 4px;
  }
  .vx-taste__chip {
    flex: none;
    min-height: 44px;
    white-space: nowrap;
  }
  .vx-taste__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .vx-taste__foot {
    position: sticky;
    bottom: 0;
    padding: 14px 20px 20px;
    background: var(--vxt-surface);
  }
  .vx-taste__count,
  .vx-taste__actions {
    width: 100%;
  }
  .vx-taste__bar {
    width: 100%;
  }
  .vx-taste__btn--primary {
    flex: 1 1 auto;
    justify-content: center;
  }
  .vx-taste__strip {
    font-size: 13px;
  }
}
