/* Повноекранний плеєр на телефоні (див. /assets/js/player-full.js) */
.hc-full {
  position: fixed;
  inset: 0;
  z-index: 1060;
  color: #fff;
  background: #111;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform .26s cubic-bezier(.2, .8, .2, 1);
  font-family: inherit;
  letter-spacing: normal;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.hc-full[hidden] { display: none !important; }
.hc-full.is-open { transform: translateY(0); }
.hc-full.is-drag { transition: none; }
html.hc-full-lock, html.hc-full-lock body { overflow: hidden !important; }

/* фон — розмита обкладинка поточної пісні */
.hc-full-bg {
  position: absolute;
  inset: -60px;
  background: #222 center / cover no-repeat;
  filter: blur(46px) saturate(1.3) brightness(.5);
  transform: scale(1.1);
  transition: background-image .4s;
}
.hc-full-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .65));
}

.hc-full-in {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 18px calc(18px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

/* шапка: кнопка закрити + вкладки */
.hc-full-head { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding-bottom: 14px; touch-action: none; }
.hc-full-x {
  flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 16px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.hc-full-tabs {
  flex: 1 1 auto; display: flex; padding: 4px; gap: 4px; border-radius: 16px;
  background: rgba(255, 255, 255, .1);
}
.hc-full-tab {
  flex: 1 1 0; height: 40px; border: 0; border-radius: 12px; background: transparent;
  color: #fff; font-weight: 700; font-size: 15px; padding: 0; transition: background .15s, color .15s;
}
.hc-full-tab.is-active { background: #fff; color: #111; }

/* сторінки */
.hc-full-page { flex: 1 1 auto; min-height: 0; }
.hc-full-list { display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0 -6px; padding: 0 6px; }
.hc-full.show-list .hc-full-player { display: none; }
.hc-full.show-list .hc-full-list { display: block; }

.hc-full-player { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }

.hc-full-cover {
  width: 100%;
  max-width: min(100%, 52vh);
  aspect-ratio: 1 / 1;
  margin: 6px auto 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: rgba(255, 255, 255, .35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  touch-action: none;
}
.hc-full-cover.is-paused { transform: scale(.9); }
.hc-full-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hc-full-meta { min-width: 0; }
.hc-full-title {
  display: block; color: #fff !important; font-size: 24px; font-weight: 800; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none !important;
}
.hc-full-artist { color: rgba(255, 255, 255, .7); font-size: 16px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hc-full-time { display: flex; align-items: center; gap: 12px; font-size: 14px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .8); }
.hc-full-cur, .hc-full-dur { flex: 0 0 auto; min-width: 38px; }
.hc-full-dur { text-align: right; }
.hc-full-prog {
  position: relative; flex: 1 1 auto; height: 28px; cursor: pointer; touch-action: none;
}
.hc-full-prog::before, .hc-full-load, .hc-full-fill {
  position: absolute; left: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 5px;
}
.hc-full-prog::before { content: ''; right: 0; background: rgba(255, 255, 255, .22); }
.hc-full-load { background: rgba(255, 255, 255, .3); width: 0; }
.hc-full-fill { background: #fff; width: 0; }
.hc-full-knob {
  position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}

.hc-full-ctrl { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 4px; }
.hc-full-b {
  position: relative; width: 52px; height: 52px; border: 0; padding: 0; border-radius: 50%;
  background: transparent; color: #fff; font-size: 24px;
  display: inline-flex; align-items: center; justify-content: center;
}
.hc-full-b:active { transform: scale(.93); }
.hc-full-b.is-off { opacity: .35; }
.hc-full-shuffle, .hc-full-repeat { font-size: 20px; opacity: .6; }
.hc-full-shuffle.is-on, .hc-full-repeat.is-on { opacity: 1; color: #3bc9db; }
.hc-full-one { display: none; position: absolute; top: 8px; right: 6px; font-size: 10px; font-weight: 800; }
.hc-full-repeat.is-on .hc-full-one { display: block; }
.hc-full-pp { width: 76px; height: 76px; background: #fff; color: #111; font-size: 28px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.hc-full-pp .fa-play, .hc-full-pp svg.fa-play { margin-left: 4px; }

/* плейлист */
.hc-full-items { display: flex; flex-direction: column; gap: 10px; padding-bottom: 10px; }
.hc-full-item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 0; border: 0; text-align: left;
  border-radius: 14px; background: rgba(255, 255, 255, .07); color: #fff; overflow: hidden; min-height: 68px;
}
.hc-full-item.is-cur { background: #fff; color: #111; }
.hc-full-ic {
  position: relative; flex: 0 0 68px; width: 68px; height: 68px; background: rgba(255, 255, 255, .1);
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: rgba(255, 255, 255, .5);
}
.hc-full-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-full-it { flex: 1 1 auto; min-width: 0; padding-right: 14px; }
.hc-full-in1 { display: block; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-full-in2 { display: block; font-size: 14px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.hc-full-empty { text-align: center; opacity: .6; padding: 40px 0; }

/* «еквалайзер» поверх обкладинки пісні, що грає */
.hc-full-eq { display: none; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); align-items: center; justify-content: center; gap: 3px; }
.hc-full-item.is-cur .hc-full-eq { display: flex; }
.hc-full-eq i { width: 4px; height: 6px; border-radius: 2px; background: #fff; }
.hc-full-item.is-playing .hc-full-eq i { animation: hc-full-eq .8s ease-in-out infinite; }
.hc-full-item.is-playing .hc-full-eq i:nth-child(2) { animation-delay: -.25s; }
.hc-full-item.is-playing .hc-full-eq i:nth-child(3) { animation-delay: -.5s; }
@keyframes hc-full-eq { 0%, 100% { height: 6px; } 50% { height: 22px; } }

/* низькі екрани (телефон боком тощо) — менша обкладинка */
@media (max-height: 620px) {
  .hc-full-cover { max-width: 38vh; }
  .hc-full-title { font-size: 20px; }
  .hc-full-pp { width: 64px; height: 64px; }
}
/* на комп'ютері це вікно не використовується */
@media (min-width: 768px) {
  .hc-full { display: none !important; }
}
