@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/oswald-v57-cyrillic_latin-regular.woff2') format('woff2'),
       url('fonts/oswald-v57-cyrillic_latin-regular.woff2') format('woff');
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/oswald-v57-cyrillic_latin-700.woff2') format('woff2'),
       url('fonts/oswald-v57-cyrillic_latin-700.woff2') format('woff');
}

* {
  font-family: 'Oswald', sans-serif;
  box-sizing: border-box;
}

/* === ОБЩИЕ НАСТРОЙКИ === */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Oswald', sans-serif;
}

body {
  background-color: white;
  min-height: 100vh;
  padding-left: 15px;   
  padding-right: 15px;
  margin: 0;
  overflow-x: hidden;  
  font-family: 'Oswald', sans-serif;
}

/* Адаптив  */
@media (max-width: 768px) {
  body {
    padding-left: 0;
    padding-right: 0;
    }
}

/* === КОНТЕЙНЕР === */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  padding-left: 16px;
  padding-right: 16px;
}

@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
/* === HEADER === */
.header img {
  align-items: center;
  background-color: white;
  width: 733px;
  height: 293px;
  margin: 0 auto;
  display: flex;
}

/* Адаптация*/
@media (max-width: 480px) {
  .header img {
    width: 100%;
    max-width: 375px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

/* === ГЛАВНОЕ МЕНЮ === */
.menu {
  width: 100%;
  background-color: #000;
}

.menu-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  list-style: none;
  margin: 0;
}

.menu-main li a {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s;
}

.menu-main li a:hover,
.menu-main li a.current {
  background: white;
  color: red;
}

/* === ОБЛАСТЬ СЕРВИСОВ === */
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-left: 0;
  padding-right: 0;         
  max-width: 1440px;     
  margin: 0 auto;  
  box-sizing: border-box;
  overflow-x: hidden;  
}

/* === SIDENAV === */
.sidenav {
  flex: 0 0 210px;
  background: white;
  padding: 24px 12px 24px 0;
}

.sidenav-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #222;
  line-height: 1.4;
  font-size: 15px;
  padding-left: 15px;
  margin-bottom: 22px;
  border-left: 2px solid #b99d61;
}

.sidenav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidenav-list a {
  position: relative;
  display: inline-block; 
  padding-left: 20px; 
  text-decoration: none;
  color: #000;
}

.sidenav-list a:hover::before {
  content: "";
  margin-right: 0;
}


.sidenav-list li {
  margin-bottom: 14px;
}

.sidenav-list li a {
  display: inline-block;
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.8px;
  font-weight: 400;
  color: #444;
  text-decoration: none;
  transition: color 0.25s ease;
}

.sidenav-list li a:hover {
  text-decoration: underline;
  color: red;
}

/* === ОСНОВНОЙ КОНТЕНТ === */
.proj {
  flex: 1 1 0;
  background: whitesmoke;
  padding: 28px 32px;
  margin: 0;
  min-width: 0;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
  padding-bottom: 250px;
}

