/* MCM54 static track profiles and directory. */
:root {
  --bg-deep: #050607;
  --bg-card: #0b0e13;
  --bg-card-h: #11161d;
  --accent: #c8922a;
  --accent-dim: #7a5518;
  --accent-glow: rgba(200, 146, 42, 0.22);
  --text-hi: #e8edf0;
  --text-mid: #bbc0c5;
  --text-dim: #9ca2a9;
  --border: rgba(143, 183, 214, 0.10);
  --border-card: rgba(200, 146, 42, 0.24);
  --radius: 8px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-ui: Inter, "Noto Sans Hebrew", system-ui, -apple-system, sans-serif;
  --shadow-deep: rgba(0, 0, 0, 0.58);
  --content-width: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--text-hi);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

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

.tp-breadcrumbs {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 20px 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.tp-breadcrumbs a { color: var(--text-mid); text-decoration: none; }
.tp-breadcrumbs a:hover { color: var(--accent); }
.tp-breadcrumbs .sep { margin: 0 6px; color: var(--border-card); }

.tp-hero {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 20px 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
}
.tp-hero-art {
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  border: 1px solid var(--border-card);
  object-fit: cover;
  background: var(--bg-card);
  box-shadow: 0 10px 30px var(--shadow-deep);
}
.tp-track-id { font-size: 0.72rem; letter-spacing: 0.08em; color: #c8a26d; text-transform: uppercase; }
.tp-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2;
  margin: 4px 0 8px;
  color: var(--text-hi);
}
.tp-subtitle { color: var(--text-mid); font-size: 1rem; margin: 0 0 14px; max-width: 60ch; }

.tp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tp-btn {
  font-family: var(--font-ui);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 0.88rem;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-hi);
  cursor: pointer;
}
.tp-btn:hover { border-color: var(--accent-dim); background: var(--bg-card-h); }
.tp-btn-primary { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); font-weight: 600; }
.tp-btn-primary:hover { background: var(--accent-dim); }
.tp-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.tp-btn.is-loading::after { content: " …"; }

.tp-section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 28px 20px 0;
}
.tp-section h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  margin: 0 0 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.tp-body-copy { color: var(--text-mid); line-height: 1.65; font-size: 0.98rem; }
.tp-list { margin: 8px 0 0; padding-left: 1.2em; color: var(--text-mid); line-height: 1.6; }
.tp-list.tp-negative li { color: var(--text-dim); }
.tp-list.tp-negative li::marker { color: var(--accent-dim); }

.tp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tp-chip {
  font-size: 0.76rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-card);
  color: var(--text-mid);
  background: var(--bg-card);
}

.tp-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.tp-meta-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.tp-meta-label { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.tp-meta-value { font-size: 0.92rem; color: var(--text-hi); margin-top: 2px; }

.tp-wav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.tp-wav-take { font-weight: 600; color: var(--text-hi); }
.tp-wav-unavailable { color: var(--text-dim); font-style: italic; font-size: 0.85rem; }

.tp-license-box {
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 10px;
  background: var(--bg-card);
}
.tp-credit-code {
  display: inline-block;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.85rem;
  color: var(--accent);
}

.tp-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 10px; }
.tp-related-card {
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--bg-card);
  text-decoration: none;
  display: block;
}
.tp-related-card:hover { background: var(--bg-card-h); }
.tp-related-title { color: var(--text-hi); font-weight: 600; font-size: 0.92rem; }
.tp-related-reason { color: var(--text-dim); font-size: 0.76rem; margin-top: 4px; }

.tp-footer-nav { max-width: var(--content-width); margin: 0 auto; padding: 30px 20px 60px; }
.tp-footer-nav a { color: var(--text-mid); text-decoration: none; font-size: 0.88rem; }
.tp-footer-nav a:hover { color: var(--accent); }

.tp-audio { width: 100%; margin-top: 4px; }

[hidden] { display: none !important; }
a, button, input, select, summary { -webkit-tap-highlight-color: rgba(200,146,42,.2); }
:focus-visible { outline: 2px solid #ddb978; outline-offset: 4px; }
.tp-btn { text-decoration: none; min-height: 44px; }
.tp-wav-row audio { width: 100%; max-width: 420px; height: 42px; color-scheme: dark; }
.tp-directory { max-width: 1100px; margin: 32px auto; padding: 0 24px; }
.tp-directory-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 36px; }
.tp-directory-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 8px; padding: 24px; }
.tp-directory-card h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; line-height: 1.3; }
.tp-directory-card h2 a { color: var(--text-hi); text-decoration: none; }
.tp-directory-card p, .tp-directory>.license-p, .tp-directory>.license-summary, .tp-directory>.license-list { color: var(--text-mid); line-height: 1.7; }
.tp-directory .inst-section-label { color: #d4ad71; font-weight: 600; margin-top: 32px; }
.tp-editorial { margin: 12px 0; border: 1px solid var(--border-card); border-radius: 8px; padding: 0 18px; background: var(--bg-card); }
.tp-editorial summary { cursor: pointer; min-height: 52px; padding: 16px 0; color: var(--text-hi); }
.tp-editorial p, .tp-editorial li { font-size: .96rem; line-height: 1.75; color: var(--text-mid); overflow-wrap: anywhere; }
.tp-editorial-fields { margin: 0; }
.tp-editorial-fields>div { margin: 0 0 22px; }
.tp-editorial-fields dt { font-size: .82rem; color: #d4ad71; margin-top: 16px; }
.tp-editorial-fields dd { margin: 0; }
.tp-editorial-fields p { margin: 8px 0; }
.tp-editorial-fields dd dl { padding-left: 14px; border-left: 1px solid var(--border); }
.tp-directory, .tp-section, .tp-hero, .tp-breadcrumbs { overflow-wrap: anywhere; }
@media (max-width: 640px) { .tp-directory-grid { grid-template-columns: 1fr; } .tp-directory { padding: 0 16px; } }

/* Tablet */
@media (max-width: 900px) {
  .tp-hero { grid-template-columns: 120px 1fr; gap: 16px; }
  .tp-hero-art { width: 120px; height: 120px; }
}

/* Mobile: single-column, art does not consume the viewport, title/moment first */
@media (max-width: 640px) {
  .tp-hero { grid-template-columns: 1fr; }
  .tp-hero-art { width: 96px; height: 96px; }
  .tp-actions .tp-btn { flex: 1 1 auto; min-height: 44px; }
  .tp-section { padding-left: 16px; padding-right: 16px; }
  .tp-breadcrumbs { padding-left: 16px; padding-right: 16px; }
}
