:root {
  color-scheme: light;
  --of-accent: #00aff0;
  --of-text: #242529;
  --of-muted: #8a96a3;
  --of-line: #e5e8eb;
  --of-soft: #f5f6f7;
}

html {
  background: #fff;
}

html[data-root-entry="true"] .of-app,
html[data-root-entry="true"] .of-bottom-nav {
  visibility: hidden;
}

body {
  color: var(--of-text);
  background: #fff;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

.of-side-link,
.of-cover-back,
.of-share,
.of-more-button,
.of-subscribe,
.of-section-toggle,
.of-package-list button,
.of-content-tabs button,
.of-media-filters button,
.of-media-grid button,
.of-post button,
.of-bottom-nav a,
.of-bottom-nav button,
.of-menu-card button {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.of-cover-back:active,
.of-share:active,
.of-subscribe:active,
.of-package-list button:active,
.of-content-tabs button:active,
.of-media-filters button:active,
.of-media-grid button:active,
.of-post button:active,
.of-bottom-nav a:active,
.of-bottom-nav button:active,
.of-menu-card button:active {
  transform: translateY(1px) scale(.985);
}

a {
  text-decoration: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.of-app {
  display: grid;
  grid-template-columns: 280px 600px minmax(320px, 1fr);
  min-height: 100vh;
}

.of-sidebar {
  border-right: 1px solid var(--of-line);
}

.of-sidebar-inner {
  position: sticky;
  top: 0;
  display: grid;
  gap: 6px;
  width: 264px;
  padding: 18px 14px;
}

.of-brand {
  display: flex;
  align-items: center;
  width: 172px;
  height: 44px;
  padding: 2px 8px 10px;
}

.of-brand img {
  width: 145px;
  height: auto;
}

.of-side-link {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 46px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  color: #8d9aa8;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.of-side-link:hover {
  color: var(--of-accent);
  background: #f5fbfe;
}

.of-side-link svg {
  width: 25px;
  height: 25px;
}

.of-side-login {
  margin-top: 12px;
  color: var(--of-accent);
}

.of-main {
  /* Колонка во всю высоту, карточка тянется — подвал остаётся внизу
     страницы, а не всплывает сбоку от обложки на пустой анкете. */
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.of-profile-card {
  flex: 1;
  width: 600px;
  border-right: 1px solid var(--of-line);
  border-left: 1px solid var(--of-line);
  background: #fff;
}

.of-cover {
  position: relative;
  height: 180px;
  overflow: hidden;
  color: #fff;
  background: #1b2026;
}

.of-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.of-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 45%), transparent 58%);
}

.of-cover-back {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 13px;
  width: 30px;
  height: 30px;
  padding: 2px;
  border: 0;
  color: #fff;
  background: transparent;
}

.of-cover-back svg {
  width: 100%;
  height: 100%;
  stroke-width: 2;
}

.of-cover-title {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 55px;
  display: grid;
  gap: 3px;
}

.of-cover-title > strong {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}

.of-cover-title > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.of-cover-title svg {
  width: 14px;
  height: 14px;
}

.of-cover-title b,
.of-cover-title i {
  font-style: normal;
  font-weight: 400;
}

.of-verified {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  color: #000;                                          /* чёрная галка, без синего кружка */
  vertical-align: -3px;
}

.of-verified path {
  fill: currentColor;
  stroke: none;                                         /* глобально svg { stroke: currentColor } — здесь только fill */
}

.of-cover-title .of-verified {
  color: #fff;                                          /* поверх баннера — белая, в profile-info остаётся чёрной */
}

.of-profile-info {
  position: relative;
  /* Высота — по содержимому. Фиксированные 261px были посчитаны под полную
     анкету и у пустой оставляли 90px голого фона перед вкладками. Аватар и
     кнопка «поделиться» позиционированы абсолютно и укладываются в padding. */
  padding: 80px 16px 16px;
}

.of-avatar {
  position: absolute;
  top: -55px;
  left: 16px;
  width: 116px;
  height: 116px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
}

/* Без картинки круг оставался белым на белом — от аватара была видна
   только верхняя половина на тёмной обложке. Заливка лежит под фото. */
.of-avatar::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #d9dfe4;
}

.of-avatar img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.of-avatar span {
  position: absolute;
  right: 2px;
  bottom: 5px;
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #35d063;
}

.of-share {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 12px;
  place-items: center;
  border: 1px solid var(--of-line);
  border-radius: 50%;
  color: var(--of-accent);
  background: #fff;
}

.of-share svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.of-profile-copy h1 {
  display: flex;
  align-items: center;
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 600;
}

.of-handle {
  display: flex;
  gap: 8px;
  margin: 0 0 15px;
  color: var(--of-muted);
}

.of-handle i {
  font-style: normal;
}

