* { box-sizing: border-box; }
body { margin: 0; background: #f5f5f5; color: #111; font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",sans-serif; }
button,input { border: 0; font-size: 16px; border-radius: 10px; }

.app { min-height: 100vh; padding-bottom: 84px; }
.status { min-height: 20px; padding: 8px 12px 0; color: #2563eb; font-size: 13px; }

.nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #e5e7eb; padding: 10px; }
.row { display: flex; gap: 8px; align-items: center; }
.sp { flex: 1; }
.tabs { display: flex; gap: 8px; overflow-x: auto; white-space: nowrap; padding-top: 8px; }
.tab { background: #eef2f7; color: #445; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.tab.on { background: #111827; color: #fff; }
.icon { background: #eef2f7; width: 42px; height: 34px; }

.apiLine { display: flex; gap: 8px; margin-top: 8px; }
.apiLine input { flex: 1; background: #eef2f7; padding: 10px 12px; }
.apiLine button { background: #111827; color: #fff; padding: 0 12px; }

.content { padding: 8px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.card { background: #fff; border-radius: 12px; overflow: hidden; }
.cover { position: relative; }
.cover img,.cover video { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #ddd; }
.badge { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 8px; }
.title {
  padding: 8px 10px 2px;
  line-height: 1.35;
  font-size: 14px;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.sub { color: #6b7280; font-size: 12px; padding: 0 10px 10px; }

.pager { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(8px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 380px; background: rgba(255,255,255,.96); border: 1px solid #e5e7eb; border-radius: 999px; display: flex; align-items: center; justify-content: space-between; padding: 6px; z-index: 60; }
.pager button { background: #111827; color: #fff; height: 34px; border-radius: 999px; padding: 0 12px; }
.pager span { font-size: 12px; color: #6b7280; }

.detailCard { background: #fff; border-radius: 12px; padding: 10px; }
.playerWrap { position: relative; }
.player { width: 100%; background: #000; border-radius: 10px; }
.seekHint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.seekHint.show { opacity: 1; }
.meta { color: #6b7280; font-size: 13px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips button { background: #eef2f7; color: #111; padding: 7px 10px; }
.chips .pri { background: #2563eb; color: #fff; }
