@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Rubik:wght@400;500;600;700&display=swap");

:root {
  --umsl-bg: #fff1f2;
  --umsl-panel: #fff7f8;
  --umsl-panel-strong: #ffffff;
  --umsl-text: #241316;
  --umsl-muted: #6b5960;
  --umsl-line: #fecdd3;
  --umsl-primary: #e11d48;
  --umsl-primary-dark: #9f1239;
  --umsl-accent: #2563eb;
  --umsl-blue: #2563eb;
  --umsl-radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(225, 29, 72, 0.05), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), transparent 44%),
    var(--umsl-bg);
  color: var(--umsl-text);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.umsl-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: clamp(380px, 36vw, 500px) minmax(520px, 1fr);
  overflow-x: hidden;
  font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--umsl-text);
}

.umsl-left {
  position: fixed;
  inset: 0 auto 0 0;
  width: clamp(380px, 36vw, 500px);
  min-height: 100vh;
  max-height: 100vh;
  overflow: auto;
  padding: clamp(26px, 5vh, 50px) clamp(24px, 4vw, 46px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 248, 0.96)),
    var(--umsl-panel);
  border-right: 1px solid var(--umsl-line);
  box-shadow: 22px 0 70px rgba(76, 5, 25, 0.08);
}

.umsl-left-inner {
  min-height: calc(100vh - clamp(52px, 10vh, 100px));
  display: grid;
  align-content: center;
  gap: 18px;
}

.umsl-brand {
  display: inline-grid;
  grid-template-columns: 42px auto;
  gap: 10px;
  align-items: center;
  width: max-content;
}

.umsl-brand span,
.umsl-provider span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 600;
}

.umsl-brand span {
  width: 42px;
  height: 42px;
  background: var(--umsl-primary);
  color: #fff1f2;
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.22);
}

.umsl-brand strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.umsl-copy {
  display: grid;
  gap: 8px;
  max-width: 400px;
}

.umsl-copy p,
.umsl-right-head p,
.umsl-video-copy p,
.umsl-admin-note,
.umsl-provider small {
  margin: 0;
  color: var(--umsl-muted);
  line-height: 1.45;
}

.umsl-copy > span {
  max-width: 360px;
  color: var(--umsl-muted);
  font-size: 14px;
  line-height: 1.45;
}

.umsl-copy p:first-child,
.umsl-right-head p {
  color: var(--umsl-primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
}

.umsl-copy h1 {
  margin: 0;
  max-width: 420px;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0;
}

.umsl-auth-card {
  display: grid;
  gap: 14px;
  width: min(100%, 420px);
  padding: 16px;
  border: 1px solid rgba(225, 29, 72, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(76, 5, 25, 0.1);
}

.umsl-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(225, 29, 72, 0.12);
  border-radius: 8px;
  background: #fff7f8;
}

.umsl-auth-tabs button,
.umsl-auth-form button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
}

.umsl-auth-tabs button {
  background: transparent;
  color: var(--umsl-muted);
}

.umsl-auth-tabs button.is-active {
  background: var(--umsl-panel-strong);
  color: var(--umsl-text);
  box-shadow: 0 8px 18px rgba(76, 5, 25, 0.08);
}

.umsl-auth-form {
  display: grid;
  gap: 10px;
}

.umsl-auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--umsl-panel-strong);
  color: var(--umsl-text);
  font: inherit;
  letter-spacing: 0;
  outline: none;
}

