/* EchoAtlas - Mint Fresh UI Theme */

:root {
  --color-primary: #10B981;
  --color-primary-soft: #6EE7B7;
  --color-secondary: #34D399;
  --color-accent: #3B82F6;
  --color-bg: #ECFDF5;
  --color-surface: #FFFFFF;
  --color-surface-soft: #F0FDF4;
  --color-border-subtle: #D1FAE5;
  --color-text: #064E3B;
  --color-text-secondary: #047857;
  --color-text-muted: #6B7280;
  --color-danger: #EF4444;

  --sidebar-width: 260px;
  --sidebar-width-collapsed: 72px;
  --header-height: 72px;
  --player-height: 76px;

  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-pill: 999px;

  --shadow-fresh-sm: 0 8px 20px rgba(16, 185, 129, 0.08);
  --shadow-fresh-md: 0 18px 45px rgba(16, 185, 129, 0.16);

  --font-sans: "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text);
  background: radial-gradient(circle at top left, #d1fae5 0, #ecfdf5 45%, #ffffff 100%);
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  text-decoration: none;
}

button {
  font-family: inherit;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
}

/* Sidebar */

.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 35%, #ecfdf5 100%);
  border-right: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  padding: 18px 16px 12px;
  gap: 16px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 4px 4px;
}

.app-logo {
  font-weight: 600;
  font-size: 20px;
  color: var(--color-text);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: radial-gradient(circle at 30% 0, #a7f3d0 0, #10b981 38%, #0f766e 100%);
  box-shadow: var(--shadow-fresh-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.sidebar-section-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 4px 4px 6px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--color-text-secondary);
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nav-item a:hover {
  background: #d1fae5;
}

.nav-item.active a {
  background: var(--color-primary);
  color: #ecfdf5;
  font-weight: 600;
  box-shadow: var(--shadow-fresh-sm);
}

.nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.nav-item.active .nav-icon {
  background: rgba(236, 253, 245, 0.22);
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-mini-player {
  padding: 8px 10px;
  border-radius: var(--radius-lg);
  background: rgba(236, 253, 245, 0.8);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-fresh-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-mini-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-mini-artwork {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #10b981, #3b82f6);
}

.sidebar-mini-meta {
  flex: 1;
  min-width: 0;
}

.sidebar-mini-title {
  font-size: 13px;
  font-weight: 500;
}

.sidebar-mini-subtitle {
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-mini-progress {
  height: 3px;
  border-radius: 999px;
  background: #d1fae5;
  overflow: hidden;
}

.sidebar-mini-progress-inner {
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, #6ee7b7, #10b981);
}

.sidebar-mini-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 2px;
}

.icon-button {
  border: none;
  background: rgba(16, 185, 129, 0.08);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.icon-button:hover {
  background: rgba(16, 185, 129, 0.16);
  transform: translateY(-1px);
  box-shadow: var(--shadow-fresh-sm);
}

.icon-button.primary {
  background: var(--color-primary);
  color: #ecfdf5;
}

.icon-button.primary:hover {
  background: #0f9f77;
}

/* Main layout */

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-inner {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--player-height));
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.96), rgba(236, 253, 245, 0.9));
  border-bottom: 1px solid rgba(209, 250, 229, 0.7);
  padding: 14px 24px 12px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.page-header-left {
  min-width: 220px;
}

.page-title {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
}

.page-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.page-header-center {
  flex: 1;
}

.search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  padding: 6px 8px 6px 10px;
  box-shadow: var(--shadow-fresh-sm);
}

.search-input input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 13px;
}

.search-input-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.chip-button {
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-soft);
  font-size: 12px;
  color: var(--color-text-secondary);
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: var(--shadow-fresh-sm);
}

.page-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #ecfdf5;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-text-secondary);
}

/* Utility */

.pill-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
}

.pill-toggle button {
  border-radius: 999px;
  border: none;
  background: transparent;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.pill-toggle button.active {
  background: #ffffff;
  color: var(--color-text);
  box-shadow: var(--shadow-fresh-sm);
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 6px 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: var(--color-surface);
}

.btn-primary {
  background: var(--color-primary);
  color: #ecfdf5;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-fresh-md);
}

.btn-primary:hover {
  background: #0f9f77;
}

.btn-outline {
  background: transparent;
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--color-text-secondary);
}

.btn-outline:hover {
  background: rgba(16, 185, 129, 0.06);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  background: rgba(16, 185, 129, 0.06);
}

.badge-status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.badge-upcoming {
  background: rgba(16, 185, 129, 0.18);
  color: var(--color-text-secondary);
}

.badge-completed {
  background: rgba(52, 211, 153, 0.18);
  color: #047857;
}

