
/* components.css */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 14px 28px rgba(19, 121, 140, 0.22);
}
.btn-secondary {
  background: #fff;
  border: 1px solid rgba(32,50,77,0.1);
  color: var(--text);
}
.btn-ghost {
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(255,255,255,0.55);
  color: var(--text);
}
.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
}
.card--soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.82));
}
.card--outlined {
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.card__list {
  display: grid;
  gap: 10px;
}
.card__list li {
  padding-left: 18px;
  position: relative;
  color: var(--text-soft);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
}

.icon-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow);
}
.icon-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(46,159,177,0.12);
  color: var(--brand-deep);
  font-size: 1.25rem;
  font-weight: 900;
}
.icon-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.theme-card {
  overflow: hidden;
  padding: 0;
}
.theme-card__band {
  height: 14px;
}
.theme-card__body {
  padding: 22px;
  display: grid;
  gap: 16px;
}
.theme-card__mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.theme-card__mini span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(32,50,77,0.08);
  font-size: 0.88rem;
  font-weight: 700;
}

.person-card {
  display: grid;
  gap: 16px;
}
.person-card__header {
  display: flex;
  gap: 16px;
  align-items: center;
}
.person-card__avatar {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  overflow: hidden;
  flex: none;
}
.person-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-card {
  display: grid;
  gap: 16px;
  height: 100%;
}
.book-card__cover {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(32,50,77,0.08);
  background: #fff;
}
.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-card__header {
  display: grid;
  gap: 10px;
}
.book-card__title {
  font-size: 1.15rem;
}
.book-card__selector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.book-card__selector-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(46,159,177,0.08);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
}
.book-card__note {
  font-size: 0.95rem;
}
.book-card--textonly {
  border: 1px dashed rgba(32,50,77,0.14);
  box-shadow: none;
  background: rgba(255,255,255,0.55);
}

.episode-card,
.video-card,
.reward-card,
.wall-card {
  display: grid;
  gap: 16px;
  height: 100%;
}
.episode-card__image,
.video-card__image,
.reward-card__image {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(32,50,77,0.08);
}
.episode-card__image img,
.video-card__image img,
.reward-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.episode-card__number {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--brand-deep);
}
.timeline {
  display: grid;
  gap: 14px;
}
.timeline__item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: start;
}
.timeline__date {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(46,159,177,0.12);
  color: var(--brand-deep);
  font-size: 0.88rem;
  font-weight: 800;
}

.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-soft);
  font-weight: 800;
}
.tabs button[aria-selected='true'] {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  border-color: transparent;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kv-grid {
  display: grid;
  gap: 12px;
}
.kv-grid > div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(32,50,77,0.08);
}
.kv-grid dt {
  font-size: 0.82rem;
  color: var(--text-soft);
}
.kv-grid dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.media-placeholder,
.video-embed-placeholder {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(46,159,177,0.14), rgba(244,197,217,0.18)),
    #fff;
  border: 1px dashed rgba(46,159,177,0.42);
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 44, 0.56);
}
.modal__dialog {
  position: relative;
  width: min(900px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 40px 80px rgba(10, 31, 53, 0.25);
}
.modal__close {
  position: sticky;
  top: 0;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(32,50,77,0.08);
}

.form-grid {
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-weight: 700;
  color: var(--text);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(32,50,77,0.14);
  background: rgba(255,255,255,0.95);
}
.field textarea {
  min-height: 120px;
}
.field .help {
  font-size: 0.84rem;
  color: var(--text-soft);
}
.field .error {
  color: #b53e51;
  font-size: 0.84rem;
}

.state-banner {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(32,50,77,0.08);
}
.state-banner--success {
  background: rgba(111, 207, 151, 0.15);
  border-color: rgba(51, 165, 99, 0.24);
}
.state-banner--warning {
  background: rgba(246, 215, 91, 0.18);
  border-color: rgba(214, 162, 43, 0.3);
}
.state-banner--danger {
  background: rgba(238, 121, 133, 0.14);
  border-color: rgba(193, 62, 85, 0.24);
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #eef4f8;
  border-radius: 18px;
  min-height: 22px;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.quote-list {
  display: grid;
  gap: 14px;
}
.quote {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(46,159,177,0.08);
  border: 1px solid rgba(46,159,177,0.14);
}
.comment-list {
  display: grid;
  gap: 14px;
}
.comment-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(32,50,77,0.08);
}
.comment-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  border: 1px dashed rgba(32,50,77,0.16);
  background: rgba(255,255,255,0.6);
}

.stat-grid {
  display: grid;
  gap: 12px;
}
.stat-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.80));
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: var(--shadow);
}
.stat-card strong {
  display: block;
  font-size: 1.5rem;
  margin-top: 6px;
}
@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .form-grid.form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== 2026 layout refresh ===== */
.btn-coral {
  background: #f28e7c;
  color: #fff;
  box-shadow: 0 10px 22px rgba(242, 142, 124, 0.28);
}
.btn-mint {
  background: #ffffff;
  color: #2ca696;
  border: 1px solid #7ed7cb;
}
.btn-outline-blue {
  background: #ffffff;
  color: #2b7fda;
  border: 1px solid #8bbcf5;
}
.btn-purple {
  background: #ffffff;
  color: #8b63f6;
  border: 1px solid #d9ccff;
}
.btn-outline-pink {
  background: #ffffff;
  color: #ee5c8a;
  border: 1px solid #f7bfd0;
}
.btn-white-pill {
  background: #ffffff;
  color: #ef7e69;
}
.btn-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
}
.btn-block {
  width: 100%;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fffaf5;
  border: 1px solid #f1ddd5;
  color: #8c7a72;
  font-size: 0.84rem;
  font-weight: 700;
}
.filter-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.filter-pill {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #ddd7d1;
  background: #fff;
  color: #766f68;
  font-weight: 700;
}
.filter-pill.is-active {
  background: #2f6942;
  border-color: #2f6942;
  color: #fff;
}
.step-card {
  background: #fff;
  border: 1px solid #e5ddd7;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(41, 35, 27, 0.05);
}
.step-card span {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffe9bd;
  color: #d59c2d;
  font-weight: 900;
}
.step-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 0.9rem;
}


.text-link {
  color: var(--color-primary, #2b5cff);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.video-embed-shell {
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.video-embed {
  position: relative;
  width: 100%;
}

.video-embed--16x9 {
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
