/* Prog or Flop - CTTE 2026 Scorecard */
/* Fun & cheeky, CTTE colours, light background */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

:root {
  --ctte-orange: #e8491d;
  --ctte-orange-light: #ff6b3d;
  --ctte-teal: #1a8a6e;
  --ctte-teal-light: #2bb891;
  --ctte-navy: #0e1117;
  --ctte-navy-light: #1a1f2e;
  --bg-main: #f4f5f7;
  --bg-card: #ffffff;
  --bg-header: linear-gradient(135deg, #e8491d 0%, #ff6b3d 50%, #ff8c42 100%);
  --text-primary: #1a1f2e;
  --text-secondary: #5a6070;
  --text-light: #8a8f9f;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* User colours */
  --user-jack: #e8491d;
  --user-katie: #9b59b6;
  --user-mum: #1a8a6e;
  --user-dad: #2980b9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== USER PICKER SCREEN ========== */
#user-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-main);
  padding: 20px;
}

.picker-header {
  text-align: center;
  margin-bottom: 40px;
}

.picker-header h1 {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
}

.picker-header h1 .prog {
  color: var(--ctte-orange);
}

.picker-header h1 .or {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1.5rem;
  display: block;
  margin: 4px 0;
}

.picker-header h1 .flop {
  color: var(--ctte-teal);
}

.picker-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.picker-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 8px;
}

.picker-users {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 320px;
  width: 100%;
}

.picker-user-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-user-select: none;
  user-select: none;
}

.picker-user-btn:active {
  transform: scale(0.95);
  box-shadow: var(--shadow-sm);
}

.picker-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.picker-avatar[data-user="Jack"] { background: var(--user-jack); }
.picker-avatar[data-user="Katie"] { background: var(--user-katie); }
.picker-avatar[data-user="Mum"] { background: var(--user-mum); }
.picker-avatar[data-user="Dad"] { background: var(--user-dad); }

.picker-user-btn span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

/* ========== MAIN APP ========== */
#app {
  display: none;
  min-height: 100vh;
  padding-bottom: 72px; /* space for bottom nav */
}

#app.active {
  display: block;
}

/* ========== HEADER ========== */
.app-header {
  background: var(--bg-header);
  color: white;
  padding: 16px 20px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.header-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.2);
  padding: 6px 12px 6px 8px;
  border-radius: 20px;
  border: none;
  color: white;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.header-user-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

/* ========== DAY TABS ========== */
.day-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.day-tabs::-webkit-scrollbar { display: none; }

.day-tab {
  flex-shrink: 0;
  padding: 8px 12px;
  border: none;
  border-radius: 20px;
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.day-tab.active {
  background: white;
  color: var(--ctte-orange);
}

/* ========== DAY INFO BAR ========== */
.day-info {
  background: var(--ctte-navy-light);
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.day-info-theme {
  font-weight: 700;
  color: var(--ctte-orange-light);
}

.day-info-location {
  font-weight: 600;
  opacity: 0.8;
}

/* ========== FILTER TABS ========== */
.filter-bar {
  display: flex;
  gap: 6px;
  padding: 12px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 2px solid #dde0e6;
  border-radius: 20px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active {
  border-color: var(--ctte-orange);
  background: var(--ctte-orange);
  color: white;
}

/* ========== EVENT LIST ========== */
.event-list {
  padding: 0 16px 16px;
}

.time-group-header {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 16px 4px 8px;
}

.event-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-left: 4px solid transparent;
}

.event-card:active {
  transform: scale(0.98);
}

.event-card.headliner {
  border-left-color: var(--ctte-orange);
  background: linear-gradient(135deg, #fff9f5 0%, #ffffff 100%);
}

.event-card.performance {
  border-left-color: var(--ctte-teal);
}

.event-card.qa {
  border-left-color: #9b59b6;
  opacity: 0.85;
}

.event-card.event-type {
  border-left-color: #95a5a6;
  opacity: 0.75;
}

.event-card.now-playing {
  border-left-color: var(--ctte-orange);
  box-shadow: 0 0 0 2px var(--ctte-orange), var(--shadow-md);
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 2px var(--ctte-orange), var(--shadow-md); }
  50% { box-shadow: 0 0 0 2px var(--ctte-orange-light), 0 0 12px rgba(232,73,29,0.3); }
}

.event-time {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ctte-orange);
  min-width: 55px;
  flex-shrink: 0;
  padding-top: 2px;
}

.event-card.qa .event-time,
.event-card.event-type .event-time {
  color: var(--text-light);
}

.event-info {
  flex: 1;
  min-width: 0;
}

.event-artist {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.2;
}

.event-card.headliner .event-artist {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ctte-orange);
}