.chip-filter {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid var(--color-border-subtle);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.chip-filter.active {
  background: var(--color-primary);
  color: #ecfdf5;
  border-color: var(--color-primary);
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
  font-size: 16px;
}

.section-subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.page-content {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-surface {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-fresh-sm);
}

.card-surface:hover {
  box-shadow: var(--shadow-fresh-md);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 14px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  padding: 8px 10px;
  text-align: left;
}

.table thead tr {
  background: rgba(16, 185, 129, 0.06);
}

.table tbody tr:nth-child(even) {
  background: rgba(236, 253, 245, 0.8);
}

.table tbody tr:hover {
  background: rgba(209, 250, 229, 0.9);
}

.table th {
  font-weight: 500;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.table td.meta-muted {
  color: var(--color-text-muted);
}

/* Map Discovery layout */

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: stretch;
}

.map-surface {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 0, #e0f2fe 0, #ecfdf5 55%, #d1fae5 85%);
}

.map-grid-lines::before,
.map-grid-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.32) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8) 0, transparent 70%);
  pointer-events: none;
}

.map-continents {
  position: absolute;
  inset: 10% 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(52, 211, 153, 0.6) 0, transparent 40%),
    radial-gradient(circle at 70% 40%, rgba(34, 197, 94, 0.55) 0, transparent 42%),
    radial-gradient(circle at 20% 80%, rgba(45, 212, 191, 0.5) 0, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.55) 0, transparent 42%);
  opacity: 0.68;
}

.map-marker {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ecfdf5;
  font-size: 11px;
}

.marker-city-cluster {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(8, 47, 73, 0.85);
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.4);
}

.marker-neighborhood {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.4);
}

.marker-venue {
  width: 22px;
  height: 22px;
  border-radius: 9px 9px 999px 999px;
  background: var(--color-accent);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.45);
}

.map-controls {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-controls button {
  width: 30px;
  height: 30px;
}

.map-popover {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  padding: 10px 11px;
  max-width: 270px;
  display: flex;
  gap: 10px;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-fresh-md);
}

.map-popover-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e, #22c55e);
}

.map-popover-body h4 {
  margin: 0 0 3px;
  font-size: 14px;
}

.map-popover-body p {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.map-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.map-tag-row span {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
}

.nearby-panel {
  display: flex;
  flex-direction: column;
  max-height: 460px;
}

.nearby-header {
  padding: 12px 12px 8px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.nearby-list {
  padding: 6px 4px 8px 0;
  overflow: auto;
}

.nearby-item {
  display: flex;
  padding: 8px 10px;
  gap: 10px;
  border-radius: 12px;
  cursor: pointer;
}

.nearby-item:hover {
  background: rgba(236, 253, 245, 0.9);
}

.nearby-thumb {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #fb7185, #fb923c);
}

.nearby-meta-title {
  font-size: 13px;
  font-weight: 500;
}

.nearby-meta-sub {
  font-size: 11px;
  color: var(--color-text-muted);
}

.nearby-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.nearby-meta-chips span {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
}

.nearby-empty {
  text-align: center;
  padding: 30px 18px;
  color: var(--color-text-muted);
}

.nearby-empty h4 {
  margin: 8px 0 4px;
}

/* Player bar */

.player-bar {
  position: sticky;
  bottom: 0;
  width: 100%;
  height: var(--player-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--color-border-subtle);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  padding: 8px 18px;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -10px 30px rgba(15, 118, 110, 0.08);
}

.player-track {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.player-artwork {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f766e, #22c55e);
}

.player-track-text {
  min-width: 0;
}

.player-track-text h4 {
  margin: 0 0 3px;
  font-size: 14px;
}

.player-track-text p {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.player-transport {
  display: flex;
  gap: 8px;
}

.player-transport button {
  width: 32px;
  height: 32px;
}

.player-transport button.play {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #ecfdf5;
}

.player-timeline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--color-text-muted);
}

.timeline-track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #d1fae5;
}

.timeline-track::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, #6ee7b7, #10b981);
  border-radius: 999px;
}

.timeline-handle {
  position: absolute;
  right: calc(60% - 6px);
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 2px solid #10b981;
  transform: translateY(-50%);
}

.player-extras {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 120px;
}

.volume-track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #d1fae5;
  position: relative;
}

.volume-track::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 70%;
  background: linear-gradient(90deg, #22c55e, #3b82f6);
  border-radius: 999px;
}

/* Place Detail page */

.breadcrumbs {
  font-size: 12px;
  color: var(--color-text-muted);
}

.breadcrumbs span {
  cursor: pointer;
}

.breadcrumbs span + span::before {
  content: " / ";
  color: rgba(148, 163, 184, 0.9);
}

.place-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.place-title {
  margin: 0;
  font-size: 22px;
}

.place-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.hero-card {
  position: relative;
  padding: 18px 20px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.12)), url('https://images.pexels.com/photos/1647161/pexels-photo-1647161.jpeg?auto=compress&cs=tinysrgb&w=1200') center/cover no-repeat;
  box-shadow: var(--shadow-fresh-md);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.hero-left {
  max-width: 60%;
}