.umsl-auth-form input:focus {
  border-color: var(--umsl-primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.umsl-auth-form button {
  background: var(--umsl-primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.22);
}

.umsl-auth-form button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.umsl-auth-note {
  margin: 0;
  color: var(--umsl-primary-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.umsl-login-panel {
  display: none;
  gap: 14px;
  width: min(100%, 420px);
  padding: 16px;
  border: 1px solid rgba(225, 29, 72, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(76, 5, 25, 0.1);
}

.umsl-panel-head {
  display: grid;
  gap: 2px;
}

.umsl-panel-head strong {
  font-size: 16px;
  font-weight: 500;
}

.umsl-panel-head small,
.umsl-panel-head span {
  color: var(--umsl-muted);
  line-height: 1.35;
  font-size: 12px;
}

.umsl-buttons {
  display: grid;
  gap: 12px;
  max-width: 100%;
  width: 100%;
}

.umsl-buttons > button {
  min-height: 60px;
  border: 1px solid var(--umsl-line);
  border-radius: var(--umsl-radius);
  background: var(--umsl-panel-strong);
  color: var(--umsl-muted);
  font: inherit;
  font-weight: 500;
}

.umsl-provider {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  min-height: 58px;
  border: 1px solid rgba(225, 29, 72, 0.14);
  border-radius: var(--umsl-radius);
  background: var(--umsl-panel-strong);
  color: var(--umsl-text);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(76, 5, 25, 0.05);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

.umsl-provider:hover {
  border-color: var(--umsl-primary);
  background: #fff7f8;
  box-shadow: 0 14px 32px rgba(76, 5, 25, 0.1);
  transform: translateY(-1px);
}

.umsl-provider span {
  grid-column: 1;
  grid-row: span 2;
  width: 40px;
  height: 40px;
  color: #fff;
}

.umsl-provider-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.umsl-provider strong,
.umsl-provider small {
  grid-column: 2;
  min-width: 0;
}

.umsl-provider strong {
  grid-row: 1;
  font-size: 14px;
  font-weight: 500;
}

.umsl-provider small {
  grid-row: 2;
}

.umsl-provider.is-google span {
  background: var(--umsl-blue);
}

.umsl-provider.is-facebook span {
  background: #1767c2;
}

.umsl-provider.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.umsl-alert {
  max-width: 460px;
  margin: 0;
  padding: 12px;
  border-radius: var(--umsl-radius);
  background: #ffe4e6;
  color: var(--umsl-primary-dark);
  font-weight: 500;
}

.umsl-admin-note {
  max-width: 480px;
  font-size: 13px;
}

.umsl-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 420px;
}

.umsl-trust-row span {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(225, 29, 72, 0.16);
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.08);
  color: var(--umsl-primary-dark);
  font-size: 12px;
  font-weight: 500;
}

.umsl-primary-link {
  display: inline-block;
  margin-top: 12px;
  border-radius: var(--umsl-radius);
  padding: 12px 16px;
  background: var(--umsl-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.umsl-card {
  align-self: center;
  justify-self: center;
  width: min(520px, calc(100vw - 36px));
  padding: 24px;
  border: 1px solid var(--umsl-line);
  border-radius: var(--umsl-radius);
  background: var(--umsl-panel-strong);
}

.umsl-right {
  grid-column: 2;
  min-height: 100vh;
  overflow: auto;
  padding: clamp(24px, 4.2vh, 48px) clamp(24px, 4vw, 52px) 48px;
}

.umsl-right-inner {
  width: min(680px, 100%);
  margin: 0 auto;
}

.umsl-right-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  padding: 12px 16px 14px;
  background: linear-gradient(180deg, var(--umsl-bg) 78%, rgba(255, 241, 242, 0));
}

.umsl-right-head h2 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.umsl-video-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.umsl-video-feed {
  width: 100%;
}

.umsl-video-feed .um-card {
  width: 100%;
  border-color: rgba(225, 29, 72, 0.12);
  box-shadow: 0 12px 34px rgba(76, 5, 25, 0.08);
  overflow: hidden;
}

.umsl-video-feed :where(.um-card-head, .um-card-body, .um-card-actions, .um-comments) {
  font-size: 13px;
}

.umsl-video-feed :where(.um-card strong, .um-author strong, .um-time, .um-card-actions button, .um-comment-form button) {
  font-size: 13px;
  font-weight: 500 !important;
  letter-spacing: 0;
}

.umsl-video-feed :where(.um-card-body, .um-comment, .um-comment-form input) {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.umsl-video-feed .um-card-actions button {
  padding: 8px;
}

.umsl-video-feed .um-card-head .um-action {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.umsl-video-feed .um-media {
  max-height: 420px;
}

.umsl-video-feed .um-feed-notice {
  position: sticky;
  top: 0;
  z-index: 2;
}

.umsl-login-modal-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.umsl-login-modal-copy p {
  margin: 0;
  color: var(--umsl-muted);
  line-height: 1.45;
}

.umsl-modal-buttons {
  max-width: none;
}

.umsl-login-modal-message {
  margin: 8px 0 0;
  color: var(--umsl-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.umsl-video-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--umsl-line);
  border-radius: var(--umsl-radius);
  padding: 10px;
  background: var(--umsl-panel-strong);
  box-shadow: 0 10px 28px rgba(76, 5, 25, 0.08);
}

.umsl-video-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--umsl-radius);
  background: #241316;
  color: #fff1f2;
  font-weight: 500;
}

.umsl-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.umsl-video-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.umsl-video-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .umsl-shell {
    grid-template-columns: 1fr;
  }

  .umsl-left {
    position: static;
    width: auto;
    min-height: auto;
    max-height: none;
    padding-top: 34px;
    border-right: 0;
    border-bottom: 1px solid var(--umsl-line);
  }

  .umsl-left-inner {
    min-height: auto;
    align-content: start;
  }

  .umsl-right {
    grid-column: auto;
    min-height: auto;
    padding-top: 22px;
  }

  .umsl-right-head {
    position: static;
  }
}

@media (max-width: 620px) {
  .umsl-left,
  .umsl-right {
    padding: 18px;
  }

  .umsl-copy h1 {
    font-size: 26px;
  }

  .umsl-video-list {
    grid-template-columns: 1fr;
  }
}