/* === АДАПТИВ === */
@media (max-width: 768px) {
  .sidenav {
    display: none;
  }

  .services {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .proj {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 0;
  }

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

  .menu-main li a {
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #222;
  }
}

.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000;
  color: #fff;
  padding: 20px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

body.footer-visible .footer-bar {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.footer-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.footer-bar a {
  color: #ccc;
  margin: 0 6px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bar a:hover {
  color: #fff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-left {
  white-space: nowrap;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: #444;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-left {
    order: 3;
    font-size: 12px;
    opacity: 0.7;
  }

  .footer-links {
    order: 1;
  }

  .footer-social {
    order: 2;
  }
}


#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

#scrollTopBtn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {

  .release_y,
  .block,
  .relinfo,
  .album_info_compact {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .album_info_compact {
    flex-direction: column;
  }

  .album_text {
    flex: 1 1 100%;
    max-width: 100%;
    max-height: none;
    padding-right: 0;
  }

  .album_slider {
    width: 100%;
    max-width: 100%;
  }
}

/* Блок релиза */ 
.release_y {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
  flex-wrap: nowrap;
}

.cover {
  flex: 0 0 auto;
}

.cover .aimg {
  width: 150px;
  height: auto;
  border-radius: 4px;
  display: block;
  object-fit: cover;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0; 
}

.release {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  table-layout: auto; 
}

.release tr {
  vertical-align: top; 
}

.release td {
  padding: 4px 8px; 
  vertical-align: top;
  line-height: 1.4; 
}

.release td:first-child {
  width: 90px;
  text-align: right;
  white-space: nowrap;
  color: #444;
  font-weight: 500;
}

.release td.title {
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-bottom: 8px;
  text-align: left;
  color: #111;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}


/* Адаптив */
@media (max-width: 768px) {
  .release_y {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "cover title"
      "table table";
    column-gap: 12px;
    row-gap: 8px;
  }
  .release {
    table-layout: auto;
  }
  .cove{
    grid-area: cover;
  }

  .cover .aimg {
    width: 100px;
  }
  .release tr {
    display: table-row;
  }

  .release td {
    vertical-align: top;
    line-height: 1.4;
    padding: 4px 6px;
  }

  .release td:first-child {
    width: 80px;
    text-align: right;
    white-space: nowrap;
  }
  .release td.title {
    grid-area: title;
    display: block;
    padding: 0;
    margin-top: 4px;

    font-size: 14px;
    line-height: 1.25;
    white-space: normal;

    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }
  .content {
    min-width: 0;
  }
  .relinfo{
    grid-area: table;
  }
}

.relblock p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

.block {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  background: #1c1c1c;
  padding: 20px;
  border-radius: 12px;
  color: #fff;
}

.relblock {
  color: #fff;
  margin: 37px auto;
  width: 100%;
  font-size: 1.5em;
  font-weight: 600;
  text-transform: uppercase;
  background-color: #232323;
  padding: 0.6em 1em;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Блок с таблицей */
.relinfo {
  flex: 1 1 100%;
  overflow-x: auto;
}

/* Таблица */
.relinfo table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

.relinfo tr {
  border-bottom: 1px solid #333;
}

.relinfo td {
  padding: 6px 8px;
  font-size: 15px;
  vertical-align: top;
  color: #f1f1f1;
  word-break: break-word;
}

/* Позиция трека */
.track_pos {
  width: 40px;
  text-align: right;
  color: #aaa;
  font-weight: bold;
}

/* Название + кнопка */
.track_title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #fff;
}

.track_title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.track_title a:hover {
  color: #1db954;
}

/* Длительность */
.track_duration {
  width: 60px;
  text-align: right;
  font-size: 0.95em;
  color: #999;
}

/* Кнопка ▶ */
.play-button {
  background: none;
  border: none;
  color: #1db954;
  font-size: 1.1em;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.2);
}

/* Адаптив */
@media (max-width: 600px) {
  .track_title {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .track_duration,
  .track_pos {
    font-size: 0.9em;
  }

  .relinfo td {
    padding: 8px 4px;
  }
}

.track_info {
  margin-top: 4px;
  font-size: 0.85em;
  color: #bbb;
  line-height: 1.3;
  font-style: italic;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.track_info span {
  white-space: nowrap;
}

/* АЛЬБОМ */
.album_info_compact {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  margin: 30px 0;
  padding: 20px;
  background-color: #232323;
  border-radius: 12px;
  color: #ccc;
  font-size: 0.95em;
}

@media (max-width: 768px) {
  .album_info_compact {
    padding: 14px;
    gap: 14px;
  }
  
  .album_text {
    padding: 16px;
    font-size: 0.9em;
  }

  .album-note {
    font-size: 0.82rem;
  }
  
  .album_slider {
    aspect-ratio: 1 / 1;
    max-height: 300px;
  }

  .slide-btn { font-size: 2rem; padding: 6px 10px; }
}

.album_text {
  background-color: #1c1c1c;
  padding: 22px;
  border-radius: 10px;
  color: #eaeaea;
  font-size: 0.95rem;
  line-height: 1.6;
}

.album-meta p {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: #bbb;
}

.album-description {
  margin: 16px 0;
  position: relative;
  padding-left: 18px;
  margin: 16px 0;
  border-left: 3px solid #b99d61;
}

.album-description p {
  margin-bottom: 12px;
}

.album-description strong {
  color: #fff;
}

.album-description em {
  font-style: italic;
  color: #ccc;
}

.album-note {
  font-size: 0.85rem;
  color: #aaa;
  border-left: 3px solid #444;
  padding-left: 10px;
}

.album-note span {
  font-family: monospace;
  color: #fff;
}

.album-credits {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #999;
}

.album-year {
  margin-top: 4px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.album_text p {
  margin-bottom: 14px;
}

.album_text p:first-child {
  font-weight: 600;
}

.album_text p:nth-child(2),
.album_text p:last-child {
  font-style: italic;
  color: #bbb;
}

.album_slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 420px;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
  margin: 0 auto;
}

.slides {
  display: flex;
  height: 100%;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2.5rem; /* адаптивный размер */
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  transition: background 0.3s ease;
  z-index: 10;
}

.slide-btn:hover {
  background: rgba(255,255,255,0.7);
  color: black;
}

.slide-btn.prev {
  left: 10px;
}

.slide-btn.next {
  right: 10px;
}

@media (max-width: 500px) {
  .slide-btn {
    font-size: 2rem;
    padding: 6px 10px;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  flex-direction: column;
}

.modal-content {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: transparent;
}

#modal-img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.modal-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.modal-btn {
  background-color: #fff;
  border: none;
  color: #000;
  font-size: 28px;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s;
}

.modal-btn:hover {
  background-color: #ddd;
}

.close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

/* Адаптивность */
@media (max-width: 768px) {
  .modal-content {
    max-width: 100%;
    padding: 10px;
  }

  #modal-img {
    max-height: 60vh;
  }

  .modal-controls {
    flex-direction: row;
    gap: 20px;
    margin-top: 12px;
  }

  .modal-btn {
    font-size: 26px;
    padding: 6px 16px;
  }

  .close {
    font-size: 28px;
    top: 15px;
    right: 20px;
  }
}

#global-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #121212;
  color: #eee;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1100;
  flex-wrap: nowrap;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.9);
  border-top: 2px solid #1db954;
  font-size: 14px;
  display: none;
}

#global-player.above-footer {
  bottom: var(--footer-height);
}

