:root {
  --bg: #000;
  --panel: #0a0a0a;
  --text: #e7e9ea;
  --muted: #71767b;
  --border: #2f3336;
  --link: #1d9bf0;
  --pill: #eff3f4;
  --pillText: #0f1419;
}
img {
  width: 100%;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  font-family: "Chirp";

  background: #222;
  color: var(--text);
}

.phone {
  margin: auto;
  width: min(430px, 100%);
  background: var(--bg);
  border: 1px solid #111;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border-bottom: 1px solid #0d0d0d;
}

.topbar__title {
  flex: 1;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 13px;
}
.topbar {
  margin: auto;
  width: min(430px, 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;

  will-change: transform;
  transition: transform 0.45s ease;
}

.topbar.is-hidden {
  transform: translateY(-100%);
}

/* компенсируем fixed-хедер: у тебя контент начинается с cover сразу после header :contentReference[oaicite:2]{index=2} */
.phone {
  padding-top: 63px; /* подгони под реальную высоту topbar */
}

.icon-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 8px;
  border-radius: 999px;
  cursor: pointer;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}
.icon-btn--small {
  padding: 6px;
}

.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: 0.95;
}

.pill {
  border: 0;
  cursor: pointer;
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}
.pill--light {
  background: var(--pill);
  color: var(--pillText);
  font-size: 13px;
}
.pill--primary {
  background: var(--pill);
  color: var(--pillText);
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 800;
}

.cover {
  position: relative;
  height: 150px;
  background: #060606;
}
/* .cover__img {
  height: 100%;
  background:
    radial-gradient(
      800px 200px at 70% 60%,
      rgba(29, 155, 240, 0.35),
      transparent 60%
    ),
    radial-gradient(
      500px 200px at 20% 10%,
      rgba(255, 255, 255, 0.12),
      transparent 60%
    ),
    linear-gradient(115deg, #2c3e50, #000 55%, #123a54);
  filter: contrast(1.05) saturate(1.05);
} */

.cover__img {
  height: 100%;
  background-image: url("../images/banner.jpeg");
  filter: contrast(1.05) saturate(1.05);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.profile {
  padding: 0 15px 11px;
}

.profile__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: -44px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: var(--bg);
  border: 4px solid var(--bg);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
/* .avatar__img {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      40px 40px at 35% 35%,
      rgba(255, 255, 255, 0.25),
      transparent 60%
    ),
    linear-gradient(135deg, #2a2f35, #0b0f14);
    position: relative;
    z-index: 1000;
} */
/* background */
.avatar__img {
  width: 100%;
  height: 100%;
  background: url("../images/avatar.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: relative;
  z-index: 1000;
}

.profile__actions {
  padding-bottom: 6px;
}

.profile__name {
  margin-top: 10px;
}
.name-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-custom {
  border-bottom-width: 1px;
  border-left-width: 1px;
  border-right-width: 1px;
  border-top-width: 1px;
  border-color: rgb(51, 54, 57);
  max-width: 16.15px;
  height: 100%;
  align-items: center;
  display: flex;
}
.name {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.handle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}
.verified {
  align-items: center;
  display: flex;
}
.verified svg {
  width: 20px;
  height: 20px;
}
.verified svg path {
  fill: var(--link);
}
.verified svg .check {
  fill: #fff;
}

.badge {
  margin-left: 4px;
  font-size: 12px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #16181c;
  border: 1px solid #2a2e31;
  color: #cfd9de;
}

.bio {
  margin: 12px 0 10px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
}
.link {
  color: var(--link);
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0px 14px;
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 15px;
}
.meta__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.meta__icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.9;
}

.stats {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 12px;
}
.stats strong {
  color: var(--text);
  font-weight: 800;
}

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin: 0 -16px;
  padding: 0 8px;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 14px 6px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  font-size: 14px;
}
.tab--active {
  color: var(--text);
}
.tab--active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 3px;
  background: var(--link);
  border-radius: 999px;
}
/* 
.feed {
  padding: 0 0 16px;
} */

.tweet {
  display: flex;
  padding: 5px 15px 5px;
  border-bottom: 1px solid var(--border);
}
.tweet__avatar {
  width: 44px;
}
/* .mini-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background:
    radial-gradient(
      18px 18px at 35% 35%,
      rgba(255, 255, 255, 0.2),
      transparent 60%
    ),
    linear-gradient(135deg, #2a2f35, #0b0f14);
  border: 1px solid #0e0f10;
} */
.mini-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;

  background: url("../images/avatar.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: relative;
  z-index: 1000;
  border: 1px solid #0e0f10;
}

.tweet__body {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}
.tweet__head {
  display: flex;
  align-items: center;
  min-width: 0;
}
.tweet__name {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  width: 80px;
}
.tweet__meta {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  opacity: 0.7;
}
.tweet__meta_user {
  overflow: hidden;
  text-overflow: ellipsis;
}
.tweet__text {
  margin: 6px 0 10px;
  font-size: 14px;
  line-height: 1.35;
}

.media {
  width: 100%;
  border-radius: 14px;
  background:
    radial-gradient(
      220px 160px at 65% 35%,
      rgba(255, 255, 255, 0.18),
      transparent 55%
    ),
    linear-gradient(135deg, #1e2a35, #10161d 60%, #070b10);
  border: 1px solid #1c2023;
  overflow: hidden;
  height: auto;
}

.media_icons__list {
  display: flex;
  padding: 0;
  gap: 10px;
  justify-content: center;
}
.media_icons__list-item {
  list-style: none;
  display: flex;
  gap: 5px;
}
.media_icons__list-item svg {
  color: var(--muted);
}
.media_icons__list-item__text {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.media_icons__list_second {
  display: flex;
  gap: 10px;
  padding: 0;
}
.media-container {
  display: flex;
  justify-content: space-between;
}

.load-more {
  background: transparent;
  color: var(--muted);
  align-items: center;
  justify-content: center;
  display: flex;
  align-items: center;
  margin: auto;
  font-size: 14px;
  border: none;
  padding: 10px;
}

.load-svg {
  width: 20px;
  height: 20px;
  display: inline-block;
  transform-origin: 50% 50%;
  animation: spin 0.9s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
