/* textzone pro ui v1 — clean, modern, fast
   works with your existing classes:
   wrap, site-header, header-grid, brand, search, topnav,
   card, hero, grid-2, list, item, cover, cover-big,
   song-grid, song-tools, tool, lyrics-card, lyrics-text,
   alpha, alpha-link, artist-grid, artist-card,
   chips, chip, pager, btn, mini, site-footer, footer-grid, foot-col, foot-title
*/

:root{
  --bg0:#f6f8ff;
  --bg1:#eef4ff;
  --bg2:#ffffff;

  --card: rgba(255,255,255,.78);
  --card2: rgba(255,255,255,.92);

  --text:#0b1220;
  --muted:#5a6683;

  --line: rgba(15,23,42,.10);

  --brand1:#7c3aed;
  --brand2:#06b6d4;

  --shadow1: 0 10px 30px rgba(15,23,42,.08);
  --shadow2: 0 18px 60px rgba(15,23,42,.10);

  --radius: 18px;
  --radius2: 22px;

  --font: 16px;
  --lh: 1.6;

  --focus: 0 0 0 3px rgba(6,182,212,.22);
}

/* dark theme via body.theme-dark (your JS already toggles this) */
body.theme-dark{
  --bg0:#070b16;
  --bg1:#0a1022;
  --bg2:#0b1220;

  --card: rgba(15,23,42,.75);
  --card2: rgba(15,23,42,.92);

  --text:#e7eaf3;
  --muted:#aab4d0;

  --line: rgba(231,234,243,.12);

  --shadow1: 0 16px 50px rgba(0,0,0,.35);
  --shadow2: 0 24px 80px rgba(0,0,0,.45);

  --focus: 0 0 0 3px rgba(124,58,237,.24);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  font-size:var(--font);
  line-height:var(--lh);
  color:var(--text);
  background:
    radial-gradient(1100px 650px at 18% -10%, rgba(6,182,212,.20), transparent 62%),
    radial-gradient(900px 600px at 82% 0%, rgba(124,58,237,.18), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, var(--bg2));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{color:inherit;text-decoration:none}
a:hover{text-decoration:none}
img{max-width:100%;height:auto}
::selection{background: rgba(6,182,212,.18)}

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 18px 48px;
}

/* header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.theme-dark .site-header{
  background: rgba(11,18,32,.55);
}

.header-grid{
  display:grid;
  grid-template-columns: 220px 1fr 320px;
  gap: 12px;
  align-items:center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand{
  font-weight: 850;
  letter-spacing: .2px;
  font-size: 20px;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand:focus-visible{outline:none; box-shadow: var(--focus); border-radius: 12px;}

/* search */
.search{
  display:flex;
  gap: 10px;
  align-items:center;
}
.search input{
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card2);
  color: var(--text);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.search input::placeholder{color: rgba(90,102,131,.85)}
body.theme-dark .search input::placeholder{color: rgba(170,180,208,.75)}
.search input:focus{
  border-color: rgba(6,182,212,.35);
  box-shadow: var(--focus);
}
.search button{
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 10px 24px rgba(6,182,212,.16);
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.search button:hover{filter:saturate(1.05); transform: translateY(-1px)}
.search button:active{transform: translateY(0)}
.search button:focus-visible{outline:none; box-shadow: var(--focus)}

/* nav */
.topnav{
  display:flex;
  justify-content:flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.topnav a{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.topnav a:hover{
  background: rgba(6,182,212,.10);
  border-color: rgba(6,182,212,.18);
  transform: translateY(-1px);
}
.topnav a:focus-visible{outline:none; box-shadow: var(--focus)}

/* cards / sections */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow1);
  padding: 18px;
  margin: 16px 0;
}
.card:hover{box-shadow: var(--shadow2)}
.hero{
  padding: 18px 18px 16px;
  overflow:hidden;
  position:relative;
}
.hero:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(420px 220px at 18% 10%, rgba(6,182,212,.20), transparent 60%),
    radial-gradient(420px 220px at 78% 0%, rgba(124,58,237,.18), transparent 60%);
  pointer-events:none;
  filter: blur(2px);
  opacity:.75;
}
.hero > *{position:relative}

.h1{
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
}
.h2{
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: .1px;
}
.hero-title{
  font-size: 30px;
  line-height: 1.12;
  font-weight: 860;
}
.hero-sub{
  margin-top: 8px;
  max-width: 78ch;
}

.muted{color: var(--muted)}

/* home grid */
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* lists */
.list{display:flex; flex-direction:column; gap: 10px}
.item{
  display:grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items:center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.0);
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
body.theme-dark .item{background: rgba(255,255,255,.0)}
.item:hover{
  border-color: rgba(6,182,212,.20);
  background: rgba(6,182,212,.06);
  transform: translateY(-1px);
}
.item:focus-visible{outline:none; box-shadow: var(--focus)}

