/* Wow: vizuál + kompaktné PC. Mobil používa rovnakú kostru ako klasika, bez prekrývania.
   Bežné zobrazenie (bez data-skin=wow) sa týmto súborom nemení. */

#btn-theme-wow,
#more-theme-wow {
  min-width: 64px;
  border-color: rgba(232, 197, 122, 0.45);
  color: #e8c36a;
}

.wow-ambience { display: none; pointer-events: none; }

html[data-skin="wow"] {
  background: #07050c;
  --bg: #0c0912;
  --bg-elevated: #1a1524;
  --sidebar: #140f1c;
  --border: rgba(232, 197, 122, 0.28);
  --text: #f6efe4;
  --muted: #cbb9a0;
  --accent: #e8c36a;
  --accent-2: #8fd4cf;
  --chord: #ffd27a;
  --radius: 14px;
  --sheet-lyrics-font: Palatino, "Palatino Linotype", Georgia, serif;
  --sheet-lyrics-size: 1.28rem;
  --sheet-lyrics-color: #f6efe4;
  --sheet-chord-color: #ffd27a;
  --sheet-line-height: 1.5;
  color-scheme: dark;
}

html[data-skin="wow"] body {
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(180, 90, 70, 0.2), transparent 55%),
    radial-gradient(700px 480px at 100% 0%, rgba(90, 60, 160, 0.22), transparent 50%),
    #0c0912;
  color: var(--text);
}

html[data-skin="wow"] .wow-ambience {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
html[data-skin="wow"] .wow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
  opacity: .4;
  animation: wow-drift 22s ease-in-out infinite;
}
html[data-skin="wow"] .wow-orb.a {
  width: 38vw; height: 38vw; left: -10%; top: -14%;
  background: radial-gradient(circle, rgba(232, 180, 110, 0.5), transparent 68%);
}
html[data-skin="wow"] .wow-orb.b {
  width: 32vw; height: 32vw; right: -12%; top: 6%;
  background: radial-gradient(circle, rgba(120, 80, 200, 0.38), transparent 68%);
  animation-delay: -8s;
}
html[data-skin="wow"] .wow-orb.c { display: none; }
@keyframes wow-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(3%, 4%, 0); }
}

html[data-skin="wow"] body { background-color: #0c0912; }
html[data-skin="wow"] .wow-ambience { z-index: 0; }

/* Dlaždice preč — len Wow */
html[data-skin="wow"] #home-tiles,
html[data-skin="wow"] #favorite-songs,
html[data-skin="wow"] #recent-songs,
html[data-skin="wow"] .quick-library {
  display: none !important;
}

html[data-skin="wow"] body.wow-home #song-toolbar,
html[data-skin="wow"] body.wow-home #lib-sheet-zoom,
html[data-skin="wow"] body.wow-home #btn-fav-song,
html[data-skin="wow"] body.wow-home #view-title,
html[data-skin="wow"] body.wow-home #view-meta {
  display: none !important;
}

html[data-skin="wow"] .status-strip,
html[data-skin="wow"] .screen-bar,
html[data-skin="wow"] .read-thumb,
html[data-skin="wow"] .edge-menu {
  display: none !important;
}

