/* Cutting Room — labs prototype. Brand tokens, NLE-timeline homepage concept. */
:root {
  --cr-bg: #14171C; --cr-panel: #1B1F26; --cr-ink: #E9EBEF; --cr-grey: #8B95A3;
  --cr-red: #FF4A3F; --cr-hair: rgba(233, 235, 239, 0.12);
}
/* day mode (toggle in the header) — the page always LOADS dark */
:root[data-theme="light"] {
  --cr-bg: #F4F4F1; --cr-panel: #FFFFFF; --cr-ink: #17191C; --cr-grey: #5C6674;
  --cr-hair: rgba(23, 25, 28, 0.14);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--cr-bg) !important; }
.cr-body { background: var(--cr-bg) !important; color: var(--cr-ink) !important; font-family: "Manrope", system-ui, sans-serif; min-height: 100vh; overflow-x: hidden; }
.mono { font-family: "DM Mono", monospace; }

/* top bar */
.cr-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; border-bottom: 1px solid var(--cr-hair); }
.cr-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.cr-brand img { width: 34px !important; height: 34px; display: block; }
.cr-brand-name { font-weight: 800; font-size: 22px; letter-spacing: -0.6px; color: var(--cr-ink); white-space: nowrap; }
.cr-brand-name i { font-style: normal; color: var(--cr-red); }
.cr-theme { border: 1px solid var(--cr-hair); background: var(--cr-panel); color: var(--cr-grey); border-radius: 9px; width: 34px; height: 30px; font-size: 15px; line-height: 1; cursor: pointer; }
.cr-theme:hover { color: var(--cr-ink); border-color: var(--cr-grey); }
.cr-top-right { display: flex; gap: 16px; align-items: center; }

/* hero */
.cr-main { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.cr-hero { position: relative; padding: 72px 0 46px; }
.cr-tc-strip { display: flex; gap: 18px; align-items: baseline; margin-bottom: 10px; }
#crTc { font-size: 20px; color: var(--cr-red); letter-spacing: 2px; }
.cr-tc-fps { font-size: 12px; color: var(--cr-grey); letter-spacing: 1px; }
.cr-h1 { font-size: clamp(52px, 9vw, 118px); line-height: 0.98; letter-spacing: -4px; font-weight: 800; margin: 0; }
.cr-dot { color: var(--cr-red); }
.cr-sub { color: var(--cr-grey); font-size: clamp(15px, 1.6vw, 19px); margin: 20px 0 0; max-width: 46ch; }
/* the playhead slicing the hero */
.cr-hero-playhead { position: absolute; top: 34px; bottom: 0; left: 38%; width: 2px; background: var(--cr-red); box-shadow: 0 0 12px color-mix(in srgb, var(--cr-red) 70%, transparent); animation: cr-drift 14s ease-in-out infinite alternate; }
.cr-ph-cap { position: absolute; top: -1px; left: 50%; translate: -50% 0; width: 0; height: 0; border: 7px solid transparent; border-top: 9px solid var(--cr-red); }
@keyframes cr-drift { from { left: 26%; } to { left: 62%; } }

/* ruler */
.cr-ruler-wrap { border-top: 1px solid var(--cr-hair); border-bottom: 1px solid var(--cr-hair); overflow: hidden; }
.cr-ruler { display: flex; height: 34px; align-items: flex-end; color: var(--cr-grey); }
.cr-ruler .tick { flex: 0 0 90px; border-left: 1px solid var(--cr-hair); height: 10px; position: relative; }
.cr-ruler .tick.major { height: 18px; border-left-color: color-mix(in srgb, var(--cr-grey) 55%, transparent); }
.cr-ruler .tick.major span { position: absolute; top: -18px; left: 6px; font-family: "DM Mono", monospace; font-size: 10.5px; letter-spacing: 0.5px; white-space: nowrap; }

/* timeline + scroll arrows */
.cr-tl-wrap { position: relative; }
.cr-tl-arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 38px; height: 84px; border: 1px solid var(--cr-hair); border-radius: 12px; background: color-mix(in srgb, var(--cr-bg) 72%, transparent); backdrop-filter: blur(3px); color: var(--cr-grey); opacity: .6; font-size: 34px; line-height: 1; cursor: pointer; transition: opacity .16s, color .16s, border-color .16s; padding: 0 0 6px; }
.cr-tl-arrow:hover { opacity: 1; color: var(--cr-ink); border-color: var(--cr-grey); }
.cr-tl-arrow.left { left: -14px; }
.cr-tl-arrow.right { right: -14px; }
.cr-tl-arrow[data-dim] { opacity: .16; pointer-events: none; }

