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

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

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

body {
  margin: 0;
  background: #0f0f0f;
  color: #fff;
  font-family: 'Oswald', sans-serif;
}

.layout {
  display: flex;
  height: 100vh;
  width: 100%;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-width: 0;
}

.visualizer {
  width: 100%;
  height: 100%;
  background: #111;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visualizer video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: inherit;
}

.sidebar {
  width: 320px;
  background: #111;
  padding: 15px;
  overflow-y: auto;
  border-left: 1px solid #222;
}

.block {
  margin-bottom: 20px;
}

.block h3 {
  font-size: 16px;
  margin: 0 0 10px;
}

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

.block li {
  padding: 6px 0;
  border-bottom: 1px solid #222;
  font-size: 14px;
}

.block li:last-child {
  border-bottom: none;
}

.player-bar {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 700px;
  height: 56px;
  background: #111;
  border: 1px solid #222;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

#play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ff4b5c;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

#play-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.player-info {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.track-title {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  align-items: center;
  width: 90px;
  flex-shrink: 0;
}

#volume {
  width: 100%;
  cursor: pointer;
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    height: auto;
  }

  .main {
    width: 100%;
    order: 1;
  }

  .visualizer {
    width: 100%;
    height: 100%;
  }

  .visualizer video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .sidebar {
    order: 2;
    width: 100%;
    margin-top: 10px;
    border-left: none;
    border-top: 1px solid #222;
  }

  .block {
    margin-bottom: 15px;
  }

  .player-bar {
    height: 50px;
    padding: 0 10px;
    border-radius: 12px;
  }

  #play-btn {
    width: 34px;
    height: 34px;
  }

  .track-title {
    font-size: 12px;
  }

  .player-controls {
    display: none;
  }

  #track-title-bar {
    overflow: hidden;
    white-space: nowrap;
  }

  #track-title-bar span {
    display: inline-block;
    white-space: nowrap;
  }

  @keyframes track-marquee {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
}
