/* ============================================================
   PLAYBUTTON MEDIA — SHARED DESIGN SYSTEM
   style.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #b3492f;
  --accent-hover: #8f3720;
  --accent-dim: rgba(179,73,47,0.08);
  --accent-mid: rgba(179,73,47,0.15);
  --bg: #82C8E5;
  --surface: #ffffff;
  --surface-2: #eaf4f8;
  --border: rgba(31,26,23,0.08);
  --border-mid: rgba(31,26,23,0.15);
  --ink: #14232d;
  --ink-70: rgba(20,35,45,0.7);
  --ink-60: rgba(20,35,45,0.6);
  --ink-55: rgba(20,35,45,0.55);
  --ink-50: rgba(20,35,45,0.5);
  --ink-40: rgba(20,35,45,0.4);
  --white: #ffffff;
  --sans: 'Urbanist', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* ── NAV ── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(130,200,229,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 1;
  max-width: 160px;
  overflow: hidden;
  transition: opacity 0.25s ease, max-width 0.25s ease;
}

/* Collapses width along with opacity so the hidden logo doesn't reserve
   trailing space — otherwise the links/status group would sit short of the
   true right edge until the logo fades back in on scroll. */
.nav__logo--hidden {
  opacity: 0;
  max-width: 0;
  pointer-events: none;
}

.nav__logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.nav__logo:hover { opacity: 0.85; }

.nav__links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-70);
  text-decoration: none;
  transition: color 0.15s;
}

.nav__link:hover,
.nav__link.active { color: var(--ink); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  padding: 9px 16px 9px 18px;
  text-decoration: none;
  transition: border-color 0.15s;
}

.nav__cta:hover { border-color: var(--ink); color: var(--ink); }

.nav__cta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  flex-shrink: 0;
}

/* ── MOBILE NAV TOGGLE ── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.2s;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  gap: 4px;
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-70);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.nav__mobile a:last-child { border-bottom: none; }

/* ── BUTTONS ── */
.btn-pri {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  background: var(--accent);
  color: var(--white);
  padding: 14px 26px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}

.btn-pri:hover { background: var(--accent-hover); color: var(--white); }

.btn-sec {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  background: var(--white);
  color: var(--ink);
  padding: 13px 25px;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.15s;
}

.btn-sec:hover { border-color: var(--ink); color: var(--ink); }

/* ── PAGE HERO ── */
.page-hero {
  padding: 56px 40px 40px;
  border-bottom: 1px solid var(--border);
}

.page-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Keeps text in the HTML source (readable by search/LLM crawlers) without
   rendering it on screen. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  max-width: 720px;
}

.page-h1 em {
  font-style: normal;
  color: var(--accent);
}

.page-sub {
  font-size: 16px;
  color: var(--ink-60);
  line-height: 1.7;
  max-width: 560px;
  font-weight: 500;
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-50);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── CARD BAR ── */
.card-bar {
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 18px;
}

/* ── FOOTER ── */
.footer {
  padding: 32px 40px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__left {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-60);
  text-decoration: none;
  transition: color 0.15s;
}

.footer__link:hover { color: var(--ink); }

.footer__copy {
  width: 100%;
  font-size: 12px;
  color: var(--ink-40);
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}

/* ── PERSISTENT PLAYER BAR (shared across every page) ── */
body { padding-bottom: 76px; }

.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 76px;
  background: var(--white); border-top: 1px solid var(--border-mid);
  display: flex; align-items: center; gap: 20px; padding: 0 32px;
  z-index: 200; transform: translateY(100%); transition: transform 0.3s ease;
}

.player-bar.visible { transform: translateY(0); }

.bar-track { display: flex; flex-direction: column; min-width: 180px; max-width: 220px; }

.bar-title {
  font-size: 13px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.bar-album {
  font-size: 11px; color: var(--ink-50); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.bar-controls { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.cbtn {
  background: none; border: none; cursor: pointer; padding: 6px;
  display: flex; align-items: center; justify-content: center; transition: opacity 0.15s;
}

.cbtn:hover { opacity: 0.65; }
.cbtn svg { width: 16px; height: 16px; fill: var(--ink-60); }
.cbtn.pp svg { width: 20px; height: 20px; fill: var(--ink); }

.bar-progress { flex: 1; display: flex; align-items: center; gap: 10px; }

.ttime { font-size: 11px; color: var(--ink-40); min-width: 34px; text-align: center; }

.prog-track {
  flex: 1; height: 4px; background: var(--border-mid); border-radius: 2px;
  cursor: pointer; position: relative;
}

.prog-fill {
  height: 100%; background: var(--accent); border-radius: 2px;
  width: 0%; pointer-events: none;
}

.bar-vol { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.vol-sl {
  width: 72px; height: 4px; -webkit-appearance: none; appearance: none;
  background: var(--border-mid); border-radius: 2px; cursor: pointer; outline: none;
}

.vol-sl::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); cursor: pointer;
}

.bar-req {
  font-size: 11px; font-weight: 700; color: var(--white);
  text-decoration: none; background: var(--accent);
  border-radius: 999px; padding: 9px 16px; transition: background 0.15s;
  white-space: nowrap; flex-shrink: 0; border: none; cursor: pointer; font-family: var(--sans);
}

.bar-req:hover { background: var(--accent-hover); }

.bar-close {
  background: none; border: none; cursor: pointer; font-family: var(--sans);
  font-size: 14px; font-weight: 700; color: var(--ink-40); flex-shrink: 0; padding: 4px;
}

.bar-close:hover { color: var(--ink); }

/* ── SHARED MODALS (player license-request modal, and any page-specific modals reusing these base classes) ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(20,35,45,0.55); z-index: 400; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.visible { display: flex; }
.modal-box { background: var(--white); border-radius: 16px; max-width: 480px; width: 100%; padding: 36px; position: relative; }
.modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  color: var(--ink-40); font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--sans);
}
.modal-close:hover { color: var(--ink); }
.modal-tag { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.modal-title { font-size: 17px; font-weight: 800; margin-bottom: 26px; line-height: 1.3; padding-right: 30px; }
.modal-form { display: flex; flex-direction: column; gap: 13px; }
.modal-form input, .modal-form textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-mid);
  border-radius: 10px; padding: 11px 14px; color: var(--ink); font-family: var(--sans); font-size: 14px; outline: none;
}
.modal-form textarea { resize: vertical; line-height: 1.6; }
.modal-submit {
  background: var(--accent); border: none; color: var(--white); border-radius: 999px;
  padding: 13px 24px; font-family: var(--sans); font-size: 14px; font-weight: 700; cursor: pointer; margin-top: 6px;
}
.modal-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.modal-success { text-align: center; padding: 20px 0; }
.modal-success__icon { font-size: 24px; color: var(--accent); margin-bottom: 14px; }
.modal-success__title { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.modal-success__body { font-size: 13px; color: var(--ink-60); line-height: 1.65; margin-bottom: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .page-hero { padding: 40px 24px 32px; }
  .page-h1 { font-size: 32px; }
  .footer { padding: 24px 24px 20px; flex-direction: column; align-items: flex-start; }
  .player-bar { padding: 0 16px; gap: 12px; }
  .bar-track { min-width: 100px; max-width: 130px; }
  .bar-progress { display: none; }
  .bar-vol { display: none; }
}