/* timeline */
.cr-timeline { padding: 26px 0 8px; display: flex; flex-direction: column; gap: 14px; }
.cr-track { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: stretch; }
.cr-track-label { display: flex; align-items: center; justify-content: center; font-family: "DM Mono", monospace; font-size: 13px; color: var(--cr-grey); background: var(--cr-panel); border: 1px solid var(--cr-hair); border-radius: 10px; letter-spacing: 1px; }
.cr-track-clips { display: flex; gap: 10px; overflow-x: auto; padding: 2px; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; }
.cr-track-clips::-webkit-scrollbar { height: 0; width: 0; display: none; }

/* one shared pan-bar (replaces the 5 thin native scrollbars) */
.cr-panbar { margin: 12px 0 2px 70px; height: 12px; border-radius: 7px; background: color-mix(in srgb, var(--cr-panel) 80%, transparent); border: 1px solid var(--cr-hair); position: relative; cursor: pointer; touch-action: none; }
.cr-panbar-thumb { position: absolute; top: -1px; bottom: -1px; left: 0; min-width: 44px; border-radius: 7px; background: color-mix(in srgb, var(--cr-grey) 42%, transparent); border: 1px solid color-mix(in srgb, var(--cr-grey) 55%, transparent); cursor: grab; transition: background .16s, border-color .16s; will-change: transform; }
.cr-panbar-thumb:hover { background: color-mix(in srgb, var(--cr-grey) 60%, transparent); }
.cr-panbar-thumb.dragging { cursor: grabbing; background: color-mix(in srgb, var(--cr-red) 60%, transparent); border-color: var(--cr-red); }
@media (max-width: 640px) { .cr-panbar { margin-left: 54px; } }

