/* Theme base */
:root {
  --ca-bg1: #070a16;
  --ca-bg2: #140c2a;
  --ca-gold: #f0c36b;
  --ca-gold-2: #caa14c;
  --ca-text: rgba(255, 255, 255, 0.9);
  --ca-muted: rgba(255, 255, 255, 0.65);
  --ca-panel-bg: rgba(10, 10, 20, 0.62);
  --ca-border: rgba(240, 195, 107, 0.35);
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #040612;
  color: var(--ca-text);
  overflow: hidden; /* evita rolagem no fundo da constelação */
}

/* Sky layer */
.ca-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #040612;
}

.ca-sky-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
}

.ca-sky-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 55% 30%, rgba(42, 24, 84, 0.35) 0%, transparent 58%),
    radial-gradient(700px 420px at 35% 45%, rgba(15, 40, 72, 0.28) 0%, transparent 55%),
    linear-gradient(180deg, rgba(4, 6, 18, 0.15) 0%, rgba(4, 6, 18, 0.45) 55%, rgba(3, 4, 12, 0.82) 100%);
}

/* App layout */
.ca-app {
  position: relative;
  z-index: 1;
  height: 100vh;
  padding: 16px 0;
}

.ca-app > .container-fluid {
  position: relative;
  z-index: 2;
}

.ca-left {
  position: relative;
  z-index: 3;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ca-left-inner,
.ca-center-inner,
.ca-right-inner {
  position: relative;
  height: 100%;
}

.ca-left-inner {
  padding-bottom: 120px;
  background: linear-gradient(90deg, rgba(4, 6, 18, 0.82) 0%, rgba(4, 6, 18, 0.45) 80%, transparent 100%);
}

.ca-brand {
  padding: 14px 18px;
}

.ca-brand-title {
  font-size: 28px;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.92);
}

.ca-brand-sub {
  margin-top: 4px;
  color: var(--ca-muted);
  font-size: 13px;
}

.ca-instruction {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  z-index: 3;
  user-select: none;
  pointer-events: none;
}

.ca-center {
  position: relative;
  padding: 0 10px;
}

.ca-constellation {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.ca-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -70px;
  height: 220px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 35%, rgba(0, 0, 0, 0.9) 100%);
  pointer-events: none;
  z-index: 1;
}

.ca-node {
  position: absolute;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(240, 195, 107, 0.18);
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ca-node:hover {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: rgba(240, 195, 107, 0.42);
  background: rgba(240, 195, 107, 0.1);
}

.ca-node .ca-node-inner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 18px rgba(240, 195, 107, 0.35);
}

.ca-node[data-selected="true"] {
  border-color: rgba(240, 195, 107, 0.7);
  background: rgba(240, 195, 107, 0.16);
  transform: translate(-50%, -50%) scale(1.12);
}

.ca-node[data-selected="true"] .ca-node-inner {
  width: 24px;
  height: 24px;
  background: rgba(255, 236, 188, 0.98);
  box-shadow: 0 0 26px rgba(240, 195, 107, 0.55);
}

.ca-right {
  display: flex;
  justify-content: flex-end;
}

.ca-right-inner {
  padding-left: 12px;
}

