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

:root {
  --bg: #020d1c;
  --surface: #071828;
  --card-bg: rgba(8, 28, 56, 0.65);
  --card-border: rgba(45, 204, 196, 0.14);
  --teal: #2dccc4;
  --teal-light: #62e8e2;
  --teal-glow: rgba(45, 204, 196, 0.22);
  --blue: #2980b9;
  --blue-light: #5dade2;
  --coral: #e87070;
  --coral-light: #f4a6a6;
  --coral-glow: rgba(232, 112, 112, 0.25);
  --text: #d8eef7;
  --text-muted: #6a9ab5;
  --green: #52e09c;
  --green-bg: rgba(82, 224, 156, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Background: deep ocean ── */
.bg-animation {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}

.bg-orb {
  position: absolute; border-radius: 50%; filter: blur(100px);
  animation: drift 16s ease-in-out infinite;
}

.bg-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(45,204,196,0.38), transparent 70%);
  top: -160px; left: -140px; opacity: 0.5; animation-delay: 0s;
}
.bg-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(41,128,185,0.32), transparent 70%);
  bottom: 10%; right: -100px; opacity: 0.45; animation-delay: -6s;
}
.bg-orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(93,173,226,0.25), transparent 70%);
  top: 40%; left: 20%; opacity: 0.3; animation-delay: -11s;
}
.bg-orb-4 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(232,112,112,0.18), transparent 70%);
  bottom: 25%; left: 5%; opacity: 0.3; animation-delay: -4s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(24px, -28px) scale(1.07); }
  66%       { transform: translate(-18px, 18px) scale(0.93); }
}

