/* Embeds that live on other people's sites: neutral, quiet, the video stays the subject */
@font-face { font-family: "Inter"; src: url("fonts/inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "VidlifyMono"; src: url("fonts/mono-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: #ededed; font: 400 14px/20px "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.vp-embed { position: absolute; inset: 0; }

/* Title and report link on top, they come and go with the bar */
.embed-top { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px 40px; background: linear-gradient(rgba(0, 0, 0, .64), transparent); pointer-events: none; }
.embed-top a { pointer-events: auto; }
.vp.is-fresh .embed-top { opacity: 1; }
.embed-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ededed; font-size: 15px; font-weight: 500; text-decoration: none; }
.embed-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.embed-report { flex: none; color: #a1a1a6; font-size: 12px; text-decoration: none; }
.embed-report:hover { color: #ededed; }

.logo-mark { position: relative; display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 4px; background: #f2a93b; }
.logo-mark::after { content: ""; position: absolute; left: 5px; top: 4px; border-left: 5px solid #1c1405; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }

.embed-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; background: #141415; }
.embed-msg .logo-mark { width: 32px; height: 32px; border-radius: 8px; margin: 0 auto; display: block; }
.embed-msg .logo-mark::after { left: 12px; top: 9px; border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
.embed-msg p { margin: 16px 0 8px; color: #a1a1a6; }
.embed-msg a { color: #ededed; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(237, 237, 237, .3); text-underline-offset: 3px; }

/* File embed */
body.file-embed { overflow: auto; background: #141415; }
.fe-wrap { display: flex; flex-direction: column; height: 100%; }
.fe-media { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; background: #0f0f10; }
.fe-media img, .fe-media video { display: block; max-width: 100%; max-height: 100%; }
.fe-media video { width: 100%; height: 100%; }
.fe-media iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.fe-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #19191b; border-top: 1px solid rgba(237, 237, 237, .08); }
.fe-wrap > .fe-bar:only-child { flex: 1; border: 1px solid rgba(237, 237, 237, .08); border-radius: 12px; }
.fe-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 8px; background: #232325; color: #a1a1a6; }
.fe-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.fe-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ededed; font-weight: 500; text-decoration: none; }
.fe-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.fe-meta { color: #85858b; font: 12px/16px "VidlifyMono", ui-monospace, monospace; }
.fe-text audio { width: 100%; height: 36px; margin-top: 8px; }
.fe-btn { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 36px; padding: 0 16px; border-radius: 8px; background: #ededed; color: #141415; font-weight: 500; text-decoration: none; transition: background-color 150ms cubic-bezier(.22, 1, .36, 1); }
.fe-btn:hover { background: #fff; }