.event-venue {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.event-venue .deck {
  color: var(--text-light);
  font-weight: 500;
}

.event-notes {
  font-size: 0.7rem;
  color: var(--ctte-teal);
  font-weight: 700;
  margin-top: 4px;
}

.event-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.score-badge {
  background: var(--ctte-orange);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.score-badge.no-score {
  background: #e0e3e8;
  color: var(--text-light);
}

.comment-indicator {
  font-size: 0.65rem;
  color: var(--text-light);
  font-weight: 600;
}

.now-label {
  background: var(--ctte-orange);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== PERFORMANCE DETAIL VIEW ========== */
#detail-view {
  display: none;
  min-height: 100vh;
  background: var(--bg-main);
}

#detail-view.active {
  display: block;
}

.detail-header {
  background: var(--bg-header);
  color: white;
  padding: 16px 20px;
}

.detail-back {
  background: none;
  border: none;
  color: white;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-artist {
  font-size: 1.6rem;
  font-weight: 900;
  margin: 8px 0 4px;
  line-height: 1.2;
}

.detail-meta {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}

.detail-notes {
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 6px;
  background: rgba(255,255,255,0.15);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Score Section */
.score-section {
  background: var(--bg-card);
  margin: 16px;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.score-section-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.score-picker {
  text-align: center;
  margin-bottom: 12px;
}

.slider-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--ctte-orange);
  margin-bottom: 8px;
}

.slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-min, .slider-max {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-light);
  flex-shrink: 0;
}

.score-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--ctte-orange) var(--fill, 0%), #e0e3e8 var(--fill, 0%));
  outline: none;
}

.score-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ctte-orange);
  border: 4px solid white;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.score-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ctte-orange);
  border: 4px solid white;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.score-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.score-action-btn {
  padding: 8px 16px;
  border: 2px solid #e0e3e8;
  border-radius: 20px;
  background: transparent;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.score-action-btn:active {
  transform: scale(0.95);
}

.dns-btn {
  color: var(--text-secondary);
  border-color: #e0e3e8;
}

.dns-btn:active {
  background: var(--text-light);
  color: white;
}

.clear-btn {
  color: var(--text-light);
  border-color: #e0e3e8;
}

.score-badge.dns {
  background: #95a5a6;
  color: white;
  font-size: 0.65rem;
}

.score-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ctte-orange);
  min-height: 1.2em;
  margin-bottom: 16px;
}

.all-scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.user-score-box {
  text-align: center;
  padding: 10px 4px;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
}

.user-score-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}

.user-score-value {
  font-size: 1.3rem;
  font-weight: 900;
}

.user-score-value.no-score {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
}

.avg-score {
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--bg-main);
}

.avg-score-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.avg-score-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ctte-teal);
}