/* ── Toast ── */
.toast {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 1000;
  background: var(--green-bg);
  border: 1px solid rgba(82, 224, 156, 0.4);
  color: var(--green);
  padding: 10px 22px; border-radius: 50px;
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(14px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast[hidden] { display: none !important; }
.toast-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Layout ── */
.container {
  position: relative; z-index: 1;
  max-width: 480px; margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── Hero ── */
.hero { text-align: center; padding: 16px 0 36px; }

.avatar {
  width: 116px; height: 116px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  box-shadow: 0 0 0 8px rgba(45,204,196,0.06), 0 0 52px var(--teal-glow);
  overflow: hidden; background: var(--surface);
}
.avatar svg { width: 100%; height: 100%; }

/* ── Aquarium avatar ── */
.aquarium {
  position: relative; width: 100%; height: 100%;
  background: linear-gradient(180deg, #041830 0%, #041426 55%, #051220 100%);
  overflow: hidden;
}

/* caustic light shimmer at top */
.aq-caustic {
  position: absolute; top: -10px; left: -10px; right: -10px; height: 44px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(45,204,196,0.18) 0%, transparent 100%);
  animation: aq-caustic 3.4s ease-in-out infinite;
}
@keyframes aq-caustic {
  0%,100% { opacity: .7; transform: scaleX(1); }
  50%      { opacity: 1;  transform: scaleX(1.15); }
}

/* bubbles */
.aq-bubble {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(98,232,226,0.55);
  background: rgba(98,232,226,0.06);
  animation: aq-bubble-rise linear infinite;
}
.b1 { width: 5px; height: 5px; left: 22%; bottom: 28%; animation-duration: 3.2s; animation-delay: 0s; }
.b2 { width: 3px; height: 3px; left: 58%; bottom: 25%; animation-duration: 2.6s; animation-delay: -1.1s; }
.b3 { width: 4px; height: 4px; left: 76%; bottom: 30%; animation-duration: 3.8s; animation-delay: -2.3s; }
@keyframes aq-bubble-rise {
  0%   { transform: translateY(0)   translateX(0);   opacity: .7; }
  50%  { transform: translateY(-30px) translateX(3px);  opacity: .9; }
  100% { transform: translateY(-72px) translateX(-2px); opacity: 0; }
}

/* sandy bottom */
.aq-sand {
  position: absolute; bottom: 0; left: 0; right: 0; height: 14px;
  background: linear-gradient(180deg, #1a4a2e 0%, #0d3520 100%);
  border-top: 1px solid rgba(45,204,196,0.12);
}

/* seagrass */
.aq-grass {
  position: absolute; bottom: 12px;
  width: 8px; display: flex; justify-content: center;
}
.g1 { left: 10%; }
.g2 { left: 30%; }
.g3 { right: 12%; }

.aq-blade {
  width: 4px; height: 22px;
  background: linear-gradient(180deg, #3ecf6a 0%, #1a6b30 100%);
  border-radius: 4px 4px 2px 2px;
  transform-origin: bottom center;
  animation: aq-sway 2.4s ease-in-out infinite;
}
.g2 .aq-blade { animation-delay: -0.8s; height: 18px; }
.g3 .aq-blade { animation-delay: -1.5s; height: 20px; }
@keyframes aq-sway {
  0%,100% { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
}

/* fish */
.aq-fish {
  position: absolute;
  width: 58px; height: 36px;
  animation: aq-swim 6s linear infinite;
}
.aq-fish svg { width: 100%; height: 100%; }

@keyframes aq-swim {
  0%   { left: -62px; top: 38%; transform: scaleX(-1); }
  38%  { left: calc(100% + 2px); top: 28%; transform: scaleX(-1); }
  39%  { left: calc(100% + 2px); top: 28%; transform: scaleX(1); }
  80%  { left: -62px; top: 44%; transform: scaleX(1); }
  81%  { left: -62px; top: 44%; transform: scaleX(-1); }
  100% { left: -62px; top: 38%; transform: scaleX(-1); }
}

.musician-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 10px;
  background: linear-gradient(140deg, var(--teal-light) 0%, var(--blue-light) 60%, #a8d8ea 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.bio {
  color: var(--text-muted); font-size: 0.85rem;
  font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ── Buttons ── */
.actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 24px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%; letter-spacing: 0.01em; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

.btn-telegram {
  background: linear-gradient(135deg, #1a8fd1, #2aabee);
  color: #fff; box-shadow: 0 4px 28px rgba(42,171,238,0.28);
}
.btn-telegram:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(42,171,238,0.38); }

.btn-support {
  background: linear-gradient(135deg, #c05858, var(--coral-light));
  color: #fff; box-shadow: 0 4px 28px var(--coral-glow);
}
.btn-support:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(232,112,112,0.4); }

/* ── Support panel ── */
.support-wrapper { position: relative; }
.support-panel { overflow: hidden; max-height: 0; transition: max-height 0.42s var(--ease), margin-top 0.3s; }
.support-panel.open { max-height: 180px; margin-top: 10px; }

.support-label {
  font-size: 0.75rem; color: var(--text-muted); text-align: center;
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.1em;
}

.phone-copy-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 100%; padding: 18px 16px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  backdrop-filter: blur(14px); -webkit-tap-highlight-color: transparent;
}
.phone-copy-btn:hover { background: rgba(45,204,196,0.05); border-color: rgba(45,204,196,0.35); }
.phone-copy-btn:active { transform: scale(0.98); }

.bank-name { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.bank-phone { font-size: 1.45rem; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.copy-hint { font-size: 0.73rem; color: var(--text-muted); margin-top: 3px; }

/* ── Live show ── */
.live-section { margin-bottom: 32px; animation: fadeUp 0.4s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

.live-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.live-badge {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--coral); text-transform: uppercase;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--coral);
  animation: pulse-r 1.4s ease-in-out infinite; flex-shrink: 0;
}
@keyframes pulse-r { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.5)} }
.live-location { font-size: 0.78rem; color: var(--text-muted); }

.live-current-card {
  background: linear-gradient(135deg, rgba(45,204,196,0.1), rgba(45,204,196,0.03));
  border: 1px solid rgba(45,204,196,0.28);
  border-radius: var(--radius); padding: 20px; margin-bottom: 10px;
  backdrop-filter: blur(14px);
}
.live-label { font-size: 0.72rem; color: var(--teal); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.live-song-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.live-song-author { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }

.live-track { display: flex; flex-direction: column; gap: 6px; }
.live-bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.live-progress { height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-light)); border-radius: 2px; transition: width 0.8s linear; width: 0%; }
.live-time { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.live-upcoming { display: flex; flex-direction: column; gap: 6px; }
.live-next-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; background: var(--card-bg);
  border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}
.live-next-num { font-size: 0.75rem; color: var(--teal); min-width: 20px; font-variant-numeric: tabular-nums; }
.live-next-info { flex: 1; min-width: 0; }
.live-next-title { font-size: 0.9rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-next-author { font-size: 0.76rem; color: var(--text-muted); }
.live-next-dur { font-size: 0.78rem; color: var(--teal); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* ── Section titles ── */
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem; font-weight: 400;
  margin-bottom: 16px; padding-bottom: 10px; position: relative;
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 36px; height: 2px; background: var(--teal); border-radius: 2px;
}

/* ── Performance card ── */
.performance-section { margin-bottom: 36px; }
.performance-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 22px 20px; backdrop-filter: blur(14px);
}
.performance-empty { text-align: center; color: var(--text-muted); font-size: 0.9rem; padding: 8px 0; }
.performance-date { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: var(--teal-light); line-height: 1.1; margin-bottom: 4px; }
.performance-time { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 12px; }
.performance-location { display: flex; align-items: flex-start; gap: 6px; font-size: 1rem; color: var(--text); }
.performance-description { margin-top: 10px; font-size: 0.88rem; color: var(--text-muted); font-style: italic; }

/* ── Repertoire ── */
.repertoire-section { margin-bottom: 40px; }

.repertoire-search-wrap { margin-bottom: 12px; }
.repertoire-search {
  width: 100%; padding: 12px 16px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: inherit; font-size: 0.92rem; outline: none;
  backdrop-filter: blur(14px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.repertoire-search:focus {
  border-color: rgba(45,204,196,0.45);
  box-shadow: 0 0 0 3px rgba(45,204,196,0.08);
}
.repertoire-search::placeholder { color: var(--text-muted); }

/* ── Song request section ── */
.request-section { margin-bottom: 40px; }
.request-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }

.request-form { display: flex; flex-direction: column; gap: 10px; }
.request-input {
  width: 100%; padding: 13px 16px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: inherit; font-size: 0.92rem; outline: none;
  backdrop-filter: blur(14px);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}
.request-input:focus {
  border-color: rgba(45,204,196,0.45);
  box-shadow: 0 0 0 3px rgba(45,204,196,0.08);
}
.request-input::placeholder { color: var(--text-muted); }
.request-textarea { min-height: 80px; }

.btn-req {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #021520; box-shadow: 0 4px 20px rgba(45,204,196,0.28);
}
.btn-req:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(45,204,196,0.4); }
.btn-req:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.request-success {
  text-align: center; padding: 20px;
  color: var(--teal-light); font-size: 1rem;
  background: rgba(45,204,196,0.06); border: 1px solid rgba(45,204,196,0.2);
  border-radius: var(--radius-sm);
}
.repertoire-list { display: flex; flex-direction: column; gap: 8px; }
.song-item {
  display: flex; align-items: center;
  padding: 14px 16px; background: var(--card-bg);
  border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  backdrop-filter: blur(8px); transition: border-color 0.2s, background 0.2s;
}
.song-item:hover { border-color: rgba(45,204,196,0.25); background: rgba(45,204,196,0.04); }
.song-number { font-size: 0.8rem; color: var(--teal); font-weight: 600; min-width: 24px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.song-title { flex: 1; font-size: 0.95rem; font-weight: 500; color: var(--text); margin: 0 12px; }
.song-meta { text-align: right; flex-shrink: 0; }
.song-author { display: block; font-size: 0.78rem; color: var(--text-muted); }
.song-duration { display: block; font-size: 0.8rem; color: var(--teal); font-variant-numeric: tabular-nums; }

.repertoire-empty, .loading, .performance-loading {
  text-align: center; color: var(--text-muted); font-size: 0.9rem; padding: 12px 0;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: rgba(45,204,196,0.2); border-radius: 3px; }

@media (max-width: 400px) {
  .musician-name { font-size: 2rem; }
  .container { padding: 28px 16px 60px; }
}
