* { box-sizing: border-box; }
body { margin:0; font-family: -apple-system, system-ui, sans-serif; background:#111; color:#eee; }

.topbar { display:flex; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid #333; }
.topbar h1 { font-size:16px; margin:0; }
.topbar .grow { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topbar button { background:none; border:none; color:#eee; font-size:18px; cursor:pointer; }

.progress-bar { height:4px; background:#333; }
.progress-fill { height:100%; background:#6aa84f; }

.episode-list { padding:12px; display:flex; flex-direction:column; gap:10px; }
.episode-card { display:flex; justify-content:space-between; align-items:center; background:#1c1c1c; border-radius:12px; padding:14px; }
.episode-card h2 { font-size:16px; margin:0 0 4px; }
.episode-card .progress, .episode-card .updated { margin:2px 0; font-size:13px; opacity:.7; }
.delete-btn { background:none; border:none; font-size:18px; color:#e66; }
.fab-new { position:fixed; right:16px; bottom:16px; background:#3d7dd6; color:white; border:none; border-radius:24px; padding:14px 18px; font-weight:700; font-size:15px; }
.empty { padding:20px; opacity:.6; text-align:center; }

.new-episode-form { padding:14px; display:flex; flex-direction:column; gap:12px; }
.tabs { display:flex; gap:8px; }
.tab { flex:1; padding:10px; background:#1c1c1c; border:none; color:#aaa; border-radius:8px; }
.tab.active { background:#3d7dd6; color:white; }
textarea, input { width:100%; padding:10px; border-radius:8px; border:1px solid #333; background:#0d0d0d; color:#eee; font-size:14px; }

.carousel { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:12px; padding:16px 10%; -webkit-overflow-scrolling:touch; }
.section-card { flex:0 0 80%; scroll-snap-align:center; background:#1a1a1a; border-radius:14px; padding:14px; min-height:50vh; }
.add-section-card { display:flex; align-items:center; justify-content:center; }
.section-header { display:flex; justify-content:space-between; font-weight:700; margin-bottom:10px; }
.section-title-input { font-weight:700; }

.qrow-wrap { margin-bottom:10px; }
.qrow { display:flex; align-items:flex-start; gap:8px; }
.box { width:22px; height:22px; border:2px solid #888; border-radius:5px; flex-shrink:0; margin-top:2px; cursor:pointer; }
.box.checked { background:#6aa84f; border-color:#6aa84f; }
.txt { flex:1; line-height:1.4; padding-top:1px; }
.note-toggle { background:none; border:none; font-size:16px; opacity:.6; }
.note-area { display:none; margin-top:6px; margin-left:30px; width:calc(100% - 30px); font-size:13px; }
.note-area.open { display:block; }
.item-text-input { flex:1; }
.remove-item-btn { background:none; border:none; color:#e66; font-size:16px; }
.add-item-btn { width:100%; padding:10px; margin-top:6px; background:#222; border:1px dashed #555; color:#aaa; border-radius:8px; }

.dots-row { display:flex; justify-content:center; gap:6px; padding:8px; }
.dots-row span { width:6px; height:6px; border-radius:50%; background:#444; }
.dots-row span.active { background:#3d7dd6; width:16px; border-radius:3px; }

.fab { position:fixed; right:16px; bottom:56px; background:#3d7dd6; color:white; border:none; border-radius:20px; padding:10px 16px; font-weight:700; }
