html[data-mama34-video-engine] main.pm-main.wrap {
  padding: 0 max(0px, env(safe-area-inset-right)) 12px max(0px, env(safe-area-inset-left)) !important;
}
html[data-mama34-video-engine] #feed.m34-timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  max-width: 42rem;
  font-family: M34WeeklyInter, "Meydan Inter", system-ui, sans-serif;
}
html[data-mama34-video-engine] #feed.m34-timeline > * { grid-column: 1 / -1; }
html[data-mama34-video-engine] #feed.m34-timeline > .m34-feed-heading {
  margin: 0;
  padding: 5px 14px 5px 4px;
  justify-content: flex-end;
}
html[data-mama34-video-engine] #feed.m34-timeline:has(> .m34-app-stars) > .m34-feed-heading {
  grid-column: 2;
  grid-row: 1;
}
html[data-mama34-video-engine] #feed.m34-timeline > .pw-stars.m34-app-stars {
  grid-column: 1;
  grid-row: 1;
  margin: 0 !important;
  padding: 5px 2px 5px 12px !important;
}
html[data-mama34-video-engine] #feed .m34-app-stars-entry {
  min-height: 48px;
  gap: 8px;
  padding: 4px 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
html[data-mama34-video-engine] #feed .m34-app-stars-medal {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border: 1px solid #ead1b7;
  border-radius: 11px;
  background: #ffead1;
  color: #94530b;
  font-size: 0;
}
html[data-mama34-video-engine] #feed .m34-app-stars-medal::before {
  content: "★";
  font: 21px/1 system-ui, sans-serif;
}
html[data-mama34-video-engine] #feed .m34-app-stars-copy { flex: 0 1 auto; padding: 0; }
html[data-mama34-video-engine] #feed .m34-app-stars-copy strong {
  font-size: 14px;
  font-weight: 720;
  line-height: 1.25;
  color: var(--meydan-ink);
}
html[data-mama34-video-engine] #feed .m34-app-stars-copy small {
  margin-top: 2px;
  color: var(--meydan-muted);
  font-size: 11px;
  line-height: 1.3;
}
html[data-mama34-video-engine] #feed .m34-app-stars-entry > svg {
  width: 13px;
  height: 16px;
  flex: 0 0 13px;
  color: var(--meydan-muted);
}
html body.pm-social-page #feed.m34-timeline > .m34-feed-heading > .m34-primary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 15px;
  border: 0;
  border-radius: 24px;
  background: var(--meydan-accent) !important;
  color: white !important;
  font: 650 14px/1.25 M34WeeklyInter, system-ui, sans-serif;
  box-shadow: none;
}
html body.pm-social-page #feed.m34-timeline > .m34-feed-heading > .m34-primary-action::before {
  content: "+";
  font: 400 20px/1 system-ui;
  margin: 0;
}
/* Web toolbar. The complete ranking remains available when JavaScript is off. */
#feed .m34-weekly-entry { display: none; }
html:not([data-mama34-video-engine]) body.pm-social-page .pm-main.wrap {
  width: min(100%, 44rem);
  padding: 0 0 20px;
  margin: 0 auto;
}
html:not([data-mama34-video-engine]) #feed.m34-timeline {
  display: flow-root;
  width: 100%;
  font-family: "Meydan Inter", system-ui, sans-serif;
}
html:not([data-mama34-video-engine]) .pm-social-page #feed.m34-timeline > .m34-feed-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  margin: 0;
  padding: 12px 14px 6px;
}
html:not([data-mama34-video-engine]) #feed.m34-timeline .m34-feed-heading h1 {
  margin: 0;
  color: var(--meydan-ink);
  font: 720 clamp(21px, 3vw, 30px)/1.18 "Meydan Inter", system-ui, sans-serif;
  letter-spacing: -.035em;
}
#feed .m34-primary-action { justify-self: end; }
#feed .m34-weekly-entry {
  text-align: left;
  align-items: center;
  justify-self: start;
  gap: 8px;
  min-width: 0;
  min-height: 46px;
  padding: 3px 2px;
  background: transparent;
  color: var(--meydan-ink);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
#feed .m34-weekly-star, #feed .pw-heading::before {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  background: #ffead1;
  border: 1px solid #ead1b7;
  border-radius: 10px;
  color: #94530b;
  font: 19px/1 system-ui;
}
#feed .m34-weekly-copy { display: grid; gap: 2px; min-width: 0; }
#feed .m34-weekly-copy strong { font-size: 14px; line-height: 1.25; font-weight: 700; }
#feed .m34-weekly-copy small { color: var(--meydan-muted); font-size: 11px; line-height: 1.3; }
#feed .m34-weekly-copy small:empty { display: none; }
#feed .m34-weekly-entry::after {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  border: solid var(--meydan-muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin: -3px 2px 0;
}
#feed .m34-weekly-entry[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 3px; }
html:not([data-mama34-video-engine]) #feed > .pw-stars {
  clear: none;
  min-width: 0;
  border: 1px solid #e6dfd6;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
