/* ===== My items: refined app shell ===== */
:root { --sh1: 0 1px 2px rgba(35, 52, 76, .06), 0 10px 28px -14px rgba(35, 52, 76, .22); --sh2: 0 2px 4px rgba(35, 52, 76, .08), 0 22px 44px -18px rgba(0, 150, 204, .30); --ring: 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* signed out */
.my { min-height: 60vh; }
.gate { padding: 56px 0 88px; background: radial-gradient(60% 50% at 50% 0, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%); }
.my-card { max-width: 500px; margin: 0 auto; padding: 36px 32px 32px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--sh2); }
.gate-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 14px; border-radius: 20px; color: var(--text); background: var(--primary-soft); }
.my-card h1 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.my-card p { margin: 0; color: var(--muted); }
.my-gbtn { display: flex; justify-content: center; min-height: 44px; margin-top: 22px; }
.my-note { margin: 10px 0 0; color: #c9302f; font-size: 14px; }
.my-state { text-align: center; color: var(--muted); padding: 28px 16px; }

/* signed in: the site header/footer give way to the app shell */
body.in-app header.site, body.in-app footer.site { display: none; }
.app { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.app[hidden] { display: none; }
.app-top { display: flex; align-items: center; gap: 20px; padding: 0 24px; height: 64px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.app-top .brand { flex: none; }
.app-search { position: relative; flex: 1; max-width: 560px; color: var(--muted); }
.app-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.app-search input { width: 100%; height: 40px; padding: 0 16px 0 42px; font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; transition: background .15s, border-color .15s, box-shadow .15s; }
.app-search input::placeholder { color: var(--muted); }
.app-search input:focus { outline: none; background: var(--bg); border-color: var(--primary); box-shadow: var(--ring); }
.app-link { margin-left: auto; font-weight: 600; font-size: 14px; color: var(--muted); padding: 8px 10px; border-radius: 8px; }
.app-link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.app-acct { position: relative; }
.avatar { width: 38px; height: 38px; border: 2px solid var(--surface); border-radius: 50%; font: inherit; font-weight: 700; color: var(--on-primary); background: var(--primary); cursor: pointer; box-shadow: 0 0 0 1px var(--border); }
.avatar:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); }

.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 210px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--sh2); animation: pop .12s ease-out; }
.menu[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu p { margin: 0; padding: 8px 10px 10px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu button { display: block; width: 100%; padding: 9px 10px; border: 0; background: none; font: inherit; font-size: 14px; text-align: left; color: var(--text); border-radius: 8px; cursor: pointer; }
.menu button:hover, .menu button:focus-visible { background: var(--surface-2); outline: none; }
.danger-text { color: #c9302f !important; }

.app-body { flex: 1; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--border); position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); overflow-y: auto; }
.side-h { margin: 6px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-sec { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.side-sec .side-h { margin-bottom: 4px; }
.side-add { display: grid; place-items: center; width: 26px; height: 26px; margin-right: 4px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.side-add:hover { background: var(--surface-2); color: var(--text); }
.side-folders { display: flex; flex-direction: column; gap: 2px; }
.side-i { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; text-align: left; transition: background .12s, color .12s; }
.side-i .ic { display: grid; place-items: center; flex: none; }
.side-i .lb { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-i b { font-weight: 600; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.side-i:hover { background: var(--surface-2); color: var(--text); }
.side-i:focus-visible { outline: none; box-shadow: var(--ring); }
.side-i.on { background: var(--primary-soft); color: var(--text); }
.side-i.on::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.side-i.on b { background: color-mix(in srgb, var(--primary) 22%, transparent); color: var(--text); }
.side-foot { margin-top: auto; padding: 16px 12px 4px; display: grid; gap: 4px; border-top: 1px solid var(--border); }
.side-foot p { margin: 0; font-size: 12.5px; color: var(--muted); }
.side-foot a { font-size: 13px; font-weight: 600; }

.app-main { padding: 28px 36px 64px; min-width: 0; max-width: 1400px; }
.app-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.app-bar h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.025em; }
.app-sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); min-height: 1em; }
.app-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.folder-tools { display: inline-flex; gap: 6px; }
.chip-btn { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; }
.chip-btn:hover { background: var(--surface-2); }
.app-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.app-sort select { padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.app-sort select:focus { outline: none; box-shadow: var(--ring); border-color: var(--primary); }

.my-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 28px 24px; }
.my-item { display: flex; flex-direction: column; gap: 4px; position: relative; }
.my-thumb { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; color: #fff; background: linear-gradient(135deg, #1B3350, #0A7CA6 60%, #00C0F8); box-shadow: var(--sh1); transition: transform .18s ease, box-shadow .18s ease; }
.my-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.my-item:hover .my-thumb { box-shadow: var(--sh2); }
.my-item:hover .my-thumb img { transform: scale(1.04); }
.my-thumb:focus-visible { outline: none; box-shadow: var(--ring); }
.my-play { position: relative; display: grid; place-items: center; width: 52px; height: 52px; padding-left: 3px; border-radius: 50%; background: rgba(8, 20, 34, .55); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .35); font-size: 15px; opacity: 0; transform: scale(.85); transition: opacity .15s, transform .15s; }
.my-thumb:hover .my-play, .my-thumb:focus-visible .my-play { opacity: 1; transform: scale(1); }
.my-dur { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 8px; background: rgba(8, 20, 34, .72); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.my-badge { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 8px; background: #00C0F8; color: #10253A; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.my-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; position: relative; margin-top: 8px; }
.my-title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kebab { flex: none; width: 30px; height: 30px; margin: -3px -4px 0 0; border: 0; border-radius: 9px; background: none; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .12s, background .12s; }
.my-item:hover .kebab, .kebab:focus-visible, .kebab[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .kebab { opacity: 1; } }
.kebab:hover { background: var(--surface-2); color: var(--text); }
.card-menu { top: 100%; right: 0; }
.my-meta { margin: 0; color: var(--muted); font-size: 12.5px; }
.chip { align-self: flex-start; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; }

/* loading skeleton */
.skel .my-thumb { box-shadow: none; border-color: transparent; background: var(--surface-2); }
.sk-l { height: 12px; margin-top: 10px; border-radius: 6px; background: var(--surface-2); width: 80%; }
.sk-l.s { width: 50%; height: 10px; margin-top: 6px; }
.skel .my-thumb, .sk-l { background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 7%, transparent), transparent); background-size: 200% 100%; animation: sheen 1.3s infinite linear; }
@keyframes sheen { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* empty state */
.empty { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 72px 16px; }
.empty[hidden] { display: none; }
.empty h2 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.01em; }
.empty p { margin: 0; max-width: 44ch; color: var(--muted); }

/* dialogs */
.my-dlg { width: min(940px, 94vw); padding: 0; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(6, 14, 24, .55); }
.my-dlg.small { width: min(440px, 94vw); }
.my-dlg::backdrop { background: rgba(6, 14, 24, .55); backdrop-filter: blur(4px); }
.my-dlg[open] { animation: pop .14s ease-out; }
.my-dlg-in { padding: 20px; display: grid; gap: 14px; }
.my-dlg video { width: 100%; max-height: 72vh; background: #000; border-radius: 12px; }
.my-dlg-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.my-dlg-bar.end { justify-content: flex-end; }
.my-dlg h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.my-dlg p { margin: 0; color: var(--muted); }
.fld { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.fld input { padding: 11px 12px; font: inherit; font-size: 15px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.fld input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); background: var(--bg); }
.mlist { display: grid; gap: 4px; max-height: 40vh; overflow: auto; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 14.5px; color: var(--text); }
.mrow:hover { background: var(--surface-2); }
.mrow input { accent-color: var(--primary); width: 16px; height: 16px; }
.btn.danger { background: #c9302f; border-color: #c9302f; box-shadow: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; padding: 11px 18px; border-radius: 12px; background: #10253A; color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--sh2); animation: pop .15s ease-out; }
.toast[hidden] { display: none; }
.toast.bad { background: #a8281f; }

@media (max-width: 880px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--border); overflow: visible; }
  .side-h, .side-foot { display: none; }
  .side-sec { margin: 0; }
  .side-folders { flex-direction: row; flex-wrap: wrap; }
  .side-i.on::before { display: none; }
  .app-top { gap: 10px; padding: 0 14px; }
  .app-top .brand span { display: none; }
  .app-link { display: none; }
  .app-main { padding: 20px 16px 48px; }
  .app-bar h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.folder-tools[hidden], .chip-btn[hidden], .empty[hidden], .app-top [hidden] { display: none !important; }

/* usage meter */
.meter { display: grid; gap: 7px; margin-bottom: 8px; }
.meter[hidden] { display: none; }
.meter-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.meter-s { font-size: 11px; font-weight: 600; color: var(--muted); }
.bar { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width .3s ease; }
.meter.full .bar i { background: #c9302f; }
.meter-note { margin: 0; font-size: 12px; color: #c9302f; line-height: 1.4; }

/* account menu card */
.menu.acct { min-width: 260px; padding: 14px; display: grid; gap: 12px; }
.acct-id { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.acct-id b { font-size: 15px; display: inline; }
.acct-id .pill { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.menu.acct .acct-id p { border: 0; padding: 0; margin: 0; }
.acct-use { display: grid; gap: 7px; }
.acct-use[hidden] { display: none; }
.menu.acct .acct-plans { justify-content: center; text-align: center; padding: 10px 14px; color: var(--on-primary); }
.menu.acct .acct-plans:hover { text-decoration: none; background: var(--primary-2); }
.acct-link { text-align: center; font-size: 13px; font-weight: 600; padding: 2px 0; }
.menu.acct button#acct-upgrade { width: 100%; }
.bar[hidden], .meter .bar[hidden] { display: none; }

/* ===== Viewer: full-window player + Manage panel (always dark, like a cinema) ===== */
.vwr { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: radial-gradient(90% 60% at 50% 0, #16304A, #0A1422 70%); color: #EAF4FB; }
.vwr::backdrop { background: #060D17; }
.vwr[open] { display: flex; animation: none; }
.vwr-in { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; }
.vwr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 20px; flex: none; }
.vwr-nav { display: inline-flex; align-items: center; gap: 6px; }
.vwr-nav button, .vwr-x { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background .12s, border-color .12s; }
.vwr-nav button:hover:not(:disabled), .vwr-x:hover { background: rgba(255, 255, 255, .16); }
.vwr-nav button:disabled { opacity: .35; cursor: default; }
.vwr-nav button:focus-visible, .vwr-x:focus-visible, .pl button:focus-visible, .vs-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 192, 248, .6); }
.vwr-pos { min-width: 56px; text-align: center; font-size: 13px; color: #A9BED2; font-variant-numeric: tabular-nums; }
.vwr-hint { font-size: 12px; color: #8199B0; }
.vwr-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding: 4px 32px 28px; overflow: auto; align-items: start; }
.vwr-stage { min-width: 0; display: grid; gap: 14px; justify-items: center; }
.pl { position: relative; width: min(100%, calc((100vh - 210px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06); user-select: none; }
.pl video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.pl.idle.playing { cursor: none; }
.pl:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.pl-big { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; display: grid; place-items: center; padding-left: 5px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; color: #fff; background: rgba(8, 20, 34, .55); backdrop-filter: blur(8px); cursor: pointer; transition: transform .15s, background .15s; }
.pl-big svg { width: 34px; height: 34px; }
.pl-big:hover { transform: scale(1.07); background: rgba(0, 192, 248, .75); }
.pl-big[hidden] { display: none; }
.pl-spin { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.pl-spin[hidden] { display: none; }
.pl-spin span { width: 44px; height: 44px; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: vwr-rot .8s linear infinite; }
@keyframes vwr-rot { to { transform: rotate(360deg); } }
.pl-err { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px; background: rgba(6, 14, 24, .86); }
.pl-err[hidden] { display: none; }
.pl-err b { font-size: 18px; } .pl-err span { color: #A9BED2; font-size: 14px; max-width: 40ch; }
.pl-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); transition: opacity .2s; }
.pl.idle.playing .pl-bar { opacity: 0; pointer-events: none; }
.pl-seek { position: relative; height: 18px; display: flex; align-items: center; }
.pl-seek::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .28); transition: height .12s; }
.pl-seek:hover::before, .pl-seek:hover .pl-buf, .pl-seek:hover .pl-fill { height: 6px; }
.pl-buf, .pl-fill { position: absolute; left: 0; height: 4px; border-radius: 4px; width: 0; transition: height .12s; pointer-events: none; }
.pl-buf { background: rgba(255, 255, 255, .42); }
.pl-fill { background: linear-gradient(90deg, #00C0F8, #00A6DA); }
.pl input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; margin: 0; cursor: pointer; }
.pl-seek input { position: absolute; inset: 0; width: 100%; height: 18px; }
.pl input[type="range"]::-webkit-slider-runnable-track { height: 18px; background: transparent; }
.pl input[type="range"]::-moz-range-track { height: 18px; background: transparent; }
.pl-seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(0, 192, 248, .45); transform: scale(0); transition: transform .12s; }
.pl-seek input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .12s; }
.pl-seek:hover input::-webkit-slider-thumb, .pl-seek input:focus-visible::-webkit-slider-thumb { transform: scale(1); }
.pl-seek:hover input::-moz-range-thumb, .pl-seek input:focus-visible::-moz-range-thumb { transform: scale(1); }
.pl-row { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.pl-row button { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border: 0; border-radius: 10px; background: none; color: #fff; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; transition: background .12s; }
.pl-row button:hover { background: rgba(255, 255, 255, .16); }
.pl-row button[aria-pressed="true"] { background: rgba(0, 192, 248, .55); }
.pl-row button[hidden] { display: none; }
#pl-mute.off svg { opacity: .45; }
.pl-vol { display: inline-flex; align-items: center; }
.pl-vol input { width: 0; opacity: 0; height: 18px; transition: width .15s, opacity .15s; }
.pl-vol:hover input, .pl-vol:focus-within input { width: 84px; opacity: 1; margin: 0 8px 0 2px; }
.pl-vol input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); margin: 7px 0; }
.pl-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; }
.pl-time { margin-left: 8px; font-size: 13px; font-variant-numeric: tabular-nums; color: #EAF4FB; white-space: nowrap; }
.pl-sp { flex: 1; }
.pl-menu { position: relative; display: inline-flex; }
.pl-txt { min-width: 48px; }
.pl-pop { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 120px; padding: 6px; border-radius: 12px; background: rgba(16, 32, 52, .96); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .8); backdrop-filter: blur(10px); }
.pl-pop[hidden] { display: none; }
.pl-row .pl-pop button { display: block; width: 100%; height: auto; padding: 8px 12px; text-align: left; font-weight: 600; }
.pl-row .pl-pop button[aria-checked="true"] { background: rgba(0, 192, 248, .6); }
.vwr-info { width: 100%; max-width: min(100%, calc((100vh - 210px) * 16 / 9)); display: grid; gap: 2px; }
.vwr-title { width: 100%; padding: 6px 8px; margin: 0 0 0 -8px; font: inherit; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #fff; background: transparent; border: 1px solid transparent; border-radius: 10px; }
.vwr-title:hover { border-color: rgba(255, 255, 255, .14); }
.vwr-title:focus { outline: none; border-color: #00C0F8; background: rgba(255, 255, 255, .06); }
.vwr-meta { margin: 0; font-size: 13.5px; color: #A9BED2; }


/* Manage video: a card on desktop, a full-screen sheet on a phone */
.vwr-side { align-self: start; }
.mg-card { display: grid; gap: 14px; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .11); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); backdrop-filter: blur(12px); }
.mg-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.mg-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #EAF4FB; background: linear-gradient(145deg, #0E6A8F, #0A4A66); border: 1px solid rgba(0, 192, 248, .55); box-shadow: 0 10px 24px -12px rgba(0, 192, 248, .9); }
.mg-ttl { min-width: 0; flex: 1; }
.mg-ttl h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; color: #fff; }
.mg-ttl p { margin: 2px 0 0; font-size: 13.5px; color: #A9BED2; }
.mg-x { display: none; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(255, 255, 255, .05); color: #fff; cursor: pointer; }
.mg-x:hover { background: rgba(255, 255, 255, .16); }
.mg-x:focus-visible, .mg-dl:focus-visible, .mg-copy:focus-visible, .mg-open:focus-visible, .mg-new:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 192, 248, .6); }
.vs { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .09); }
.mg-head + .vs { border-top: 0; padding-top: 4px; }
.vs h4 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8FA8BF; }
.vs-p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #A9BED2; }
.mg-sel { position: relative; display: flex; align-items: center; }
.mg-sel select { width: 100%; appearance: none; -webkit-appearance: none; padding: 14px 40px 14px 46px; font: inherit; font-size: 16px; color: #fff; background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; cursor: pointer; }
.mg-sel select option { color: #111; }
.mg-selic { position: absolute; left: 15px; color: #EAF4FB; pointer-events: none; display: grid; }
.mg-sel select:focus, .mg-url input:focus { outline: none; border-color: #00C0F8; box-shadow: 0 0 0 3px rgba(0, 192, 248, .35); }
.mg-new { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 4px 2px; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 700; color: #EAF4FB; cursor: pointer; border-radius: 10px; }
.mg-new:hover { color: #EAF4FB; }
.mg-dl { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; padding: 16px 18px; border: 1px solid rgba(0, 192, 248, .7); border-radius: 16px; background: linear-gradient(180deg, rgba(0, 150, 204, .28), rgba(0, 110, 160, .2)); color: #fff; cursor: pointer; font: inherit; transition: background .15s, transform .15s; }
.mg-dl:hover { background: linear-gradient(180deg, rgba(0, 170, 225, .4), rgba(0, 125, 180, .3)); transform: translateY(-1px); }
.mg-dl svg { width: 30px; height: 30px; }
.mg-dl-t { display: grid; text-align: left; }
.mg-dl-t b { font-size: 17px; } .mg-dl-t small { font-size: 13.5px; color: #A9BED2; }
.mg-linkrow { display: flex; gap: 10px; }
.mg-url { position: relative; flex: 1; min-width: 0; }
.mg-urlic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #EAF4FB; display: grid; pointer-events: none; }
.mg-url input { width: 100%; padding: 14px 12px 14px 44px; font: inherit; font-size: 15px; color: #fff; text-overflow: ellipsis; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; }
.mg-copy { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 0 18px; border: 1px solid rgba(0, 192, 248, .8); border-radius: 14px; background: linear-gradient(180deg, rgba(0, 150, 204, .5), rgba(0, 110, 160, .42)); color: #fff; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.mg-copy:hover { background: linear-gradient(180deg, rgba(0, 170, 225, .65), rgba(0, 125, 180, .55)); }
.mg-state { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.mg-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #5fe0a1; border: 1.5px solid rgba(95, 224, 161, .75); background: rgba(95, 224, 161, .12); }
.mg-badge svg { width: 17px; height: 17px; }
.mg-active { flex: 1; font-size: 16px; font-weight: 700; color: #72e6aa; }
.mg-stop { border: 0; background: none; font: inherit; font-size: 16px; font-weight: 700; color: #ff7a78; cursor: pointer; padding: 4px 2px; }
.mg-stop:hover { text-decoration: underline; }
.vs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .12s; }
.vs-btn:hover { background: rgba(255, 255, 255, .17); }
.vs-btn.primary { border: 0; background: var(--primary); color: #10253A; box-shadow: 0 10px 22px -10px rgba(0, 192, 248, .7); }
.vs-btn.primary:hover { background: var(--primary-2); }
.vs-btn.danger { color: #ff7f7c; border-color: rgba(255, 110, 105, .55); background: rgba(255, 90, 85, .1); }
.vs-btn.danger:hover { background: rgba(255, 90, 85, .2); }
.vs-msg { margin: 0; font-size: 13.5px; color: #ff9a96; }
.vs-msg.ok { color: #7be0b5; }
.vs-msg[hidden], .vs [hidden] { display: none; }
.mg-open { display: none; align-items: center; gap: 10px; margin-top: 10px; padding: 11px 18px; border: 1px solid rgba(0, 192, 248, .7); border-radius: 999px; background: linear-gradient(180deg, rgba(0, 150, 204, .35), rgba(0, 110, 160, .28)); color: #fff; font: inherit; font-weight: 700; cursor: pointer; width: fit-content; }
.vwr-info .mg-open svg { width: 18px; height: 18px; }

/* theater: the player takes the whole width, the panel moves under it */
.vwr-grid.theater { grid-template-columns: minmax(0, 1fr); }
.vwr-grid.theater .pl { width: min(100%, calc((100vh - 190px) * 16 / 9)); }

@media (max-width: 1060px) {
  .vwr-grid { grid-template-columns: minmax(0, 1fr); padding: 4px 16px 24px; }
  .pl, .vwr-grid.theater .pl { width: 100%; }
  .vwr-info { max-width: 100%; }
  .vwr-hint { display: none; }
  #pl-theater { display: none; }
  .mg-open { display: inline-flex; }
  /* the sheet fills the whole screen height, like a phone app */
  .vwr-side { display: none; }
  .vwr-grid.manage-open .vwr-side { display: grid; place-items: center; position: fixed; inset: 0; z-index: 30; height: 100vh; height: 100dvh; padding: 16px; overflow-y: auto; background: radial-gradient(90% 55% at 50% 0, #16304A, #0A1422 75%); }
  .vwr-grid.manage-open .mg-card { width: min(560px, 100%); margin: auto; }
  .mg-x { display: grid; }
}
@media (max-width: 560px) {
  .pl-time { display: none; } .vwr-title { font-size: 20px; }
  /* compact sheet: same layout, less air, so it fits a phone screen without scrolling */
  .vwr-grid.manage-open .vwr-side { padding: 10px; }
  .mg-card { padding: 14px; gap: 8px; border-radius: 18px; }
  .mg-head { gap: 10px; padding-bottom: 10px; }
  .mg-ico { width: 40px; height: 40px; border-radius: 12px; } .mg-ico svg { width: 22px; height: 22px; }
  .mg-ttl h3 { font-size: 17px; } .mg-ttl p { font-size: 12.5px; margin-top: 0; }
  .mg-x { width: 34px; height: 34px; }
  .vs { gap: 8px; padding-top: 10px; } .vs h4 { font-size: 11px; }
  .mg-sel select { padding: 11px 36px 11px 42px; font-size: 15px; border-radius: 12px; } .mg-selic { left: 13px; }
  .mg-new { font-size: 14.5px; gap: 8px; padding: 2px; } .mg-new svg { width: 19px; height: 19px; }
  .mg-dl { padding: 11px 14px; gap: 12px; border-radius: 13px; } .mg-dl svg { width: 24px; height: 24px; } .mg-dl-t b { font-size: 15px; } .mg-dl-t small { font-size: 12.5px; }
  .mg-url input { padding: 11px 10px 11px 38px; font-size: 14px; border-radius: 12px; } .mg-urlic { left: 12px; }
  .mg-copy { padding: 0 14px; border-radius: 12px; font-size: 15px; } .mg-copy span { display: inline; }
  .mg-state { margin-top: 0; } .mg-badge { width: 28px; height: 28px; } .mg-badge svg { width: 15px; height: 15px; } .mg-active, .mg-stop { font-size: 14.5px; }
  .vs-btn { padding: 11px 14px; font-size: 15px; border-radius: 12px; } .vs-p { font-size: 13px; }
}
@media (max-width: 560px) and (max-height: 700px) { .mg-head { padding-bottom: 6px; } .mg-ttl p { display: none; } }
.pl:focus, .pl:focus-visible { outline: none; }

/* ===== sign in / create account ===== */
.auth-card { max-width: 440px; margin: 0 auto; padding: 32px 30px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--sh2); text-align: center; }
.auth-card h1 { margin: 0 0 6px; font-size: 25px; line-height: 1.2; letter-spacing: -.02em; }
.auth-sub { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 12px; background: var(--surface-2); }
.auth-tabs[hidden] { display: none; }
.auth-tabs button { padding: 9px 10px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background .12s, color .12s; }
.auth-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(35, 52, 76, .12); }
.g-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .12s, border-color .12s; }
.g-btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.g-btn[hidden] { display: none; }
.g-btn svg { flex: none; width: 18px; height: 18px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; color: var(--muted); font-size: 12.5px; }
.auth-or[hidden] { display: none; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-form { display: grid; gap: 12px; text-align: left; }
.auth-form[hidden] { display: none; }
.auth-card .fld { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.auth-card .fld[hidden] { display: none; }
.auth-card .fld input { width: 100%; padding: 11px 12px; font: inherit; font-size: 15px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.auth-card .fld input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); background: var(--bg); }
.pwrap { position: relative; display: block; }
.pwrap input { padding-right: 62px !important; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 5px 9px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text); cursor: pointer; }
.eye:hover { background: var(--primary-soft); }
.auth-hint { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); }
.auth-hint[hidden] { display: none; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.auth-row.end { justify-content: center; }
.auth-row > [hidden], .chk[hidden] { display: none; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--primary); }
.auth-link { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; text-decoration: underline; }
.auth-note { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; background: rgba(201, 48, 47, .09); color: #b3261e; }
.auth-note.ok { background: rgba(15, 138, 106, .11); color: #0b6e55; }
.auth-note[hidden], .auth-sent[hidden] { display: none; }
@media (prefers-color-scheme: dark) { .auth-note { color: #ff9a96; } .auth-note.ok { color: #6fe0b4; } }
.auth-sent { margin: 0; padding: 14px; border-radius: 12px; background: var(--primary-soft); color: var(--text); font-size: 14.5px; line-height: 1.5; text-align: center; }
.auth-submit { width: 100%; height: 46px; justify-content: center; font-size: 15.5px; }
.auth-submit[hidden] { display: none; }
.auth-submit.busy { opacity: .7; cursor: progress; }
.auth-fine { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.auth-card .gate-ico { margin-bottom: 10px; }
@media (max-width: 480px) { .auth-card { padding: 24px 18px 20px; border-radius: 18px; } .gate { padding: 28px 0 56px; } }

/* ===== video card: thumbnail first, hover action bar, favourite, multi-select ===== */
.my-media { position: relative; }
.my-item .my-thumb { width: 100%; }
.my-item.selected .my-thumb { outline: 3px solid #00C0F8; outline-offset: -3px; }
.my-badge { position: absolute; left: 8px; top: 8px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 10px; background: #00C0F8; color: #10253A; font-size: 0; box-shadow: 0 4px 12px -4px rgba(0, 150, 204, .7); }
.my-dur { transition: bottom .15s, opacity .15s; }
.my-media:hover .my-dur, .my-media:focus-within .my-dur { bottom: 58px; }

/* top-right: star (always) and checkbox (hover / focus / selecting) */
.my-tr { position: absolute; right: 8px; top: 8px; z-index: 3; display: flex; align-items: center; gap: 6px; }
.fav, .sel { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: rgba(16, 37, 58, .55); backdrop-filter: blur(6px); color: #fff; cursor: pointer; transition: background .12s, opacity .15s, transform .12s; }
.fav:hover, .sel:hover { background: rgba(16, 37, 58, .8); }
.fav.on { color: #FFC83D; }
.fav:focus-visible, .sel:focus-within { outline: none; box-shadow: 0 0 0 2px #00C0F8; }
.sel { opacity: 0; transform: scale(.92); }
.sel input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sel .box { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .9); color: transparent; transition: background .12s, border-color .12s; pointer-events: none; }
.sel input:checked + .box { background: #00C0F8; border-color: #00C0F8; color: #10253A; }
.my-media:hover .sel, .my-media:focus-within .sel, .my-item.selected .sel, body.selecting .sel { opacity: 1; transform: none; }
.my-item.selected .sel { background: rgba(16, 37, 58, .8); }

/* the action bar along the bottom of the thumbnail: icons only, names in tooltips */
.my-plate { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: stretch; justify-content: space-between; height: 50px; padding: 0 6px; border-radius: 0 0 14px 14px; background: rgba(16, 37, 58, .86); backdrop-filter: blur(8px); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .15s, transform .15s; }
.my-media:hover .my-plate, .my-media:focus-within .my-plate { opacity: 1; transform: none; pointer-events: auto; }
.pa { position: relative; flex: 1; display: grid; place-items: center; min-width: 40px; border: 0; background: none; color: #fff; cursor: pointer; border-radius: 10px; margin: 5px 1px; transition: background .12s, color .12s; }
.pa:hover { background: rgba(255, 255, 255, .14); }
.pa:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #00C0F8; }
.pa.danger { color: #FF6B67; }
.pa.danger:hover { background: rgba(255, 90, 85, .22); }
.pa::after, .fav::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(3px); padding: 5px 9px; border-radius: 8px; background: #10253A; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); }
.pa:first-child::after { left: 0; transform: translateY(3px); } .pa:last-child::after { left: auto; right: 0; transform: translateY(3px); }
.pa:hover::after, .pa:focus-visible::after, .fav:hover::after, .fav:focus-visible::after { opacity: 1; }
.pa:first-child:hover::after, .pa:first-child:focus-visible::after, .pa:last-child:hover::after, .pa:last-child:focus-visible::after { transform: none; }
.pa:not(:first-child):not(:last-child):hover::after, .pa:not(:first-child):not(:last-child):focus-visible::after { transform: translateX(-50%); }
.fav::after { bottom: auto; top: calc(100% + 8px); left: auto; right: 0; transform: translateY(-3px); }
.fav:hover::after, .fav:focus-visible::after { transform: none; }

/* bulk toolbar */
.bulk { position: sticky; top: 72px; z-index: 12; display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 10px 8px 16px; border-radius: 14px; background: #10253A; color: #fff; box-shadow: 0 14px 30px -14px rgba(16, 37, 58, .6); animation: pop .14s ease-out; }
.bulk[hidden] { display: none; }
.bulk-n { font-weight: 700; font-size: 14px; padding-right: 6px; }
.bulk-sp { flex: 1; }
.bulk-b { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .12s; }
.bulk-b:hover { background: rgba(255, 255, 255, .2); }
.bulk-b:first-of-type { background: none; color: #EAF4FB; }
.bulk-b.danger { color: #FF8A86; }
.bulk-b:focus-visible, .bulk-x:focus-visible { outline: none; box-shadow: 0 0 0 2px #00C0F8; }
.bulk-x { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: #fff; cursor: pointer; }
.bulk-x:hover { background: rgba(255, 255, 255, .16); }

.side-upgrade { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 12px; margin: 2px 0 4px; border: 0; border-radius: 12px; background: var(--primary-soft); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .12s; }
.side-upgrade:hover { background: color-mix(in srgb, var(--primary) 26%, var(--primary-soft)); }
.side-upgrade[hidden] { display: none; }

/* touch screens have no hover: the bar sits under the image, the checkbox and star are always visible */
@media (hover: none) {
  .my-plate { position: static; height: auto; margin-top: 8px; padding: 2px 4px; opacity: 1; transform: none; pointer-events: auto; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: none; }
  .pa { color: var(--text); margin: 3px 1px; min-height: 40px; } .pa.danger { color: #c9302f; } .pa:hover { background: var(--surface-2); }
  .pa::after, .fav::after { display: none; }
  .sel { opacity: 1; transform: none; }
  .my-media:hover .my-dur, .my-media:focus-within .my-dur { bottom: 8px; }
}
@media (max-width: 560px) { .bulk { top: 64px; flex-wrap: wrap; } .bulk-sp { display: none; } }
@media (prefers-reduced-motion: reduce) { .my-plate, .pa::after, .sel { transition: none; } }
.auth-card .gate-ico { background: none; width: 72px; height: 72px; border-radius: 0; }
.gate-ico img { display: block; width: 64px; height: 64px; object-fit: contain; }
.auth-note.info { background: rgba(10, 124, 255, .1); color: #0a5bc4; }
@media (prefers-color-scheme: dark) { .auth-note.info { color: #8cc2ff; } }
/* Manage panel: a row of round action buttons (Download, Edit video, More) */
.mg-actions { display: flex; justify-content: space-around; align-items: flex-start; gap: 8px; padding: 6px 0; }
.mg-act { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 8px; font: inherit; color: #fff; cursor: pointer; }
.mg-act[hidden] { display: none; }
.mg-act .rd { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--on-primary, #fff); transition: transform .12s, background .12s; }
.mg-act:hover .rd { transform: scale(1.06); }
.mg-act b { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.mg-more { position: relative; }
.mg-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 170px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px rgba(35, 52, 76, .22); }
.mg-menu[hidden] { display: none; }
.mg-menu .vs-del { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #c9302f; cursor: pointer; text-align: left; }
.mg-menu .vs-del:hover { background: rgba(201, 48, 47, .08); }

/* ---- the video viewer follows the light theme of the site (a dark theme can be added later); the player itself stays dark ---- */
.vwr { background: #F5F8FC; color: #10233F; }
.vwr::backdrop { background: #F5F8FC; }
.vwr-nav button, .vwr-x, .mg-x { border-color: #d3deec; background: #fff; color: #10233F; }
.vwr-nav button:hover:not(:disabled), .vwr-x:hover, .mg-x:hover { background: #eaf2fc; }
.vwr-pos { color: #5b6b82; } .vwr-hint { color: #7a8aa0; }
.vwr-title { color: #10233F; } .vwr-title:hover { border-color: #d3deec; } .vwr-title:focus { background: #fff; border-color: #00C0F8; }
.vwr-meta { color: #5b6b82; }
.pl { box-shadow: 0 16px 44px -20px rgba(16, 35, 63, .5); }
.mg-card { background: #fff; border: 1px solid #dbe5f1; box-shadow: 0 14px 40px -22px rgba(16, 35, 63, .35); backdrop-filter: none; }
.mg-head { border-bottom-color: #e6edf6; }
.mg-ico { color: #0a6f93; background: #e6f7fd; border-color: rgba(0, 192, 248, .5); box-shadow: none; }
.mg-ttl h3 { color: #10233F; } .mg-ttl p { color: #5b6b82; }
.vs { border-top-color: #e6edf6; }
.vs h4 { color: #6b7b92; } .vs-p { color: #5b6b82; }
.mg-sel select { color: #10233F; background-color: #fff; border-color: #d3deec; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2310233F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.mg-selic, .mg-urlic, .mg-new, .mg-new:hover { color: #10233F; }
.mg-url input { color: #10233F; background: #fff; border-color: #d3deec; }
.mg-copy { color: #10253A; background: var(--primary); border-color: var(--primary); }
.mg-copy:hover { background: var(--primary-2); }
.mg-badge { color: #0f8a6a; border-color: #0f8a6a; background: rgba(15, 138, 106, .1); }
.mg-active { color: #0f8a6a; } .mg-stop { color: #c9302f; }
.vs-btn { color: #10233F; background: #fff; border-color: #d3deec; } .vs-btn:hover { background: #eef3f9; }
.vs-btn.danger { color: #c9302f; border-color: rgba(201, 48, 47, .5); background: rgba(201, 48, 47, .06); } .vs-btn.danger:hover { background: rgba(201, 48, 47, .12); }
.vs-msg { color: #c9302f; } .vs-msg.ok { color: #0f8a6a; }
.mg-act, .mg-act b { color: #10233F; }
.mg-open { color: #10233F; background: #fff; border-color: #d3deec; }
.pl, .pl-err, .pl-err b { color: #EAF4FB; }

/* ---- Manage panel in the same look as the Share panel of the image page (blue buttons, 16px card, light fields) ---- */
.mg-card { padding: 18px; gap: 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.mg-head { padding-bottom: 12px; gap: 12px; }
.mg-ico { width: 42px; height: 42px; border-radius: 12px; }
.mg-ttl h3 { font-size: 16px; font-weight: 800; letter-spacing: 0; }
.mg-ttl p { font-size: 12.5px; }
.vs { gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.vs h4 { font-size: 15px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--text); }
.vs-p { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.mg-sel select { padding: 10px 36px 10px 42px; font-size: 14px; border: 1px solid var(--border); border-radius: 10px; background-color: var(--surface-2); background-position: right 12px center; }
.mg-selic { left: 13px; }
.mg-new { font-size: 14px; font-weight: 700; }
.mg-url input { padding: 10px 12px 10px 40px; font-size: 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.mg-urlic { left: 12px; }
.mg-copy, .vs-btn.primary { height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; background: #0a7cff; color: #fff; font-size: 15px; font-weight: 700; box-shadow: none; }
.mg-copy:hover, .vs-btn.primary:hover { background: #0866d6; }
.vs-btn { height: 44px; padding: 0 16px; border-radius: 12px; font-size: 15px; font-weight: 700; border-color: var(--border); }
.vs-btn.danger { border-color: rgba(201, 48, 47, .5); }
.mg-act .rd { background: #0a7cff; color: #fff; }
.mg-act b { font-size: 12.5px; font-weight: 600; }
.mg-badge { width: 30px; height: 30px; }
.mg-active { font-size: 14px; } .mg-stop { font-size: 14px; }
/* the viewer's way out is a "My items" link at the top left (no X); the Manage panel is as tall as the player */
.vwr-x.vwr-back { order: -1; width: auto; padding: 0 16px 0 12px; gap: 6px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; }
.vwr-top { gap: 10px; justify-content: flex-start; }
.vwr-hint { margin-left: auto; }
.mg-card { align-content: start; }

/* the gap between the player and the Manage panel is the same 20px as on the image page, however wide the window is */
@media (min-width: 1061px) {
  .vwr-grid:not(.theater) { grid-template-columns: minmax(0, min(calc((100vh - 210px) * 16 / 9), calc(100% - 380px))) 360px; justify-content: center; gap: 20px; }
  .vwr-grid:not(.theater) .pl { width: 100%; }
}
/* the signed-in person: the name and the photo from the Google account */
.app-acct { display: inline-flex; align-items: center; gap: 10px; }
.acct-who { font-size: 14px; font-weight: 700; color: var(--text); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who:empty { display: none; }
.avatar { overflow: hidden; padding: 0; display: inline-grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .acct-who { display: none; } }
/* clickable links on the video in the owner's viewer */
.my-links { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.my-link-chip { position: absolute; display: block; border-radius: 8px; cursor: pointer; pointer-events: auto; }
.my-link-chip:hover, .my-link-chip:focus-visible { outline: 2px solid rgba(255, 255, 255, .95); outline-offset: 1px; box-shadow: 0 0 0 4px rgba(10, 124, 255, .55); }
.my-link-chip[hidden] { display: none; }

/* ===== sign in: welcome panel + form (like the app's sign-in), with a picture check ===== */
.auth-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); max-width: 1000px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--sh2); overflow: hidden; }
.auth-split .auth-card { max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 44px 48px 30px; display: flex; flex-direction: column; justify-content: center; }
.as-side { padding: 40px 42px 34px; text-align: left; background: linear-gradient(160deg, #e3f2ff 0%, #f1f6ff 55%, #ece6ff 100%); color: #14264f; }
.as-brand { display: flex; align-items: center; gap: 12px; }
.as-brand img { width: 56px; height: 56px; object-fit: contain; }
.as-name { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: #14264f; }
.as-name .my { color: #1f6fff; } .as-name .nest { color: #7a3fe0; }
.as-tag { font-size: 14px; color: #5b6b8c; margin-top: 2px; }
.as-welcome { margin: 28px 0 14px; font-size: 32px; line-height: 1.15; letter-spacing: -.02em; color: #14264f; }
.as-lead { margin: 0 0 12px; display: grid; gap: 2px; }
.as-lead b { font-size: 27px; letter-spacing: -.01em; background: linear-gradient(90deg, #1f6fff, #7a3fe0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.as-lead span { font-size: 20px; }
.as-copy { margin: 0 0 8px; color: #43517a; font-size: 16px; line-height: 1.55; }
.as-ill { display: block; width: 100%; max-width: 420px; height: auto; margin: 10px 0 8px; }
.as-feat { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px; margin: 0; padding: 14px 0 0; list-style: none; }
.as-feat li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.25; color: #14264f; font-weight: 600; }
.as-feat svg { width: 30px; height: 30px; flex: none; color: #2f7bff; }
.auth-social { display: grid; gap: 12px; }
.auth-split .g-btn { height: 48px; border-radius: 10px; }
.g-btn.a-btn { color: var(--text); }
.g-btn.a-btn[disabled] { opacity: .5; cursor: not-allowed; background: var(--surface-2); border-color: var(--border); }
.g-btn.a-btn em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--primary-soft); color: var(--text); }
.auth-split .auth-or { margin: 18px 0 16px; }
.auth-split .auth-form { gap: 14px; }
.auth-split .fld > span:first-child:not(.pwrap) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.auth-split .fld input { height: 50px; padding: 0 14px; border-radius: 10px; background: var(--surface); }
.cap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.cap[hidden] { display: none; }
.cap-pic { display: flex; align-items: center; gap: 6px; }
.cap-pic img { display: block; width: 190px; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); background: #f6f9fd; }
.cap-new { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 99px; background: none; color: var(--primary, #0a7cff); cursor: pointer; }
.cap-new:hover { background: var(--primary-soft); }
.cap input { height: 50px; padding: 0 14px; font: inherit; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.cap input::placeholder { letter-spacing: 0; text-transform: none; font-size: 14px; }
.cap input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.auth-split .auth-submit { height: 52px; border-radius: 10px; font-size: 17px; }
.auth-alt { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.auth-alt[hidden] { display: none; }
.auth-alt i { width: 1px; height: 16px; background: var(--border); }
.auth-alt .auth-link { text-decoration: none; color: var(--primary, #0a7cff); font-size: 15px; font-weight: 600; }
.auth-alt .auth-link:hover { text-decoration: underline; }
.auth-split .auth-tabs { display: none; }
.auth-split .auth-card h1 { font-size: 38px; margin: 0 0 14px; }
@media (max-width: 880px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
  .as-side { display: none; }
  .auth-split .auth-card { padding: 30px 22px 22px; }
  .auth-split .auth-card h1 { font-size: 30px; }
  .cap { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-color-scheme: dark) { .cap-pic img { filter: none; } }
.auth-split .auth-note { margin: -2px 0 0; }

/* account menu: name + plan on one line, left-aligned items, even spacing */
.menu.acct { min-width: 270px; padding: 8px; gap: 2px; }
.menu.acct .acct-id { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 10px 12px; margin-bottom: 4px; }
.menu.acct .acct-id b { font-size: 16px; }
.menu.acct .acct-id .pill { display: inline-block; width: auto; margin: 0; padding: 2px 10px; }
.menu.acct .acct-id p { flex-basis: 100%; padding: 0; font-size: 13px; }
.menu.acct .acct-use { padding: 0 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.menu.acct .acct-link { display: block; padding: 9px 10px; border-radius: 8px; text-align: left; font-size: 14px; font-weight: 400; color: var(--text); text-decoration: none; }
.menu.acct .acct-link:hover { background: var(--surface-2); }
.menu.acct .acct-plans { margin: 2px 0 6px; }

/* header: same look as the video / image share pages */
.app-top { height: auto; min-height: 64px; padding: 8px 24px; background: linear-gradient(120deg, #eaf4ff 0%, #f6faff 55%, #eef2ff 100%); backdrop-filter: none; border-bottom: 1px solid rgba(22, 133, 248, .2); box-shadow: 0 1px 2px rgba(22, 133, 248, .06); }
.app-top > * { position: relative; z-index: 1; }
.app-top > .app-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.app-bg svg { position: absolute; right: 0; bottom: 0; width: 62%; height: 100%; }
.app-top .brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.app-top .brand img { display: block; width: 42px; height: 42px; object-fit: contain; }
.app-name { display: flex; flex-direction: column; line-height: 1.15; }
.app-name b { font-size: 22px; font-weight: 800; letter-spacing: -.6px; }
.app-name i { font-style: normal; color: #10233f; }
.app-name u { text-decoration: none; background: linear-gradient(90deg, #1685f8, #762bee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-name small { margin-top: 1px; font-size: 12.5px; color: #64748b; font-weight: 400; }
.app-top .app-search input { background: rgba(255, 255, 255, .85); border-color: rgba(22, 133, 248, .18); }
.app-top .app-link { font-size: 15px; color: var(--text); }
.app-top .app-link:hover { color: #0a7cff; background: rgba(255, 255, 255, .6); }
@media (max-width: 640px) { .app-top { padding: 8px 14px; min-height: 60px; } .app-top .brand img { width: 34px; height: 34px; } .app-name b { font-size: 17px; } .app-name small { display: none; } .app-top .brand span { display: flex; } }

/* My profile dialog */
#my-prof .pf-mail { margin: -4px 0 14px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
#my-prof .pf-sec { display: grid; gap: 10px; margin: 0 0 16px; padding-top: 14px; border-top: 1px solid var(--border); }
#my-prof .pf-sec:first-of-type { border-top: 0; padding-top: 0; }
#my-prof .pf-sec[hidden] { display: none; }
#my-prof h3 { margin: 0; font-size: 15px; }
#my-prof .pf-sec p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
#my-prof .my-note.ok { background: rgba(15, 138, 106, .11); color: #0b6e55; }

/* ===== My profile page ===== */
.app-body[hidden] { display: none !important; }
.pf[hidden] { display: none; }
.pf { position: relative; min-height: calc(100vh - 76px); padding: 0 24px 80px; background: var(--bg); }
.pf-cover { position: absolute; left: 0; right: 0; top: 0; height: 122px; overflow: hidden; background: linear-gradient(115deg, #1685f8 0%, #4a5ae8 45%, #8b3ff0 100%); }
.pf-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf-wrap { position: relative; max-width: 1000px; margin: 0 auto; padding-top: 20px; }
.pf-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px 8px 11px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .12s, transform .12s; }
.pf-back:hover { background: rgba(255, 255, 255, .3); transform: translateX(-2px); }
.pf-head { display: flex; align-items: flex-end; gap: 22px; margin-top: 54px; }
.pf-av { flex: none; display: grid; place-items: center; width: 124px; height: 124px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #1685f8, #762bee); color: #fff; font-size: 42px; font-weight: 800; border: 5px solid var(--bg); box-shadow: 0 18px 40px -14px rgba(60, 50, 200, .6); }
.pf-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-who { flex: 1; min-width: 0; padding-bottom: 6px; }
.pf-who h1 { margin: 0; font-size: 31px; line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
.pf-mail { margin: 4px 0 10px; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-plan { padding: 4px 12px; border-radius: 999px; background: #10233f; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pf-plan.pro { background: linear-gradient(90deg, #1685f8, #762bee); box-shadow: 0 6px 16px -6px rgba(118, 43, 238, .7); }
.pf-tag { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pf-out { margin-bottom: 8px; gap: 8px; }
.pf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 26px 0 26px; }
.pf-stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--sh1); transition: transform .15s, box-shadow .15s; }
.pf-stat:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
.pf-stat b { display: block; font-size: 22px; line-height: 1.1; letter-spacing: -.02em; }
.pf-stat small { color: var(--muted); font-size: 13px; }
.pf-si { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; }
.pf-si.a { background: linear-gradient(135deg, #1685f8, #4a8bff); } .pf-si.b { background: linear-gradient(135deg, #8b3ff0, #b06cf5); }
.pf-si.c { background: linear-gradient(135deg, #12a58a, #2fcf9d); } .pf-si.d { background: linear-gradient(135deg, #f59a23, #ffb84d); }
.pf-tabs { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 20px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.pf-tab { padding: 9px 20px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.pf-tab.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px -2px rgba(35, 52, 76, .25); }
.pf-panel { animation: pfin .22s ease-out; }
.pf-panel[hidden] { display: none; }
@keyframes pfin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pf-card { padding: 28px 30px 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--sh1); }
.pf-card > header { margin-bottom: 20px; }
.pf-card h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.015em; }
.pf-card header p { margin: 0; font-size: 14px; color: var(--muted); }
.pf-form { display: grid; gap: 16px; }
.pf-form[hidden] { display: none; }
.pf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pf-f { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pf-f input { width: 100%; height: 50px; padding: 0 15px; font: inherit; font-size: 15.5px; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 13px; transition: border-color .12s, box-shadow .12s; }
.pf-f input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.pf-f input[readonly] { background: var(--surface-2); color: var(--muted); cursor: default; }
.pf-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 24px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 700; color: var(--on-primary); text-decoration: none; cursor: pointer; background: var(--primary); box-shadow: 0 10px 24px -10px rgba(0, 192, 248, .6); transition: background .12s, opacity .12s; }
.pf-btn:hover { background: var(--primary-2); text-decoration: none; }
.pf-btn.ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: none; }
.pf-btn.ghost:hover { background: var(--surface-2); box-shadow: none; }
.pf-btn.danger { color: #c9302f; }
.pf-btn.light { background: #fff; color: #10253A; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .5); }
.pf-btn.light:hover { background: #eaf8ff; }
.pf-btn.ghostw { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .4); color: #fff; box-shadow: none; }
.pf-btn.ghostw:hover { background: rgba(255, 255, 255, .24); box-shadow: none; }
.pf-btn.busy, .pf-btn:disabled { opacity: .6; cursor: progress; transform: none; }
.pf-btn[hidden] { display: none; }
.pf-msg { margin: 0; padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.pf-msg[hidden] { display: none; }
.pf-msg.ok { background: rgba(15, 138, 106, .11); color: #0b6e55; }
.pf-msg.bad { background: rgba(201, 48, 47, .09); color: #b3261e; }
.pf-note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.pf-gnote { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.pf-gi { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); box-shadow: 0 2px 8px -3px rgba(35, 52, 76, .3); }
.pf-str { display: grid; gap: 7px; }
.pf-str-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pf-str-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: #e5484d; transition: width .2s, background .2s; }
.pf-str span { font-size: 13px; color: var(--muted); }
.pf-plan-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 26px 36px; padding: 34px; border-radius: 24px; overflow: hidden; color: #fff; background: radial-gradient(120% 140% at 100% 0, #7c3df0 0%, transparent 55%), linear-gradient(135deg, #0f2250 0%, #1b2f7a 100%); box-shadow: 0 30px 60px -30px rgba(40, 40, 160, .7); }
.pf-plan-card.pro { background: radial-gradient(120% 140% at 100% 0, #b35cf5 0%, transparent 55%), linear-gradient(135deg, #1a3cb5 0%, #5b3fe6 100%); }
.pf-pc-badge { display: inline-block; padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pf-plan-card h2 { margin: 14px 0 6px; font-size: 30px; letter-spacing: -.02em; color: #fff; }
.pf-plan-card p { margin: 0 0 20px; color: rgba(255, 255, 255, .78); font-size: 14.5px; }
.pf-plan-card .pf-use { display: grid; gap: 10px; padding: 0; background: none; }
.pf-plan-card .pf-use-t { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.pf-plan-card .pf-bar2 { height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.pf-bar2 i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #7fd0ff, #fff); transition: width .3s; }
.pf-bar2.open i { opacity: .6; }
.pf-feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; align-content: center; }
.pf-feat li { position: relative; padding-left: 32px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.pf-feat li::before { content: ''; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.500 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pf-pc-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
@media (max-width: 860px) { .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-plan-card { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; } }
@media (max-width: 640px) {
  .pf { padding: 0 14px 56px; } .pf-cover { height: 112px; }
  .pf-head { flex-wrap: wrap; margin-top: 40px; gap: 14px; } .pf-av { width: 96px; height: 96px; font-size: 34px; } .pf-who h1 { font-size: 25px; }
  .pf-out { margin-left: 0; } .pf-row { grid-template-columns: minmax(0, 1fr); } .pf-card { padding: 22px 18px 24px; } .pf-tabs { display: flex; } .pf-tab { flex: 1; padding: 9px 8px; }
}
@media (prefers-color-scheme: dark) { .pf-msg.ok { color: #6fe0b4; } .pf-msg.bad { color: #ff9a96; } }

/* sidebar plan card */
.side-foot { margin: auto 6px 8px; padding: 16px 16px 14px; gap: 10px; border: 0; border-radius: 18px; color: #fff; background: radial-gradient(120% 120% at 100% 0, rgba(139, 63, 240, .55) 0%, transparent 60%), linear-gradient(145deg, #0f2250 0%, #1b2f7a 100%); box-shadow: 0 18px 34px -20px rgba(30, 40, 150, .75); }
.side-foot .meter { margin: 0; gap: 9px; }
.side-foot .meter-t { color: #fff; font-size: 14px; align-items: center; }
.side-foot .meter-s { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.side-foot .bar { height: 8px; background: rgba(255, 255, 255, .2); }
.side-foot .bar i { background: linear-gradient(90deg, #00C0F8, #fff); }
.side-foot .meter.full .bar i { background: linear-gradient(90deg, #ff8a5c, #ff5a55); }
.side-foot .meter-note { color: #ffb4a8; }
.side-foot p { color: rgba(255, 255, 255, .75); }
.side-foot .side-upgrade { margin: 2px 0 0; padding: 12px; background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 22px -10px rgba(0, 192, 248, .8); font-size: 15px; }
.side-foot .side-upgrade:hover { background: var(--primary-2); }
.side-foot a { display: block; text-align: center; color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 600; text-decoration: none; }
.side-foot a:hover { color: #fff; text-decoration: underline; }
.side-foot .meter-t { font-size: 13px; white-space: nowrap; }
.side-foot .meter-s { padding: 3px 9px; font-size: 11px; letter-spacing: 0; text-transform: none; white-space: nowrap; }

.auth-split .as-side { display: flex; flex-direction: column; justify-content: center; }
.as-welcome { margin-top: 0; }

.as-shot { margin: 18px 0 14px; padding: 0; }
.as-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 0 0; border-radius: 14px; border: 1px solid rgba(22, 133, 248, .25); box-shadow: 0 30px 50px -28px rgba(30, 40, 150, .6), 0 6px 14px -8px rgba(30, 40, 150, .35); }

/* My Library: hero, file-type chips, timeline */
.app-bar { position: relative; align-items: center; min-height: 112px; padding: 4px 0 8px; }
.app-bar > div:not(.lib-hero), .app-bar .app-tools { position: relative; z-index: 1; }
.app-bar h1 { font-size: 34px; }
.lib-hero { position: absolute; inset: -28px -36px 0 28%; pointer-events: none; overflow: hidden; border-radius: 0 0 0 40px; }
.lib-hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lh-t { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: #fff; box-shadow: 0 14px 26px -12px rgba(22, 133, 248, .55); }
.lh-t svg { position: static; width: 26px; height: 26px; }
.lh-t.a { right: 190px; top: 22px; background: linear-gradient(135deg, #2fd39a, #14b87f); transform: rotate(-9deg); }
.lh-t.b { right: 120px; top: 8px; background: linear-gradient(135deg, #3b8cff, #1d5fe0); transform: rotate(7deg); }
.lh-t.c { right: 56px; top: 30px; background: linear-gradient(135deg, #ff6b5e, #e8392d); transform: rotate(-4deg); }
.lib-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 20px; }
.lib-types { display: flex; gap: 10px; flex-wrap: wrap; }
.lt { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); font: inherit; font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; box-shadow: var(--sh1); transition: transform .12s, box-shadow .12s; }
.lt[hidden] { display: none; }
.lt:hover { transform: translateY(-1px); box-shadow: var(--sh2); }
.lt:focus-visible { outline: none; box-shadow: var(--ring); }
.lt b { min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; text-align: center; }
.lt-i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; }
.lt-i.a { background: linear-gradient(135deg, #1bb0e8, #0a7ca6); } .lt-i.b { background: linear-gradient(135deg, #2fd39a, #14b87f); } .lt-i.c { background: linear-gradient(135deg, #8b5cf6, #6d3be0); } .lt-i.d { background: linear-gradient(135deg, #ff6b5e, #e8392d); } .lt-i.e { background: linear-gradient(135deg, #ffc83d, #f5a30a); }
.lt.on { background: linear-gradient(135deg, #1bb0e8, #0a7ca6); border-color: transparent; color: #fff; }
.lt.on b { background: rgba(255, 255, 255, .25); color: #fff; }
.lt.on .lt-i { background: rgba(255, 255, 255, .2); }
.lib-view { display: inline-flex; padding: 4px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--sh1); }
.lib-view button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.lib-view button.on { background: linear-gradient(135deg, #1bb0e8, #0a7ca6); color: #fff; }
.lib-view svg { width: 18px; height: 18px; }
.my-grid.tl { display: block; }
.tl-sec { position: relative; margin: 0 0 26px; padding: 0 0 0 28px; }
.tl-sec::before { content: ''; position: absolute; left: 8px; top: 26px; bottom: -22px; width: 2px; background: color-mix(in srgb, var(--primary) 22%, transparent); }
.tl-sec:last-child::before { display: none; }
.tl-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 19px; }
.tl-h small { font-size: 13px; font-weight: 500; color: var(--muted); }
.tl-dot { position: absolute; left: 0; width: 18px; height: 18px; border: 3px solid var(--primary); border-radius: 50%; background: var(--surface); }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px 22px; }
.fold-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); font: inherit; text-align: left; color: var(--text); cursor: pointer; box-shadow: var(--sh1); }
.fold-card:hover { box-shadow: var(--sh2); }
.fold-i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #ffc83d, #f5a30a); }
.fold-t { display: grid; gap: 2px; min-width: 0; }
.fold-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold-t small { color: var(--muted); }
@media (max-width: 900px) { .lib-hero { display: none; } .app-bar h1 { font-size: 28px; } }

.lib-tools { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lib-tools { margin-left: auto; }
.as-shot { position: relative; }
.as-shot img { object-position: 50% 30%; }
.as-cap { position: absolute; left: 14px; bottom: 14px; display: grid; gap: 1px; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, .94); box-shadow: 0 12px 26px -10px rgba(20, 30, 90, .5); }
.as-cap b { font-size: 14px; color: #14213d; }
.as-cap span { font-size: 12.5px; color: #55657d; }

.as-shot img { aspect-ratio: auto; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; background: none; }
/* picture and PDF viewer */
.imgv { width: min(1100px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 16px; background: #0b1220; color: #fff; box-shadow: 0 30px 80px -20px rgba(6, 14, 24, .7); overflow: hidden; }
.imgv::backdrop { background: rgba(8, 14, 26, .72); }
.imgv-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(255, 255, 255, .06); }
.imgv-bar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.imgv-bar button, .imgv-bar a { padding: 7px 14px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.imgv-bar button:hover, .imgv-bar a:hover { background: rgba(255, 255, 255, .24); text-decoration: none; }
.imgv-body { display: grid; place-items: center; max-height: calc(94vh - 52px); overflow: auto; padding: 10px; }
.imgv-body img { display: block; max-width: 100%; max-height: calc(94vh - 80px); object-fit: contain; border-radius: 8px; }
.imgv-body p { margin: 40px; color: rgba(255, 255, 255, .7); }

/* Owner dashboard */
.app-main.adm > :not(#admin-view) { display: none !important; }
.ad[hidden], .ad-msg[hidden], #ad-body[hidden] { display: none; }
.ad-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.ad-t { margin: 0; font-size: 32px; letter-spacing: -.025em; }
.ad-h { margin: 26px 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ad-card { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--sh1); }
.ad-card b { display: block; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; }
.ad-card span { color: var(--muted); font-size: 13.5px; }
.ad-msg { padding: 30px 10px; color: var(--muted); }
.ad-note { margin-top: 26px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.ad-pies { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.ad-pie { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--sh1); }
.pie-t { margin: 0 0 14px; font-size: 14px; font-weight: 700; }
.pie-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.pie { position: relative; flex: none; width: 150px; height: 150px; border-radius: 50%; }
.pie-c { position: absolute; inset: 24px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--surface); }
.pie-c b { font-size: 22px; line-height: 1.1; }
.pie-c small { color: var(--muted); font-size: 12px; }
.pie-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; min-width: 140px; }
.pie-l li { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.pie-l i { flex: none; width: 12px; height: 12px; border-radius: 4px; }
.pie-l span { flex: 1; color: var(--muted); }

/* closer to the design: laptop, file kind, total size, Ctrl + K */
.lh-lap { position: absolute; right: 260px; top: 6px; width: 190px; transform: rotate(-3deg); filter: drop-shadow(0 22px 24px rgba(20, 60, 140, .28)); }
.lh-scr { display: grid; place-items: center; height: 108px; border: 5px solid #1d3b78; border-radius: 12px 12px 4px 4px; background: linear-gradient(160deg, #eaf5ff, #bfe0ff); }
.lh-scr img { width: 58px; height: 58px; object-fit: contain; }
.lh-base { display: block; height: 9px; margin: 0 -14px; border-radius: 0 0 14px 14px; background: linear-gradient(#cfd8e6, #9fb0c9); }
.lh-t.a { right: 150px; top: 14px; } .lh-t.b { right: 90px; top: 0; } .lh-t.c { right: 30px; top: 22px; }
.lh-lap { right: 270px; }
.my-type { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 8px; background: rgba(255, 255, 255, .94); color: #14213d; font-size: 12px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); }
.my-type.pdf { color: #d63a2e; } .my-type.image { color: #12a07a; } .my-type.video { color: #6d3be0; }
.side-foot #side-use { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.side-foot #side-use::before { content: 'Total size'; display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 600; opacity: .8; letter-spacing: 0; }
.app-search { position: relative; }
.app-kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 3px 9px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: 600 12px inherit; pointer-events: none; }
.app-search input { padding-right: 90px; }
@media (max-width: 900px) { .app-kbd { display: none; } }
.side-i[hidden] { display: none; }
.my-thumb.noimg .my-play { opacity: 1; transform: scale(1); }
.my-ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .9); }

/* ===== My Library: cards, rows and sidebar like the design ===== */
.app-main { max-width: none; }
.lib-hero { inset: -28px -36px 0 24%; border-radius: 0; }
.lib-row2 { margin-bottom: 22px; }
.lib-row2 .lib-view { order: 0; }
.lib-row2 .lib-tools { margin-left: auto; }
.app-up { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; box-shadow: var(--sh1); }
.app-up:hover { background: var(--surface-2); }
.app-up:disabled { opacity: .5; cursor: progress; }
.my-grid .my-item, .tl-grid .my-item { padding: 8px 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--sh1); transition: box-shadow .15s, transform .15s; }
.my-item:hover { box-shadow: var(--sh2); transform: translateY(-2px); }
.my-item .my-thumb { border-radius: 12px; border-color: transparent; box-shadow: none; }
.my-item .my-head { margin-top: 10px; padding: 0 4px 0 6px; align-items: flex-start; }
.my-item .my-title { font-size: 15px; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.my-item .my-meta { padding: 2px 6px 0; font-size: 13px; }
.my-item .kebab { opacity: 1; margin: 0; width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); }
.my-item .kmenu { right: 4px; top: calc(100% + 2px); min-width: 190px; z-index: 40; }
.my-item .kmenu button { font-size: 14px; }
.kmenu .danger-text { color: #c9302f; }
.my-item .chip { margin: 6px 6px 0; }
.my-item .my-type { left: 10px; top: 10px; bottom: auto; }
.my-item .my-dur { right: 8px; bottom: 8px; }
.side-foot { background: var(--surface) !important; color: var(--text) !important; border: 1px solid var(--border) !important; box-shadow: var(--sh1) !important; }
.side-foot .meter-t { color: var(--text); }
.side-foot .meter-s { background: var(--primary-soft); border-color: transparent; color: var(--text); }
.side-foot .bar { background: var(--surface-2); }
.side-foot .bar i { background: var(--grad); }
.side-foot p { color: var(--muted); }
.side-foot a { color: var(--primary-2, var(--primary)); }
.side-tot { display: flex; align-items: center; gap: 12px; }
.side-cloud { display: grid; place-items: center; color: var(--primary); }
.side-foot #side-use { margin: 0; font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.side-foot #side-use::before { color: var(--text); font-size: 13px; opacity: .85; }
.side-foot .side-upgrade { background: var(--grad, var(--primary)); color: #fff; box-shadow: 0 12px 22px -12px rgba(0, 150, 204, .8); }
.side-i { font-size: 15px; }
.side-i .ic svg { width: 22px; height: 22px; }

/* a picture or PDF in the viewer frame */
.pl-doc { position: absolute; inset: 0; display: grid; place-items: center; background: #050b14; }
.pl-doc[hidden] { display: none; }
.pl-doc img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pl-doc iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.pl.doc video, .pl.doc .pl-bar, .pl.doc .pl-big { display: none !important; }
/* an open card menu is drawn above the cards of the next row */
.my-item.mopen, .my-item:has(.kmenu:not([hidden])) { z-index: 60; }
.my-item.mopen:hover { transform: none; }

/* card menu: icon + text rows */
.my-item .kmenu { min-width: 224px; padding: 8px; }
.my-item .kmenu button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 12px; border-radius: 10px; font-size: 15px; color: var(--text); }
.my-item .kmenu button svg { flex: none; color: var(--muted); }
.my-item .kmenu button:hover, .my-item .kmenu button:focus-visible { background: var(--surface-2); }
.my-item .kmenu .danger-text, .my-item .kmenu .danger-text svg { color: #d93025; }
.my-rename { flex: 1; min-width: 0; padding: 4px 8px; font: inherit; font-size: 15px; font-weight: 700; color: var(--text); background: var(--surface); border: 1px solid var(--primary); border-radius: 8px; box-shadow: var(--ring); }
.my-item .kmenu.up { top: auto; bottom: calc(100% + 2px); }
.my-item .my-meta { display: flex; align-items: center; gap: 7px; }
.my-kind { display: inline-grid; place-items: center; flex: none; color: var(--muted); }
.my-kind.image { color: #12a07a; } .my-kind.video { color: #6d3be0; } .my-kind.pdf { color: #d63a2e; }

/* the selection bar: a floating pill at the bottom of the screen */
.bulk { position: fixed; top: auto; bottom: 22px; left: calc(50% + 126px); transform: translateX(-50%); z-index: 50; width: max-content; max-width: calc(100vw - 300px); margin: 0; padding: 10px 12px 10px 20px; gap: 12px; border-radius: 18px; background: linear-gradient(120deg, #1bb0e8, #0a7ca6 55%, #2f6bff); box-shadow: 0 22px 44px -16px rgba(10, 100, 200, .65); }
.bulk[hidden] { display: none; }
.bulk-lab { font-weight: 700; font-size: 15px; }
.bulk .bulk-n { min-width: 26px; padding: 2px 9px; border-radius: 999px; background: #fff; color: #0a7ca6; text-align: center; font-size: 13px; }
.bulk-hint { color: rgba(255, 255, 255, .78); font-size: 13px; }
.bulk .bulk-sp { display: none; }
.bulk .bulk-b, .bulk .bulk-b:first-of-type { padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 10px; background: #fff; color: #0a7ca6; font-weight: 700; }
.bulk .bulk-b:hover { background: #eef8ff; }
.bulk .bulk-b.danger { color: #d93025; }
.bulk .bulk-b svg { width: 18px; height: 18px; }
@media (max-width: 1000px) { .bulk-hint { display: none; } }
@media (max-width: 860px) { .bulk { left: 50%; max-width: calc(100vw - 24px); flex-wrap: wrap; justify-content: center; } }

/* Move to: a folder list like a file picker */
#my-move { width: min(480px, 94vw); }
#my-move .mlist { display: block; max-height: 36vh; overflow: auto; padding: 8px; border: 1px solid var(--border); border-radius: 12px 12px 0 0; }
#my-move .mrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 15px; color: var(--text); text-align: left; cursor: pointer; }
#my-move .mrow svg { flex: none; color: var(--muted); }
#my-move .mrow:hover { background: var(--surface-2); }
#my-move .mrow.on { background: var(--primary); color: #fff; font-weight: 700; }
#my-move .mrow.on svg { color: #fff; }
#my-move .mnew { display: block; width: 100%; margin: 0 0 14px; padding: 12px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 12px 12px; background: none; font: inherit; font-size: 14px; color: #0a7cff; cursor: pointer; text-align: center; }
#my-move .mnew:hover { background: var(--surface-2); }
#my-move #my-myes:disabled { opacity: .5; cursor: not-allowed; }
#my-move .mlist.busy { opacity: .6; pointer-events: none; }
#my-move .btn:disabled { opacity: .6; cursor: progress; }

/* smaller hover icons; the star shows on hover (a starred file keeps its yellow star) */
.my-plate { height: 40px; padding: 0 4px; }
.pa { margin: 4px 1px; min-width: 32px; }
.pa svg { width: 16px; height: 16px; }
.fav, .sel { width: 28px; height: 28px; border-radius: 9px; }
.fav svg { width: 16px; height: 16px; }
.sel .box { width: 17px; height: 17px; border-radius: 5px; }
.fav:not(.on) { opacity: 0; transform: scale(.92); transition: opacity .15s, transform .15s; }
.my-media:hover .fav, .my-media:focus-within .fav, .fav.on, body.selecting .fav { opacity: 1; transform: none; }
@media (hover: none) { .fav { opacity: 1; transform: none; } }
/* name and details closer together */
.my-grid .my-item, .tl-grid .my-item { gap: 0; }
.my-item .my-head { margin-top: 8px; }
.my-item .my-title { line-height: 1.25; }
.my-item .kebab { margin: -6px 0 -6px; height: 28px; width: 28px; }
.my-item .my-meta { padding-top: 0; margin-top: 0; }

.pl-doc.pages { display: block; overflow: auto; padding: 12px; background: #3b4252; }
.pl-doc.pages canvas { display: block; max-width: 100%; height: auto; margin: 0 auto 12px; background: #fff; border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
/* only the round picture in the header; the name is in its menu */
.acct-who { display: none; }
/* the banner covers the whole top area of the library */
.lib-hero { inset: -28px -36px 0 -36px; }
.lh-lap { right: 300px; }
.lh-t.a { right: 190px; } .lh-t.b { right: 124px; } .lh-t.c { right: 60px; }

/* corner tab: this file has a share link */
.my-shared { position: absolute; left: 0; bottom: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 0 12px 0 12px; background: #0a9bd8; color: #fff; }
.my-shared svg { width: 16px; height: 16px; }
/* the corner tab like the design: a little larger, brighter, rounder */
.my-shared { width: 38px; height: 38px; border-radius: 0 14px 0 12px; background: #1ba3f0; }
.my-shared svg { width: 20px; height: 20px; }
/* the picture keeps its thin outline and soft shadow */
.my-item .my-thumb { border: 1px solid #bcdcf3; box-shadow: 0 6px 16px -8px rgba(30, 90, 160, .45); }
.my-item:hover .my-thumb { border-color: var(--primary); box-shadow: 0 10px 22px -10px rgba(0, 150, 204, .55); }

/* ===== card outline, as in the reference design ===== */
.my-grid .my-item, .tl-grid .my-item { padding: 10px 9px 11px; background: #fff; border: 1px solid #dce7f3; border-radius: 21px; box-shadow: 0 5px 17px #244a6a12; }
.my-item:hover { box-shadow: 0 8px 20px #244a6a1b; transform: translateY(-1px); }
.my-item .my-thumb, .my-item:hover .my-thumb { border: 1px solid #1a9fe0; border-radius: 15px; background: #f8fbfd; box-shadow: none; }
/* a shared file has a thin accent down the left edge of its picture, plus the small link tab at the bottom left */
.my-item.shared .my-thumb::before { content: ""; position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, #39b9ed, #078ed0); }
.my-shared { z-index: 3; width: 34px; height: 30px; border-radius: 0 9px 0 0; background: linear-gradient(145deg, #11c6ef, #078ed0); box-shadow: 2px -2px 7px #078ed01c; }
.my-shared svg { width: 17px; height: 17px; }
/* previews that are only an icon: light panel, coloured icon */
.my-item .my-thumb.noimg { background: linear-gradient(135deg, #eaf5fd, #dcecf8); }
.my-thumb.noimg .my-ph { color: #d94b4b; }
.my-thumb.noimg .my-ph svg { width: 52px; height: 52px; }
.my-thumb.noimg .my-play { background: rgba(8, 56, 96, .72); border-color: rgba(255, 255, 255, .7); }

/* ===== card menu, as in the design ===== */
.my-item .kmenu { min-width: 250px; padding: 10px 8px; border: 1px solid #dce7f3; border-radius: 20px; background: #fff; box-shadow: 0 18px 40px -12px rgba(30, 70, 110, .35); }
.my-item .kmenu button { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 16px; font-weight: 500; color: #1d3350; }
.my-item .kmenu button svg { width: 22px; height: 22px; color: #26384f; }
.my-item .kmenu button .chev { width: 18px; height: 18px; margin-left: auto; color: #26384f; }
.my-item .kmenu button span { flex: 1; text-align: left; }
.my-item .kmenu button.sep { margin-top: 9px; }
.my-item .kmenu button.sep::before { content: ""; position: absolute; left: 10px; right: 10px; top: -5px; height: 1px; background: #dce7f3; }
.my-item .kmenu button:hover, .my-item .kmenu button:focus-visible { background: #dbeefc; color: #12304c; box-shadow: inset 5px 0 0 #1ba3f0; }
.my-item .kmenu button:hover svg, .my-item .kmenu button:focus-visible svg { color: #1ba3f0; }
.my-item .kmenu .danger-text, .my-item .kmenu .danger-text svg { color: #d93025; }
.my-item .kmenu .danger-text:hover, .my-item .kmenu .danger-text:focus-visible { background: #fdecea; box-shadow: inset 5px 0 0 #d93025; }
.my-item .kmenu .danger-text:hover svg { color: #d93025; }

/* the selection bar follows the site theme: the brand cyan, dark navy text, white buttons */
.bulk { background: linear-gradient(120deg, var(--primary), var(--primary-2)); color: var(--on-primary); box-shadow: 0 22px 44px -18px color-mix(in srgb, var(--primary-2) 70%, transparent); }
.bulk-lab { color: var(--on-primary); }
.bulk .bulk-n { background: var(--on-primary); color: #fff; }
.bulk .bulk-b, .bulk .bulk-b:first-of-type { border-color: transparent; background: #fff; color: var(--on-primary); box-shadow: 0 6px 14px -8px rgba(16, 37, 58, .5); }
.bulk .bulk-b:hover { background: var(--primary-soft); }
.bulk .bulk-b[hidden] { display: none; }
.bulk .bulk-b.danger { color: #c9302f; }
.bulk .bulk-x { color: var(--on-primary); }
.bulk .bulk-x:hover { background: rgba(16, 37, 58, .14); }
@media (prefers-color-scheme: dark) { .bulk .bulk-b, .bulk .bulk-b:first-of-type { background: #eaf6fd; } }

/* card menu: row spacing and width follow the design (rows about 2.3 text heights apart, wide menu) */
.my-item .kmenu { min-width: 320px; padding: 10px 10px; border-radius: 22px; }
.my-item .kmenu button { gap: 18px; padding: 8px 14px; font-size: 16px; line-height: 1.25; min-height: 0; }
.my-item .kmenu button.sep { margin-top: 12px; }
.my-item .kmenu button.sep::before { left: 6px; right: 6px; top: -7px; }
.my-item .kmenu button:hover, .my-item .kmenu button:focus-visible { border-radius: 14px; box-shadow: inset 6px 0 0 #1ba3f0; }

/* card menu: smaller */
.my-item .kmenu { min-width: 232px; padding: 7px; border-radius: 16px; }
.my-item .kmenu button { gap: 12px; padding: 6px 11px; font-size: 14px; border-radius: 10px; }
.my-item .kmenu button svg { width: 18px; height: 18px; }
.my-item .kmenu button .chev { width: 16px; height: 16px; }
.my-item .kmenu button.sep { margin-top: 9px; }
.my-item .kmenu button.sep::before { top: -5px; left: 4px; right: 4px; }
.my-item .kmenu button:hover, .my-item .kmenu button:focus-visible { border-radius: 10px; box-shadow: inset 4px 0 0 #1ba3f0; }

/* the owner's account list */
.ad-card.click { font: inherit; text-align: left; color: inherit; cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.ad-card.click:hover { transform: translateY(-2px); box-shadow: var(--sh2); border-color: var(--primary); }
.ad-card.click:focus-visible { outline: none; box-shadow: var(--ring); }
.ad-dlg { width: min(980px, 96vw); }
.ad-dh { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.ad-dh h2 { margin: 0; font-size: 22px; }
.ad-df { width: 100%; height: 42px; margin-bottom: 12px; padding: 0 14px; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.ad-dscroll { max-height: 56vh; overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
.ad-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.ad-tab th { position: sticky; top: 0; padding: 10px 12px; text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.ad-tab td { padding: 10px 12px; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.ad-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; }
.ad-pill.pro { background: var(--on-primary); color: #fff; }
.ad-unv { color: #c9302f; }
.ad-opsnote { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--border); color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ad-opsnote[hidden] { display: none; }
.ad-gridtop { margin-top: 14px; }

.ad-dbtns { display: flex; gap: 8px; }
.ad-pager { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.ad-pager select { margin-left: 4px; padding: 6px 10px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.ad-psp { flex: 1; }
.ad-pager .chip-btn:disabled { opacity: .45; cursor: not-allowed; }

/* the bottom "Selected" bar: deep navy with a cyan edge, so it stands out on pictures of any colour; Delete is a solid red button */
.bulk { background: #10253a; color: #fff; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 0 0 2px rgba(0, 192, 248, .4), 0 26px 50px -16px rgba(0, 0, 0, .6); }
.bulk-lab { color: #eaf4fb; }
.bulk .bulk-n { background: #00c0f8; color: #10253a; }
.bulk .bulk-b, .bulk .bulk-b:first-of-type { border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; }
.bulk .bulk-b:hover { background: rgba(255, 255, 255, .22); }
.bulk .bulk-b.danger { border-color: transparent; background: #e5484d; color: #fff; }
.bulk .bulk-b.danger:hover { background: #d23a3f; }
.bulk .bulk-x { color: #fff; }
.bulk .bulk-x:hover { background: rgba(255, 255, 255, .16); }
@media (prefers-color-scheme: dark) { .bulk .bulk-b, .bulk .bulk-b:first-of-type { background: rgba(255, 255, 255, .1); } .bulk .bulk-b.danger { background: #e5484d; } }
/* card titles are regular weight; a ticked card is clearly different: tinted card, solid cyan frame, filled check badge, others dim while selecting */
.my-item .my-title { font-weight: 500; }
.my-grid .my-item.selected, .tl-grid .my-item.selected { background: #dff3fd; border-color: #00a6e8; box-shadow: 0 0 0 3px #00a6e8, 0 10px 24px -10px rgba(0, 150, 220, .55); }
.my-item.selected .my-thumb { outline: 0; }
.my-item.selected .sel { background: #00a6e8; transform: scale(1.12); }
.my-item.selected .sel input:checked + .box { background: #fff; border-color: #fff; color: #00a6e8; }
body.selecting .my-item:not(.selected) .my-thumb { opacity: .6; transition: opacity .12s; }

/* opened from "View on SnapMyNest" (#v=<id>): show a calm "Opening" screen instead of flashing the library before the video */
.app.deep-loading::after { content: 'Opening your video...'; position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: var(--bg); color: var(--muted); font-weight: 700; font-size: 16px; }
html.deep-loading body::after { content: 'Opening your video...'; position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: var(--bg, #f6f8fc); color: var(--muted, #5b6b82); font-weight: 700; font-size: 16px; }