.ca-panel {
  width: 420px;
  max-width: calc(100vw - 24px);
  background: var(--ca-panel-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.ca-panel-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ca-panel-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ca-panel-date {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.ca-panel-journey {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.ca-close-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ca-panel-body {
  padding: 14px 16px 16px;
}

.ca-thumb-strip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ca-thumb-strip::-webkit-scrollbar {
  height: 4px;
}

.ca-thumb-strip::-webkit-scrollbar-thumb {
  background: rgba(240, 195, 107, 0.35);
  border-radius: 999px;
}

.ca-thumb {
  width: 70px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.72;
}

.ca-thumb[data-active="true"] {
  opacity: 1;
  border-color: rgba(240, 195, 107, 0.7);
}

.ca-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ca-quote {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(240, 195, 107, 0.16);
  color: rgba(255, 255, 255, 0.86);
  font-style: italic;
  line-height: 1.35;
  font-size: 13px;
}

.ca-section-label {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.ca-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.ca-footer-line {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(240, 195, 107, 0.95);
  font-size: 13px;
}

.ca-yearlist {
  position: relative;
  padding: 20px 10px 0 28px;
}

.ca-yearlist::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 28px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(240, 195, 107, 0.45), rgba(255, 255, 255, 0.12));
}

.ca-year-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  cursor: pointer;
  user-select: none;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.ca-year-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}

.ca-year-item[data-active="true"] {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(240, 195, 107, 0.08);
  border: 1px solid rgba(240, 195, 107, 0.3);
}

.ca-year-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ca-year-item[data-active="true"] .ca-year-dot {
  background: rgba(240, 195, 107, 0.55);
  border-color: rgba(240, 195, 107, 0.85);
  box-shadow: 0 0 18px rgba(240, 195, 107, 0.3);
}

.ca-left-quote {
  position: absolute;
  bottom: 90px;
  left: 14px;
  right: 14px;
  color: rgba(240, 195, 107, 0.88);
  font-size: 12px;
  line-height: 1.5;
  font-style: italic;
  pointer-events: none;
}

.ca-music-player {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 50;
  width: min(360px, calc(100vw - 32px));
}

.ca-music-player audio {
  display: none;
}

.ca-music-player-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(10, 10, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.ca-music-vinyl {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 195, 107, 0.18);
  border: 1px solid rgba(240, 195, 107, 0.35);
  color: rgba(240, 195, 107, 0.95);
  font-size: 16px;
  flex-shrink: 0;
}

.ca-music-info {
  flex: 1;
  min-width: 0;
}

.ca-music-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ca-music-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ca-music-controls {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.ca-music-btn {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(240, 195, 107, 0.35);
  background: rgba(240, 195, 107, 0.12);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.ca-music-btn:hover {
  background: rgba(240, 195, 107, 0.22);
}

.ca-main-photo {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.ca-main-photo img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.ca-main-photo:hover img {
  transform: scale(1.03);
}

.ca-photo-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 4, 12, 0.88);
  backdrop-filter: blur(10px);
}

.ca-photo-modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: rgba(10, 10, 20, 0.92);
  border: 1px solid rgba(240, 195, 107, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.ca-photo-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ca-photo-modal-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
}

.ca-photo-modal-title {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
}

.ca-photo-modal-stage {
  position: relative;
  flex: 1;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  padding: 12px 52px;
}

.ca-photo-modal-img {
  max-width: 100%;
  max-height: min(68vh, 640px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.ca-photo-nav {
  appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(240, 195, 107, 0.4);
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.92);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ca-photo-nav:hover {
  background: rgba(240, 195, 107, 0.2);
}

.ca-photo-nav-prev {
  left: 8px;
}

.ca-photo-nav-next {
  right: 8px;
}

.ca-photo-modal-footer {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ca-photo-modal-quote {
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.ca-photo-modal-counter {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(240, 195, 107, 0.9);
}

.ca-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 6, 14, 0.82);
  backdrop-filter: blur(8px);
}

.ca-welcome-modal {
  width: min(440px, 100%);
  padding: 36px 32px 32px;
  border-radius: 20px;
  text-align: center;
  background: rgba(10, 10, 20, 0.88);
  border: 1px solid rgba(240, 195, 107, 0.28);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.ca-welcome-stars {
  color: rgba(240, 195, 107, 0.75);
  font-size: 14px;
  letter-spacing: 0.4em;
  margin-bottom: 16px;
}

.ca-welcome-title {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  font-family: "Georgia", "Times New Roman", serif;
}

.ca-welcome-text {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.ca-welcome-btn {
  appearance: none;
  border: 1px solid rgba(240, 195, 107, 0.55);
  background: rgba(240, 195, 107, 0.16);
  color: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 12px 36px;
  font-size: 15px;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.ca-welcome-btn:hover {
  background: rgba(240, 195, 107, 0.28);
  transform: scale(1.03);
}

@media (max-width: 992px) {
  body {
    overflow: auto;
  }
  .ca-app {
    height: auto;
    min-height: 100vh;
  }
  .ca-right {
    justify-content: center;
    margin-top: 12px;
  }
  .ca-panel {
    width: 100%;
  }
}

