/* DueLittle Records: store layout on top of Vaughn's hand-drawn kit (hand-drawn.css + robot.css). */
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--hd-ink); font-family: var(--hd-hand); font-size: 20px;
  background-color: var(--hd-paper);
  background-image: radial-gradient(rgba(106, 92, 255, .13) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  padding-bottom: 110px; /* room for the player bar */
}
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }

/* top nav */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 20px; background: rgba(254, 254, 254, .92); border-bottom: var(--hd-border);
}
.logo { font-size: 32px; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 8px; transform: rotate(-2deg); }
.logo .note { display: inline-block; background: var(--hd-star); border: var(--hd-border); border-radius: 50%; width: 42px; height: 42px; text-align: center; line-height: 36px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 4px 14px; border: 3px solid transparent; border-radius: var(--hd-radius); font-size: 22px; }
.nav a:hover { border-color: var(--hd-ink); }
.nav a.active { background: var(--hd-lavender); border-color: var(--hd-ink); box-shadow: 3px 3px 0 var(--hd-ink); }

main { max-width: 1080px; margin: 0 auto; padding: 24px 18px; }
.wavy {
  display: inline-block; padding-bottom: 8px; transform: rotate(-.8deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='9' viewBox='0 0 48 9'%3E%3Cpath d='M1 5 Q 7 1, 13 5 T 25 5 T 37 5 T 49 5' fill='none' stroke='%23111111' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: 0 100%; background-size: 48px 9px;
}
.section { margin: 34px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.muted { color: #555; }
.small { font-size: 17px; }

/* hero */
.hero {
  border: var(--hd-border); border-radius: var(--hd-radius); box-shadow: var(--hd-shadow);
  background: linear-gradient(135deg, rgba(234, 255, 138, .7), rgba(216, 211, 245, .8));
  padding: 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.hero h1 { font-size: clamp(38px, 7vw, 64px); transform: rotate(-1deg); }

/* cards + grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.card {
  background: #fff; border: var(--hd-border); border-radius: var(--hd-radius); box-shadow: var(--hd-shadow);
  padding: 12px; text-decoration: none; display: block; transition: transform .15s;
}
.card:nth-child(3n+1) { transform: rotate(-.6deg); }
.card:nth-child(3n+2) { transform: rotate(.5deg); }
.card:hover { transform: translateY(-4px) rotate(-1deg); }
.cover {
  aspect-ratio: 1; border: var(--hd-border); border-radius: 10px 14px 9px 16px; position: relative;
  display: grid; place-items: center; font-size: 54px; overflow: hidden;
}
.card .title { font-size: 23px; font-weight: 700; margin-top: 8px; }
.card .sub { font-size: 18px; color: #555; }
.play-dot {
  position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--hd-star); border: var(--hd-border); box-shadow: 2px 2px 0 var(--hd-ink);
  font-size: 20px; cursor: pointer; display: grid; place-items: center; font-family: inherit;
}
.play-dot:active { box-shadow: var(--hd-shadow-press); transform: translate(2px, 2px); }

/* track list */
.tracks { list-style: none; padding: 0; margin: 0; }
.track {
  display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px;
  padding: 8px 12px; margin: 6px 0; border: 3px solid transparent; border-radius: var(--hd-radius); cursor: pointer;
}
.track:hover { border-color: var(--hd-ink); background: #fff; }
.track.playing { background: var(--hd-star); border-color: var(--hd-ink); box-shadow: 3px 3px 0 var(--hd-ink); }
.track .n { text-align: center; font-weight: 700; }
.track .name { font-weight: 700; font-size: 22px; }
.track .by { font-size: 17px; color: #555; }
.icon-btn { background: none; border: none; font: inherit; font-size: 24px; cursor: pointer; padding: 2px 6px; }
.liked { color: #e0479e; }

/* album header */
.album-head { display: flex; gap: 26px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.album-head .cover { width: 230px; font-size: 90px; box-shadow: var(--hd-shadow); }
.album-head h1 { font-size: clamp(40px, 7vw, 66px); }

/* search */
.search-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search-row .hd-input { flex: 1; min-width: 220px; font-size: 24px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.chip { font: inherit; font-size: 20px; padding: 4px 16px; border: var(--hd-border); border-radius: var(--hd-radius); background: #fff; cursor: pointer; }
.chip.on { background: var(--hd-lavender); box-shadow: 3px 3px 0 var(--hd-ink); }

/* now playing */
.np { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.np .cover { font-size: 120px; box-shadow: var(--hd-shadow); }
.np .cover.spin { animation: wob 3s ease-in-out infinite; }
@keyframes wob { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) scale(1.02); } }
canvas.viz { width: 100%; height: 120px; border: var(--hd-border); border-radius: var(--hd-radius); background: #fff; margin-top: 18px; }
.big-controls { display: flex; gap: 16px; align-items: center; margin: 18px 0; }
.big-controls .hd-btn { font-size: 30px; min-width: 64px; }

/* player bar */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: var(--hd-border);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, .6fr); align-items: center; gap: 14px;
  padding: 10px 16px; min-height: 92px;
}
.player .now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player .mini { width: 58px; height: 58px; flex: none; font-size: 28px; }
.player .now-text { min-width: 0; }
.player .now-title { font-weight: 700; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .controls { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.player .btns { display: flex; gap: 10px; align-items: center; }
.player .pp { width: 52px; height: 52px; border-radius: 50%; background: var(--hd-star); border: var(--hd-border); box-shadow: 3px 3px 0 var(--hd-ink); font-size: 24px; cursor: pointer; font-family: inherit; }
.player .pp:active { box-shadow: var(--hd-shadow-press); transform: translate(2px, 2px); }
.bar { width: 100%; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.track-line { flex: 1; height: 10px; border: 2px solid var(--hd-ink); border-radius: 8px; background: #fff; cursor: pointer; overflow: hidden; }
.track-line > i { display: block; height: 100%; width: 0; background: var(--hd-lavender-dark); }
.player .right { display: flex; justify-content: flex-end; }

/* playlists */
.two-col { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.pl-list { list-style: none; padding: 0; margin: 0; }
.pl-list button { width: 100%; text-align: left; font: inherit; font-size: 22px; padding: 8px 12px; margin: 6px 0; background: #fff; border: var(--hd-border); border-radius: var(--hd-radius); cursor: pointer; }
.pl-list button.on { background: var(--hd-lavender); box-shadow: 3px 3px 0 var(--hd-ink); }
.empty { padding: 24px; text-align: center; border: 3px dashed var(--hd-ink); border-radius: var(--hd-radius); color: #555; }
select.hd-input { font-size: 18px; padding: 2px 6px; }

/* store */
.badge { display: inline-block; min-width: 26px; padding: 0 6px; margin-left: 4px; border: 2px solid var(--hd-ink); border-radius: 12px; background: var(--hd-star); font-size: 18px; text-align: center; }
.card { position: relative; }
.tag { position: absolute; top: -12px; left: 10px; z-index: 2; background: #ffd0e4; border: var(--hd-border); border-radius: var(--hd-radius); padding: 0 10px; font-size: 18px; font-weight: 700; transform: rotate(-3deg); }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.price { font-size: 24px; font-weight: 700; white-space: nowrap; }
.fmt-icons { font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.hd-btn.small, a.hd-btn.small { font-size: 18px; padding: 2px 12px; }
.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) rotate(-1deg); background: var(--hd-star); border: var(--hd-border); border-radius: var(--hd-radius); box-shadow: 3px 3px 0 var(--hd-ink); padding: 6px 18px; z-index: 50; font-size: 22px; }

/* robots as artists */
.bot-wrap { position: relative; display: inline-block; }
.bot-instrument { position: absolute; right: -30px; bottom: 60px; font-size: 90px; transform: rotate(12deg); filter: drop-shadow(3px 3px 0 rgba(0,0,0,.25)); }
.artist-card { text-align: center; }
.artist-card .stage { height: 190px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-bottom: 3px dashed var(--hd-ink); margin-bottom: 6px; }
.band { display: flex; gap: 10px; align-items: flex-end; justify-content: center; flex-wrap: wrap; min-height: 200px; }

/* product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 34px; align-items: start; }
.product .cover.big { font-size: 130px; box-shadow: var(--hd-shadow); }
.formats { display: grid; gap: 10px; margin: 16px 0; }
.fmt { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: #fff; border: var(--hd-border); border-radius: var(--hd-radius); cursor: pointer; font: inherit; text-align: left; }
.fmt.on { background: var(--hd-lavender); box-shadow: 4px 4px 0 var(--hd-ink); }
.fmt .ico { font-size: 34px; }
.fmt .fp { margin-left: auto; font-size: 26px; font-weight: 700; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 36px; height: 36px; border: var(--hd-border); border-radius: 50%; background: #fff; font: inherit; font-size: 22px; cursor: pointer; line-height: 1; }

/* cart + checkout */
.cart-line { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 14px; align-items: center; padding: 10px; margin: 10px 0; background: #fff; border: var(--hd-border); border-radius: var(--hd-radius); }
.cart-line .cover { width: 70px; font-size: 32px; }
.summary { background: #fff; border: var(--hd-border); border-radius: var(--hd-radius); box-shadow: var(--hd-shadow); padding: 18px; }
.summary .row { display: flex; justify-content: space-between; margin: 6px 0; }
.summary .total { font-size: 30px; font-weight: 700; border-top: 3px dashed var(--hd-ink); padding-top: 8px; }
.field { display: block; margin: 10px 0; }
.field .hd-input { width: 100%; font-size: 22px; }

@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 56px 1fr; }

  .np, .two-col { grid-template-columns: 1fr; }
  .player { grid-template-columns: 1fr auto; }
  .player .right, .player .bar { display: none; }
  .album-head .cover { width: 160px; }
}

/* DueLittle brand */
.logo-img { width: 46px; height: 46px; border-radius: 50%; border: var(--hd-border); object-fit: cover; background: #fff; }
.single { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: center; }
.single img { width: 100%; border: var(--hd-border); border-radius: var(--hd-radius); box-shadow: var(--hd-shadow); }
.single audio { width: 100%; margin-top: 12px; }
.crew { width: 100%; border: var(--hd-border); border-radius: var(--hd-radius); box-shadow: var(--hd-shadow); display: block; }
.ai-note { font-size: 17px; color: #555; }
@media (max-width: 760px) { .single { grid-template-columns: 1fr; } }
