/* Smart Timeline is an independent companion BELOW the original YouTube iframe.
   It never overlays YouTube's controls, advertising, branding, or progress bar. */
.rs-smart {
  margin: 11px 0 13px;
  padding: clamp(10px,1.6vw,15px);
  background: linear-gradient(155deg,#251939,#1a1531);
  border: 1px solid #67528b;
  color: #f6eaff;
  border-radius: 13px;
  min-width: 0;
}
.rs-smart-header,.rs-smart-meta {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.rs-smart-header strong {font-size:14px;color:#ffdbfc;letter-spacing:.025em;}
.rs-smart-header span {font-size:12px;font-variant-numeric:tabular-nums;color:#ddd0f0;}
.rs-smart-seekbox {position:relative;height:36px;display:flex;align-items:center;margin:8px 0 5px;min-width:0;}
.rs-smart-heatmap {position:absolute;left:8px;right:8px;top:3px;bottom:3px;pointer-events:none;}
.rs-smart-mark {position:absolute;bottom:9px;z-index:1;display:block;width:3px;height:10px;transform:translateX(-50%);border-radius:2px;box-shadow:0 0 7px currentColor;}
.rs-smart-chapter {background:#c39aff;color:#c39aff;}
.rs-smart-moment {background:#60edc8;color:#60edc8;height:14px;}
.rs-smart-community {background:#ffbf6c;color:#ffbf6c;}
#rsSmartSeek {width:100%;height:28px;cursor:pointer;touch-action:pan-y;appearance:none;-webkit-appearance:none;border:0;outline:0;background:transparent;position:relative;z-index:2;padding:0;margin:0;}
#rsSmartSeek::-webkit-slider-runnable-track {height:7px;background:linear-gradient(90deg,#5b427c,#8b66b6);border:1px solid #8d73ae;border-radius:8px;}
#rsSmartSeek::-moz-range-track {height:7px;background:#765392;border:1px solid #8d73ae;border-radius:8px;}
#rsSmartSeek::-webkit-slider-thumb {appearance:none;-webkit-appearance:none;width:17px;height:17px;margin-top:-6px;background:#ffd5f7;border:2px solid #69328f;border-radius:50%;box-shadow:0 0 0 2px #22152d;}
#rsSmartSeek::-moz-range-thumb {width:15px;height:15px;background:#ffd5f7;border:2px solid #69328f;border-radius:50%;}
#rsSmartSeek:focus-visible {outline:2px solid #fff;outline-offset:2px;border-radius:8px;}
#rsSmartSeek:disabled {cursor:not-allowed;opacity:.48;}
.rs-smart-legend {display:flex;gap:8px 16px;flex-wrap:wrap;color:#d9cae7;font-size:11px;}
.rs-smart-legend span {display:flex;align-items:center;gap:6px;}
.rs-smart-dot {display:inline-block;width:8px;height:8px;border-radius:50%;background:#c39aff;}
.rs-smart-dot.moment {background:#60edc8;}.rs-smart-dot.community {background:#ffbf6c;}
.rs-smart-preview {display:grid;grid-template-columns:minmax(92px,160px) minmax(0,1fr);gap:12px;align-items:center;margin:10px 0;border:1px solid #a27dc7;border-radius:10px;background:#171126;padding:8px;min-height:98px;}
.rs-smart-preview[hidden] {display:none!important;}
.rs-smart-preview img {width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:7px;background:#0e0b17;}
.rs-smart-preview div {display:flex;flex-direction:column;gap:5px;min-width:0;}
.rs-smart-preview strong {font-size:15px;color:#ffe0ff;font-variant-numeric:tabular-nums;}
.rs-smart-preview span {font-size:13px;font-weight:700;line-height:1.35;overflow-wrap:anywhere;}
.rs-smart-preview small {font-size:11px;color:#c9b8d9;line-height:1.25;}
.rs-smart-actions {display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:11px;}
.rs-smart-actions button,.rs-smart-meta button,.rs-smart-compare button {
  border:1px solid #8f6db6;background:#362448;color:#fff;border-radius:8px;
  padding:7px 10px;min-height:36px;font-size:12px;font-weight:750;cursor:pointer;
}
.rs-smart-actions button:hover,.rs-smart-meta button:hover,.rs-smart-compare button:hover {background:#603b7a;}
.rs-smart-actions button[aria-pressed="true"] {border-color:#5aebc0;background:#265b50;}
.rs-smart-actions button:focus-visible,.rs-smart-meta button:focus-visible,.rs-smart-compare button:focus-visible {outline:2px solid #fff;outline-offset:2px;}
.rs-smart-spoiler {display:flex;align-items:center;gap:7px;font-size:12px;margin-left:auto;cursor:pointer;}
.rs-smart-spoiler input {width:16px;height:16px;accent-color:#a978df;}
.rs-smart-meta {margin-top:10px;font-size:11px;color:#d3c3e4;}
.rs-smart-compare {margin-top:6px;}
.rs-smart-peers {display:flex;gap:7px;flex-wrap:wrap;font-size:12px;align-items:center;margin-top:7px;}
.rs-smart-peers p {flex-basis:100%;margin:0;color:#d4c4e6;}
.rs-smart-peers a {color:#f8bbff;}
.rs-smart-spoiler-on .rs-player-creator,
.rs-smart-spoiler-on .rs-player-community,
.rs-smart-spoiler-on .rs-chapter-rail {display:none!important;}
@media (max-width:700px){
  .rs-smart-actions button{min-height:42px;}
  .rs-smart-spoiler {flex-basis:100%;margin-left:0;}
  .rs-smart-preview{grid-template-columns:100px minmax(0,1fr);gap:8px;}
  .rs-smart-preview span {font-size:12px;}
  .rs-smart-preview small {font-size:10px;}
}

/* 2.0 personal workspace: all browser-owned moments remain free. */
.rs-smart-version {font-size:10px;font-weight:850;letter-spacing:.045em;background:#573b7d;padding:3px 6px;border-radius:6px;color:#f7d4fb;margin-left:5px;}
.rs-smart-progress {height:5px;background:#352d4e;border-radius:6px;overflow:hidden;margin-top:9px; }
#rsSmartProgressFill {height:100%;width:0;background:linear-gradient(90deg,#a57df0,#67e6c6);transition:width 180ms ease;}
.rs-smart-progress-label {font-size:11px;color:#dbcfe8;margin:5px 0 2px;}
.rs-smart-library {margin-top:14px;border-top:1px solid #594572;padding-top:13px;}
.rs-smart-library-head {display:flex;align-items:baseline;justify-content:space-between;gap:8px 18px;flex-wrap:wrap;margin-bottom:10px;}
.rs-smart-library-head strong {font-size:13px;color:#fce2ff;}
.rs-smart-library-head span {font-size:10px;color:#c9b6df;line-height:1.4;}
.rs-smart-editor {display:flex;align-items:end;gap:8px;flex-wrap:wrap;}
.rs-smart-editor label {display:flex;flex-direction:column;gap:5px;min-width:87px;color:#e5d6f4;font-size:11px;}
.rs-smart-editor .rs-smart-note-label {flex:1 1 210px;}
.rs-smart-editor input {font:inherit;min-height:36px;min-width:0;width:100%;background:#201833;border:1px solid #786198;color:#fff;border-radius:8px;padding:7px 9px;box-sizing:border-box;}
.rs-smart-editor button,.rs-smart-library-actions button,.rs-smart-personal-list button {border:1px solid #9974c1;background:#3a294f;color:#fff;border-radius:8px;padding:7px 9px;min-height:36px;font-weight:700;font-size:11px;cursor:pointer;}
.rs-smart-editor button:hover,.rs-smart-library-actions button:hover,.rs-smart-personal-list button:hover {background:#704190;}
.rs-smart-editor button:focus-visible,.rs-smart-library-actions button:focus-visible,.rs-smart-personal-list button:focus-visible {outline:2px solid #fff;outline-offset:2px;}
.rs-smart-library-actions {display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:10px;}
.rs-smart-library-actions #rsSmartQuickSave {background:#57327d;border-color:#cb99ed;}
.rs-smart-library-actions #rsSmartWatch[aria-pressed="true"] {background:#285c52;border-color:#67e6c6;}

#rsSmartHistory {font-size:.85rem;margin:.5rem 0;}
#rsSmartHistory summary {cursor:pointer;font-weight:700;}
#rsSmartHistory ol {max-height:15rem;overflow:auto;padding-left:1.4rem;}
#rsSmartHistory li {margin:.3rem 0;}
#rsSmartHistory button {max-width:100%;text-align:left;overflow-wrap:anywhere;}
.rs-smart-personal-list {list-style:decimal;padding-left:22px;margin:10px 0 0;max-height:180px;overflow-y:auto;scrollbar-color:#765e97 #171128;}
.rs-smart-personal-list li {display:flex;align-items:center;gap:6px;padding:6px 0;border-top:1px solid rgba(188,150,220,.16);min-width:0;}
.rs-smart-personal-list .rs-smart-personal-jump {text-align:left;flex:1;min-width:0;overflow-wrap:anywhere;font-size:12px;}
.rs-smart-personal-list .rs-smart-personal-empty {display:block;font-size:11px;color:#cdbcdd;border-top:0;}
@media(max-width:640px){
 .rs-smart-editor button,.rs-smart-library-actions button,.rs-smart-personal-list button {min-height:42px;}
 .rs-smart-personal-list li {flex-wrap:wrap;}
 .rs-smart-personal-list .rs-smart-personal-jump {flex:1 1 100%;}
}
