:root {
  --me-bg: #2b3e50;
  --me-surface: #edf3f8;
  --me-card: #ffffff;
  --me-border: #d6e4f1;
  --me-ink: #1d2d49;
  --me-copy: #4f6689;
  --me-blue: #41c4f2;
  --me-blue-deep: #102246;
  --me-shadow: 0 10px 24px rgba(31, 54, 95, 0.08);
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--me-bg);
  font-family: Poppins, Arial, sans-serif;
}

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

.me-page {
  width: 100%;
  background: var(--me-bg);
}

.me-shell {
  width: min(100%, 100vw);
  margin: 0 auto;
  padding: 18px 10px 24px;
}

.me-header {
  text-align: center;
  margin-bottom: 16px;
}

.me-kicker {
  margin: 0 0 8px;
  color: #78b0df;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.me-header h1 {
  margin: 0;
  color: #ffffff;
  font-size: 31px;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.me-copy {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.42;
  font-weight: 600;
}

.me-category-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.me-category {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.me-category.is-active {
  background: var(--me-blue);
  border-color: var(--me-blue);
  color: #ffffff;
}

.me-picker-group {
  display: none;
  margin-bottom: 14px;
}

.me-picker-group.is-active {
  display: block;
}

.me-group-head {
  margin-bottom: 10px;
}

.me-group-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
}

.me-group-head p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.me-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.me-pill {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--me-border);
  border-radius: 999px;
  background: var(--me-card);
  color: var(--me-blue-deep);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.me-pill.is-active {
  background: var(--me-blue-deep);
  color: #ffffff;
  border-color: var(--me-blue-deep);
}

.me-stage {
  width: 100%;
}

.me-stage__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: #ffffff;
}

.me-stage__meta strong {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.me-stage__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.me-stage__frame {
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--me-card);
  box-shadow: var(--me-shadow);
  min-height: 170px;
  position: relative;
}

.me-empty {
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: center;
  min-height: 170px;
  padding: 22px 18px;
  text-align: center;
}

.me-empty h3 {
  margin: 0;
  color: var(--me-ink);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
}

.me-empty p {
  margin: 0;
  color: var(--me-copy);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

.me-iframe {
  display: none;
  width: 488px;
  height: 1240px;
  border: 0;
  margin: 0;
  transform-origin: top left;
  background: #ffffff;
}

@media (max-width: 520px) {
  .me-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .me-category-switch,
  .me-picker {
    grid-template-columns: 1fr;
  }

  .me-header h1 {
    font-size: 28px;
  }
}
