@font-face {
  font-family: "Atelier Montserrat";
  src: url("fonts/montserrat-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Atelier Montserrat";
  src: url("fonts/montserrat-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Atelier Montserrat";
  src: url("fonts/montserrat-black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ice: #8de8ff;
  --silver: #eaf8ff;
  --panel: #080e1b;
  --line: #314a68;
  --green: #70ffc0;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  color: #ffffff;
  background: radial-gradient(circle at 50% 0,#1b3157 0,#080d18 38%,#02050b 100%);
  font-family: "Atelier Montserrat","Segoe UI",sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(rgba(130,205,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(130,205,255,.035) 1px,transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom,black,transparent 80%);
}

button,
input {
  font: inherit;
}

.music-login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  width: min(920px,92vw);
  min-height: 100vh;
  margin: auto;
  padding: 40px 0;
}

.music-login-logo {
  width: min(320px,62vw);
  height: 180px;
  object-fit: contain;
}

.music-password-form {
  display: grid;
  gap: 18px;
  width: min(720px,92vw);
  text-align: center;
}

.music-password-form label {
  color: var(--silver);
  font-size: clamp(31px,5vw,62px);
  font-weight: 900;
  line-height: 1;
  text-wrap: balance;
}

.music-password-form input {
  width: 100%;
  height: 92px;
  padding: 14px 26px;
  border: 2px solid #9be9ff;
  border-radius: 22px;
  outline: 0;
  color: #ffffff;
  background: rgba(4,10,21,.94);
  box-shadow: inset 0 0 25px rgba(99,202,255,.08),0 0 0 7px rgba(5,11,23,.75),0 0 38px rgba(80,207,255,.24);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: .16em;
  text-align: center;
}

.music-password-form input:focus {
  border-color: #ffffff;
  box-shadow: inset 0 0 28px rgba(99,202,255,.13),0 0 0 7px rgba(25,57,89,.72),0 0 48px rgba(80,207,255,.42);
}

.music-password-form small {
  color: #7d9dbb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}

.music-login-error {
  min-height: 20px;
  margin: 0;
  color: #ff829e;
  font-weight: 900;
}

.music-console {
  position: relative;
  z-index: 1;
  width: min(1680px,96vw);
  min-height: 100vh;
  margin: auto;
  padding: 24px 0 48px;
}

.music-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

}

.music-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.music-brand img {
  width: 100px;
  height: 72px;
  object-fit: contain;
}

.music-brand span {
  color: var(--ice);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .24em;
}

.music-brand h1 {
  margin: 3px 0 0;
  font-size: clamp(22px,1vw,38px);
  font-weight: 900;
}

.music-exit {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #49617c;
  border-radius: 12px;
  color: #b9cee0;
  background: #08101e;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.music-device-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0 8px;
  padding: 18px 20px;
  border: 1px solid rgba(126, 190, 226, .34);
  border-radius: 22px;
  background: rgba(5, 12, 25, .72);
  box-shadow: inset 0 0 24px rgba(91, 191, 255, .05), 0 14px 36px rgba(0, 0, 0, .26);
}

.music-device-mode-copy {
  display: grid;
  gap: 5px;
  min-width: 210px;
}

.music-device-mode-copy > small {
  color: #7ea5c5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}

.music-device-mode-copy > strong {
  color: #ffffff;
  font-size: 23px;
  font-weight: 900;
}

.music-device-mode-copy > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #86a5bd;
  font-size: 9px;
  letter-spacing: .13em;
}

.music-device-mode-copy > span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff718e;
  box-shadow: 0 0 12px rgba(255, 113, 142, .55);
}

.music-device-mode-copy > span i.connected {
  background: var(--green);
  box-shadow: 0 0 14px rgba(112, 255, 192, .8);
}

.music-device-mode-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.music-role-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid #496782;
  border-radius: 16px;
  color: #b9cee0;
  background: rgba(8, 16, 30, .95);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.music-role-button:hover {
  border-color: #9be9ff;
}

.music-role-button:active {
  transform: scale(.97);
}

.music-role-button > i {
  color: #8de8ff;
  font-size: 24px;
}

.music-role-button > span {
  display: grid;
  gap: 3px;
  text-align: left;
}

.music-role-button b {
  font-size: 13px;
  letter-spacing: .08em;
}

.music-role-button small {
  color: #7895ad;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
}

.music-role-button.active {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 18px rgba(112, 255, 192, .34), inset 0 0 18px rgba(112, 255, 192, .06);
}

.music-role-button.active > i,
.music-role-button.active small {
  color: var(--green);
}

.music-console.role-receiver .music-category-button:disabled,
.music-console.role-receiver .music-play-pause:disabled {
  cursor: not-allowed;
  filter: none;
  opacity: .48;
}

.music-console.role-receiver .youtube-player-shell {
  pointer-events: none;
}

.music-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 170px;
  margin: 0px 0 28px 0;
}

.music-play-pause {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding: 0;
  border: 2px solid rgba(207, 240, 255, .72);
  border-radius: 50%;
  color: #dff8ff;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(98, 215, 255, .08), inset 0 0 18px rgba(98, 215, 255, .05);
  font-size: 30px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.music-play-pause i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
}

.music-play-pause i::before {
  display: block;
  line-height: 1;
}

.music-play-pause:hover {
  border-color: #dff8ff;
  box-shadow: 0 0 22px rgba(98, 215, 255, .22), inset 0 0 18px rgba(98, 215, 255, .07);
}

.music-play-pause.playing {
  color: #70ffc0;
  border-color: #70ffc0;
  background: transparent;
  box-shadow: 0 0 10px rgba(91, 255, 174, .62), 0 0 34px rgba(91, 255, 174, .48), inset 0 0 18px rgba(91, 255, 174, .08);
}

.music-play-pause:active {
  transform: scale(.95);
}

.music-transport div {
  display: grid;
  gap: 6px;
}

.music-transport small {
  color: #7ea5c5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.music-transport strong {
  color: #ffffff;
  font-size: clamp(17px,2vw,26px);
  font-weight: 900;
}

.music-button-grid {
      display: flex;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.music-category-button {
      position: relative;
    display: flex;
    place-items: center;
    gap: 11px;
    min-width: 360px;
    min-height: 230px;
    padding: 28px 24px;
    overflow: hidden;
    border: 2px solid #6f9cbc;
    border-radius: 27px;
    color: #ffffff;
    background: radial-gradient(circle at 50% 0, #243e69, #0a1325 61%, #040811);
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .035), 0 18px 45px rgba(0, 0, 0, .52), 0 0 24px rgba(67, 174, 231, .13);
    cursor: pointer;
    transition: border-color .24s ease, filter .24s ease, transform .24s ease, box-shadow .24s ease;
    flex-direction: column;
    justify-content: center;
}

.music-category-button::before {
  position: absolute;
  top: -85%;
  left: -45%;
  width: 32%;
  height: 280%;
  content: "";
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);
  transform: rotate(24deg);
  transition: left .65s ease;
}

.music-category-button:hover {
  filter: brightness(1.15);
  transform: translateY(-4px);
}

.music-category-button:hover::before {
  left: 120%;
}

.music-category-button > i {
  color: #b7f2ff;
  font-size: 28px;
  font-style: normal;
  text-shadow: 0 0 18px #6cdfff;
}

.music-category-button > strong {
  font-size: clamp(25px,2.7vw,39px);
  font-weight: 900;
  text-transform: uppercase;
}

.music-category-button > span {
  color: #8eb0cb;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
}

.music-category-button.active {
  border-color: #aaffd0;
  background: radial-gradient(circle at 50% 0,#237450,#0c3026 58%,#04110d);
  box-shadow: inset 0 0 0 6px rgba(151,255,205,.07),0 18px 48px rgba(0,0,0,.55),0 0 28px rgba(73,255,166,.7),0 0 65px rgba(73,255,166,.28);
  animation: activeMusicPulse 1.4s ease-in-out infinite alternate;
}

.music-category-button.active > i,
.music-category-button.active > span {
  color: var(--green);
  text-shadow: 0 0 18px rgba(112,255,192,.8);
}

.music-category-button:disabled {
  cursor: not-allowed;
  filter: grayscale(.8) brightness(.55);
}

.music-category-youtube > i {
  display: grid;
  place-items: center;
  width: 50px;
  height: 34px;
  border-radius: 10px;
  color: #ffffff;
  background: #ff0033;
  box-shadow: 0 0 20px rgba(255, 0, 51, .45);
  font-size: 15px;
  letter-spacing: -.04em;
}

.music-category-youtube.active > i {
  color: #06150f;
  background: var(--green);
  box-shadow: 0 0 22px rgba(112, 255, 192, .75);
}

.youtube-player-shell {
  display: none;
  width: 100%;
  max-width: 720px;
  height: 405px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid rgba(153, 221, 255, .42);
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .48), 0 0 24px rgba(98, 215, 255, .14);
}

.youtube-player-shell.active {
  display: block;
}

.youtube-player-shell iframe {
  display: block;
  width: 100%;
  min-width: 200px;
  height: 100%;
  min-height: 200px;
  border: 0;
}

.music-console-message {
  min-height: 24px;
  margin: 20px 0 0;
  color: #ff91aa;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.music-volume-float {
  position: fixed;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 42px);
  z-index: 30;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 12px;
}

.music-volume-toggle {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 1px solid #87dfff;
  border-radius: 50%;
  color: #dff8ff;
  background: rgba(5, 12, 24, .88);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .44), 0 0 18px rgba(83, 207, 255, .24);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.music-volume-toggle:hover,
.music-volume-float.open .music-volume-toggle {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .44), 0 0 25px rgba(112, 255, 192, .58);
  transform: translateY(-2px);
}

