*, *::before, *::after { box-sizing: border-box; }

:root {
  --fs: 14px;
  --pad: 20px;
  --cw: 500px;
  --ch: 312px;
  --gap: 20px;
  --cpad: 20px;
  --min-h: 680px;
}
@media (max-width: 639px) {
  :root { --fs: 12px; --pad: 15px; }
}

html, body { margin: 0; height: 100%; }
body {
  background: #fff;
  font-family: 'Archivo', sans-serif;
  font-size: var(--fs);
  font-weight: 500;
  color: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-scrollable { overflow-y: auto; height: auto; }
body.is-modal-open { overflow: hidden; }

.mk-root { opacity: 0; transition: opacity 0.3s ease; }
body.is-ready .mk-root { opacity: 1; }

.mk-root {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.is-scrollable .mk-root { height: auto; min-height: var(--min-h); }

.mk-content { flex: 1; position: relative; min-height: 0; }
.mk-top { position: absolute; top: var(--pad); left: var(--pad); max-width: 460px; }
.mk-bottom { position: absolute; bottom: var(--pad); left: var(--pad); }

@media (max-width: 639px) {
  .mk-root { height: 100svh; }
  .mk-content { display: flex; flex-direction: column; justify-content: space-between; }
  .mk-top { position: static; padding: var(--pad) var(--pad) 0; max-width: none; }
  .mk-bottom { position: static; padding: 0 var(--pad) var(--pad); }
}

.mk-name, .mk-label, .mk-line, .mk-sayhi { line-height: 14px; }
.mk-bio, .mk-clients { line-height: 16px; }
.mk-bio p { margin: 0; }

.mk-name { margin-bottom: 10px; }
.mk-bio { margin-bottom: 48px; }
.mk-label { margin-bottom: 10px; }
.mk-sayhi { display: inline-block; margin-bottom: 20px; }
.mk-time { margin-bottom: 20px; }

@media (max-width: 639px) {
  .mk-bio { margin-bottom: 32px; }
  .mk-time { margin-bottom: 14px; }
}

.mk-status { display: flex; align-items: center; gap: 7px; }
.mk-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgb(50, 214, 0);
  flex-shrink: 0;
}
.mk-dot.is-offline { background: #F30000; }

.mk-link {
  color: rgba(0, 0, 0, 0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
@media (hover: hover) {
  .mk-link:hover { text-decoration: none; }
}

.mk-wrap {
  flex-shrink: 0;
  overflow: hidden;
  cursor: grab;
  padding: var(--cpad) 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.mk-wrap.is-dragging { cursor: grabbing; }

.mk-track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  will-change: transform;
}

.mk-card {
  flex-shrink: 0;
  width: var(--cw);
  height: var(--ch);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  background: transparent;
  position: relative;
  outline: none;
}
.mk-card:focus-visible { box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5); }
.mk-card.is-hidden { visibility: hidden; }
.mk-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.mk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
}

.mk-modal-media {
  position: fixed;
  z-index: 60;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform-origin: 0 0;
  will-change: transform;
}
.mk-modal-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mk-modal-text {
  position: fixed;
  z-index: 60;
  line-height: 16px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
}
.mk-modal-text p { margin: 0; }
.mk-modal-text p + p { margin-top: 16px; }
