/* Muzon — Светлая палитра */
:root {
  --bg: #faf9f7;
  --card: #ffffff;
  --text: #2d2a26;
  --text-muted: #6b6560;
  --accent: #e07a5f;
  --accent-secondary: #81b29a;
  --border: #e8e6e3;
  --shadow: rgba(45, 42, 38, 0.08);
  --shadow-hover: rgba(45, 42, 38, 0.12);
}

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

html {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px var(--shadow);
  flex-wrap: wrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active {
  background: rgba(224, 122, 95, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.logo:hover {
  color: var(--accent-secondary);
}

/* Main */
.main {
  flex: 1;
  padding: 2rem 1.5rem 12rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Sections */
.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Genres */
.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.genre-card {
  padding: 0.875rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.genre-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--shadow);
}

.genre-name {
  font-weight: 600;
  color: var(--text);
}

.genre-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Catalog filter */
.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: rgba(224, 122, 95, 0.1);
}

/* About */
.about {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.about-text {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-links {
  display: flex;
  gap: 1.5rem;
}

.about-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.about-link:hover {
  text-decoration: underline;
}

/* Inner pages */
.page-content {
  padding-bottom: 4rem;
}

.page-header {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.page-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-body h2:first-of-type {
  margin-top: 0;
}

.page-body p,
.page-body li {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.page-body ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-block {
  margin-bottom: 2rem;
}

.contact-block h2 {
  margin-top: 0;
}

.page-body a {
  color: var(--accent);
  text-decoration: none;
}

.page-body a:hover {
  text-decoration: underline;
}

.faq-list {
  margin: 0;
}

.faq-list dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  color: var(--text-muted);
  margin-left: 0;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Site footer */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Message */
.message {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.message.info {
  background: rgba(129, 178, 154, 0.2);
  color: var(--text);
  border: 1px solid rgba(129, 178, 154, 0.4);
}

.message.error {
  background: rgba(224, 122, 95, 0.15);
  color: var(--text);
  border: 1px solid rgba(224, 122, 95, 0.4);
}

.message.hidden {
  display: none;
}

/* Track list */
.track-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.track-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.track-card:hover {
  box-shadow: 0 8px 24px var(--shadow-hover);
  transform: translateY(-2px);
}

.track-card.playing {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(224, 122, 95, 0.2);
}

.track-artwork-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--border);
}

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

.track-play-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(224, 122, 95, 0.4);
}

.track-play-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

.track-play-btn svg {
  width: 24px;
  height: 24px;
}

.track-card.playing .track-play-btn {
  background: var(--accent-secondary);
}

.track-info {
  padding: 1rem;
}

.track-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.track-artist {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Player */
.player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px var(--shadow);
}

.player-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.player-artwork {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--border);
}

.player-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.player-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.player-controls {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.control-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.control-btn:hover {
  background: #c96a52;
}

.control-btn:active {
  transform: scale(0.95);
}

.control-btn svg {
  width: 24px;
  height: 24px;
}

.progress-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.time {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.progress {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 3px;
  outline: none;
}

.progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.progress::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 120px;
}

.volume-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.volume {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 3px;
  outline: none;
}

.volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
}

.volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--text-muted);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 992px) {
  .nav-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .player-content {
    flex-wrap: wrap;
  }

  .player-track {
    flex: 1 1 100%;
  }

  .player-controls {
    order: 3;
    flex: 1 1 100%;
  }

  .player-volume {
    flex: 0 0 auto;
  }
}