.music-volume-toggle:disabled {
  border-color: #496782;
  color: #72899d;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.music-volume-toggle i {
  display: grid;
  place-items: center;
  font-size: 25px;
  line-height: 1;
}

.music-volume-panel {
  width: min(300px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid rgba(135, 223, 255, .55);
  border-radius: 18px;
  opacity: 0;
  visibility: hidden;
  color: #e8f9ff;
  background: rgba(5, 12, 24, .96);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .58), 0 0 28px rgba(83, 207, 255, .16);
  transform: translateY(12px) scale(.96);
  transform-origin: right bottom;
  backdrop-filter: blur(16px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.music-volume-float.open .music-volume-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.music-volume-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.music-volume-panel small,
.music-volume-panel span {
  color: #8eb0cb;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.music-volume-panel strong {
  color: var(--green);
  font-size: 20px;
  text-shadow: 0 0 15px rgba(112, 255, 192, .5);
}

.music-volume-panel span {
  display: block;
  margin-top: 12px;
  text-align: center;
}

.music-volume-panel input[type="range"] {
  width: 100%;
  height: 7px;
  margin: 0;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(90deg, var(--green) 0 var(--music-volume-level, 100%), #24384b var(--music-volume-level, 100%) 100%);
  appearance: none;
  -webkit-appearance: none;
}

.music-volume-panel input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #03130d;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(112, 255, 192, .75);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.music-volume-panel input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #03130d;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(112, 255, 192, .75);
  cursor: pointer;
}

@keyframes activeMusicPulse {
  from {
    filter: brightness(.96);
  }

  to {
    filter: brightness(1.16);
  }
}

@media (max-width: 720px) {
  .music-volume-float {
    right: 14px;
    bottom: 14px;
  }

  .music-volume-toggle {
    width: 56px;
    height: 56px;
  }

  .music-device-mode {
    align-items: stretch;
    flex-direction: column;
  }

  .music-device-mode-buttons {
    justify-content: stretch;
  }

  .music-role-button {
    flex: 1 1 190px;
    min-width: 0;
  }

  .music-brand h1{
    font-size: clamp(14px, 1vw, 33px);
  }
  button.music-category-button{
    width: 100%;
    min-width: auto;
  }
  .music-console {
    width: min(94vw,560px);
    padding-top: 14px;
  }

  .music-brand{
    gap: 0px;
  }

  .music-brand img {
    width: 74px;
    height: 58px;
  }
  .music-exit{
    min-height: 37px;
    padding: 10px 14px;
  }
  .music-transport {
    flex-direction: column;
    text-align: center;
  }

  .music-button-grid {
    grid-template-columns: 1fr;
  }

  .music-category-button {
    min-height: 180px;
  }

  .youtube-player-shell {
    height: 240px;
  }

}
