/* ============================================================
   ithageneia.gr — Audio Player (ηχητικά θέματα)     namespace: .ithp-*
   Σερβίρεται αυτόματα από το plugin local_ithassets (v1.6+).
   Mobile-first, ίδια παλέτα με το Video Hub (ithv-).
   ============================================================ */
.ithp {
  --ithp-blue: #1b4f8c;
  --ithp-blue-d: #17324f;
  --ithp-blue-l: #2e6fb7;
  --ithp-bg: #eef4fb;
  --ithp-line: #d7e2ef;
  --ithp-ink: #2c3e50;
  --ithp-mut: #7a90a5;
  --ithp-ok: #1f9d57;
  --ithp-radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ithp-ink);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.45;
  box-sizing: border-box;
}
.ithp *, .ithp *::before, .ithp *::after { box-sizing: border-box; }
.ithp button { font: inherit; cursor: pointer; }
.ithp-loading, .ithp-error { padding: 24px; text-align: center; color: var(--ithp-mut); }
.ithp-error { color: #b23b3b; }

/* ---------- Κεφαλίδα ---------- */
.ithp-head { margin-bottom: 10px; }
.ithp-title { font-size: 1.25rem; font-weight: 800; color: var(--ithp-blue-d); }
.ithp-meta { font-size: .9rem; color: var(--ithp-mut); }

/* ---------- Stage (τρέχον θέμα + controls) ---------- */
.ithp-stage {
  background: var(--ithp-blue-d);
  color: #fff;
  border-radius: var(--ithp-radius);
  padding: 18px 16px 12px;
  box-shadow: 0 6px 22px rgba(23, 50, 79, .18);
  position: sticky;
  top: 8px;
  z-index: 5;
}
.ithp-now-num { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.ithp-now-title { font-size: 1.15rem; font-weight: 700; min-height: 2.6em; margin: 2px 0 8px; }

.ithp-bar { margin: 4px 0 6px; }
.ithp-range {
  width: 100%; height: 28px; margin: 0; background: transparent;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.ithp-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.28); }
.ithp-range::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.28); }
.ithp-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  margin-top: -7px; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.ithp-range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; }
.ithp-times { display: flex; justify-content: space-between; font-size: .8rem; opacity: .8; font-variant-numeric: tabular-nums; }

.ithp-ctrl { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 10px; }
.ithp-b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff; transition: background .15s, transform .1s;
}
.ithp-b:hover { background: rgba(255,255,255,.22); }
.ithp-b:active { transform: scale(.95); }
.ithp-b-sm { width: 44px; height: 44px; }
.ithp-b-main { width: 72px; height: 72px; background: #fff; color: var(--ithp-blue-d); }
.ithp-b-main:hover { background: #f2f6fb; }
.ithp-b-txt { width: 52px; height: 40px; border-radius: 20px; font-weight: 700; font-size: .9rem; }
.ithp-playing .ithp-b-main { box-shadow: 0 0 0 6px rgba(255,255,255,.15); }

.ithp-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.ithp-tool {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3);
  background: transparent; color: #fff; font-size: .85rem; text-decoration: none;
}
.ithp-tool:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.ithp-tool.ithp-on { background: #fff; color: var(--ithp-blue-d); border-color: #fff; }
.ithp-tool-go { background: var(--ithp-ok); border-color: var(--ithp-ok); font-weight: 700; width: 100%; justify-content: center; }
.ithp-tool-go:hover { background: #1a8a4c; }

/* ---------- Λίστα θεμάτων ---------- */
.ithp-list { margin-top: 14px; border: 1px solid var(--ithp-line); border-radius: var(--ithp-radius); overflow: hidden; background: #fff; }
.ithp-row {
  display: grid; grid-template-columns: 40px 1fr 22px 46px; align-items: center; gap: 8px;
  padding: 11px 12px; border-bottom: 1px solid var(--ithp-line); cursor: pointer; min-height: 48px;
}
.ithp-row:last-child { border-bottom: 0; }
.ithp-row:hover { background: var(--ithp-bg); }
.ithp-row:focus { outline: 2px solid var(--ithp-blue-l); outline-offset: -2px; }
.ithp-row-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--ithp-bg);
  color: var(--ithp-blue); font-weight: 700; font-size: .85rem;
}
.ithp-row-title { font-size: .95rem; }
.ithp-row-dur { font-size: .8rem; color: var(--ithp-mut); text-align: right; font-variant-numeric: tabular-nums; }
.ithp-row-check { color: var(--ithp-ok); opacity: 0; display: inline-flex; }
.ithp-done .ithp-row-check { opacity: 1; }
.ithp-done .ithp-row-num { background: #e6f6ec; color: var(--ithp-ok); }
.ithp-active { background: var(--ithp-bg); }
.ithp-active .ithp-row-num { background: var(--ithp-blue); color: #fff; }
.ithp-active .ithp-row-title { font-weight: 700; color: var(--ithp-blue-d); }

@media (min-width: 600px) {
  .ithp-stage { padding: 22px 24px 16px; }
  .ithp-now-title { font-size: 1.3rem; }
}
