/* Cover Stack - deployed client styles */

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #ffffff;
  color: #111827;
  font-family: 'Nunito', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.cs-root {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff;
  color: #111827;
}

.cs-page-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.cs-scroll {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  height: 100%;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 28px 18px 34px;
  -webkit-overflow-scrolling: touch;
}

.cs-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cs-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cs-cover {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 1;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
}

.cs-cover-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

video.cs-cover-media {
  object-fit: cover;
}

.cs-cover-anim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cs-cover-anim.is-shimmer {
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.44) 50%, transparent 62%);
  background-size: 280% 100%;
  animation: cs-cover-shimmer 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.cs-cover-anim.is-glow {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.46), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.32), transparent 38%);
  animation: cs-cover-glow 4.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes cs-cover-shimmer {
  0% { background-position: 180% 0; opacity: 0; }
  12% { opacity: 1; }
  62% { opacity: 1; }
  100% { background-position: -120% 0; opacity: 0; }
}

@keyframes cs-cover-glow {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.82; transform: scale(1.04); }
}

.cs-header-stack {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
}

.cs-header-stack.has-cover {
  margin-top: -60px;
}

.cs-avatar {
  position: relative;
  z-index: 3;
  width: var(--cs-avatar-size, 96px);
  height: var(--cs-avatar-size, 96px);
  padding: var(--cs-avatar-ring-size, 4px);
  border-radius: 50%;
  background: var(--cs-avatar-ring-bg, #ffffff);
  color: #111827;
  border: 0;
  display: grid;
  place-items: center;
  font-size: calc(var(--cs-avatar-size, 96px) * 0.38);
  font-weight: 800;
  overflow: hidden;
}

.cs-avatar-inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: #f8f9fa;
  overflow: hidden;
}

.cs-avatar.is-image .cs-avatar-inner {
  background: transparent;
}

.cs-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.cs-profile {
  width: 100%;
  text-align: center;
  padding: 2px 8px 0;
  border-radius: 10px;
}

.cs-name {
  line-height: 1.08;
  letter-spacing: 0;
}

.cs-handle {
  margin-top: 4px;
  color: #6b7280;
  line-height: 1.25;
}

.cs-bio {
  max-width: 360px;
  margin: 9px auto 0;
  color: #4b5563;
  line-height: 1.55;
  white-space: pre-wrap;
}

.cs-profile-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cs-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #f8f9fa;
  border-radius: 999px;
  line-height: 1.2;
}

.cs-root.is-page-dark .cs-profile-pill {
  border-color: rgba(249, 250, 251, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.cs-pill-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.cs-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.cs-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  padding: 0;
}

.cs-social {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  border-radius: 8px;
  transition: background 0.15s, transform 0.15s;
}

.cs-social:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.cs-social.is-disabled {
  cursor: default;
  opacity: 0.7;
}

.cs-social.is-disabled:hover {
  background: transparent;
  transform: none;
}

.cs-root.is-page-dark .cs-social {
  color: rgba(249, 250, 251, 0.72);
}

.cs-root.is-page-dark .cs-social:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cs-root.is-page-dark .cs-social.is-disabled:hover {
  background: transparent;
}

.cs-social img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.cs-social span {
  font-size: 11px;
  font-weight: 800;
}

.cs-body-stack,
.cs-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.cs-link-anchor {
  display: block;
  position: relative;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  outline-offset: 4px;
}

.cs-link-anchor:focus-visible {
  outline: 2px solid rgba(120, 170, 255, 0.7);
}

.cs-featured-card,
.cs-gallery-card,
.cs-media-card {
  width: 100%;
  border: 1px solid var(--cs-featured-border, var(--cs-gallery-border, var(--cs-media-border, #e5e7eb)));
  border-radius: 16px;
  background: var(--cs-featured-bg, var(--cs-gallery-bg, var(--cs-media-bg, #ffffff)));
  box-shadow: 0 2px 8px var(--cs-featured-shadow, var(--cs-gallery-shadow, var(--cs-media-shadow, rgba(17, 24, 39, 0.08))));
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.cs-link-anchor:hover .cs-featured-card,
.cs-link-anchor:hover .cs-gallery-card,
.cs-link-anchor:hover .cs-media-card,
.cs-link-anchor:hover .cs-link-card {
  transform: translateY(-2px);
}

.cs-link-anim-bounce {
  animation: cs-link-bounce 2s ease-in-out infinite;
}

.cs-link-anim-pulse {
  animation: cs-link-pulse 2s ease-in-out infinite;
}

.cs-link-anim-glow {
  animation: cs-link-glow 2.4s ease-in-out infinite;
}

.cs-link-anim-shine {
  position: relative;
  isolation: isolate;
}

.cs-link-anim-shine::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  z-index: 4;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.42) 50%, rgba(255,255,255,0.05) 75%, transparent 100%);
  transform: skewX(-15deg);
  animation: cs-link-shine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cs-link-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes cs-link-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes cs-link-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(120, 170, 255, 0)); }
  50% { filter: drop-shadow(0 0 16px rgba(120, 170, 255, 0.62)); }
}

@keyframes cs-link-shine {
  0% { left: -100%; opacity: 0; }
  10% { opacity: 1; }
  50% { left: 100%; opacity: 1; }
  55% { opacity: 0; }
  100% { left: 100%; opacity: 0; }
}

.cs-featured-card {
  position: relative;
  min-height: 150px;
  aspect-ratio: 2.35 / 1;
  color: var(--cs-featured-title, #111827);
}

.cs-featured-card.has-image {
  background: #111827;
}

.cs-featured-card.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0) 34%, rgba(17, 24, 39, 0.64) 100%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.28) 0%, rgba(17, 24, 39, 0) 62%);
}

