﻿:root {
      --glass-bg-soft: rgba(8, 8, 8, 0.44);
      --glass-bg-menu: rgba(6, 6, 6, 0.60);
      --glass-bg-panel: rgba(5, 5, 5, 0.74);
      --glass-border-soft: rgba(255, 255, 255, 0.16);
      --glass-border-panel: rgba(255, 255, 255, 0.14);
      --glass-border-line: rgba(255, 255, 255, 0.06);
      --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.24);
      --shadow-menu: 0 18px 44px rgba(0, 0, 0, 0.32);
      --shadow-panel: 0 22px 60px rgba(0, 0, 0, 0.38);
      --radius-menu-button: 16px;
      --radius-menu-list: 18px;
      --radius-panel: 22px;
      --radius-inner: 14px;
      --ui-text: rgba(255, 255, 255, 0.92);
      --ui-text-soft: rgba(255, 255, 255, 0.85);
      --ui-text-dim: rgba(255, 255, 255, 0.75);
      --lyrics-text-shadow: 0 2px 24px rgba(0, 0, 0, 0.92);
      --ui-text-shadow: 0 2px 18px rgba(0, 0, 0, 0.62);
    }

    html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      background: #000;
      color: #fff;
      font-family: Consolas, Monaco, "Courier New", monospace;
    }

    button,
    input,
    textarea,
    select {
      font: inherit;
    }

    #bgVideo {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.45;
      background: #000;
      pointer-events: none;
    }

    #trackTitle {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 40px;
      font-size: clamp(30px, 4.5vw, 64px);
      opacity: 0;
      z-index: 9;
      pointer-events: none;
      text-shadow: var(--lyrics-text-shadow);
      transition: opacity 0.42s ease;
      text-transform: lowercase;
      will-change: opacity;
    }

    #overlay {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 40px;
      z-index: 10;
    }

    #lyrics {
      font-size: clamp(28px, 4vw, 56px);
      line-height: 1.3;
      max-width: 950px;
      white-space: pre-line;
      text-shadow: var(--lyrics-text-shadow);
      text-transform: lowercase;
      color: rgba(255, 255, 255, 0.98);
      letter-spacing: 0.01em;
    }

    #homeTrigger {
  display: inline-block;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  /*animation: homePulse 0.50s linear infinite;*/
  will-change: transform;
}

    .home-started #homeTrigger {
      animation: none;
    }

    @keyframes homePulse {
  0%   { transform: translate(0px, 0px); }
  20%  { transform: translate(-1px, 1px); }
  40%  { transform: translate(1px, -1px); }
  60%  { transform: translate(-1px, -1px); }
  80%  { transform: translate(1px, 1px); }
  100% { transform: translate(0px, 0px); }
}

    #status {
      position: fixed;
      left: 50%;
      bottom: 110px;
      transform: translateX(-50%);
      font-size: 14px;
      z-index: 21;
      opacity: 0.8;
      text-align: center;
      min-width: 220px;
      pointer-events: none;
      text-shadow: var(--ui-text-shadow);
    }

    #trackNav {
      position: fixed;
      left: 50%;
      bottom: 64px;
      transform: translateX(-50%);
      display: none;
      align-items: center;
      gap: 14px;
      z-index: 22;
    }

    #trackNav button {
      border: 0;
      background: transparent;
      color: var(--ui-text-soft);
      font-size: 42px;
      line-height: 1;
      cursor: pointer;
      padding: 0;
      width: auto;
      height: auto;
      display: block;
      text-shadow: var(--ui-text-shadow);
      transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
    }

    #trackNav button:hover {
      color: #fff;
      transform: translateY(-1px);
    }

    #menuWrap {
      position: fixed;
      top: 18px;
      right: 18px;
      z-index: 50;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
    }

    .glass-button {
      border: 1px solid var(--glass-border-soft);
      background: var(--glass-bg-soft);
      color: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow:
        var(--shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

    #menuToggle {
      border-radius: var(--radius-menu-button);
      cursor: pointer;
      font-size: 14px;
      padding: 11px 15px;
      text-transform: lowercase;
      transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    #menuToggle:hover {
      background: rgba(14, 14, 14, 0.56);
      border-color: rgba(255, 255, 255, 0.22);
      transform: translateY(-1px);
    }

    #menuList {
      display: none;
      min-width: 220px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: var(--radius-menu-list);
      overflow: hidden;
      background: var(--glass-bg-menu);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow:
        var(--shadow-menu),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    }

    #menuList.open {
      display: block;
    }

    .menuItem {
      width: 100%;
      display: block;
      border: 0;
      border-bottom: 1px solid var(--glass-border-line);
      background: transparent;
      color: var(--ui-text);
      text-align: left;
      padding: 12px 14px;
      cursor: pointer;
      font-size: 14px;
      text-transform: lowercase;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .menuItem:last-child {
      border-bottom: 0;
    }

    .menuItem:hover {
      background: rgba(255, 255, 255, 0.05);
      color: #fff;
    }

    #panelOverlay {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      z-index: 60;
      background: rgba(0, 0, 0, 0.28);
    }

    #panelOverlay.open {
      display: flex;
    }

    #panelBox {
      width: min(680px, calc(100vw - 32px));
      max-height: min(78vh, 760px);
      overflow: auto;
      border: 1px solid var(--glass-border-panel);
      border-radius: var(--radius-panel);
      background: var(--glass-bg-panel);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      box-shadow:
        var(--shadow-panel),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
      color: rgba(255, 255, 255, 0.88);
    }

    #panelHeader {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 16px 18px;
      border-bottom: 1px solid var(--glass-border-line);
    }

    #panelTitle {
      font-size: 16px;
      text-transform: lowercase;
      color: rgba(255, 255, 255, 0.93);
    }

    #panelClose {
      border: 0;
      background: transparent;
      color: rgba(255, 255, 255, 0.82);
      cursor: pointer;
      font-size: 22px;
      line-height: 1;
      padding: 0;
    }

    #panelContent {
      padding: 18px;
      font-size: 14px;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.86);
    }

    #panelContent p {
      margin: 0 0 14px 0;
    }

    .panelInput {
      width: 100%;
      box-sizing: border-box;
      margin: 10px 0 12px 0;
      padding: 12px 12px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: var(--radius-inner);
      background: rgba(255, 255, 255, 0.05);
      color: #fff;
      font-size: 14px;
      outline: none;
    }

    .panelInput::placeholder {
      color: rgba(255, 255, 255, 0.48);
    }

    .panelInput:focus {
      border-color: rgba(255, 255, 255, 0.22);
      background: rgba(255, 255, 255, 0.065);
    }

    .panelButton {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: var(--radius-inner);
      background: rgba(255, 255, 255, 0.05);
      color: #fff;
      text-decoration: none;
      padding: 12px 14px;
      cursor: pointer;
      font-size: 14px;
      text-transform: lowercase;
      transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    .panelButton:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.22);
      transform: translateY(-1px);
    }

    .paypalIcon {
      font-size: 16px;
      line-height: 1;
    }

    #controlsBar {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      height: 26px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 10px;
      box-sizing: border-box;
      z-index: 30;
      background: rgba(0, 0, 0, 0.18);
    }

    #seekBar {
      flex: 1 1 auto;
      min-width: 0;
      height: 5px;
      appearance: none;
      -webkit-appearance: none;
      background: rgba(255, 255, 255, 0.12);
      cursor: pointer;
      margin: 0;
    }

    #seekBar::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.75);
      border: 0;
    }

    #seekBar::-moz-range-thumb {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.75);
      border: 0;
    }

    #seekBar::-moz-range-track {
      background: rgba(255, 255, 255, 0.12);
      height: 14px;
    }

    #volumeWrap {
      width: 120px;
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 0 0 auto;
    }

    #volumeLabel {
      font-size: 12px;
      opacity: 0.72;
      white-space: nowrap;
      user-select: none;
      text-shadow: var(--ui-text-shadow);
    }

    #volumeBar {
      width: 80px;
      height: 5px;
      appearance: none;
      -webkit-appearance: none;
      background: rgba(255, 255, 255, 0.12);
      cursor: pointer;
      margin: 0;
    }

    #volumeBar::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.75);
      border: 0;
    }

    #volumeBar::-moz-range-thumb {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.75);
      border: 0;
    }

    #volumeBar::-moz-range-track {
      background: rgba(255, 255, 255, 0.12);
      height: 14px;
    }

    @media (max-width: 700px) {
      #menuWrap {
        top: 14px;
        right: 14px;
      }

      #menuList {
        min-width: 190px;
      }

      #panelBox {
        width: min(100vw - 24px, 680px);
        max-height: 82vh;
      }

      #panelContent {
        font-size: 13px;
      }
    }
