* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#app {
  width: 100%;
  max-width: 420px;
  padding: 16px;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

/* Loading */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #eee;
  border-top-color: #FF6B35;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Card */
.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.thumbnail-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

.thumbnail-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

/* Sharer */
.sharer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

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

.sharer-name {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* Trip info */
.trip-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #888;
}

/* Layer badge */
.layer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #FFF3EC;
  border-radius: 6px;
  font-size: 13px;
  color: #FF6B35;
  font-weight: 500;
  margin-bottom: 24px;
}

.layer-icon {
  font-size: 14px;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: #FF6B35;
  color: #fff;
  margin-bottom: 12px;
}

.btn-secondary {
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
}

.store-links {
  display: flex;
  gap: 8px;
}

.btn-store {
  flex: 1;
  padding: 12px 8px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
}

.btn-store svg {
  flex-shrink: 0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px 0 8px;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  color: #FF6B35;
  letter-spacing: -0.5px;
}

/* Error */
.error-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#error-message {
  font-size: 16px;
  color: #888;
}