.cr-clip { flex: 0 0 auto; min-width: 190px; max-width: 250px; text-decoration: none; color: var(--cr-ink); background: var(--cr-panel); border: 1px solid var(--cr-hair); border-radius: 12px; padding: 12px 14px 10px; position: relative; overflow: hidden; transition: border-color .16s, transform .16s, box-shadow .16s; }
.cr-clip:hover { border-color: var(--cr-red); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.cr-clip-head { display: flex; gap: 9px; align-items: center; margin-bottom: 6px; }
.cr-clip-head img { width: 26px; height: 26px; border-radius: 7px; }
.cr-clip-name { font-weight: 700; font-size: 14.5px; letter-spacing: -0.2px; line-height: 1.15; }
.cr-clip-desc { color: var(--cr-grey); font-size: 12px; line-height: 1.35; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cr-clip-tc { font-family: "DM Mono", monospace; font-size: 10px; color: var(--cr-grey); letter-spacing: 1px; opacity: .8; }
.cr-clip:hover .cr-clip-tc { color: var(--cr-red); opacity: 1; }
/* clip grab handles, like an NLE */
.cr-clip::before, .cr-clip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; background: var(--cr-hair); opacity: 0; transition: opacity .16s; }
.cr-clip::before { left: 0; } .cr-clip::after { right: 0; }
.cr-clip:hover::before, .cr-clip:hover::after { opacity: 1; background: var(--cr-red); }
/* favorites / editor's-choice track */
.cr-star-sec { display: flex; flex-direction: column; gap: 10px; }
.cr-track-cap { font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: 1.5px; color: var(--cr-red); margin: 2px 0 0 56px; border: 0; background: transparent; padding: 4px 8px; cursor: pointer; text-align: left; align-self: flex-start; border-radius: 7px; }
.cr-track-cap:hover { background: color-mix(in srgb, var(--cr-red) 10%, transparent); }
.cr-cap-chev { display: inline-block; transition: transform .18s ease; }
.cr-track-cap.open .cr-cap-chev { transform: rotate(90deg); }
.cr-star-row { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .28s ease, opacity .22s ease; }
.cr-star-row.open { max-height: 260px; opacity: 1; }
.cr-track-label.star { background: var(--cr-red); border-color: var(--cr-red); color: #14171C; font-size: 19px; }
/* favorite star: dimmed until the user marks the tool */
.cr-clip-star { position: absolute; top: 4px; right: 5px; z-index: 2; border: 0; background: transparent; color: var(--cr-grey); opacity: .32; font-size: 16px; line-height: 1; padding: 5px 7px; cursor: pointer; transition: opacity .15s, color .15s, transform .15s; }
.cr-clip-star:hover { opacity: 1; color: var(--cr-red); transform: scale(1.15); }
.cr-clip-star.on { color: var(--cr-red); opacity: 1; }

/* waveform strip on audio clips */
.cr-wave { display: block; width: 100%; height: 22px; margin-bottom: 6px; }
.cr-wave path { stroke: color-mix(in srgb, var(--cr-grey) 75%, transparent); stroke-width: 1.4; fill: none; }
.cr-clip:hover .cr-wave path { stroke: var(--cr-red); }

.cr-hint { color: var(--cr-grey); font-size: 12px; letter-spacing: .5px; padding: 0 0 10px; }

.cr-foot { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 18px 28px 30px; color: var(--cr-grey); font-size: 12px; border-top: 1px solid var(--cr-hair); }
.cr-back { color: var(--cr-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---- shared site chrome (lupa, share, language) harmonized to the concept ---- */
.language-switch { display: inline-flex; gap: 2px; background: var(--cr-panel); border: 1px solid var(--cr-hair); border-radius: 9px; padding: 3px; }
.language-switch button { border: 0; background: transparent; color: var(--cr-grey); font: 600 12px "Manrope", sans-serif; padding: 4px 9px; border-radius: 6px; cursor: pointer; }
.language-switch button.active { background: var(--cr-bg); color: var(--cr-ink); }

/* finder CTA (same entry point as the home: /start) */
.cr-finder { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; padding: 14px 18px; text-decoration: none; background: var(--cr-panel); border: 1px solid var(--cr-hair); border-radius: 12px; color: var(--cr-ink); transition: border-color .16s, transform .16s; }
.cr-finder:hover { border-color: var(--cr-red); transform: translateY(-1px); }
.cr-finder-ico { font-size: 18px; color: var(--cr-grey); }
.cr-finder-q { font-weight: 600; font-size: 15px; }
.cr-finder-go { margin-left: auto; font-size: 11px; letter-spacing: 1.5px; color: var(--cr-red); }

/* footer author link */
.cr-author { color: var(--cr-ink); text-decoration: underline; text-underline-offset: 3px; }
.cr-author:hover { color: var(--cr-red); }
.cr-foot-note { opacity: .7; }

@media (max-width: 640px) {
  .cr-track { grid-template-columns: 40px 1fr; gap: 8px; }
  .cr-track-label { font-size: 11px; }
  .cr-hero { padding: 44px 0 34px; }
}

/* footer legal nav (the homepage carries the sitewide legal links) */
.cr-foot-nav { display: flex; gap: 16px; }
.cr-foot-nav a { color: var(--cr-grey); text-decoration: none; }
.cr-foot-nav a:hover { color: var(--cr-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .cr-foot { flex-direction: column; gap: 10px; align-items: flex-start; } }