.of-bio,
.of-more-copy {
  margin: 0;
  color: #4d5258;
  font-size: 14px;
  line-height: 1.48;
}

.of-more-copy {
  margin-top: 4px;
}

.of-more-button {
  padding: 0;
  margin-top: 18px;
  border: 0;
  color: var(--of-accent);
  background: transparent;
  font-size: 14px;
}

.of-subscription {
  background: #fff;
}

.of-subscription-center {
  padding: 18px 16px 14px;
  border-top: 8px solid var(--of-soft);
  border-bottom: 1px solid var(--of-line);
}

.of-kicker {
  margin: 0 0 16px;
  color: var(--of-muted);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

.of-subscription h2 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.35;
}

.of-regular-price {
  margin: 0;
  color: #93a0ad;
  font-size: 13px;
  line-height: 1.5;
}

.of-offer-note {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 10px 0 14px;
  padding-right: 10px;
  border-radius: 7px;
  background: var(--of-soft);
  font-size: 13px;
}

.of-offer-note img {
  width: 40px;
  height: 40px;
  margin-right: 8px;
  border-radius: 50%;
  object-fit: cover;
}

.of-subscribe {
  display: flex;
  align-items: center;
  justify-content: space-between;                       /* лейбл слева, цена справа — не сползает к центру */
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 18px;                                   /* равные боковые отступы; вертикаль по центру за счёт flex */
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--of-accent);
  text-transform: uppercase;
}

/* Цена-в-течение-N-дней ломалась на мобилке на «$2» / «5»: nowrap держит
   её одним куском. Если места не хватит — переносится вся плашка целиком. */
.of-subscribe b {
  white-space: nowrap;
}

.of-subscribe:hover,
.of-package-list button:hover {
  background: #009bd6;
  box-shadow: 0 8px 20px rgb(0 175 240 / 18%);
}

.of-subscribe span {
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  text-align: left;
}

.of-subscribe b {
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  text-align: right;
}

.of-regular-price {
  margin-top: 8px;
}

.of-packages {
  border-bottom: 1px solid var(--of-line);
}

.of-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 62px;
  padding: 0 16px;
  border: 0;
  color: var(--of-muted);
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

.of-section-toggle svg {
  width: 22px;
  height: 22px;
  transition: transform 160ms ease;
}

.of-packages[data-open="false"] .of-section-toggle svg {
  transform: rotate(180deg);
}

.of-package-list {
  display: grid;
  gap: 12px;
  padding: 0 16px 18px;
}

.of-packages[data-open="false"] .of-package-list {
  display: none;
}

.of-package-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--of-accent);
  font-size: 14px;
}

.of-package-list span {
  font-weight: 500;
}

.of-package-list small {
  font-size: inherit;
}

.of-content-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 64px;
  border-bottom: 1px solid var(--of-line);
}

.of-content-tabs button {
  position: relative;
  border: 0;
  color: var(--of-muted);
  background: #fff;
  font-size: 14px;
  text-transform: uppercase;
}

.of-content-tabs button[data-active="true"] {
  color: var(--of-text);
}

.of-content-tabs button[data-active="true"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--of-text);
}

.of-post {
  padding: 18px 16px 24px;
  border-bottom: 8px solid var(--of-soft);
}

.of-post > header {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
}

.of-post > header img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.of-post > header div {
  display: grid;
  gap: 2px;
}

.of-post > header span,
.of-post > header time {
  color: var(--of-muted);
  font-size: 13px;
}

.of-post > header button {
  border: 0;
  background: transparent;
}

.of-post > p {
  font-size: 15px;
  line-height: 1.45;
}

.of-locked-post {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 260px;
  padding: 18px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #e9edf0;
}

.of-locked-post > img,
.of-locked-post > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(.65);
  transform: scale(1.08);
}

/* Клик по закрытому видео уходит на родительскую плитку, а не поглощается
   элементом <video>: превью не играется — только даёт понять, что контент есть. */
.of-locked-post > video,
.of-media-grid [data-media-locked="true"] video,
.of-media-grid > button video {
  pointer-events: none;
}

.of-locked-post::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgb(26 33 40 / 36%);
}

.of-lock-icon,
.of-locked-post b {
  z-index: 1;
}

.of-lock-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 20%);
}

.of-lock-icon svg {
  width: 32px;
  height: 32px;
}

.of-post > footer {
  display: flex;
  gap: 18px;
  padding-top: 14px;
}

.of-post > footer button {
  width: 30px;
  height: 30px;
  padding: 2px;
  border: 0;
  color: #9aa4ad;
  background: transparent;
}

.of-post > footer button:last-child {
  margin-left: auto;
}

.of-media-filters {
  display: flex;
  gap: 10px;
  padding: 15px 16px;
}

.of-media-filters button {
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--of-soft);
}

.of-media-filters button[data-active="true"] {
  color: #087eaa;
  background: #d8f4ff;
}