.hero-pill {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.95);
  color: var(--color-text-secondary);
  font-size: 11px;
}

.hero-headline {
  margin: 8px 0 4px;
  font-size: 22px;
}

.hero-description {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--color-text);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border-subtle);
  gap: 14px;
}

.tab {
  padding: 8px 2px 10px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  position: relative;
}

.tab-active {
  color: var(--color-primary);
  font-weight: 500;
}

.tab-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #6ee7b7, #10b981);
  border-radius: 999px;
}

.playlist-card {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playlist-cover {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #34d399);
  height: 140px;
}

.playlist-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.54));
}

.playlist-card:hover .playlist-cover-overlay {
  opacity: 1;
}

.playlist-title {
  margin: 4px 0 0;
  font-size: 14px;
}

.playlist-subtitle {
  margin: 2px 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.playlist-meta {
  font-size: 11px;
  color: var(--color-text-secondary);
}

.badge-small {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
}

.venue-list-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
}

.venue-list-item:hover {
  background: rgba(236, 253, 245, 0.95);
}

.venue-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #a855f7);
}

.story-card {
  padding: 10px 12px 12px;
}

.story-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

/* Scenes page */

.scenes-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1.1fr);
  gap: 18px;
}

.scenes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.scene-card {
  position: relative;
  overflow: hidden;
}

.scene-image {
  height: 130px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f766e, #22c55e);
}

.scene-pill {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  background: rgba(236, 253, 245, 0.9);
}

.scene-overlay {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.7));
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.scene-card:hover .scene-overlay {
  opacity: 1;
}

.scene-body {
  padding: 8px 10px 10px;
}

.scene-title {
  margin: 0 0 2px;
  font-size: 14px;
}

.scene-subtitle {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.scene-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--color-text-secondary);
}

.saved-scenes-panel {
  padding: 12px 10px 10px;
  max-height: 520px;
  overflow: auto;
}

.saved-scene-item {
  padding: 8px 9px;
  border-radius: 12px;
}

.saved-scene-item:hover {
  background: rgba(236, 253, 245, 0.96);
}

/* Library page */

.view-toggle {
  display: inline-flex;
  gap: 8px;
  border-radius: 999px;
  padding: 3px;
  background: rgba(16, 185, 129, 0.05);
}

.view-toggle button {
  border-radius: 999px;
  border: none;
  background: transparent;
  padding: 4px 11px;
  font-size: 12px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.view-toggle button.active {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: var(--shadow-fresh-sm);
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.widget-card {
  padding: 10px 12px 12px;
}

.widget-title {
  margin: 0 0 6px;
  font-size: 13px;
}

.widget-value {
  font-size: 22px;
  font-weight: 600;
}

.widget-trend {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.widget-map-mini {
  margin-top: 10px;
  height: 120px;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 0, #e0f2fe 0, #ecfdf5 55%, #d1fae5 85%);
  position: relative;
}

.widget-map-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.3);
}

.place-list-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
}

.place-list-item:hover {
  background: rgba(236, 253, 245, 0.96);
}

.place-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
}

.playlist-library-card {
  padding: 9px 10px 11px;
}

.playlist-lib-cover {
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f766e, #34d399);
}

/* Trips page */

.trips-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trip-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trip-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 11px;
  border-radius: 14px;
}

.trip-item:hover {
  background: rgba(236, 253, 245, 0.96);
}

.trip-main {
  display: flex;
  flex-direction: column;
}

.trip-title {
  margin: 0;
  font-size: 14px;
}

.trip-subtitle {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.trip-meta {
  font-size: 11px;
  color: var(--color-text-secondary);
}

.trip-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr);
  gap: 14px;
}

.trip-map {
  height: 220px;
  border-radius: 16px;
  background: radial-gradient(circle at 20% 0, #e0f2fe 0, #ecfdf5 55%, #d1fae5 85%);
  position: relative;
}

.trip-waypoint {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #10b981;
  color: #ecfdf5;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.24);
}

.trip-stops-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trip-stop-card {
  padding: 9px 10px;
  border-radius: 14px;
}

.trip-stop-card:hover {
  background: rgba(236, 253, 245, 0.96);
}

.trip-stop-title {
  margin: 0;
  font-size: 14px;
}

.trip-stop-meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.trip-stop-playlists {
  margin-top: 4px;
  font-size: 11px;
  color: var(--color-text-secondary);
}

/* Simple responsive tweaks */

@media (max-width: 960px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    flex-direction: row;
    align-items: center;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .sidebar-spacer {
    display: none;
  }

  .sidebar-mini-player {
    display: none;
  }

  .main-inner {
    min-height: calc(100vh - var(--player-height) - 74px);
  }

  .map-layout,
  .scenes-layout,
  .trip-detail {
    grid-template-columns: 1fr;
  }

  .player-bar {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
    grid-template-rows: auto auto;
  }

  .player-extras {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