.cover{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124,58,237,.20), rgba(6,182,212,.16));
  border: 1px solid rgba(255,255,255,.35);
  display:grid;
  place-items:center;
  box-shadow: 0 10px 24px rgba(15,23,42,.10);
}
body.theme-dark .cover{
  border: 1px solid rgba(231,234,243,.10);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.cover img{width:100%;height:100%;object-fit:cover;display:block}
.cover-ph{font-size: 20px; opacity: .80}

.txt{display:flex; flex-direction:column; gap: 4px; min-width:0}
.title{
  font-weight: 700;
  letter-spacing: .1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta{font-size: 13px}

/* song page */
.song-grid{
  display:grid;
  grid-template-columns: 136px 1fr;
  gap: 16px;
  align-items:start;
}
.cover-big{
  width: 136px;
  height: 136px;
  border-radius: 26px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(6,182,212,.18));
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: var(--shadow1);
  font-size: 44px;
  opacity: .92;
}
.cover-big img{width:100%;height:100%;object-fit:cover;display:block}

.song-meta{
  font-size: 13px;
  margin-top: 10px;
  color: var(--muted);
}
.artist-link{
  color: var(--brand2);
  text-decoration: none;
}
.artist-link:hover{text-decoration: underline}
.dash{opacity:.55; margin: 0 6px}

.song-tools{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tool{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.60);
  color: var(--text);
  border-radius: 14px;
  padding: 9px 12px;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
body.theme-dark .tool{background: rgba(2,6,23,.25)}
.tool:hover{
  border-color: rgba(124,58,237,.24);
  background: rgba(124,58,237,.06);
  transform: translateY(-1px);
}
.tool:active{transform: translateY(0)}
.tool:focus-visible{outline:none; box-shadow: var(--focus)}

/* lyrics */
.lyrics-card{padding:0; overflow:hidden}
.lyrics-box{padding: 18px}
.lyrics-text{
  font-size: var(--lyrics-font, 16px);
  line-height: 1.72;
  word-break: break-word;
  white-space: normal;
}
.prose p{margin: 12px 0}

/* alphabet */
.alpha-block{margin-top: 12px}
.alpha-title{font-weight: 720; margin: 10px 0 10px}
.alpha{display:flex; flex-wrap:wrap; gap: 8px}
.alpha-link{
  min-width: 38px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.60);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
body.theme-dark .alpha-link{background: rgba(2,6,23,.25)}
.alpha-link:hover{
  border-color: rgba(6,182,212,.30);
  background: rgba(6,182,212,.08);
  transform: translateY(-1px);
}
.alpha-link.on{
  border-color: rgba(6,182,212,.45);
  background: rgba(6,182,212,.12);
}

/* artists grid */
.artist-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.artist-card{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.62);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
body.theme-dark .artist-card{background: rgba(2,6,23,.25)}
.artist-card:hover{
  border-color: rgba(124,58,237,.26);
  background: rgba(124,58,237,.06);
  transform: translateY(-1px);
}

/* chips */
.chips{display:flex; flex-wrap:wrap; gap: 10px; margin-top: 12px}
.chip{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.60);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
body.theme-dark .chip{background: rgba(2,6,23,.25)}
.chip:hover{
  border-color: rgba(6,182,212,.32);
  background: rgba(6,182,212,.08);
  transform: translateY(-1px);
}

/* pager + buttons */
.pager{display:flex; gap: 10px; margin-top: 16px; flex-wrap:wrap}
.btn, .mini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.62);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
body.theme-dark .btn, body.theme-dark .mini{background: rgba(2,6,23,.25)}
.btn:hover, .mini:hover{
  border-color: rgba(6,182,212,.30);
  background: rgba(6,182,212,.08);
  transform: translateY(-1px);
}
.btn:focus-visible, .mini:focus-visible{outline:none; box-shadow: var(--focus)}

/* footer */
.site-footer{
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(10px);
}
body.theme-dark .site-footer{background: rgba(11,16,32,.32)}
.footer-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 28px;
}
.foot-title{
  font-weight: 760;
  margin-bottom: 10px;
  letter-spacing: .1px;
}
.foot-col{display:flex; flex-direction:column; gap: 10px}
.foot-col a{
  color: var(--muted);
  padding: 6px 0;
  border-radius: 10px;
}
.foot-col a:hover{color: var(--text); text-decoration:none}

/* responsive */
@media (max-width: 980px){
  .header-grid{grid-template-columns: 1fr; gap: 10px}
  .topnav{justify-content:flex-start}
  .grid-2{grid-template-columns: 1fr}
  .song-grid{grid-template-columns: 1fr; }
  .cover-big{width: 120px; height: 120px}
  .artist-grid{grid-template-columns: 1fr 1fr}
}
@media (max-width: 560px){
  .wrap{padding: 14px 14px 42px}
  .search button{padding: 0 14px}
  .artist-grid{grid-template-columns: 1fr}
  .hero-title{font-size: 26px}
}

/* motion preferences */
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important; transition:none !important}
}
