/* Secure player */
.sp { position: relative; aspect-ratio: 16 / 9; background: #0b0f0c; border-radius: 18px; overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; outline: none; }
.sp video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.sp.fs { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.sp-wm { position: absolute; z-index: 3; pointer-events: none; color: rgba(255,255,255,.28); font: 600 13px var(--sans); text-shadow: 0 1px 2px rgba(0,0,0,.35); white-space: nowrap; transition: left 2.5s ease, top 2.5s ease; }
.sp-wm2 { position: absolute; z-index: 3; right: 14px; top: 12px; pointer-events: none; color: rgba(255,255,255,.18); font: 700 11px var(--sans); }
.sp-big { position: absolute; z-index: 4; left: 50%; top: 50%; translate: -50% -50%; width: 78px; height: 78px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--green); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: opacity .2s, transform .2s var(--ease); }
.sp-big:hover { transform: scale(1.06); }
.sp-big .lucide { width: 30px; height: 30px; margin-left: 4px; }
.sp.playing .sp-big { opacity: 0; pointer-events: none; }
.sp-spin { position: absolute; inset: 0; display: grid; place-items: center; z-index: 4; pointer-events: none; color: #fff; }
.sp-spin .spin { width: 40px; height: 40px; border-width: 3px; }
.sp-err { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; align-content: center; gap: 6px; background: rgba(10,14,11,.88); color: #fff; text-align: center; padding: 20px; }
.sp-err span { opacity: .75; font-size: 14px; }
.sp-tap { position: absolute; top: 0; bottom: 64px; width: 30%; z-index: 2; display: none; }
.sp-tap.l { left: 0; } .sp-tap.r { right: 0; }
@media (pointer: coarse) { .sp-tap { display: block; } }
.sp-flash { position: absolute; z-index: 5; left: 50%; top: 18%; translate: -50% 0; background: rgba(0,0,0,.6); color: #fff; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 99px; opacity: 0; pointer-events: none; }
.sp-flash.on { animation: spf 1.1s ease forwards; }
@keyframes spf { 15%, 70% { opacity: 1; } 100% { opacity: 0; } }
.sp-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 26px 14px 8px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; opacity: 0; transition: opacity .25s; }
.sp.ui .sp-bar, .sp:not(.playing) .sp-bar { opacity: 1; }
.sp.playing:not(.ui) { cursor: none; }
.sp-seek { position: relative; height: 16px; display: flex; align-items: center; }
.sp-seek::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); }
.sp-buf, .sp-played { position: absolute; left: 0; height: 4px; border-radius: 4px; pointer-events: none; }
.sp-buf { background: rgba(255,255,255,.45); }
.sp-played { background: var(--saffron); }
.sp-seek input { position: absolute; inset: 0; width: 100%; margin: 0; opacity: 0; cursor: pointer; height: 16px; }
.sp-seek:hover::before, .sp-seek:hover .sp-buf, .sp-seek:hover .sp-played { height: 6px; }
.sp-row { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.sp-row button { background: none; border: 0; color: #fff; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; font: 700 13px var(--sans); }
.sp-row button:hover { background: rgba(255,255,255,.12); }
.sp-row .lucide { width: 20px; height: 20px; }
.sp-time { font: 600 13px var(--sans); font-variant-numeric: tabular-nums; margin-left: 6px; white-space: nowrap; }
.sp-gap { flex: 1; }
.sp-vol { width: 80px; accent-color: var(--saffron); }
.sp-speed { position: relative; }
.sp-speed > button { width: auto; padding: 0 10px; }
.sp-menu { position: absolute; bottom: 44px; right: 0; background: rgba(20,24,21,.96); border-radius: 12px; padding: 6px; display: grid; min-width: 80px; }
.sp-menu button { width: 100%; height: 34px; }
@media (max-width: 600px) { .sp { border-radius: 0; } .sp-hide-sm { display: none !important; } .sp-big { width: 64px; height: 64px; } .sp-wm { font-size: 11px; } }

/* uploader + library */
.dropzone { display: grid; justify-items: center; gap: 8px; padding: 44px 20px; border: 2px dashed #d7c9ae; border-radius: 20px; background: #fffdf8; cursor: pointer; text-align: center; margin-top: 16px; transition: background .2s, border-color .2s; }
.dropzone.over, .dropzone:hover { background: var(--green-soft); border-color: var(--green-2); }
.dropzone .lucide { width: 38px; height: 38px; color: var(--green-2); }
.up-grid { display: grid; grid-template-columns: 1fr 300px; gap: 22px; margin-top: 16px; }
.plan { display: flex; gap: 10px; align-items: flex-start; background: var(--green-soft); color: var(--green); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; margin: 14px 0; }
.plan .lucide { flex: none; margin-top: 2px; }
.stage { display: grid; gap: 6px; padding: 12px 0; }
.stage-h { display: flex; justify-content: space-between; font-size: 14px; }
.lbl { font-size: 13px; font-weight: 700; color: var(--ink-2); display: block; margin-bottom: 6px; }
.thumb-main { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--line-2); }
.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.frames button { padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 16 / 9; }
.frames button.on { border-color: var(--saffron); }
.frames img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; max-height: 60vh; overflow-y: auto; }
.pick { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: grid; gap: 4px; cursor: pointer; font: inherit; color: inherit; }
.pick:hover { border-color: var(--green-2); }
.pick-img { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #1c2a21; display: grid; place-items: center; color: #9fb3a5; }
.pick-img.pdf { background: var(--rose-soft); color: var(--rose); }
.pick-img img { width: 100%; height: 100%; object-fit: cover; }
.pick-img em { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.7); color: #fff; font: 700 11px var(--sans); padding: 2px 6px; border-radius: 6px; font-style: normal; }
.pick b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .up-grid { grid-template-columns: 1fr; } }
