/* style.css */

/* ======== ОСНОВНОЕ ======== */


body {
  background-color: #000000;
  color: #00ff00;
  font-family: 'IBM Plex Mono', monospace;
  margin: 0;
  padding: 10px;
  line-height: 1.5;
  height: 100%;
}

/*
p {
  font-size: 1em;
  line-height: 1.5;
}

h1 {
  font-size: 2em;
  font-weight: normal;
  margin-bottom: 15px;
  color: #ff00ff;
}

h2 {
  font-size: 1.6em;
  font-weight: normal;
  margin-bottom: 15px;
  color: #ff00ff;
}

h3 {
  font-size: 1.2em;
  font-weight: normal;
  margin: 15px 0;
  color: #ff00ff;
}

code, pre {
  color: #00ffff;
}
*/
ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 10px;
  padding-left: 15px;
  position: relative;
}

li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ff00ff;
}

a {
  color: #ff00ff;
  text-decoration: underline;
  text-decoration-color: #00ffff;
}

a:hover {
  color: #ff00ff;
  text-decoration: underline;
  text-decoration-color: #00ffff;
  outline: 1px solid #00ffff;
}

u {
  color: #00ff00;
  text-decoration: underline;
  text-decoration-color: #00ffff;
}

details {
  margin: 10px 0;
  padding-left: 15px;
  position: relative;
}

details::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ff00ff;
}

summary {
  cursor: pointer;
  color: #00ff00;
  font-size: 1em;
  outline: none;
  text-decoration: underline;
  text-decoration-color: #00ffff;
}

summary:hover {
  color: #00ff00;
  outline: 1px solid #00ffff;
}

details[open] summary {
  margin-bottom: 10px;
}

hr {
  border: none;
  border-top: 1px solid #ff00ff;
  margin: 10px 0;
}

/* ======== ИЗЪЕБИСТОЕ ФОРМАТИРОВАНИЕ  ======== */

.row { display: flex; }

.box {
  padding: 10px; 
  margin-right: 10px;
}

/* ======== ПЛЕЕР  ======== */

/* простой sticky player */
#sticky-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.4);
  z-index: 9999;
}

#sticky-player button { flex: 0 0 auto; }

#sticky-player .title {
  flex: 0 1 auto;
  min-width: 80px;        /* минимальная ширина для названия */
  max-width: 40%;         /* чтобы не занимало всё место */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* контейнер для ползунка, занимает всё оставшееся пространство */
#sticky-player .seek-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0; /* важно для корректного усечения в flex */
}

/* сам ползунок — растягивается на всё доступное место */
/* заменяем фон ползунка, чтобы можно было рисовать buffered часть */
#seek {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.12) 0%);
  border-radius: 3px;
  outline: none;
  flex: 1 1 auto;
  min-width: 0;
  transition: background 0.1s linear;
}

/* thumb для WebKit */
#seek::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
  cursor: pointer;
}
/* thumb для Firefox */
#seek::-moz-range-thumb{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
}

#time {
  flex: 0 0 auto;
  white-space: nowrap;
  font-feature-settings: "tnum";
}

#page-content { padding-bottom: 64px; } /* отступ чтобы контент не прятался за плеером */
a.play-link { cursor: pointer; color: purple; text-decoration: underline; }
a.play-link:hover { text-decoration: none; }
a.dir-link { cursor: pointer; color: #0b6; text-decoration: none; }
a.dir-link:hover { text-decoration: underline; }

#sticky-player button { flex: 0 0 auto; }
#volume {
  width: 100px;               /* или flex: 0 0 100px; */
  max-width: 20%;
  accent-color: #fff;         /* поддержка цвета ползунка в некоторых браузерах */
  background: transparent;
}
#mute-toggle { font-size: 16px; }

