@font-face {
  font-family: "Bombardier";
  src: url("./../customFont/Bombardier-Regular.ttf");
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: "Visitor2";
  src: url('./../customFont/visitor2.otf');
  font-style: normal;
  font-weight: normal;
}

/* чат гпт объяснил какие цвета норм */

:root {
  --neon-blue: #dcebfa;
  --neon-blue-dim: #7aa8cc;
  --dark-bg: #0A0A12;
  --player-bg: #0d0d1a;
  --player-border: #3A3A4D;
  --player-hover: #1a1a2e;
  --pixel-border: 2px solid #3A3A4D;
  --player-width: 340px;
}

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

body {
  color: var(--neon-blue);
  font-family: 'Courier New', monospace;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--dark-bg);
  overflow-x: hidden;
}

.background-layer {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}

.background-layer::before {
  content: '';
  position: absolute;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  left: -10px; top: -10px;
  background: url('/background/19oujdw.png') center/cover;
  filter: blur(10px);
  opacity: 0.8;
}

/* панель плеера */

.music-player {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--player-width);
  height: 100vh;
  background: var(--player-bg);
  border-right: 2px solid var(--player-border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 20px 0 16px;
  transform: translateX(calc(-1 * var(--player-width)));
  transition: transform 0.25s ease;
  overflow: visible;
}

.music-player.open {
  transform: translateX(0);
}

/* кнопка */

.player-tab {
  position: absolute;
  top: 50%;
  right: -38px;
  transform: translateY(-50%);
  width: 36px;
  background: var(--player-bg);
  border: 2px solid var(--player-border);
  border-left: none;
  padding: 14px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  user-select: none;
  transition: border-color 0.15s;
}

.player-tab:hover {
  border-color: var(--neon-blue);
}

.player-tab-arrow {
  font-size: 13px;
  color: var(--neon-blue);
  transition: transform 0.25s ease;
  line-height: 1;
}

.music-player.open .player-tab-arrow {
  transform: rotate(180deg);
}

.player-tab-text {
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--neon-blue-dim);
  text-transform: uppercase;
  font-family: Bombardier;
}

/* хедер - //плеер  */
.player-header {
  padding: 0 16px 10px;
}

.player-label {
  font-family: 'Visitor2', monospace;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--neon-blue);
}

.pixel-divider-sm {
  height: 2px;
  margin: 8px 0;
  background: repeating-linear-gradient(90deg,
    transparent 0 4px,
    var(--player-border) 4px 8px);
}

/* текущее */
.now-playing {
  padding: 10px 16px;
}

.now-label {
  font-family: 'Visitor2', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--neon-blue-dim);
  margin-bottom: 6px;
}

.now-title {
  font-family: 'Bombardier', 'Courier New', monospace;
  font-size: 17px;
  color: var(--neon-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.now-artist {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--neon-blue-dim);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* полоска прогресса */
.progress-wrap {
  padding: 8px 16px;
}

.progress-bar {
  height: 6px;
  background: #1e1e2e;
  border: 1px solid var(--player-border);
  cursor: pointer;
  position: relative;
  margin-bottom: 5px;
}

.progress-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,
    transparent 0 3px,
    rgba(58,58,77,0.3) 3px 4px);
  pointer-events: none;
}

.progress-fill {
  height: 100%;
  background: var(--neon-blue);
  width: 0%;
  transition: width 0.25s linear;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -3px;
  width: 6px;
  height: 12px;
  background: var(--neon-blue);
}

.progress-times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: 'Courier New', monospace;
  color: var(--neon-blue-dim);
}

/* кнопки */
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}

.ctrl-btn {
  background: transparent;
  border: 2px solid var(--player-border);
  color: var(--neon-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.ctrl-btn:hover {
  border-color: var(--neon-blue);
  background: var(--player-hover);
}

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

.ctrl-play {
  width: 48px;
  height: 48px;
  border: 2px solid var(--neon-blue);
}

/* плейлист */
.track-list-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 0 8px;
}

.tracklist-label {
  font-family: 'Visitor2', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--neon-blue-dim);
  padding: 4px 16px 8px;
}

.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--player-border) transparent;
}

.track-list::-webkit-scrollbar { width: 4px; }
.track-list::-webkit-scrollbar-track { background: transparent; }
.track-list::-webkit-scrollbar-thumb { background: var(--player-border); }

.track-item {
  display: flex;
  align-items: center; /*<---- ЕБУЧИЙ КСС Я НЕНАВИЖУ БЛЯ 10310030 МЕТОДОВ ПРИВЯЗКИ*/
  gap: 10px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.12s;
  border-left: 2px solid transparent;
}

.track-item:hover { background: var(--player-hover); }

.track-item.active {
  border-left-color: var(--neon-blue);
  background: #111122;
}

.track-num {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--neon-blue-dim);
  min-width: 22px;
}

.track-item.active .track-num { color: var(--neon-blue); }

.track-name {
  font-family: 'Bombardier', 'Courier New', monospace;
  font-size: 14px;
  color: var(--neon-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-empty {
  padding: 10px 16px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: var(--neon-blue-dim);
  font-style: italic;
}

.bottom-player {
  font-family: 'Bombardier', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--neon-blue-dim);
  align-self: center;
  margin-top: 2px;
  margin-bottom: 1px;
}
/* сама страница */


.container {
  background-color: var(--dark-bg);
  max-width: 800px;
  margin: 10px auto;
  border: var(--pixel-border);
  padding: 20px;
  position: relative;
  backdrop-filter: blur(2px);
}

header {
  text-align: center;
  border-bottom: var(--pixel-border);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

h1, h2 {
  font-family: 'Visitor2';
  text-transform: uppercase;
  font-size: 40px;
  margin: 0 0 10px;
}

p {
  font-family: "Bombardier";
  font-size: 20px;
  margin: 0 0 8px;
}

a, a:hover, a:active {
  text-decoration: none;
  color: var(--neon-blue);
}

.project-card {
  background: #151520;
  border: var(--pixel-border);
  padding: 15px;
  margin-bottom: 20px;
  transition: transform 0.2s;
}

.project-card:hover {
  transform: translateX(5px);
  border-color: var(--neon-blue);
}

.pixel-divider {
  height: 4px;
  background: repeating-linear-gradient(90deg,
    transparent 0 4px,
    var(--neon-blue) 4px 8px);
  margin: 20px 0;
}

/* адаптизация под мобилы */

@media (max-width: 600px) {

  .music-player {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: auto;
    max-height: 70vh;
    border-right: none;
    border-top: 2px solid var(--player-border);
    padding-top: 14px;
    transform: translateY(100%);
    transition: transform 0.25s ease;
  }

  .music-player.open {
    transform: translateY(0);
  }

  /* кнопка едет вниз как моя самооценка*/
  .player-tab {
    top: -38px;
    right: auto;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 36px;
    flex-direction: row;
    padding: 8px 16px;
    border: 2px solid var(--player-border);
    border-bottom: none;
  }

  .player-tab-arrow {
    transform: rotate(-90deg);
  }

  .music-player.open .player-tab-arrow {
    transform: rotate(90deg);
  }

  .player-tab-text {
    writing-mode: horizontal-tb;
  }

  .container {
    margin: 8px;
    padding: 14px;
    margin-bottom: 60px;
  }

  h1, h2 { font-size: 28px; }
  p { font-size: 17px; }
}
