:root {
  color-scheme: light;
  --bg: #f4f9ff;
  --surface: rgba(255, 255, 255, 0.95);
  --surface-alt: #eef6ff;
  --text: #19324a;
  --muted: #5f7591;
  --primary: #4a8ed9;
  --primary-dark: #2d63b0;
  --border: #dce9f8;
  --shadow: 0 18px 45px rgba(25, 50, 74, 0.12);
}

html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0f172a;
  --surface: rgba(15, 23, 42, 0.92);
  --surface-alt: #14233f;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #7dd3fc;
  --primary-dark: #38bdf8;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(135deg, #f8fbff 0%, #eaf4ff 100%);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.loading-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  background: rgba(74, 142, 217, 0.18);
  z-index: 20;
}

.loading-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #7eb8ff);
  animation: introLoad 1.4s ease forwards;
}

img {
  max-width: 100%;
  display: block;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}

.ambient-one {
  width: 280px;
  height: 280px;
  background: #8ec5ff;
  top: -70px;
  right: -40px;
}

.ambient-two {
  width: 320px;
  height: 320px;
  background: #b6d8ff;
  bottom: -80px;
  left: -100px;
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(16px);
  animation: riseIn 0.9s 0.2s ease forwards;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  margin-bottom: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-nav .brand {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--primary-dark);
  text-decoration: none;
}

.site-nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav .nav-links a {
  color: var(--primary-dark);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-alt);
  transition: transform 0.2s ease, background 0.2s ease;
}

.site-nav .nav-links a:hover {
  transform: translateY(-1px);
  background: rgba(74, 142, 217, 0.12);
}

.theme-toggle {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.hero-text,
.hero-card,
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-text {
  padding: 36px;
}

.furry-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(74, 142, 217, 0.12);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.furry-chip svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 10px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.intro {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(74, 142, 217, 0.14);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.btn-secondary {
  background: var(--surface-alt);
  color: var(--primary-dark);
}

.hero-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-image {
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(135deg, #dfefff 0%, #b7d6f6 100%);
  border: 1px solid var(--border);
}

.stat-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 18px 20px;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}

.stat-label {
  opacity: 0.95;
}

.section-card {
  padding: 28px;
  margin-bottom: 24px;
}

.music-layout {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

.player-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(238,246,255,0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.player-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 14px;
  box-shadow: 0 12px 28px rgba(25, 50, 74, 0.14);
}

.track-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 6px;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.player-meta {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
}

.song-folder-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.progress-row,
.volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-row span,
.volume-row span {
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 38px;
  text-align: center;
}

.progress-row input,
.volume-row input {
  flex: 1;
  accent-color: var(--primary);
  cursor: pointer;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #b6d8ff);
  outline: none;
}

.progress-row input::-webkit-slider-thumb,
.volume-row input::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(25, 50, 74, 0.16);
}

.volume-btn {
  border: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(25, 50, 74, 0.08);
}

.volume-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.control-btn {
  border: 0;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255,255,255,0.9);
  color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(25, 50, 74, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(25, 50, 74, 0.12);
}

.play-btn {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #5a9eea 0%, #3b74b8 100%);
  color: white;
  box-shadow: 0 10px 22px rgba(59, 116, 184, 0.25);
}

.control-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.play-btn svg {
  width: 20px;
  height: 20px;
}

.social-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.social-list a {
  color: var(--primary-dark);
  text-decoration: none;
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

/* Mini-player */
.mini-player {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 60;
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(25,50,74,0.12);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  min-width: 320px;
}

.mini-info {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.mini-meta {
  flex: 1;
  min-width: 0;
}

#mini-title { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mini-artist { font-size: 0.8rem; color: var(--muted); }

.mini-btn { background: transparent; border: 0; font-size: 1rem; cursor: pointer; color: var(--primary-dark); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 12px; }
.gallery-item { border-radius: 12px; overflow: hidden; background: white; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; display:block; }

/* Order form */
.order-form { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.order-form input, .order-form textarea, .order-form select { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); }
.order-form button { padding: 12px 16px; border-radius: 12px; background: var(--primary); color: white; border: 0; cursor: pointer; }

.social-list a:hover {
  transform: translateX(2px);
}

.order-form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.order-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--primary-dark);
}

.order-form input,
.order-form textarea,
.order-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.order-form button {
  width: fit-content;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.order-form button:hover {
  transform: translateY(-1px);
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.faq-item h3 {
  margin-bottom: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 20px 16px 48px;
  }

  .site-nav {
    padding: 14px 16px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introLoad {
  from { width: 0; }
  to { width: 100%; }
}

@media (max-width: 800px) {
  .hero,
  .music-layout {
    grid-template-columns: 1fr;
  }

  .hero-text,
  .section-card,
  .hero-card {
    padding: 22px;
  }
}
