/* DEDIO -- public server pages (share page, link limits, legal pages, 404). Same look as the app: light surfaces, one blue,
   one coral accent, Manrope. Mobile first; right-to-left languages mirror through dir="rtl". */
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Variable.946beb949095.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
:root { color-scheme: light; --bg: #f4f7fc; --paper: #fff; --ink: #182345; --text2: #3b4666; --muted: #6e7893; --line: #e7ebf4; --blue: #4162ef; --blue-d: #2c48cc;
  --coral: #ff7767; --soft: #edf1ff; --shadow: 0 12px 19px rgba(37, 54, 108, .06); }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body { font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", sans-serif; font-size: 16px; line-height: 1.5; min-height: 100vh; }
.wrap { max-width: 480px; margin: 0 auto; padding: 18px 16px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; margin: 6px 0 22px; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand b { font-weight: 800; font-size: 25px; letter-spacing: -1.1px; line-height: 1; }
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: .2px; margin-top: 2px; text-align: start; }
.card { width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 22px 18px; }
.cover { width: min(70vw, 280px); aspect-ratio: 1 / 1; border-radius: 22px; object-fit: cover; background: var(--soft); box-shadow: var(--shadow); }
.cover.empty { display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.cover.empty svg { width: 40%; height: 40%; }
h1 { font-weight: 800; font-size: 30px; line-height: 1.15; letter-spacing: -.8px; margin: 22px 0 6px; color: var(--ink); text-wrap: balance; }
.song { font-size: 17px; font-weight: 700; margin: 4px 0 0; }
.artist { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
.from { margin: 14px 0 0; font-size: 15px; color: var(--text2); }
.from b { color: var(--blue); }
.player { width: 100%; margin: 22px 0 8px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.player audio { display: none; }
.seek { display: flex; align-items: center; gap: 10px; }
.seek input { flex: 1; accent-color: var(--blue); min-height: 32px; }
.seek span { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; min-width: 84px; text-align: end; }
.play { appearance: none; border: 0; cursor: pointer; width: 100%; min-height: 52px; padding: 14px 18px; border-radius: 14px; margin-bottom: 12px; background: var(--blue); color: #fff;
  font: 800 17px/1 "Manrope", system-ui, sans-serif; }
.play:hover { background: var(--blue-d); }
.note { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 22px; padding: 14px 18px; border-radius: 14px; background: var(--soft); color: var(--blue);
  text-decoration: none; font-weight: 800; font-size: 16px; }
.cta:active, .play:active { transform: translateY(1px); }
.box { width: 100%; margin-top: 22px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.big { width: 64px; height: 64px; margin: 8px auto 0; }
.hero { width: 100%; border-radius: 22px; margin-top: 26px; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.foot { margin-top: 30px; color: var(--muted); font-size: 12.5px; }
*:focus-visible { outline: 3px solid #8ea3ff; outline-offset: 3px; }
/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 24px max(18px, env(safe-area-inset-left)) 56px; text-align: start; font-size: 16px; line-height: 1.65; color: var(--text2); }
.legal .brand { margin: 0 0 14px; }
.legal h1 { font-size: clamp(28px, 6vw, 40px); margin: 22px 0 6px; }
.legal .date { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.legal h2 { color: var(--blue); font-size: 19px; margin: 34px 0 8px; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-inline-start: 20px; } .legal li { margin: 6px 0; }
.legal strong { color: var(--ink); } .legal a { color: var(--blue); }
.legal .notice { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--ink); font-size: 14.5px; margin: 4px 0 8px; }
.legal .notice p { margin: 0; } .legal .notice p + p { margin-top: 4px; }
.legal footer { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 18px; font-size: 14px; color: var(--muted); }
.legal footer a { display: inline-block; padding: 12px 4px; min-height: 44px; }
.legal .en h2 { margin-top: 34px; }