html[data-skin="wow"] .app-nav {
  background: rgba(16, 11, 24, 0.92);
  border-bottom: 1px solid var(--border);
}
html[data-skin="wow"] .app-brand span { color: #f0d28a; }
html[data-skin="wow"] .nav-tab.active {
  background: rgba(232, 195, 106, 0.18);
  color: #ffe9b0;
}
html[data-skin="wow"] .sidebar {
  background: rgba(16, 11, 24, 0.94);
  border-right-color: var(--border);
}
html[data-skin="wow"] .main-panel { background: transparent; }
html[data-skin="wow"] .toolbar {
  background: rgba(22, 16, 32, 0.94);
  border-bottom-color: var(--border);
}

html[data-skin="wow"] .btn-primary,
html[data-skin="wow"] .btn.btn-primary,
html[data-skin="wow"] #btn-theme-wow.is-on,
html[data-skin="wow"] #more-theme-wow.is-on,
html[data-skin="wow"] .sheet-mode-btn.is-on {
  background: linear-gradient(180deg, #f0d38a, #c99a42);
  color: #1a1308;
  border-color: #e8c36a;
}
html[data-skin="wow"] .home-ask {
  font-family: Palatino, Georgia, serif;
  background: linear-gradient(120deg, #fff8ea, #e8c36a 50%, #f4e0b0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-skin="wow"] .home-card,
html[data-skin="wow"] .today-open {
  background: rgba(26, 20, 36, 0.9);
  border: 1px solid var(--border);
}
html[data-skin="wow"] #group-selector,
html[data-skin="wow"] #song-search,
html[data-skin="wow"] .sing-now input,
html[data-skin="wow"] .group-filter-input {
  background: #1c1626 !important;
  color: #f6efe4 !important;
  border: 1px solid var(--border);
  position: static !important;
  clip: auto !important;
  width: 100%;
  height: auto !important;
}
html[data-skin="wow"] .view-title { font-family: Palatino, Georgia, serif; }
html[data-skin="wow"] .chord {
  color: #ffd27a;
  text-shadow: 0 0 10px rgba(255, 210, 122, 0.28);
}
html[data-skin="wow"] .tree li.song-li.active > .tree-row {
  background: rgba(232, 195, 106, 0.16);
  box-shadow: inset 3px 0 0 #e8c36a;
}
html[data-skin="wow"] .modal-box {
  background: #1a1524;
  border: 1px solid var(--border);
}

/* Nástroje ostanú v toku hore — nikdy cez text ani cez spodné menu */
html[data-skin="wow"] #song-toolbar,
html[data-skin="wow"] #view-library #song-toolbar,
html[data-skin="wow"] #view-library:not(:has(#song-editor:not(.hidden))) #song-toolbar,
html[data-skin="wow"] #song-toolbar.mobile-tools-open,
html[data-layout="phone"][data-skin="wow"] body.has-song #view-library:not(:has(#song-editor:not(.hidden))) #song-toolbar,
html[data-layout="tablet"][data-orient="portrait"][data-skin="wow"] body.has-song #view-library:not(:has(#song-editor:not(.hidden))) #song-toolbar {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  max-height: none !important;
  box-shadow: none !important;
  transform: none !important;
  z-index: auto !important;
  overflow: visible !important;
  border-radius: 0 !important;
}
html[data-skin="wow"] #song-toolbar.mobile-tools-open::before {
  display: none !important;
  content: none !important;
}
html[data-skin="wow"] body.song-tools-open::before {
  display: none !important;
  content: none !important;
}

html[data-skin="wow"] body.sidebar-open #song-viewer,
html[data-skin="wow"] body.more-open #song-viewer,
html[data-skin="wow"] body.sidebar-open .content-scroll,
html[data-skin="wow"] body.more-open .content-scroll {
  overflow: hidden;
  overscroll-behavior: none;
}
html[data-skin="wow"] body.more-open .nav-more-panel,
html[data-skin="wow"] .nav-more-panel.open {
  z-index: 90 !important;
}
html[data-skin="wow"] body.more-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 10, 0.55);
  z-index: 89;
  pointer-events: none;
}