/* Comments Section */
.comments-section {
  margin: 0 16px 16px;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.comments-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.comment-fab-row {
  display: flex;
  gap: 10px;
}

.comment-fab {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
  padding: 0;
  line-height: 0;
}

.comment-fab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.comment-fab:active {
  transform: scale(0.9);
  box-shadow: var(--shadow-sm);
}

.fab-text {
  background: var(--ctte-teal);
}

.fab-voice {
  background: var(--ctte-orange);
}

.btn {
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-xl);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn:active {
  transform: scale(0.95);
}

.btn-text {
  background: var(--ctte-teal);
  color: white;
}

.btn-voice {
  background: var(--ctte-orange);
  color: white;
}

.btn-voice.recording {
  animation: pulse-recording 1s infinite;
}

@keyframes pulse-recording {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.comment-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-user {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  color: white;
}

.comment-user[data-user="Jack"] { background: var(--user-jack); }
.comment-user[data-user="Katie"] { background: var(--user-katie); }
.comment-user[data-user="Mum"] { background: var(--user-mum); }
.comment-user[data-user="Dad"] { background: var(--user-dad); }

.comment-time {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
}

.comment-text {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.voice-player {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.voice-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--ctte-orange);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.voice-info {
  flex: 1;
}

.voice-duration {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.voice-transcript {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 4px;
  line-height: 1.4;
}

/* Comment action buttons */
.comment-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.comment-action-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-light);
  padding: 2px 0;
}

.comment-action-btn.action-edit {
  color: var(--ctte-teal);
}

.comment-action-btn.action-delete {
  color: var(--text-light);
}

/* Comment input modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.modal-textarea {
  width: 100%;
  min-height: 120px;
  border: 2px solid #e0e3e8;
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.modal-textarea:focus {
  border-color: var(--ctte-teal);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-cancel {
  background: #e0e3e8;
  color: var(--text-secondary);
  flex: 1;
}

.btn-save {
  background: var(--ctte-teal);
  color: white;
  flex: 1;
}

/* Voice recording modal */
.voice-recording-area {
  text-align: center;
  padding: 20px 0;
}

.voice-recording-indicator {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--ctte-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  color: white;
}

.voice-recording-indicator.active {
  animation: pulse-recording 1s infinite;
}

.voice-recording-time {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.voice-transcript-live {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  min-height: 2em;
  margin-bottom: 16px;
  padding: 0 20px;
}

/* ========== SUMMARY VIEW ========== */
#summary-view {
  display: none;
  min-height: 100vh;
  background: var(--bg-main);
  padding-bottom: 72px;
}

#summary-view.active {
  display: block;
}

.summary-header {
  background: var(--bg-header);
  color: white;
  padding: 20px;
}

.summary-title {
  font-size: 1.5rem;
  font-weight: 900;
}

.summary-card {
  background: var(--bg-card);
  margin: 16px;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.summary-card-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-main);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-artist {
  font-weight: 700;
  font-size: 0.9rem;
}

.summary-score {
  font-weight: 800;
  font-size: 1rem;
  color: var(--ctte-orange);
}

/* ========== BOTTOM NAVIGATION ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-btn {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.nav-btn.active {
  color: var(--ctte-orange);
}

.nav-icon {
  font-size: 1.3rem;
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ctte-teal);
  display: inline-block;
}

.sync-dot.pending {
  background: var(--ctte-orange);
  animation: pulse-recording 1.5s infinite;
}

.sync-dot.offline {
  background: #e0e3e8;
}

/* ========== SYNC VIEW ========== */
#sync-view {
  display: none;
  min-height: 100vh;
  background: var(--bg-main);
  padding-bottom: 72px;
}

#sync-view.active {
  display: block;
}

.sync-status-card {
  background: var(--bg-card);
  margin: 16px;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.sync-status-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.sync-status-text {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.sync-status-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.btn-sync {
  background: var(--ctte-teal);
  color: white;
  width: 100%;
  padding: 14px;
  font-size: 0.9rem;
  justify-content: center;
}

/* Transcript badges */
.transcript-badge {
  display: inline-block;
  background: var(--ctte-teal);
  color: white;
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 8px;
  vertical-align: middle;
  margin-left: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.voice-transcript-pending {
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 4px;
}

/* ========== UTILITIES ========== */
.hidden { display: none !important; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ctte-navy);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 300;
  transition: transform 0.3s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Guest / Just Browsing button */
.picker-guest {
  margin-top: 20px;
  max-width: 320px;
  width: 100%;
}
.picker-guest-btn {
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid #d0d4db;
  border-radius: 16px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.picker-guest-btn:active {
  transform: scale(0.97);
  background: #f0f1f3;
}

/* Read-only mode: hide interactive elements */
body.read-only .your-rating-title { display: none; }
body.read-only .score-picker { display: none; }
body.read-only .score-label { display: none; }
body.read-only .score-actions { display: none; }
body.read-only .comment-fab-row { display: none; }
body.read-only .comment-actions { display: none; }

/* Responsive */
@media (min-width: 500px) {
  .event-list { max-width: 500px; margin: 0 auto; padding: 0 16px 16px; }
  .score-section, .comments-section, .summary-card, .sync-status-card { max-width: 500px; margin-left: auto; margin-right: auto; }
}
