/* =====================================================================
   Bublinky — veřejný web. Moderní, prémiový, Apple-like (tmavý motiv).
   ===================================================================== */

:root {
  --bg: #000000;
  --bg-2: #0b0b0d;
  --surface: rgba(255,255,255,.06);
  --surface-2: rgba(255,255,255,.09);
  --line: rgba(255,255,255,.10);
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --muted-2: #6e6e73;
  --accent: #2997ff;
  --accent-2: #64d2ff;
  --grad: linear-gradient(135deg, #2997ff 0%, #bf5af2 55%, #ff375f 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --player-h: 84px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--player-h) + 30px);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Top navigace ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,10,12,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  height: 56px; display: flex; align-items: center; gap: 22px;
}
.site-header .logo {
  display: flex; align-items: center; gap: 10px; font-weight: 700;
  font-size: 19px; letter-spacing: -.02em;
}
.site-header .logo .dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--grad);
}
.site-header nav { display: flex; gap: 6px; margin-left: auto; }
.site-header nav a {
  color: var(--muted); padding: 7px 14px; border-radius: 980px;
  font-size: 14px; font-weight: 500; transition: color .15s, background .15s;
}
.site-header nav a:hover { color: var(--ink); background: var(--surface); }

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center; padding: 92px 22px 72px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 600px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(41,151,255,.32), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(191,90,242,.25), transparent 70%),
              radial-gradient(40% 40% at 15% 15%, rgba(255,55,95,.18), transparent 70%);
  filter: blur(10px); z-index: 0; pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(40px, 7vw, 80px); font-weight: 700; letter-spacing: -.03em;
  margin: 0 0 14px; line-height: 1.02;
  background: linear-gradient(180deg, #fff, #c9c9ce);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: clamp(17px, 2.4vw, 22px); color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ---------- Sekce ---------- */
.section { padding: 46px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.section-head h2 { font-size: 28px; letter-spacing: -.02em; margin: 0; }
.section-head a { color: var(--accent); font-size: 15px; }
.section-head a:hover { text-decoration: underline; }

/* ---------- Karty (mřížka) ---------- */
.card-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s cubic-bezier(.2,.7,.2,1), background .2s;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card .cover {
  aspect-ratio: 1/1; background: #1c1c1e center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; font-size: 46px; color: #3a3a3c;
  position: relative;
}
.card .cover .play-badge {
  position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px;
  border-radius: 50%; background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px;
  opacity: 0; transform: translateY(8px); transition: .2s; border: 1px solid rgba(255,255,255,.2);
}
.card:hover .play-badge { opacity: 1; transform: none; }
.card .cap { padding: 14px 16px 18px; }
.card .cap h3 { margin: 0 0 3px; font-size: 16px; letter-spacing: -.01em; }
.card .cap .sub { color: var(--muted); font-size: 13px; }

.card.round .cover { border-radius: 50%; margin: 18px; aspect-ratio: 1/1; }

/* ---------- Detail (album / kapela hlavička) ---------- */
.detail-hero { display: flex; gap: 30px; align-items: flex-end; padding: 40px 0 30px; flex-wrap: wrap; }
.detail-hero .art {
  width: 230px; height: 230px; flex: 0 0 auto; border-radius: var(--radius);
  background: #1c1c1e center/cover no-repeat; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; font-size: 64px; color:#3a3a3c;
}
.detail-hero .art.round { border-radius: 50%; }
.detail-hero .info { min-width: 260px; flex: 1; }
.detail-hero .eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 600; }
.detail-hero h1 { font-size: clamp(30px, 5vw, 52px); letter-spacing: -.03em; margin: 8px 0 12px; line-height: 1.04; }
.detail-hero .desc { color: var(--muted); max-width: 640px; }
.detail-hero .actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  border: none; font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 11px 22px; border-radius: 980px; background: var(--grad); color: #fff;
  transition: transform .08s ease, opacity .15s ease, background .2s;
}
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.97); }
.btn.secondary { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover { background: rgba(255,255,255,.14); }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn .ic { font-size: 14px; }

/* ---------- Seznam skladeb ---------- */
.track-list { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.track-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line); transition: background .15s;
}
.track-row:last-child { border-bottom: none; }
.track-row:hover { background: var(--surface-2); }
.track-row.playing { background: rgba(41,151,255,.14); }
.track-row .idx { width: 26px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.track-row .play-btn {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center; transition: .15s;
}
.track-row .play-btn:hover { background: var(--accent); border-color: var(--accent); }
.track-row .tcover { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background:#1c1c1e; flex:0 0 auto; }
.track-row .tmain { flex: 1; min-width: 0; }
.track-row .tmain .tt { font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-row .tmain .ts { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-row .tdur { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.track-row .trow-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; transition: .15s; text-decoration:none;
}
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }

/* ---------- Texty (lyrics) ---------- */
.lyrics-block { white-space: pre-wrap; line-height: 1.8; color: #e8e8ed; font-size: 17px; }
.prose { color: var(--muted); line-height: 1.7; max-width: 720px; }
.prose.light { color: #e8e8ed; }

/* ---------- Modal pro text ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 22px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #161618; border: 1px solid var(--line); border-radius: var(--radius);
  max-width: 560px; width: 100%; max-height: 80vh; overflow: auto; padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.modal h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.modal .msub { color: var(--muted); margin-bottom: 18px; font-size: 14px; }
.modal .close { float: right; }

/* ---------- Přehrávač (fixní lišta dole) ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: var(--player-h);
  background: rgba(18,18,20,.86);
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.player.active { transform: none; }
.player .pwrap {
  max-width: var(--maxw); margin: 0 auto; height: 100%; padding: 0 22px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
}
.player .now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player .now img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; background:#1c1c1e; }
.player .now .meta { min-width: 0; }
.player .now .meta .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .now .meta .s { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player .center { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(520px, 46vw); }
.player .controls { display: flex; align-items: center; gap: 8px; }
.player .controls button {
  background: transparent; border: none; color: var(--ink); cursor: pointer; font-size: 18px;
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.player .controls button:hover { background: var(--surface-2); }
.player .controls .pp {
  background: #fff; color: #000; width: 42px; height: 42px; font-size: 17px;
}
.player .controls .pp:hover { opacity: .9; }
.player .seekrow { display: flex; align-items: center; gap: 10px; width: 100%; }
.player .seekrow .time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 38px; text-align: center; }

.range {
  -webkit-appearance: none; appearance: none; height: 5px; border-radius: 5px; width: 100%;
  background: rgba(255,255,255,.18); cursor: pointer; outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.range::-moz-range-thumb { width: 13px; height: 13px; border: none; border-radius: 50%; background: #fff; }

.player .right { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.player .right .vol { width: 90px; }
.player .right .dl { color: var(--muted); }

/* ---------- Patička ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted-2); font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- Drobné ---------- */
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state .big { font-size: 50px; margin-bottom: 12px; }
.crumbs { color: var(--muted); font-size: 14px; padding: 18px 0 0; }
.crumbs a:hover { color: var(--ink); }
.tag { display:inline-block; padding:3px 10px; border:1px solid var(--line); border-radius:980px; font-size:12px; color:var(--muted); }

@media (max-width: 760px) {
  .player .right .vol { display: none; }
  .player .pwrap { grid-template-columns: 1fr auto; }
  .player .right { display: none; }
  .player .center { width: 52vw; }
  .detail-hero .art { width: 160px; height: 160px; font-size: 46px; }
  .site-header nav a { padding: 7px 10px; }
}
@media (max-width: 480px) {
  .player .center { width: 46vw; }
  .player .now .meta .s { display:none; }
}