html:not([data-mama34-video-engine]) #feed .pw-heading { align-items: center; gap: 8px; }
html:not([data-mama34-video-engine]) #feed .pw-heading h2 { white-space: normal; }
html:not([data-mama34-video-engine]) #feed .pw-footer { flex-wrap: wrap; gap: 2px 8px; }
@media (max-width: 959px) {
  html:not([data-mama34-video-engine]) #feed .m34-weekly-entry:not([hidden]) { display: inline-flex; }
  html:not([data-mama34-video-engine]) #feed[data-weekly-open] .m34-feed-heading h1 { grid-column: 1 / -1; }
  html:not([data-mama34-video-engine]) #feed[data-weekly-open="false"] > [data-weekly-stars] { display: none; }
  html:not([data-mama34-video-engine]) #feed.m34-timeline > .pw-stars { margin: 0 12px 10px; }
}
@media (min-width: 600px) and (max-width: 959px) {
  html:not([data-mama34-video-engine]) .pm-social-page #feed[data-weekly-open] > .m34-feed-heading {
    grid-template-columns: minmax(0,1fr) auto auto;
    padding: 18px 0 14px;
  }
  html:not([data-mama34-video-engine]) #feed[data-weekly-open] .m34-feed-heading h1 { grid-column: auto; }
}
@media (min-width: 600px) {
  html:not([data-mama34-video-engine]) body.pm-social-page .pm-main.wrap { width: min(calc(100% - 40px), 44rem); }
}
/* A long ranking can expand beside the stream without moving the next post. */
@media (min-width: 960px) {
  html:not([data-mama34-video-engine]) body.pm-social-page .pm-main.wrap { width: min(calc(100% - 72px), 64rem); max-width: 64rem; }
  html:not([data-mama34-video-engine]) body.pm-social-page > header .wrap.nav { width: min(calc(100% - 72px), 64rem); max-width: 64rem; padding-inline: 0; }
  html:not([data-mama34-video-engine]) #feed.m34-timeline {
    --rail-width: clamp(280px, 29vw, 320px);
    --column-gap: 24px;
    max-width: none;
  }
  html:not([data-mama34-video-engine]) .pm-social-page #feed.m34-timeline > .m34-feed-heading {
    padding: 24px 0 15px;
  }
  html:not([data-mama34-video-engine]) #feed.m34-timeline > :is(.m34-feed-heading, article.pm-social-card, .pm-pager, .empty) {
    width: calc(100% - var(--rail-width) - var(--column-gap));
  }
  html:not([data-mama34-video-engine]) #feed.m34-timeline > .pw-stars {
    float: right;
    width: var(--rail-width);
    margin: 0;
    padding: 15px 16px 0;
  }
  html:not([data-mama34-video-engine]) #feed .pw-heading::before { content: "★"; }
  html:not([data-mama34-video-engine]) #feed .pw-period { margin: 8px 0 12px; font-size: 11px; }
  html:not([data-mama34-video-engine]) #feed .pw-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
  html:not([data-mama34-video-engine]) #feed .pw-grid > .pw-card {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-content: center;
    min-height: 62px;
    padding: 8px 0;
    text-align: left;
    border-top: 1px solid #f0ebe5;
  }
  html:not([data-mama34-video-engine]) #feed .pw-grid .pw-preview {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
    width: 38px;
    height: 38px;
  }
  html:not([data-mama34-video-engine]) #feed .pw-grid .pw-preview img { width: 100%; height: 100%; }
  html:not([data-mama34-video-engine]) #feed .pw-grid .pw-name { grid-column: 2; grid-row: 1; align-self: end; font-size: 13px; }
  html:not([data-mama34-video-engine]) #feed .pw-grid .pw-prize { grid-column: 2; grid-row: 2; align-self: start; font-size: 11px; }
  html:not([data-mama34-video-engine]) #feed .pw-grid .pw-score {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    padding: 3px 7px;
    margin: 0;
    border-radius: 8px;
    background: #faf1e6;
    color: #80512b;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  html:not([data-mama34-video-engine]) #feed .pw-grid > .pw-placeholder {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
  }
}

@media (max-width: 599px) {
  html:not([data-mama34-video-engine]) body.pm-social-page > header .wrap.nav { height: auto; min-height: 60px; padding-block: 3px; }
}
