/* app/static/css/songs.css */
/* Стили для кнопки блокировки экрана */
html {
    overflow: hidden;
    height: 100%;
    background: #ffffff;
}
.wake-lock-button {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8); /* Полупрозрачный фон */
    color: white;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Поверх всего */
    border: none;
    cursor: pointer;
}

body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  text-align: center;
  overflow: hidden;
  background: #ffffff;
}

.song-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  background: #ffffff;
}

.song-modal-card {
  position: absolute;
  top: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) * -1);
  left: 0;
  overflow: hidden;
  background: #ffffff;
}

.song-page {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin-top: 0;
  padding-top: calc(var(--backend-shell-height, 32px) + 6px);
  padding-bottom: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: #ffffff;
}

.content {
  display: grid;
  grid-template-rows:
    minmax(0, 0.9fr)
    auto
    minmax(0, 1fr)
    auto
    minmax(0, 1fr)
    auto;
  align-items: center;
  flex: 1 1 auto;
  padding: 0 20px 0 20px;
  min-height: 0;
  background: #ffffff;
}

.current-song {
  grid-row: 2;
  color: blue; /* Ярко-синий цвет */
  font-size: calc(clamp(20px, 8vw, 140px) * var(--song-fit-scale, 1));
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.05;
}

.next-song {
  grid-row: 4;
  color: red; /* Оранжевый цвет */
  font-size: calc(clamp(20px, 8vw, 140px) * var(--song-fit-scale, 1));
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.05;
}

.timer {
  grid-row: 6;
  font-size: calc(clamp(20px, 3.6vw, 60px) * var(--song-fit-scale, 1));
  color: green; /* Зеленый цвет */
  margin: 0;
  align-self: end;
}

.hint-panel {
  display: none;
  flex-direction: column;
  border-top: 1px solid #d8dde8;
  background: #fff;
  flex: 1 1 auto;
  min-height: 0;
  background: #fff;
}

.hint-panel.visible {
  display: flex;
}

.hint-panel-header {
  text-align: left;
  padding: 8px 12px;
  font-size: clamp(13px, 1.8vw, 22px);
  font-weight: 700;
  color: #20314f;
  border-bottom: 1px solid #ebeff5;
}

#hint-frame {
  width: 100%;
  flex: 1;
  border: 0;
  background: #fff;
}

#hint-html-host {
  width: 100%;
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.hint-empty {
  padding: 16px;
  color: #657289;
  font-size: clamp(14px, 2vw, 26px);
}

.hidden {
  display: none;
}

.song-page.instrument-mode .content {
  flex: 0 0 auto;
  padding-top: 0;
  padding-bottom: 0;
}

@media (orientation: landscape) {
  .hint-panel-header {
    display: none;
  }
}