/* Группа кнопок */
#player-controls {
  display: flex;
  gap: 10px;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
}

/* Прогресс и трек */
#player-track {
  flex-basis: 100%;
  max-width: 400px;
  margin: 0 auto 6px;
  font-weight: 600;
  font-size: 1em;
  text-align: center;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Время */
#time-current,
#time-duration {
  font-size: 0.8em;
  opacity: 0.75;
  min-width: 38px;
  text-align: center;
  user-select: none;
}

/* Прогресс-бар */
#progress-bar {
  flex: 1 1 auto;
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  background: #282828;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
}

#progress-bar:hover {
  background: #3dbf67;
}

#progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #1db954;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px #1db954;
  margin-top: -5px;
  transition: background 0.3s;
}

#progress-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #1db954;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px #1db954;
  transition: background 0.3s;
}

.player-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  background: transparent;
  color: #1db954;
}

.player-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  pointer-events: none;
}

/* play / pause логика */
#play-btn .pause-icon {
  display: none;
}

#play-btn.playing .play-icon {
  display: none;
}

#play-btn.playing .pause-icon {
  display: block;
}

/* Ползунок громкости */
#volume {
  width: 90px;
  -webkit-appearance: none;
  height: 5px;
  background: #282828;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}

#volume:hover {
  background: #3dbf67;
}

#volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #1db954;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px #1db954;
  margin-top: -5px;
  transition: background 0.3s;
}

#volume::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #1db954;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px #1db954;
  transition: background 0.3s;
}

@media (max-width: 700px) {
  #global-player {
    padding: 6px 8px;
    gap: 4px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 0; /* убиваем лишние text-nodes */
  }

  /* ===== 1 СТРОКА — НАЗВАНИЕ ===== */
  #player-track {
    width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
   .player-btn svg {
    width: 18px;
    height: 18px;
  }

  /* ===== ПРОГРЕСС ===== */
  #progress-bar {
    width: 110px;
    height: 4px;
    margin: 0 6px;
    flex: 0 0 auto;
  }

  /* ===== ВРЕМЯ ===== */
  #time-current,
  #time-duration {
    font-size: 11px;
    white-space: nowrap;
    opacity: 0.85;
  }

  #time-current::after {
    content: " / ";
    opacity: 0.6;
  }

  /* ===== ГРОМКОСТЬ УБРАЛИ ===== */
  #volume {
    display: none;
  }
}
.back-container {
  margin-bottom: 15px;
  padding: 10px 0;
}

.back-button {
  background: rgba(29,185,84,0.15);
  color: #1db954;
  border-radius: 10px;
  font-weight: 600;
}

.back-button:hover {
  background: rgba(29,185,84,0.35);
}

.back-button:active {
  transform: translateY(1px);
}

@media (max-width: 600px) {
  .back-button {
    font-size: 0.9em;
    padding: 6px 14px;
  }
}