.of-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.of-media-grid button {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #edf0f2;
}

.of-media-grid img,
.of-media-grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(.45);
  transform: scale(1.08);
}

.of-media-grid span {
  position: absolute;
  bottom: 8px;
  left: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgb(0 0 0 / 50%);
}

html[data-unlocked="true"] .of-locked-post > img,
html[data-unlocked="true"] .of-locked-post > video,
html[data-unlocked="true"] .of-media-grid img,
html[data-unlocked="true"] .of-media-grid video {
  filter: none;
  transform: none;
}

html[data-unlocked="true"] .of-locked-post > video,
html[data-unlocked="true"] .of-media-grid video {
  pointer-events: auto;
}

html[data-unlocked="true"] .of-locked-post::after,
html[data-unlocked="true"] .of-lock-icon,
html[data-unlocked="true"] .of-locked-post b {
  display: none;
}

.of-right-rail {
  padding: 14px 16px 40px;
}

.of-subscription-rail {
  position: sticky;
  top: 16px;
  width: min(100%, 352px);
  padding: 16px;
  border: 1px solid #d9dfe4;
  border-radius: 6px;
}

.of-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 600px;
  max-width: 100%;
  padding: 28px 16px;
  border-top: 1px solid var(--of-line);
  color: var(--of-muted);
  font-size: 12px;
}

.of-legal i {
  font-style: normal;
}

.of-bottom-nav {
  display: none;
}

.of-menu {
  position: fixed;
  z-index: 130;
  inset: 0;
  display: none;
}

.of-menu[data-open="true"] {
  display: block;
}

.of-menu-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgb(12 17 22 / 25%);
}

.of-menu-card {
  position: absolute;
  top: 76px;
  left: 16px;
  display: grid;
  width: 248px;
  padding: 8px;
  border: 1px solid var(--of-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 52px rgb(0 0 0 / 16%);
}

.of-menu-card button {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
}

.of-menu-card button:hover {
  background: var(--of-soft);
}

@media (max-width: 1179px) {
  .of-app {
    grid-template-columns: 280px 600px;
  }

  .of-right-rail {
    display: none;
  }
}

@media (max-width: 880px) {
  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }

  .of-app {
    display: block;
  }

  .of-sidebar {
    display: none;
  }

  .of-profile-card {
    width: 100%;
    min-width: 0;
    border: 0;
  }

  .of-cover {
    height: 180px;
  }

  .of-cover > img {
    object-position: center;
  }

  .of-profile-info {
    padding-top: 76px;
  }

  .of-avatar {
    top: -35px;
    width: 96px;
    height: 96px;
  }

  .of-share {
    width: 48px;
    height: 48px;
    padding: 12px;
  }

  .of-profile-copy h1 {
    font-size: 20px;
  }

  .of-bio,
  .of-more-copy {
    font-size: 16px;
  }

  .of-subscription h2 {
    font-size: 18px;
  }

  .of-offer-note {
    font-size: 15px;
  }

  .of-bio,
  .of-more-copy {
    max-width: 560px;
  }

  .of-subscription-center {
    padding-top: 18px;
  }

  .of-bottom-nav {
    position: fixed;
    z-index: 80;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;                     /* home слева, троеточие справа — по углам */
    height: calc(58px + env(safe-area-inset-bottom));
    padding: 0 24px env(safe-area-inset-bottom);
    border-top: 1px solid var(--of-line);
    background: rgb(255 255 255 / 96%);
    backdrop-filter: blur(16px);
  }

  .of-bottom-nav a,
  .of-bottom-nav button {
    display: grid;
    padding: 0;
    place-items: center;
    border: 0;
    color: #8c9aa6;
    background: transparent;
  }

  .of-bottom-nav svg {
    width: 27px;
    height: 27px;
  }

  .of-menu-card {
    top: auto;
    left: auto;
    right: 12px;
    bottom: calc(70px + env(safe-area-inset-bottom));
    width: 210px;
  }
}

@media (max-width: 420px) {
  .of-subscribe {
    grid-template-columns: .9fr 1.5fr;
  }

  .of-subscribe b {
    max-width: 170px;
  }

  .of-post {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 350px) {
  .of-subscribe {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-block: 8px;
  }

  .of-subscribe span,
  .of-subscribe b {
    max-width: none;
    text-align: center;
  }

  .of-package-list button {
    padding-inline: 14px;
    font-size: 13px;
  }
}

/* CTA под сеткой медиа: цвета и primary-кнопка под бренд OnlyFans
   (см. shared/base.css .feed-cta-wall). */
.of-cta-wall {
  --feed-cta-bg: #fff;
  --feed-cta-fg: var(--of-text);
  --feed-cta-btn-bg: var(--of-accent);
  --feed-cta-btn-fg: #fff;
}
