:root {
  --bg: #f7fbff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e5e7eb;
  --brand: #0092d6;
  --brand2: #00b6d0;
  --shadow: 0 10px 30px rgba(2, 132, 199, 0.12);
  --radius: 16px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Microsoft JhengHei", "Noto Sans TC", system-ui, -apple-system,
    "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(
      1200px 600px at 20% 10%,
      rgba(0, 146, 214, 0.18),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 80% 0%,
      rgba(0, 182, 208, 0.16),
      transparent 55%
    ),
    var(--bg);
}
.container {
  width: min(1080px, calc(100% - 32px));
  margin: 20px auto 20px;
} /* ===== Header ===== */
header {
  background: linear-gradient(
    90deg,
    rgba(56, 106, 186, 0.08),
    rgba(0, 146, 214, 0.1),
    rgba(0, 182, 208, 0.1)
  );
  border: 1px solid rgba(0, 146, 214, 0.15);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
header h1 {
  margin: 0 0 8px;
  font-size: 22px;
}
header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
} /* ===== Panel ===== */
.panel {
  margin-top: 20px;
  background: var(--card);
  border: 1px solid rgba(2, 6, 23, 0.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
}
.hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
} /* ===== Filters ===== */
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  flex: 1;
}
.filter label {
  font-size: 13px;
  color: var(--muted);
}
.filter select {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(2, 6, 23, 0.12);
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
.filter select:focus {
  border-color: rgba(0, 146, 214, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 146, 214, 0.15);
} /* ===== Search ===== */
.search {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid rgba(2, 6, 23, 0.12);
  outline: none;
  background: #fff;
}
.search:focus {
  border-color: rgba(0, 146, 214, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 146, 214, 0.15);
} /* ===== Result Info ===== */
.result-info {
  margin: 6px 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.result-info strong {
  color: var(--text);
  font-weight: 600;
} /* ===== List ===== */
.list-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(2, 6, 23, 0.08);
  background: #fff;
}
.list-header {
  display: grid;
  grid-template-columns: 2.6fr 0.8fr 0.7fr 140px; /* ✅ 名稱變大、動作固定寬 */
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: linear-gradient(
    90deg,
    rgba(0, 146, 214, 0.1),
    rgba(0, 182, 208, 0.1)
  );
  color: #0b3b52;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.list-header > div {
  display: flex;
  align-items: center;
  justify-content: center;
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list li {
  display: grid;
  grid-template-columns: 2.6fr 0.8fr 0.7fr 140px; /* ✅ 同上 */
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.list li:last-child {
  border-bottom: none;
}
.list li:hover {
  background: rgba(0, 146, 214, 0.06);
}
.list li > strong,
.list li > span,
.list li > .actions {
  display: flex;
  align-items: center;
} /* 名稱維持原本大小（不放大） */
.list li > strong {
  font-size: 16px;
  line-height: 1.45;
} /* 證道名稱連結樣式（不影響版型） */
.title-link {
  color: inherit;
  text-decoration: none;
}
.title-link:hover {
  color: #0092d6;
  text-decoration: none;
}
.pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  width: fit-content;
  white-space: nowrap;
  margin: 0 auto;
}
.size {
  justify-content: center;
  font-size: 14px;
} /* ===== Actions ===== */
.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}
.btn {
  padding: 10px 16px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  box-shadow: 0 8px 16px rgba(0, 146, 214, 0.18);
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover {
  filter: brightness(1.05);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 146, 214, 0.18),
    0 8px 16px rgba(0, 146, 214, 0.18);
} /* ✅ 分享文字切換（避免「分享 分享」） */
.share-text-mobile {
  display: none;
}
.share-text-desktop {
  display: inline;
} /* ===== Pager ===== */
#pager {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}
#pager button.page-btn {
  appearance: none;
  -webkit-appearance: none;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(2, 132, 199, 0.25);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #0b3b52;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.12);
  transition: all 0.18s ease;
}
#pager button.page-btn:hover:not(.active):not(:disabled) {
  background: rgba(0, 146, 214, 0.12);
  border-color: rgba(0, 146, 214, 0.4);
  transform: translateY(-1px);
}
#pager button.page-btn.active {
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  color: #fff;
  border-color: rgba(0, 146, 214, 0.6);
  box-shadow: 0 10px 22px rgba(0, 146, 214, 0.35);
  cursor: default;
}
#pager button.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
} /* ===== Mobile / Tablet ===== */
@media (max-width: 767px) {
  .list-header {
    display: none;
  } /* 卡片排版（維持原本節奏） */
  .list li {
    display: block;
    padding: 14px;
  }
  .list li > strong {
    display: block;
    line-height: 1.35;
    margin-bottom: 8px;
  } /* ✅ 你要的：手機不顯示 audio/mpeg */
  .pill {
    display: none !important;
  } /* 檔案大小靠左（原本樣式） */
  .size {
    display: block;
    justify-content: flex-start;
    text-align: left;
    margin: 0 0 10px;
    font-size: 14px;
  } /* ✅ 你現在要的樣子：播放/分享同一行左右各半 */
  .actions {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
  }
  .actions .btn,
  .actions .share-btn,
  .actions .play-btn {
    flex: 1 1 0;
    width: auto;
  } /* ✅ 手機只顯示「分享」 */
  .share-text-desktop {
    display: none;
  }
  .share-text-mobile {
    display: inline;
  }
} /* ✅ 第一欄「證道名稱」要靠左，不要置中 */
.list-header > div:first-child {
  justify-content: flex-start !important;
}
.list li > strong {
  justify-content: flex-start !important;
  text-align: left;
} /* 如果 strong 裡包 a（title-link），確保也不會被置中 */
.list li > strong > a {
  justify-content: flex-start;
  text-align: left;
} /* ===== Footer ===== */
footer {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
@media (min-width: 901px) {
  .list-header > div:nth-child(4) {
    justify-content: center;
  }

  .list li > .actions {
    justify-content: center;
  }
}
