@import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&family=PT+Sans+Caption:wght@400;700&display=swap");

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "PT Sans", Verdana, Tahoma, Arial, sans-serif;
  font-size: 13px;
  color: #2b2b2b;
}

body {
  background-color: #3a5c8c;
  background-image: url("/static/img/background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

a { color: #3b5998; text-decoration: none; }
a:hover { text-decoration: underline; color: #d4691e; }

.site-frame {
  max-width: 1040px;
  margin: 0 auto;
  min-height: 100vh;
  background: #dfe5ea;
  box-shadow: 0 0 40px rgba(0,0,0,0.45);
}

.topbar {
  background: linear-gradient(to bottom, #6f8bb5 0%, #4c6fa0 50%, #3a5c8c 100%);
  border-bottom: 2px solid #274768;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-avatar {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-style: solid;
  border-width: 3px;
  border-image: url('/static/img/pravki/avatar_border.png') 16 stretch;
  vertical-align: middle;
  margin-right: 4px;
}

.player-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.15);
  border: 1px solid #274768;
  border-radius: 3px;
  padding: 3px 8px;
  font-size: 10px;
  color: #dbe6f4;
  max-width: 320px;
}

.player-bar .player-btn {
  cursor: pointer;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 3px;
}

.player-bar .player-btn img { width: 100%; height: 100%; object-fit: contain; }
.player-bar .player-btn:hover { background: rgba(255,255,255,0.25); }
.player-bar .player-btn:active { background: rgba(0,0,0,0.15); }

.play-icon { width: 16px; height: 16px; object-fit: contain; }
.player-bar .play-icon { width: 16px; height: 16px; object-fit: contain; }

.player-bar .player-track-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 130px;
  flex-shrink: 1;
}

.player-bar input[type=range] {
  width: 50px;
  flex-shrink: 0;
}

.topbar .logo {
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 1px 1px 1px #274768;
  margin-right: 20px;
  font-family: "PT Sans Caption", "PT Sans", sans-serif;
}

.topbar .logo .dot { color: #ffd35c; }

.topbar-search { flex: 1; max-width: 320px; }

.topbar-search input {
  width: 100%;
  height: 20px;
  border: 1px solid #1f3a56;
  padding: 2px 6px;
  font-size: 11px;
  font-family: inherit;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-right a { color: #dbe6f4; font-size: 11px; }
.topbar-right a:hover { color: #ffd35c; }

.bell-wrap { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.bell-wrap img { width: 20px; height: 20px; object-fit: contain; }

.bell-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #c9524c;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 0 3px;
  border-radius: 6px;
  border: 1px solid #8a2f2b;
  line-height: 12px;
}

.notif-dropdown {
  position: absolute;
  top: 32px;
  right: 10px;
  width: 300px;
  background: #fff;
  border: 1px solid #a9b7c6;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  z-index: 500;
  max-height: 380px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid #eef1f5;
  font-size: 11px;
  color: #333;
}

.notif-item.unread { background: #eef4fb; }
.notif-item img { width: 28px; height: 28px; object-fit: cover; border: 1px solid #a9b7c6; flex-shrink: 0; }
.notif-time { color: #8a97a5; font-size: 10px; }

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #ffe17a;
  border: 1px solid #b8890a;
  color: #7a4d00;
  font-weight: bold;
  font-size: 10px;
  padding: 0px 4px;
  border-radius: 2px;
  vertical-align: middle;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.rating-badge-icon { width: 11px; height: 11px; object-fit: contain; }

.community-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #eef6ea;
  border: 1px solid #a9d19b;
  color: #2f6b21;
  font-weight: bold;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 2px;
  vertical-align: middle;
}

.community-tag img { width: 12px; height: 12px; border-radius: 2px; object-fit: cover; }

.pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #eaf2fb;
  border: 1px solid #9db8d6;
  color: #345580;
  font-weight: bold;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 2px;
  vertical-align: middle;
}

.pinned-badge img { width: 11px; height: 11px; object-fit: contain; }

.online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4a9e4a;
  margin-left: 3px;
  vertical-align: middle;
}

.device-icon { vertical-align: middle; margin-left: 2px; }

.page-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 8px 30px;
}

.sidebar { width: 180px; flex-shrink: 0; }
.main-col { flex: 1; min-width: 0; }
.right-col { width: 220px; flex-shrink: 0; }

.panel {
  background: #ffffff;
  border: 1px solid #a9b7c6;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  margin-bottom: 10px;
}

.panel-title {
  background: linear-gradient(to bottom, #7d9cc4, #4c6fa0);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 4px 8px;
  border-bottom: 1px solid #345580;
  text-shadow: 1px 1px 0 #33507a;
}

.panel-body { padding: 8px; }

.sidemenu { list-style: none; margin: 0; padding: 0; }

.sidemenu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  color: #2b4b78;
  border-bottom: 1px solid #e7ecf1;
  font-size: 12px;
}

.sidemenu li a img { width: 20px; height: 20px; }
.sidemenu li a:hover { background: #eef3f9; text-decoration: none; }

.sidemenu li a.active {
  background: #dde8f5;
  font-weight: bold;
  border-left: 3px solid #4c6fa0;
  padding-left: 5px;
}

.mini-profile { text-align: center; padding: 10px; }

.mini-profile img.avatar {
  width: 100px;
  height: 120px;
  object-fit: cover;
  border-style: solid;
  border-width: 8px;
  border-image: url('/static/img/pravki/avatar_border.png') 16 stretch;
  background: #f0f0f0;
}

.status-line { margin-top: 6px; }

.status-display {
  color: #767676;
  font-style: italic;
  font-size: 11px;
  cursor: pointer;
  border-bottom: 1px dashed transparent;
}

.status-display:hover { border-bottom: 1px dashed #767676; }

.status-edit-row { display: none; gap: 4px; margin-top: 4px; }
.status-edit-row input {
  flex: 1;
  border: 1px solid #8c9bab;
  padding: 2px 4px;
  font-size: 11px;
  font-family: inherit;
}

#shop-items-background,
#shop-items-site_background,
#shop-items-cursor_effect,
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: stretch;
}

.game-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.game-card:hover { text-decoration: none; border-color: #6ea8dc; }
.game-card .ad-title { color: #2b4b78; }

.shop-item-card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.shop-item-card .ad-body { flex: 1; display: flex; flex-direction: column; }
.shop-item-card .ad-body > div:last-child { margin-top: auto; padding-top: 6px; }

@media (max-width: 760px) {
  #shop-items-background,
  #shop-items-site_background,
  #shop-items-cursor_effect,
  .games-grid { grid-template-columns: 1fr; }
}

.ad-slot {
  border: 1px solid #a9b7c6;
  background: #fff;
  margin-bottom: 10px;
  font-size: 11px;
}

.ad-slot .ad-label {
  background: #f2f2e6;
  color: #8a8a6a;
  font-size: 9px;
  padding: 2px 6px;
  border-bottom: 1px solid #e0e0cf;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ad-slot .ad-image-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eef1f5;
  overflow: hidden;
}

.ad-slot .ad-image-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-slot .ad-body { padding: 6px 8px; }
.ad-slot .ad-title { font-weight: bold; color: #2b4b78; margin-bottom: 2px; }
.ad-slot .ad-desc { color: #888; line-height: 1.3; }

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 11px;
  background: #e8edf3;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #6b7c8e;
  border-bottom: 1px solid #6b7c8e;
  padding: 4px 12px;
  cursor: pointer;
  color: #1c1c1c;
}

.btn:active {
  border-top: 1px solid #6b7c8e;
  border-left: 1px solid #6b7c8e;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
}

.btn:hover { background: #f2f6fa; }

.btn-primary {
  background: linear-gradient(to bottom, #6f95cc, #3d5f96);
  color: #fff;
  border-top: 1px solid #9db8e0;
  border-left: 1px solid #9db8e0;
  border-right: 1px solid #23375a;
  border-bottom: 1px solid #23375a;
  font-weight: bold;
}

.btn-primary:hover { background: linear-gradient(to bottom, #7fa3d8, #4468a4); }
.btn-danger { color: #a12b2b; }
.btn-small { font-size: 10px; padding: 2px 8px; }

.field-row { margin-bottom: 8px; }

.field-row label {
  display: block;
  font-weight: bold;
  margin-bottom: 2px;
  color: #33507a;
}

.field-row input[type=text],
.field-row input[type=email],
.field-row input[type=password],
.field-row textarea {
  width: 100%;
  border: 1px solid #8c9bab;
  padding: 4px;
  font-family: inherit;
  font-size: 12px;
  background: #fff;
}

.error-box {
  background: #fdeceb;
  border: 1px solid #c9524c;
  color: #8a2f2b;
  padding: 6px 8px;
  margin-bottom: 8px;
  font-size: 11px;
}

.hint-box {
  background: #eef6e0;
  border: 1px solid #8fb85c;
  color: #3f5c22;
  padding: 6px 8px;
  margin-bottom: 8px;
  font-size: 11px;
}

.composer textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #8c9bab;
  padding: 5px;
  font-family: inherit;
  font-size: 12px;
  resize: none;
  overflow: hidden;
}

.composer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
  gap: 6px;
}

.composer-attach-row { display: flex; gap: 6px; }

.composer-preview { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; position: relative; }
.composer-preview.uploading::after {
  content: "Загрузка...";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: #345580;
}
.composer-preview img { max-width: 140px; max-height: 140px; border: 1px solid #a9b7c6; }
.composer-preview video { max-width: 200px; max-height: 140px; border: 1px solid #a9b7c6; }

.attached-track {
  border: 1px solid #a9b7c6;
  background: #f2f5f8;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.feed-tabs { display: flex; }

.feed-tabs .feed-tab {
  padding: 6px 14px;
  cursor: pointer;
  font-weight: bold;
  color: #557;
  border-bottom: 3px solid transparent;
}

.feed-tabs .feed-tab.active { color: #2b4b78; border-bottom: 3px solid #4c6fa0; }

.post {
  border-bottom: 1px solid #e2e8ee;
  padding: 10px 8px;
  display: flex;
  gap: 8px;
}

.post:last-child { border-bottom: none; }

.post .post-avatar img { width: 50px; height: 50px; object-fit: cover; border-style: solid; border-width: 5px; border-image: url('/static/img/pravki/avatar_border.png') 16 stretch; }
.post-body { flex: 1; min-width: 0; }
.post-header { margin-bottom: 3px; }
.post-author { font-weight: bold; color: #2b4b78; }
.post-date { color: #8a97a5; font-size: 10px; margin-left: 4px; }
.post-text { white-space: pre-wrap; word-wrap: break-word; margin: 4px 0 6px; line-height: 1.4; }
.post-image img { max-width: 100%; max-height: 420px; border: 1px solid #cfd8e1; margin-bottom: 6px; display: block; }
.post-video video { max-width: 100%; max-height: 420px; border: 1px solid #cfd8e1; margin-bottom: 6px; display: block; }

.post-track {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfd8e1;
  background: #f2f5f8;
  padding: 6px 8px;
  margin-bottom: 6px;
}

.post-track .track-info { flex: 1; }
.post-track .track-title { font-weight: bold; color: #2b4b78; font-size: 12px; }
.post-track .track-artist { color: #666; font-size: 11px; }

.post-actions { display: flex; gap: 14px; align-items: center; font-size: 11px; color: #6f7a86; flex-wrap: wrap; }
.post-actions .action-link { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: #4c6fa0; user-select: none; position: relative; }
.post-actions .action-link img { width: 15px; height: 15px; object-fit: contain; flex-shrink: 0; }
.post-actions .action-link:hover { text-decoration: underline; }
.post-actions .action-link.liked { color: #c9524c; font-weight: bold; }

.share-dropdown {
  position: absolute;
  bottom: 20px;
  left: 0;
  background: #fff;
  border: 1px solid #a9b7c6;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  padding: 6px;
  z-index: 50;
  width: 180px;
}

.share-dropdown div {
  padding: 4px 6px;
  cursor: pointer;
  color: #2b4b78;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-dropdown div img,
.post-menu-dropdown div img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}

.share-dropdown div:hover { background: #eef3f9; }

.repost-block { border: 1px solid #d6dde5; background: #f7f9fb; margin-top: 4px; padding: 6px; }
.repost-block .post-author { font-size: 11px; }

.comments-block { margin-top: 6px; padding-left: 4px; border-top: 1px dashed #e2e8ee; padding-top: 6px; }
.comment { display: flex; gap: 6px; margin-bottom: 8px; }
.comment .comment-avatar img { width: 32px; height: 32px; object-fit: cover; border-style: solid; border-width: 3px; border-image: url('/static/img/pravki/avatar_border.png') 16 stretch; }
.comment-content { background: #f2f5f8; border: 1px solid #e2e8ee; border-radius: 3px; padding: 4px 8px; flex: 1; }
.comment-reply { margin-left: 38px; }
.comment-author { font-weight: bold; color: #2b4b78; font-size: 11px; }
.comment-text { font-size: 12px; margin: 2px 0; white-space: pre-wrap; word-wrap: break-word; }
.comment-image img { max-width: 200px; max-height: 200px; border: 1px solid #cfd8e1; margin: 4px 0; display: block; }
.comment-actions { font-size: 10px; color: #8a97a5; display: flex; gap: 10px; align-items: center; }
.comment-actions span { cursor: pointer; color: #4c6fa0; }
.comment-actions span:hover { text-decoration: underline; }
.comment-actions span.liked { color: #c9524c; font-weight: bold; }

.comment-reply {
  border-left: 2px solid #d6dde5;
  padding-left: 8px;
}

.reply-to-tag {
  font-size: 10px;
  color: #8a97a5;
  margin-bottom: 2px;
}

.reply-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eef4fb;
  border: 1px solid #cddaea;
  padding: 3px 8px;
  font-size: 10px;
  color: #345580;
  margin-top: 6px;
}

.reply-indicator .cancel-reply { cursor: pointer; color: #a12b2b; }
.reply-indicator .cancel-reply:hover { text-decoration: underline; }

.comment-form { display: flex; gap: 6px; margin-top: 6px; align-items: flex-start; }
.comment-form input[type=text] { flex: 1; border: 1px solid #8c9bab; padding: 4px; font-size: 11px; font-family: inherit; }
.comment-form label.btn { padding: 3px 8px; }

.auth-wrap { max-width: 760px; margin: 40px auto; display: flex; gap: 20px; padding: 0 10px; }
.auth-left { flex: 1; }
.auth-left h1 { font-family: "PT Sans Caption", sans-serif; font-size: 30px; color: #3a5c8c; margin: 0 0 6px; }
.auth-left .dot { color: #d4691e; }
.auth-left p { color: #555; line-height: 1.5; font-size: 13px; }
.auth-box { width: 300px; }
.tabs { display: flex; }

.tabs .tab {
  flex: 1;
  text-align: center;
  padding: 6px;
  cursor: pointer;
  background: #e8edf3;
  border: 1px solid #a9b7c6;
  border-bottom: none;
  font-weight: bold;
  color: #557;
}

.tabs .tab.active { background: #ffffff; color: #2b4b78; }

.rating-list { list-style: none; margin: 0; padding: 0; }
.rating-list li { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid #eef1f5; font-size: 11px; }
.avatar-framed {
  border-style: solid;
  border-width: 6px;
  border-image: url('/static/img/pravki/avatar_border.png') 16 stretch;
}

.rating-list li img { width: 26px; height: 26px; object-fit: cover; border-style: solid; border-width: 3px; border-image: url('/static/img/pravki/avatar_border.png') 16 stretch; }
.rating-list li .place { width: 20px; color: #8a97a5; font-weight: bold; }

.rating-list.big li { padding: 8px 0; font-size: 13px; }
.rating-list.big li img { width: 40px; height: 40px; }

/* The avatar-sizing rules above target every <img> in the row, but the
   rating star and the online-device icon are small inline badges, not
   avatars — force them back down regardless of .big. */
.rating-list li img.rating-badge-icon,
.rating-list.big li img.rating-badge-icon { width: 11px; height: 11px; border: none; }
.rating-list li img.device-icon,
.rating-list.big li img.device-icon { width: 12px; height: 12px; border: none; }
.rating-list.big li .place { width: 28px; font-size: 15px; }

.notif-popup-stack {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.notif-popup {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #a9b7c6;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  padding: 8px 10px;
  font-size: 11px;
  color: #333;
  width: 260px;
  text-decoration: none;
  transform: translateX(30px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.notif-popup.visible { transform: translateX(0); opacity: 1; }
.notif-popup img { width: 30px; height: 30px; object-fit: cover; border: 1px solid #a9b7c6; flex-shrink: 0; }

.toast {
  position: fixed;
  top: 50px;
  right: 12px;
  background: #ffffe1;
  border: 1px solid #c9a63c;
  color: #5c4b12;
  padding: 8px 12px;
  font-size: 11px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  z-index: 999;
  max-width: 260px;
}

.muted { color: #8a97a5; font-style: italic; padding: 10px; text-align: center; }
.footer { text-align: center; color: #7f8ea0; font-size: 10px; padding: 14px 0 30px; }

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,30,45,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box { width: 340px; background: #ece9d8; border: 2px solid #0a3d91; box-shadow: 3px 3px 8px rgba(0,0,0,0.4); }
.modal-titlebar { background: linear-gradient(to right, #0a3d91, #3b78d8); color: #fff; padding: 4px 6px; font-weight: bold; display: flex; align-items: center; }

.modal-titlebar .close-x {
  margin-left: auto;
  background: #d9dfe6;
  border: 1px solid #6b7c8e;
  width: 16px;
  height: 16px;
  text-align: center;
  line-height: 14px;
  cursor: pointer;
  color: #000;
  font-size: 10px;
}

.modal-content { padding: 12px; background: #ece9d8; }

.modal-content select,
.modal-content textarea,
.modal-content input[type=text] {
  width: 100%;
  border: 1px solid #8c9bab;
  padding: 4px;
  font-family: inherit;
  font-size: 11px;
  margin-bottom: 8px;
}

.upload-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.upload-row img.avatar-preview { width: 80px; height: 96px; object-fit: cover; border-style: solid; border-width: 6px; border-image: url('/static/img/pravki/avatar_border.png') 16 stretch; }

.profile-bg-wrap {
  margin: -8px;
  padding: 14px;
}

.profile-bg-wrap.has-bg {
  background-size: cover;
  background-position: center;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.profile-bg-wrap.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.55) 55%, rgba(255,255,255,0.15) 100%);
}

.profile-bg-content {
  display: flex;
  gap: 14px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.avatar-adaptive {
  max-width: 160px;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-style: solid;
  border-width: 10px;
  border-image: url('/static/img/pravki/avatar_border.png') 16 stretch;
  background: #f0f0f0;
  display: block;
}

.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  cursor: zoom-out;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.post-image img, .comment-image img { cursor: zoom-in; }

.post-text.collapsed {
  max-height: 220px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.show-more-link {
  display: inline-block;
  margin-top: 4px;
  color: #4c6fa0;
  cursor: pointer;
  font-size: 11px;
}

.show-more-link:hover { text-decoration: underline; }

.post-menu-wrap { position: relative; margin-left: auto; }
.post-menu-btn { cursor: pointer; color: #8a97a5; font-weight: bold; padding: 0 4px; }
.post-menu-btn:hover { color: #4c6fa0; }

.post-menu-dropdown {
  position: absolute;
  top: 18px;
  right: 0;
  background: #fff;
  border: 1px solid #a9b7c6;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  z-index: 60;
  width: 160px;
}

.post-menu-dropdown div {
  padding: 5px 8px;
  cursor: pointer;
  color: #2b4b78;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-menu-dropdown div:hover { background: #eef3f9; }

.track-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-bottom: 1px solid #eef1f5;
}

.track-row .track-meta { flex: 1; min-width: 0; }
.track-row .track-title { font-weight: bold; color: #2b4b78; font-size: 12px; }
.track-row .track-artist { color: #666; font-size: 11px; }
.track-row .track-uploader { color: #999; font-size: 10px; }

.picker-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,30,45,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.picker-box {
  width: 380px;
  max-height: 420px;
  background: #fff;
  border: 2px solid #0a3d91;
  box-shadow: 3px 3px 8px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

.picker-list { overflow-y: auto; padding: 4px 8px; }

::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: #d6dde5; }
::-webkit-scrollbar-thumb { background: #a9b7c6; border: 1px solid #7d8ea1; }

@media (max-width: 760px) {
  .page-wrap { flex-direction: column; }
  .sidebar, .right-col { width: 100%; }
  .site-frame { box-shadow: none; }
}