/* ── PC: stredový stĺpec, nie na celú šírku ── */
@media (min-width: 801px) {
  html[data-skin="wow"]:not([data-layout="phone"]) .app-nav,
  html[data-skin="wow"]:not([data-layout="phone"]) .app-shell,
  html[data-layout="pc"][data-skin="wow"] .app-nav,
  html[data-layout="pc"][data-skin="wow"] .app-shell,
  html[data-layout="tablet"][data-orient="landscape"][data-skin="wow"] .app-nav,
  html[data-layout="tablet"][data-orient="landscape"][data-skin="wow"] .app-shell {
    max-width: 980px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-left: 1px solid rgba(232, 197, 122, 0.12);
    border-right: 1px solid rgba(232, 197, 122, 0.12);
  }
  html[data-skin="wow"]:not([data-layout="phone"]) .sidebar,
  html[data-layout="pc"][data-skin="wow"] .sidebar {
    width: 268px;
    flex: 0 0 268px;
  }
  html[data-skin="wow"]:not([data-layout="phone"]) .home-dash,
  html[data-layout="pc"][data-skin="wow"] .home-dash {
    max-width: 560px;
    margin-top: 4vh;
  }
  html[data-skin="wow"]:not([data-layout="phone"]) .content-scroll {
    padding: 18px 22px 24px;
  }
  html[data-skin="wow"]:not([data-layout="phone"]) .nav-screens {
    display: none;
  }
  html[data-skin="wow"] .nav-drop-btn:hover,
  html[data-skin="wow"] .nav-menu.open > .nav-drop-btn {
    background: rgba(232, 195, 106, 0.18);
    color: #ffe9b0;
  }
  html[data-skin="wow"] .nav-submenu {
    background: #1a1524;
    border-color: var(--border);
  }
  html[data-skin="wow"]:not([data-layout="phone"]) .nav-more-panel.open,
  html[data-layout="pc"][data-skin="wow"] .nav-more-panel.open {
    top: 56px;
    right: max(0px, calc((100vw - min(980px, 100vw)) / 2));
    left: auto !important;
    width: 320px;
    max-height: calc(100dvh - 64px);
    border-radius: 0 0 0 14px;
  }
}

/* ── Mobil: žiadny vlastný overlay layout, len bezpečné medzery ── */
@media (max-width: 800px) {
  html[data-skin="wow"] .sidebar {
    width: 100% !important;
    max-width: none !important;
  }
  html[data-skin="wow"] .home-dash {
    margin-top: 12px;
    padding: 8px 4px 20px;
  }
  html[data-skin="wow"] #view-library #song-viewer {
    padding-bottom: 16px !important;
  }
  html[data-skin="wow"] .main-panel {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  html[data-skin="wow"] .toolbar,
  html[data-skin="wow"] #song-toolbar {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
  }
  html[data-skin="wow"] #lib-sheet-zoom {
    position: static !important;
  }
  html[data-skin="wow"] #view-title {
    position: static;
    background: none;
    backdrop-filter: none;
  }
}

html[data-layout="phone"][data-skin="wow"] .sidebar,
html[data-layout="tablet"][data-orient="portrait"][data-skin="wow"] .sidebar {
  width: 100% !important;
  max-width: none !important;
}
html[data-layout="phone"][data-skin="wow"] #song-toolbar,
html[data-layout="tablet"][data-orient="portrait"][data-skin="wow"] #song-toolbar,
html[data-layout="phone"][data-skin="wow"] #view-library #song-toolbar,
html[data-layout="tablet"][data-orient="portrait"][data-skin="wow"] #view-library #song-toolbar {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  max-height: none !important;
  box-shadow: none !important;
}
html[data-layout="phone"][data-skin="wow"] #view-title,
html[data-layout="tablet"][data-orient="portrait"][data-skin="wow"] #view-title {
  position: static;
  background: none;
  backdrop-filter: none;
}
html[data-layout="phone"][data-skin="wow"] #view-library #song-viewer,
html[data-layout="tablet"][data-orient="portrait"][data-skin="wow"] #view-library #song-viewer {
  padding-bottom: 16px !important;
}
html[data-layout="phone"][data-skin="wow"] .main-panel,
html[data-layout="tablet"][data-orient="portrait"][data-skin="wow"] .main-panel {
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

html[data-skin="wow"] body.mass-mode .mass-bar {
  left: 0;
  right: 0;
  border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
  html[data-skin="wow"] .wow-orb { animation: none; }
}
