.explore-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--mist);
  border-radius: 14px;
}

.explore-toggle button {
  flex: 1;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.explore-toggle button.active {
  background: transparent;
  color: var(--ink);
  border-color: var(--soft-teal);
  font-weight: 800;
}

.search-shell {
  margin-top: 14px;
  padding: 12px 14px 14px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--mist);
  border-radius: 18px;
}

.search-shell:focus-within {
  border-color: var(--soft-teal);
  background: rgba(255, 255, 255, 0.55);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.72);
  border: 1.6px solid rgba(218, 233, 237, 0.95);
  border-radius: 14px;
  padding: 4px 8px 4px 12px;
}

.search-field:focus-within {
  border-color: var(--ink);
}

.search-field input {
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 16px;
  padding: 12px 4px;
  background: transparent;
  color: var(--ink);
}

/* Browsers add their own clear control on type="search"; we use #clearQuery instead. */
.search-field input[type="search"]::-webkit-search-cancel-button,
.search-field input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-field .icon-btn {
  border: 0;
  background: transparent;
  color: var(--muted-ink);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 20px;
}

.search-icon {
  color: var(--muted-ink);
  display: flex;
}

.example-chips,
#examplePromptChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.example-chips[hidden] {
  display: none !important;
}

.example-chip {
  border: 1px solid rgba(165, 199, 223, 0.32);
  background: linear-gradient(
    165deg,
    rgba(240, 247, 252, 0.95) 0%,
    rgba(217, 236, 248, 0.88) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 3px 8px rgba(19, 59, 91, 0.1),
    0 1px 2px rgba(19, 59, 91, 0.06);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.example-chip:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 5px 12px rgba(19, 59, 91, 0.12),
    0 2px 4px rgba(19, 59, 91, 0.08);
}

/* Subtle standout for Meditation Video of the Day (matches mobile). */
.example-chip--daily {
  border: 1.4px solid rgba(243, 212, 133, 0.72);
  background: linear-gradient(
    165deg,
    rgba(255, 246, 236, 0.98) 0%,
    rgba(232, 244, 251, 0.92) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 3px 10px rgba(19, 59, 91, 0.12),
    0 1px 2px rgba(19, 59, 91, 0.06);
  font-weight: 700;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.example-chip--daily .example-chip-icon {
  font-size: 14px;
  line-height: 1;
  opacity: 0.85;
}

.explore-daily-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: 1 / -1;
  max-width: 640px;
  width: 100%;
  margin: 12px auto 16px;
  padding: 14px 12px 16px;
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: 18px;
  box-sizing: border-box;
}

.explore-daily-title {
  margin: 0;
  padding: 0 4px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.explore-daily-played {
  margin: 0;
  padding: 0 4px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted-ink, #3d5a73);
  line-height: 1.45;
}

.explore-daily-guidance {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(165, 199, 223, 0.32);
  background: linear-gradient(
    165deg,
    rgba(240, 247, 252, 0.95) 0%,
    rgba(217, 236, 248, 0.88) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 4px 10px rgba(19, 59, 91, 0.1),
    0 1px 3px rgba(19, 59, 91, 0.06);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}

.explore-daily-card-host .result-card {
  margin: 0;
}

.related-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-radius: 12px;
}

.related-banner.visible {
  display: flex;
}

.catalog-banner {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--mist);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
}

.catalog-banner[hidden] {
  display: none !important;
}

.related-banner span {
  color: var(--ink);
  font-weight: 700;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 760px) {
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.result-card:hover {
  transform: translateY(-2px);
}

.thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #111;
}

.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.play-overlay::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-left: 16px solid var(--ink);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.card-body {
  padding: 16px;
}

.video-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.section-title {
  color: var(--soft-teal);
  font-weight: 600;
  margin: 0 0 8px;
}

.summary {
  color: var(--muted-ink);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.chakra-pill {
  background: var(--ink);
  color: #fff;
}

.quote {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 10px 12px;
  font-style: italic;
  color: var(--muted-ink);
  font-size: 14px;
  margin-top: 10px;
}

.more-like-btn {
  width: 100%;
  margin: 8px 0 4px;
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.handout-card .card-body {
  padding: 18px;
}

.handout-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.handout-open {
  margin-top: 10px;
  color: var(--soft-teal);
  font-weight: 600;
  font-size: 14px;
}

.live-badge {
  display: inline-block;
  background: var(--live-red);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.8px;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
}

.upcoming-badge {
  display: inline-block;
  background: var(--chrome-bg);
  color: var(--ink);
  font-weight: 700;
  border-radius: 8px;
  padding: 5px 10px;
}

.meta-line {
  display: flex;
  gap: 8px;
  margin: 6px 0;
  color: var(--muted-ink);
}

.live-actions {
  margin-top: 16px;
}

.live-actions-hint {
  margin: 0 0 10px;
}

.join-btn-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.join-btn-row .join-btn {
  flex: 1;
  width: auto;
  min-width: 0;
}

.join-btn {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.6px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.join-btn.outline {
  background: var(--surface);
  color: var(--ink);
}

.join-btn strong {
  display: block;
  font-size: 16px;
}

.join-btn small {
  display: block;
  opacity: 0.85;
  font-weight: 500;
}

.recent-list {
  background: var(--list-panel);
  border: 1px solid var(--mist);
  border-radius: 18px;
  padding: 6px 4px 8px;
}

.recent-list .session-video {
  padding: 8px 12px;
}

.session-tile {
  background: var(--list-panel);
  border: 1px solid var(--mist);
  border-radius: 18px;
  margin-bottom: 12px;
  overflow: hidden;
}

.session-tile summary {
  list-style: none;
  cursor: pointer;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  align-items: center;
}

.session-tile summary::-webkit-details-marker {
  display: none;
}

.session-tile summary h3 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  grid-column: 1;
}

.session-tile summary > p {
  grid-column: 1;
}

.session-tile summary::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 0.55em;
  height: 0.55em;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg);
  opacity: 0.55;
  transition: transform 0.15s ease;
  justify-self: end;
  align-self: center;
  margin-top: -0.15em;
}

.session-tile[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.2em;
}

.session-video {
  display: flex;
  gap: 12px;
  padding: 8px 12px 12px;
  cursor: pointer;
  align-items: center;
}

.session-video img {
  width: 88px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--mist);
}

.wisdom-card {
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: 18px;
  margin-bottom: 12px;
  overflow: hidden;
}

.wisdom-card summary {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  list-style: none;
  cursor: pointer;
  padding: 18px;
}

.wisdom-card summary::-webkit-details-marker {
  display: none;
}

.wisdom-card-head {
  flex: 1;
  min-width: 0;
}

.wisdom-card h3 {
  margin: 4px 0;
  font-family: var(--font-display);
  font-weight: 600;
}

.wisdom-card-head .muted {
  margin: 0;
}

.wisdom-accent {
  width: 4px;
  min-height: 56px;
  border-radius: 4px;
  background: var(--soft-teal);
  flex-shrink: 0;
}

.wisdom-card:nth-child(even) .wisdom-accent {
  background: var(--accent);
}

.wisdom-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-right: 2px solid var(--muted-ink);
  border-bottom: 2px solid var(--muted-ink);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.wisdom-card[open] .wisdom-chevron {
  margin-top: 12px;
  transform: rotate(225deg);
}

.wisdom-card-body {
  padding: 0 18px 18px 36px;
  white-space: pre-wrap;
  line-height: 1.55;
  color: var(--ink);
}

.wisdom-label {
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-strong);
}

.spinner {
  border: 4px solid rgba(19, 59, 91, 0.2);
  border-top-color: var(--ink);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

.inline-error {
  background: #ff6b6b;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 12px;
}

.inline-error .btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.inline-error[hidden] {
  display: none !important;
}
