/* MP3IZZI style - dark theme matching the real site from screenshots */

:root {
  --bg: #0d1117;
  --card-bg: #161b22;
  --text: #c9d1d9;
  --text-light: #fff;
  --blue: #58a6ff;
  --green: #3fb950;
  --border: #30363d;
  --header-blue: #1f6feb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header bar - blue like in screenshots */
.header-bar {
  background: linear-gradient(90deg, #1f6feb, #0d4bb5);
  padding: 8px 0;
  color: white;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 18px;
  color: white;
}

.logo-icon {
  font-size: 20px;
}

.search-container {
  flex: 1;
  max-width: 420px;
  display: flex;
  background: white;
  border-radius: 6px;
  overflow: hidden;
}

.search-container input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  font-size: 14px;
  outline: none;
  color: #000;
}

.search-container button {
  background: #1f6feb;
  color: white;
  border: none;
  padding: 0 16px;
  font-size: 14px;
  cursor: pointer;
}

/* Main container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero title */
.hero-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-light);
  margin: 24px 0 16px;
}

/* Section headers with icon */
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  margin: 20px 0 10px;
}

.section-header .icon {
  color: var(--blue);
  font-size: 16px;
}

/* Song list cards - dark rounded */
.song-list {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.song-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
  color: var(--text-light);
}

.song-item:last-child {
  border-bottom: none;
}

.song-item:hover {
  background: #21262d;
}

.song-icon {
  color: var(--blue);
  font-size: 16px;
  flex-shrink: 0;
}

.song-title {
  flex: 1;
  font-size: 14px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pill tags for "Сейчас слушают" and collections */
.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.pill {
  background: #21262d;
  color: var(--text);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.pill:hover {
  background: #30363d;
  text-decoration: none;
}

/* Music detail page styles */
.detail-title {
  font-size: 22px;
  color: var(--text-light);
  margin: 12px 0 8px;
}

.social-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.social-pill {
  background: #21262d;
  color: #8b949e;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  border: 1px solid var(--border);
}

.results-header {
  font-size: 14px;
  margin: 12px 0 8px;
  color: var(--text);
}

/* Track cards in detail - with green MP3 button */
.track-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.track-card .play-icon {
  color: var(--blue);
  font-size: 18px;
  flex-shrink: 0;
}

.track-info {
  flex: 1;
  min-width: 0;
}

.track-title {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 2px;
}

.track-meta {
  font-size: 12px;
  color: #8b949e;
}

.play-btn, .download-btn {
  background: #238636;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  margin-right: 4px;
}

.play-btn:hover {
  background: #2ea043;
}

.download-btn {
  background: #1f6feb;
}

.download-btn:hover {
  background: #388bfd;
}

/* About section */
.about-section {
  margin: 16px 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.about-section strong {
  display: block;
  margin-bottom: 6px;
}

/* Instructions */
.instructions {
  font-size: 13px;
  color: var(--text);
  margin: 12px 0;
}

.instructions ol {
  padding-left: 20px;
  margin: 6px 0;
}

/* Footer */
.footer {
  margin-top: 40px;
  padding: 16px 0;
  font-size: 12px;
  color: #8b949e;
  text-align: center;
  border-top: 1px solid var(--border);
}

/* Simple search on plain pages if needed */
.simple-search {
  margin: 10px 0;
}

.simple-search input {
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  border-radius: 4px;
}

.simple-search button {
  background: var(--blue);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  margin-left: 6px;
  cursor: pointer;
}