:root {
  --bg: #0b0d13;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.07);
  --text: #f8fafc;
  --subtext: #818cf8;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

nav {
  position: sticky;
  top: 0;
  background: rgba(11, 13, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-logo span { color: var(--accent); }

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: background 0.2s;
}
@media (min-width: 768px) { .nav-burger { display: none; } }

.nav-links-desktop { display: none; gap: 1.5rem; }
.nav-links-desktop a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links-desktop a:hover, .nav-links-desktop a.active { color: #fff; }
@media (min-width: 768px) { .nav-links-desktop { display: flex; } }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.drawer-overlay.active { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 270px;
  height: 100%;
  background: #0f1118;
  border-right: 1px solid var(--border);
  z-index: 210;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}
.drawer.active { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.drawer-title { font-weight: 700; font-size: 0.95rem; color: #fff; }
.drawer-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.drawer-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.drawer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
}
.drawer-nav a.active { color: #fff; background: rgba(255, 255, 255, 0.05); font-weight: 600; }
.drawer-nav a:active { background: rgba(255, 255, 255, 0.08); color: #fff; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }

.hero {
  padding: 2.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 3rem;
    padding: 3.5rem 0 3rem;
  }
}
.hero-photo-wrapper { position: relative; flex-shrink: 0; width: 100%; max-width: 220px; }
@media (min-width: 768px) { .hero-photo-wrapper { max-width: 260px; } }
.hero-photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 14px;
  object-fit: cover;
  background: #141720;
  border: 1px solid var(--border);
  display: block;
}
.hero-info h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.hero-genre {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}
.hero-bio { color: var(--muted); font-size: 0.95rem; max-width: 600px; margin-bottom: 1.2rem; }

.btn-download-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(129, 140, 248, 0.15));
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-download-all:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(129, 140, 248, 0.25));
  border-color: var(--accent);
  transform: translateY(-1px);
}
.btn-download-all:disabled { opacity: 0.65; cursor: not-allowed; border-color: var(--accent); color: var(--accent); }

.section-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.3px; margin: 2.5rem 0 1rem; }

.search-bar-wrap { margin-bottom: 1rem; position: relative; }
.search-input-box {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 2.4rem 0.75rem 2.5rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.search-input-box:focus { border-color: rgba(56, 189, 248, 0.4); background: rgba(255, 255, 255, 0.05); }
.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--muted);
  pointer-events: none;
}
.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  display: none;
  padding: 4px;
  line-height: 1;
}
.search-clear-btn.visible { display: block; }

