* { box-sizing: border-box; }
html, body { margin: 0; background: #0f0f0f; color: #f1f1f1;
  font-family: Roboto, -apple-system, system-ui, Arial, sans-serif;
  -webkit-text-size-adjust: 100%; }
.wrap { max-width: 480px; margin: 0 auto; padding: 20px 16px 32px; }

header h1 { margin: 0; font-size: 22px; }
.sub { margin: 4px 0 0; color: #aaa; font-size: 13px; }

.section { margin-top: 20px; }
.label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: #888; margin-bottom: 8px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid #303030;
  background: #1c1c1c; color: #f1f1f1; font-size: 14px; cursor: pointer; }
.chip:hover { background: #272727; }
.chip.on { background: #cc0000; border-color: #cc0000; color: #fff; }

.tagbar { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px;
  border: 1px solid #303030; background: #1c1c1c; color: #cfcfcf;
  font-size: 12px; white-space: nowrap; cursor: pointer; }
.tag:hover { background: #272727; }
.tag.on { background: #cc0000; border-color: #cc0000; color: #fff; }
.tag.soft { border-color: #cc0000; color: #fff; }
.tag.off { opacity: .4; cursor: default; }
.tag.off:hover { background: #1c1c1c; }

.result { margin-top: 20px; }
.card { display: block; text-decoration: none; color: inherit; background: #1c1c1c;
  border: 1px solid #272727; border-radius: 14px; overflow: hidden; transition: border-color .15s; }
.card:hover { border-color: #cc0000; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.85);
  color: #fff; font-size: 13px; padding: 2px 6px; border-radius: 4px; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: rgba(255,255,255,.25); }
.progress-bar { height: 100%; background: #f00; }
.meta { padding: 12px 14px; }
.title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.channel { font-size: 13px; color: #aaa; margin-top: 4px; }
.cta { margin-top: 10px; font-size: 14px; color: #ff4d4d; font-weight: 600; }

.actions { display: flex; gap: 10px; margin-top: 12px; }
.ghost { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid #303030;
  background: transparent; color: #f1f1f1; font-size: 14px; cursor: pointer; }
.ghost:hover { background: #1c1c1c; }

.fitlist { margin-top: 12px; display: flex; flex-direction: column; gap: 6px;
  max-height: 320px; overflow-y: auto; }
.fitrow { display: flex; gap: 10px; align-items: center; text-align: left; width: 100%;
  padding: 10px; border-radius: 8px; border: none; background: #1c1c1c; color: #f1f1f1;
  cursor: pointer; font-size: 13px; }
.fitrow:hover { background: #272727; }
.fitrow.active { outline: 2px solid #cc0000; }
.fr-dur { color: #aaa; min-width: 52px; }
.fr-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nofit { color: #ffb3b3; }

.status { display: flex; justify-content: space-between; margin-top: 24px;
  padding-top: 12px; border-top: 1px solid #1c1c1c; font-size: 12px; color: #888; }
