/* Website layer: top navigation, wider desktop layouts, and the landing page. Phones keep the app layout. */

/* ---------- Top bar ---------- */
.topbar { display: none; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: .5px solid var(--divider); }
body[data-mode="landing"] .topbar { display: block; }
.topbar__in { max-width: 1120px; margin: 0 auto; padding: 0 var(--screen); height: 64px; display: flex; align-items: center; gap: 12px; }
.topbar__brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; margin-inline-end: 20px; }
.topbar__brand img { border-radius: 24%; }
.topbar__nav { display: flex; gap: 4px; }
.topbar__nav a, .topbar__nav button { padding: 8px 14px; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--text-2); transition: background .15s, color .15s; }
.topbar__nav a:hover, .topbar__nav button:hover { background: var(--tint); color: var(--text); }
.topbar__nav a[aria-current="page"] { color: var(--accent); }
.topbar__badge { margin-inline-start: 6px; min-width: 20px; padding: 0 6px; height: 20px; display: inline-block; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.topbar__nav--land { display: none; }
.cta { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: var(--r-btn); background: var(--accent); color: #fff; font-size: 18px; font-weight: 700; transition: transform .2s var(--spring); }
.cta:hover { transform: translateY(-2px); } .cta:active { transform: scale(.97); }
.cta--small { height: 40px; padding: 0 18px; font-size: 16px; }
.ghost { height: 52px; padding: 0 22px; border-radius: var(--r-btn); border: 1px solid var(--divider); font-size: 17px; font-weight: 600; }
.ghost:hover { background: var(--tint); }

/* ---------- Desktop: the app screens become website pages ---------- */
@media (min-width: 860px) {
  body[data-mode="app"] .topbar { display: block; }
  .tabbar { display: none !important; }
  .has-tabs #view { padding-bottom: 56px; }
  .topbar__nav--land { display: flex; }
  /* brand, language and account live in the top bar now */
  body[data-mode="app"] .brand-row .brand, body[data-mode="app"] .brand-row .lang-btn,
  body[data-mode="app"] .brand-row .icon-btn[data-act="open-account"], body[data-mode="app"] .onboarding__lang { display: none; }
  body[data-mode="app"] .brand-row { justify-content: flex-end; min-height: 0; }
  body[data-mode="app"] .screen-header { padding-top: 32px; }
  body[data-mode="app"] .screen-header h1 { margin-top: 0; font-size: 44px; }
  #view[data-screen="home"], #view[data-screen="saved"] { max-width: 1040px; }
  #view[data-screen="discover"], #view[data-screen="detail"] { max-width: 760px; }
  #view[data-screen="discover"] .screen-header, #view[data-screen="discover"] .offline { max-width: 480px; margin-inline: auto; }
  #view[data-screen="landing"] { max-width: none; padding: 0; }
  .cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0 24px; align-items: start; }
  .cols .section { margin-top: 24px; }
  .cols .rows { margin-inline: var(--screen); }
  .hero { margin-top: 28px; padding: 28px; } .hero__n b { font-size: 64px; line-height: 68px; } .hero h2 { font-size: 28px; }
  .tiles { flex-wrap: wrap; overflow: visible; }
  .detail { padding-bottom: 32px; }
  .footer-bar { position: static; background: none; padding: 0 var(--screen) 64px; }
  .footer-bar > * { max-width: 760px; }
  .deck-wrap { height: clamp(460px, calc(100dvh - 380px), 600px); }
  .toast { bottom: 32px; }
  dialog { margin: auto; border-radius: 24px; }
}
.cols { display: block; } @media (min-width: 860px) { .cols { display: grid; } }

/* ---------- Discover on the website: browse workspace ---------- */
.round { gap: 8px; }
.round__label, .round kbd { display: none; }
kbd { font: 600 12px/1 var(--font); min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--divider); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--text-2); }
.queue { display: none; }
@media (min-width: 960px) {
  #view[data-screen="discover"] { max-width: 1100px; }
  #view[data-screen="discover"] .screen-header, #view[data-screen="discover"] .offline { max-width: none; margin-inline: 0; }
  .browse { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 48px; padding: 0 var(--screen); align-items: start; }
  .browse .deck-wrap { padding: 0; margin: 8px 0 24px; height: clamp(470px, calc(100dvh - 400px), 620px); max-width: none; }
  .browse .actions { flex-wrap: wrap; gap: 10px; padding-bottom: 0; justify-content: flex-start; }
  .browse .round, .browse .round--big { width: auto; height: 52px; padding: 0 14px; border-radius: 14px; font-weight: 600; font-size: 16px; }
  .browse .round--accent { padding: 0 22px; }
  .browse .round__label, .browse .round kbd { display: inline-flex; }
  .browse .round--accent kbd { background: color-mix(in srgb, #fff 20%, transparent); border-color: color-mix(in srgb, #fff 40%, transparent); color: #fff; }
  .browse .round .ion { font-size: 22px !important; }
  .queue { display: block; padding-top: 8px; }
  .queue__title { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-2); margin: 0 0 12px; }
  .queue__title + .queue__list + .queue__title { margin-top: 36px; }
  .queue__list { list-style: none; margin: 0 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .queue__item { width: 100%; text-align: start; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--divider); transition: transform .2s var(--spring), border-color .15s; }
  .queue__item:hover { transform: translateX(4px); border-color: var(--text-2); } [dir="rtl"] .queue__item:hover { transform: translateX(-4px); }
  .queue__type { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
  .queue__item b { font-size: 17px; line-height: 1.25; } .queue__item small { color: var(--text-2); font-size: 14px; }
  .keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
  .keys li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 15px; }
}

/* ---------- Detail on the website: sticky side panel instead of the phone's bottom bar ---------- */
.side-actions { display: none; }
@media (min-width: 960px) {
  #view[data-screen="detail"] { max-width: 1080px; }
  .detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 56px; align-items: start; padding-bottom: 56px; }
  .detail > * { grid-column: 1; }
  .detail > .detail__aside { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 88px; }
  .detail__aside .panel { margin-top: 0; }
  .side-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
  .side-actions__row { display: flex; gap: 10px; } .side-actions .btn { background: var(--surface); } .side-actions__row .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
  .footer-bar { display: none; }
  .detail .cover { height: 260px; }
}

.foryou-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px var(--screen) 0; }