.cs-featured-image,
.cs-featured-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.cs-featured-image {
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.cs-featured-placeholder {
  background:
    linear-gradient(135deg, rgba(247, 215, 232, 0.92), rgba(219, 234, 254, 0.92)),
    var(--cs-featured-bg, #f8f9fa);
}

.cs-featured-placeholder::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(17, 24, 39, 0.22);
  border-radius: 12px;
}

.cs-featured-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cs-featured-title {
  color: var(--cs-featured-title, #111827);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.cs-featured-card.has-image .cs-featured-title {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.cs-featured-subtitle {
  color: var(--cs-featured-subtitle, #6b7280);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cs-featured-card.has-image .cs-featured-subtitle {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.cs-featured-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-featured-title, #ffffff);
  line-height: 0;
}

.cs-featured-card.is-empty .cs-featured-icon {
  color: var(--cs-featured-title, #111827);
}

.cs-featured-icon img,
.cs-link-icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.cs-featured-icon span,
.cs-link-icon span {
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.cs-gallery-card {
  padding: 12px;
  color: var(--cs-gallery-text, #111827);
}

.cs-gallery-title {
  margin: 0 0 10px;
  color: var(--cs-gallery-text, #111827);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.cs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--cs-gallery-columns, 2), minmax(0, 1fr));
  gap: 8px;
}

.cs-gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 0;
  padding: 0;
  background: #f3f4f6;
  color: inherit;
  overflow: hidden;
}

.cs-gallery-tile.is-clickable {
  cursor: zoom-in;
}

.cs-gallery-tile.is-clickable:focus-visible {
  outline: 2px solid rgba(120, 170, 255, 0.7);
  outline-offset: 2px;
}

.cs-gallery-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.cs-gallery-empty {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(247, 215, 232, 0.74), rgba(219, 234, 254, 0.74)),
    repeating-linear-gradient(45deg, rgba(17, 24, 39, 0.08) 0 6px, transparent 6px 12px);
}

.cs-gallery-label {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  padding: 5px 7px;
  border: 1px solid var(--cs-gallery-label-border, rgba(255, 255, 255, 0.26));
  border-radius: 999px;
  background: var(--cs-gallery-label-bg, rgba(17, 24, 39, 0.68));
  color: var(--cs-gallery-label-text, #ffffff);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-media-card {
  color: var(--cs-media-title, #111827);
}

.cs-media-frame,
.cs-media-placeholder {
  width: 100%;
  display: block;
  border: none;
  background: #111827;
  overflow: hidden;
}

.cs-media-frame.is-youtube,
.cs-media-placeholder.is-youtube {
  aspect-ratio: 16 / 9;
  height: auto;
}

.cs-media-frame.is-spotify,
.cs-media-placeholder.is-spotify {
  aspect-ratio: auto;
  height: var(--cs-media-frame-height, 352px);
  min-height: var(--cs-media-frame-height, 352px);
}

.cs-media-frame.is-soundcloud,
.cs-media-placeholder.is-soundcloud {
  aspect-ratio: auto;
  height: var(--cs-media-frame-height, 166px);
  min-height: var(--cs-media-frame-height, 166px);
}

.cs-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-media-copy {
  padding: 11px 13px 13px;
  border-top: 1px solid rgba(229, 231, 235, 0.72);
}

.cs-media-title {
  color: var(--cs-media-title, #111827);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.cs-media-caption {
  margin-top: 4px;
  color: var(--cs-media-caption, #6b7280);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.cs-link-card {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--cs-link-border, #e5e7eb);
  border-radius: 16px;
  background: var(--cs-link-bg, #f8f9fa);
  color: var(--cs-link-text, #111827);
  box-shadow: 0 2px 8px var(--cs-link-shadow, rgba(17, 24, 39, 0.08));
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.cs-link-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-link-arrow {
  color: #9ca3af;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.cs-link-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-link-text, #111827);
  line-height: 0;
}

.cs-link-header {
  padding: 8px 10px 6px;
  border-bottom: 2px solid var(--cs-header-border, transparent);
  border-radius: 10px;
  background: var(--cs-header-bg, transparent);
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.cs-root.is-page-dark .cs-link-header {
  color: rgba(249, 250, 251, 0.68);
}

.cs-link-note {
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--cs-text-border, rgba(17, 24, 39, 0.1));
  background: var(--cs-text-bg, #f8f9fa);
  color: #4b5563;
  line-height: 1.5;
  white-space: pre-wrap;
}

.cs-link-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 0;
  color: var(--cs-divider-color, #6b7280);
}

.cs-link-divider span {
  width: 100%;
  height: var(--cs-divider-thickness, 1px);
  background: var(--cs-divider-color, rgba(17, 24, 39, 0.12));
}

.cs-root.is-page-dark .cs-link-divider span {
  background: var(--cs-divider-color, rgba(249, 250, 251, 0.18));
}

.cs-link-divider-chars span {
  width: auto;
  height: auto;
  background: transparent;
  letter-spacing: 0.12em;
  line-height: 1;
}

.cs-root.is-page-dark .cs-link-divider-chars span {
  background: transparent;
}

.cs-empty-prompt {
  margin-top: 8px;
  padding: 18px 16px;
  text-align: center;
  border: 1px dashed rgba(17, 24, 39, 0.16);
  border-radius: 16px;
  background: #f8f9fa;
  color: #6b7280;
}

.cs-empty-title {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.cs-root.is-page-dark .cs-empty-title {
  color: #f9fafb;
}

.cs-empty-sub {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
}

.cs-link-anchor.has-adult-warning {
  overflow: hidden;
}

.cs-adult-inline {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 10px;
  background: rgba(8, 8, 10, 0.96);
  color: #ffffff;
  text-align: center;
}

.cs-adult-inline-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  max-width: 300px;
}

.cs-adult-inline-title {
  display: block;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.cs-adult-inline-body {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.28;
}

.cs-adult-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.cs-adult-btn {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  padding: 0 10px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.cs-adult-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.cs-adult-btn.primary {
  border-color: #ffffff;
  background: #ffffff;
  color: #111827;
}

.cs-link-anchor-simple .cs-adult-inline {
  padding: 7px 10px;
}

.cs-link-anchor-simple .cs-adult-inline-inner {
  width: auto;
  max-width: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.cs-link-anchor-simple .cs-adult-inline-title {
  display: none;
}

.cs-link-anchor-simple .cs-adult-inline-body {
  display: block;
  margin-bottom: 7px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}

.cs-link-anchor-simple .cs-adult-actions {
  display: flex;
  justify-content: center;
  width: auto;
  gap: 8px;
}

.cs-link-anchor-simple .cs-adult-btn {
  min-height: 21px;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

.cs-link-anchor-simple .cs-adult-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.cs-link-anchor-simple .cs-adult-btn.primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.cs-image-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cs-image-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  display: grid;
  gap: 10px;
}

.cs-image-preview {
  width: 100%;
  max-height: min(76vh, 700px);
  display: block;
  border-radius: 16px;
  object-fit: contain;
  background: #111827;
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.24);
  user-select: none;
  -webkit-user-drag: none;
}

.cs-image-close {
  justify-self: end;
  min-height: 34px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 999px;
  padding: 0 14px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.cs-image-caption {
  justify-self: center;
  max-width: min(560px, 100%);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

@media (max-width: 430px) {
  .cs-scroll {
    padding: 24px 14px 30px;
  }

  .cs-header-stack.has-cover {
    margin-top: -56px;
  }

  .cs-link-card {
    min-height: 56px;
    padding: 11px 13px;
  }
}