.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.discography-tabs { display: flex; gap: 0.3rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.discography-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.tab-btn:hover { color: #fff; }
.tab-btn.active { color: #fff; background: rgba(255, 255, 255, 0.08); }

.view-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  flex-shrink: 0;
}
.toggle-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.15s;
}
.toggle-btn svg { width: 14px; height: 14px; fill: currentColor; }
.toggle-btn:hover { color: #fff; }
.toggle-btn.active { background: rgba(255, 255, 255, 0.12); color: #fff; }

.album-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) { .album-card { flex-direction: row; } }
.album-cover {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #12141c;
  display: block;
}
@media (min-width: 640px) { .album-cover { max-width: 220px; border-right: 1px solid var(--border); } }
.album-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.album-header { margin-bottom: 0.85rem; }
.album-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.2rem; color: #fff; }
.album-meta { color: var(--muted); font-size: 0.82rem; font-weight: 500; }

.tracklist { list-style: none; margin-bottom: 1rem; }
.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.track-item:hover, .track-item:active { background: rgba(255, 255, 255, 0.04); }
.track-item.playing { background: rgba(56, 189, 248, 0.08); }
.track-item.playing .track-title { color: var(--accent); font-weight: 600; }
.track-info { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; overflow: hidden; padding-right: 0.5rem; }
.track-num { color: var(--muted); width: 18px; font-size: 0.8rem; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.track-title { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.85rem; padding: 4px; }
.track-item:hover .play-btn, .track-item.playing .play-btn { color: var(--accent); }

.download-zip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.download-zip:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.download-zip:disabled { opacity: 0.6; cursor: not-allowed; border-color: var(--accent); color: var(--accent); }

.albums-grid-view { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 2rem; }
@media (min-width: 550px) { .albums-grid-view { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; } }
.grid-album-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.grid-album-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.18); }
.grid-cover-wrap { position: relative; width: 100%; aspect-ratio: 1/1; background: #12141c; }
.grid-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid-meta { padding: 0.65rem 0.75rem; }
.grid-title { font-size: 0.85rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-sub { color: var(--muted); font-size: 0.75rem; margin-top: 2px; }

.singles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 2rem; }
@media (min-width: 550px) { .singles-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; } }
.single-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.single-cover-wrap { position: relative; width: 100%; aspect-ratio: 1/1; background: #12141c; }
.single-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-meta { padding: 0.65rem 0.75rem; }
.single-title { font-size: 0.85rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.single-year { color: var(--muted); font-size: 0.75rem; margin-top: 2px; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal-overlay.active { display: flex; }
.modal-dialog {
  background: #11141d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.modal-header { padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.modal-title-wrap { min-width: 0; }
.modal-title { font-size: 1.1rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-meta { font-size: 0.8rem; color: var(--muted); }
.modal-close { background: none; border: none; color: var(--muted); font-size: 1.25rem; cursor: pointer; padding: 4px; }
.modal-body { padding: 1rem 1.25rem; overflow-y: auto; flex-grow: 1; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
.modal-footer { padding: 0.85rem 1.25rem; border-top: 1px solid var(--border); background: rgba(0,0,0,0.2); }

.links-section { padding: 2.5rem 0 1rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
.link-item:hover { background: var(--card-hover); border-color: rgba(255, 255, 255, 0.15); color: #fff; }

.sticky-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 17, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  display: none;
  z-index: 100;
}
.player-inner { max-width: 1060px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.35rem; }
@media (min-width: 640px) { .player-inner { flex-direction: row; align-items: center; gap: 1.25rem; } }
.now-playing-wrap { min-width: 0; flex-shrink: 0; }
@media (min-width: 640px) { .now-playing-wrap { max-width: 250px; } }
.now-playing-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent); line-height: 1; margin-bottom: 2px; }
.now-playing { font-size: 0.85rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
audio { width: 100%; height: 34px; outline: none; filter: invert(0.9) hue-rotate(180deg); }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 2rem 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 0.85rem;
}
@media (min-width: 550px) { .page-header { flex-direction: row; align-items: center; gap: 1rem; } }
.page-title { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; color: #fff; letter-spacing: -0.4px; }
.btn-tg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-tg:hover { background: rgba(56, 189, 248, 0.2); color: #fff; }

.news-feed { display: flex; flex-direction: column; gap: 1.25rem; }
.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.15s;
}
@media (min-width: 640px) { .news-card { padding: 1.4rem; gap: 1rem; } }
.news-card:hover { border-color: rgba(255, 255, 255, 0.15); }
.news-card-photo { width: 100%; border-radius: 8px; object-fit: cover; max-height: 420px; background: #141720; display: block; }
.news-card-text { font-size: 0.92rem; color: var(--text); line-height: 1.6; word-break: break-word; white-space: pre-line; }
@media (min-width: 640px) { .news-card-text { font-size: 0.95rem; } }
.news-card-text a { color: var(--accent); text-decoration: none; }
.news-card-text a:hover { text-decoration: underline; }

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 0.6rem 0;
  background: #000;
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.news-card-link { color: var(--subtext); text-decoration: none; font-weight: 600; }
.news-card-link:hover { color: #fff; }

.btn-load-more {
  display: block;
  width: 100%;
  margin: 1.75rem 0 0;
  padding: 0.85rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-load-more:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); }
.btn-load-more:disabled { opacity: 0.5; cursor: not-allowed; }

/* Стилизация сортировки */
.sort-select {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: all 0.15s;
}
.sort-select:hover, .sort-select:focus {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}
.sort-select option {
  background: #0f1118;
  color: #fff;
}