* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Geologica', 'Times New Roman', serif;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

header {
  border-bottom: 1px solid #ccc;
  padding: 20px 0;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 2rem;
  font-weight: 400;
}

header h1 a {
  color: #000;
  text-decoration: none;
}

nav a {
  color: #000;
  text-decoration: none;
  border: 1px solid #000;
  border-radius: 30px;
  padding: 8px 20px;
  margin-left: 10px;
  transition: all 0.2s ease;
  display: inline-block;
}

nav a:hover {
  background: #000;
  color: #fff;
}

h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.date {
  color: #666;
  font-size: 0.9rem;
  margin: 5px 0;
}

/* Главная: превью постов */
.post-preview {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.post-preview:last-child {
  border-bottom: none;
}

.post-preview h2 a {
  color: #000;
  font-weight: 600;
  text-decoration: none;
}

.post-preview h2 a:hover {
  text-decoration: underline;
}

.preview {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.preview img {
  max-width: 150px;
  height: auto;
  border: 1px solid #ddd;
}

.preview p {
  flex: 1;
  margin: 0;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #000;
}

/* Страница поста */
.post-header {
  margin-bottom: 30px;
}

.post-header h2 {
  font-size: 2rem;
  font-weight: 600;
}

.post-image {
  margin: 20px 0;
  text-align: center;
}

.post-image img {
  max-width: 100%;
  border: 1px solid #ddd;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.7;
  font-family: 'Geologica', 'Times New Roman', serif; /* Добавьте эту строку */
}

.post-content strong { font-weight: 600; }
.post-content em { font-style: italic; }
.post-content u { text-decoration: underline; }
.post-content a { color: #000; }
.post-content img { max-width: 100%; margin: 10px 0; }
.post-content pre {
  background: #f5f5f5;
  padding: 15px;
  overflow-x: auto;
  border-left: 3px solid #000;
  margin: 20px 0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 4px;
}
.post-content code {
  background: #f5f5f5;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.post-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}
.post-content blockquote { border-left: 3px solid #ccc; padding-left: 15px; color: #444; margin: 10px 0; }

footer {
  margin-top: 50px;
  border-top: 1px solid #ccc;
  padding: 20px 0;
  text-align: center;
}

/* Формы */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
}

input[type="file"] {
  padding: 5px 0;
}

button, .btn {
  display: inline-block;
  padding: 10px 25px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

button:hover, .btn:hover {
  background: #fff;
  color: #000;
}

.error {
  background: #fdd;
  color: #a00;
  padding: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.back {
  text-align: center;
  margin-top: 20px;
}

.back a {
  color: #000;
}

/* Админка */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

th {
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

.post-title {
  font-weight: 500;
}

.delete-form {
  display: inline;
}

.delete-btn {
  background: none;
  border: 1px solid #000;
  border-radius: 30px;
  color: #000;
  padding: 5px 15px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.delete-btn:hover {
  background: #000;
  color: #fff;
}

.actions {
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .preview {
    flex-direction: column;
  }
  .preview img {
    max-width: 100%;
  }
}

/* Стили для редактора поста */
.mode-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.mode-btn {
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 30px;
  padding: 8px 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.mode-btn.active {
  background: #000;
  color: #fff;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
  padding: 10px;
  background: #f5f5f5;
  border: 1px solid #ddd;
}

.toolbar-btn {
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 6px 12px;
  min-width: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toolbar-btn:hover {
  background: #e0e0e0;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

#previewBtn {
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 30px;
  padding: 10px 25px;
  transition: all 0.2s ease;
}

#previewBtn:hover {
  background: #000;
  color: #fff;
}

/* Стили для области предпросмотра */
.preview-area {
  margin-top: 40px;
  padding: 20px;
  border: 2px solid #000;
  background: #fafafa;
}

.preview-area h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
}

.post-cut {
  text-align: center;
  color: #666;
  font-style: italic;
  margin: 20px 0;
  padding: 10px;
  background: #f0f0f0;
  border: 1px dashed #999;
}

#closePreview {
  margin-top: 20px;
  width: 100%;
  padding: 10px 25px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#closePreview:hover {
  background: #fff;
  color: #000;
}

/* Для HTML режима - изображения */
.post-content img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
}

/* Индикация кат-тега в редакторе */
textarea {
  font-family: monospace;
  line-height: 1.5;
}

.edit-btn {
  background: none;
  border: 1px solid #000;
  border-radius: 30px;
  color: #000;
  padding: 4px 15px;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
  display: inline-block;
      margin-bottom: 10px;
}

.edit-btn:hover {
  background: #000;
  color: #fff;
}

.hidden-post {
  opacity: 0.6;
  background-color: #f9f9f9;
}

.status-hidden {
  color: #999;
  font-style: italic;
}

.status-visible {
  color: #000;
  font-weight: 500;
  font-size: 10px;
}

.hide-btn {
  background: none;
  border: 1px solid #ff9800;
  border-radius: 30px;
  color: #ff9800;
  padding: 5px 15px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.hide-btn:hover {
  background: #ff9800;
  color: #fff;
}

.show-btn {
  background: none;
  border: 1px solid #4caf50;
  border-radius: 30px;
  color: #4caf50;
  padding: 5px 15px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.show-btn:hover {
  background: #4caf50;
  color: #fff;
}

/* ===== БУРГЕР-МЕНЮ ===== */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.burger-menu {
  display: flex !important; /* Всегда показываем бургер */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  position: relative;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background: #000;
  border-radius: 3px;
  transition: all 0.3s ease;
  position: relative;
  left: 0;
  transform-origin: center;
}

/* Анимация бургера в крестик */
.burger-menu.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.burger-menu.open span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.burger-menu.open span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Навигация - скрыта по умолчанию, показывается по клику */
nav {
  position: absolute;
  top: 70px;
  right: 0;
  left: auto;
  min-width: 250px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 8px;
  padding: 20px;
  display: flex !important;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav a, nav span {
  width: 100%;
  text-align: center;
  margin: 5px 0 !important;
  padding: 10px 20px !important;
  box-sizing: border-box;
}

nav a {
  border: 1px solid #000;
  border-radius: 30px;
  text-decoration: none;
  color: #000;
  transition: all 0.2s ease;
  display: block;
}

nav a:hover {
  background: #000;
  color: #fff;
}

#userGreeting {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #666;
  font-weight: normal;
}

/* Для маленьких экранов */
@media (max-width: 768px) {
  nav {
    top: 60px;
    left: 0;
    right: 0;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  nav {
    top: 55px;
    padding: 15px;
  }
  
  .burger-menu {
    width: 25px;
    height: 20px;
  }
  
  .burger-menu span {
    height: 2px;
  }
  
  .burger-menu.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .burger-menu.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }
  
  nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #000;
    border-radius: 8px;
    padding: 20px;
    display: flex !important;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  
  nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  nav a, nav span {
    width: 100%;
    text-align: center;
    margin: 5px 0 !important;
  }
  
  nav a {
    padding: 12px 20px !important;
	font-family: 'Geologica', 'Times New Roman', serif;
  }
  
  #userGreeting {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
	font-family: 'Geologica', 'Times New Roman', serif;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  nav {
    top: 60px;
    padding: 15px;
  }
  
  .burger-menu {
    width: 25px;
    height: 20px;
  }
  
  .burger-menu span {
    height: 2px;
  }
  
  .burger-menu.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .burger-menu.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
	.user-info h2 {
      font-size: 20px !important;
      margin-bottom: 10px !important;
	  margin-top: -20px !important;
    }
	
	.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000;
    margin-left: 5px;
    }

    .hide-btn {
  background: none;
  border: 1px solid #ff9800;
  border-radius: 30px;
  color: #ff9800;
  padding: 5px 15px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  margin-bottom: 10px;
  }
  
    .show-btn {
  background: none;
  border: 1px solid #4caf50;
  border-radius: 30px;
  color: #4caf50;
  padding: 5px 15px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  margin-bottom: 10px;

  }
  
    .edit-btn { 
  background: none;
  border: 1px solid #000;
  border-radius: 30px;
  color: #000;
  padding: 4px 15px;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
  display: inline-block;
  margin-bottom: 10px;
  margin-left: -25px;
  }
}

footer a {
    color: #000;
    text-decoration: none;
    border: 1px solid #000;
    border-radius: 30px;
    padding: 8px 20px;
    transition: all 0.2s ease;
}

footer a:hover {
  background: #000;
  color: #fff;
}


/* ===== ПОЛЬЗОВАТЕЛЬСКАЯ ИНФОРМАЦИЯ В ШАПКЕ ===== */
.user-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 15px;
  border: 1px solid #000;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-info-header:hover {
  background: #f5f5f5;
}

.header-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #000;
}

.header-username {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  white-space: nowrap;
}

/* Для мобильных */
@media (max-width: 768px) {
  .user-info-header {
    padding: 3px 12px;
  }
  
  .header-avatar {
    width: 28px;
    height: 28px;
  }
  
  .header-username {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .user-actions {
    gap: 10px;
  }
  
  .user-info-header {
    padding: 3px 10px;
  }
  
  .header-username {
    font-size: 12px;
  }
}

/* Для телефонов - только аватарка */
@media (max-width: 768px) {
  .header-username {
    display: none; /* Скрываем ник */
  }
  
  .user-info-header {
    padding: 3px; /* Уменьшаем отступы */
    border-radius: 50%; /* Делаем круглым */
  }
  
  .header-avatar {
    width: 35px; /* Можно сделать аватар немного больше */
    height: 35px;
  }
}

/* Для совсем маленьких экранов */
@media (max-width: 480px) {
  .header-avatar {
    width: 32px;
    height: 32px;
  }
  
  .user-actions {
    gap: 8px;
  }
}


/* Зум изображений */
.post-content img,
.post-image img {
  transition: transform 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
  position: relative;
}

.post-content img.zoomed,
.post-image img.zoomed {
  transform: scale(1.5);
  z-index: 1000;
  position: relative;
  cursor: zoom-out;
}

/* Затемнение фона при зуме (опционально) */
body.zoom-active::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  pointer-events: none;
}

#myPostsLink {
  position: relative;
}

#myPostsLink::before {
  content: '';
  margin-right: 5px;
}

/* Для мобильных */
@media (max-width: 768px) {
  #myPostsLink {
    font-size: 14px;
  }
}

.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f5f5f5;
  border-radius: 30px;
  font-size: 0.85rem;
  color: #666;
}

.author-badge svg {
  width: 14px;
  height: 14px;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: 'Geologica', sans-serif;
  resize: vertical;
  min-height: 100px;
  box-sizing: border-box;
}

textarea:focus {
  outline: none;
  border-color: #000;
}

.char-counter {
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
  text-align: right;
}

.char-counter.warning {
  color: #ff9800;
}

.char-counter.danger {
  color: #f44336;
}

@media (max-width: 768px) {
  .rating-table {
    font-size: 0.9rem;
  }
  
  .rating-table th,
  .rating-table td {
    padding: 10px 8px;
  }
  
  .stats {
    flex-direction: column;
    gap: 3px;
  }
  
  .user-info {
    gap: 8px;
  }
  
  .user-avatar,
  .user-avatar-placeholder {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  /* Превращаем таблицу в карточки */
  .rating-table,
  .rating-table thead,
  .rating-table tbody,
  .rating-table tr,
  .rating-table td {
    display: block;
  }
  
  .rating-table thead {
    display: none; /* Скрываем шапку */
  }
  
  .rating-table tr {
    margin-bottom: 15px;
    border: 1px solid #000;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
  }
  
  .rating-table td {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
  }
  
  .rating-table td:last-child {
    border-bottom: none;
  }
  
  .rating-table td::before {
    content: attr(data-label);
    font-weight: 600;
    width: 90px;
    flex-shrink: 0;
    color: #666;
  }
  
  .rank {
    text-align: left;
  }
  
  .rank.rank-1,
  .rank.rank-2,
  .rank.rank-3 {
    font-size: 1rem;
  }
  
  .user-info {
    flex: 1;
  }
  
  .stats {
    flex-direction: row;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .rating-table td::before {
    width: 70px;
    font-size: 0.85rem;
  }
  
  .user-avatar,
  .user-avatar-placeholder {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  .user-name {
    font-size: 0.9rem;
  }
  
  .stats span {
    font-size: 0.8rem;
  }
  
  .profile-avatar {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #000;
    }
}



    .profile-container {
      max-width: 800px;
      margin: 0 auto;
    }
    
    .profile-header {
      display: flex;
      align-items: center;
      gap: 40px;
      margin-bottom: 40px;
      padding: 30px;
      border: 1px solid #000;
      background: #fff;
    }
    
    .profile-avatar {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #000;
    }
    
    .profile-avatar-placeholder {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      background: #000;
      border: 2px solid #000;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 64px;
      color: #fff;
      font-weight: bold;
    }
    
    .profile-info {
      flex: 1;
    }
    
    .profile-username {
      font-size: 1.7rem;
      font-weight: 500;
      margin: 0;
    }
    
    .profile-meta {
      color: #666;
      font-size: 1rem;
      margin-bottom: 20px;
    }
    
    .profile-bio {
  background: #f5f5f5;
  border-left: 3px solid #000;
  padding: 10px 15px;
  margin: 0 0 20px 0;
  line-height: 1.4;
  font-size: 0.95rem;
  width: fit-content;
  max-width: 100%;
  border-radius: 0 4px 4px 0;
}

.profile-bio h3 {
  margin: 0 0 5px 0;
  font-weight: 500;
  font-size: 1rem;
}

.profile-bio p {
  margin: 0;
  color: #444;
}


    .profile-stats {
      display: flex;
      gap: 30px;
      margin: 20px 0;
    }
    
    .stat-item {
      text-align: center;
    }
    
    .stat-value {
      font-size: 1.8rem;
      font-weight: 600;
    }
    
    .stat-label {
      font-size: 0.9rem;
      color: #666;
    }
    
    .posts-section {
      margin-top: 40px;
    }
    
    .posts-section h2 {
      font-size: 1.8rem;
      font-weight: 500;
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 2px solid #000;
    }
    
    .post-preview {
      border-bottom: 1px solid #000;
      padding: 25px 0;
    }
    
    .post-preview:last-child {
      border-bottom: none;
    }
    
    .post-preview h3 {
      font-size: 1.8rem;
      margin-bottom: 5px;
    }
    
    .post-preview h3 a {
      color: #000;
      text-decoration: none;
    }
    
    .post-preview h3 a:hover {
      text-decoration: underline;
    }
    
    .post-preview .date {
      color: #666;
      font-size: 0.9rem;
      margin-bottom: 15px;
    }
    
    .preview-content {
      display: flex;
      gap: 20px;
      align-items: flex-start;
    }
    
    .preview-image-container {
      flex-shrink: 0;
      max-width: 200px;
    }
    
    .preview-image-container img {
      width: 100%;
      height: auto;
      border: 1px solid #000;
      border-radius: 4px;
    }
    
    .preview-text {
      flex: 1;
      font-family: 'Geologica', 'Times New Roman', serif;
    }
    
    .read-more-link {
      display: inline-block;
      margin-top: 15px;
      background-color: #000;
      color: #fff !important;
      text-decoration: none !important;
      padding: 10px 25px;
      font-size: 14px;
      font-weight: 400;
      letter-spacing: 0.5px;
      border: 1px solid #000;
      border-radius: 30px;
      transition: all 0.2s ease;
    }
    
    .read-more-link:hover {
      background-color: #fff;
      color: #000 !important;
    }
    
    .post-stats {
      display: flex;
      gap: 20px;
      margin-top: 15px;
      color: #666;
      font-size: 14px;
    }
    
    .post-stat {
      display: flex;
      align-items: center;
      gap: 5px;
    }
    
    .loading {
      text-align: center;
      padding: 50px;
      color: #666;
    }
    
    .error {
      text-align: center;
      padding: 50px;
      color: #c00;
      border: 1px solid #c00;
    }
    
    .not-found {
      text-align: center;
      padding: 50px;
      border: 1px solid #000;
    }
    
    .not-found h2 {
      font-size: 2rem;
      margin-bottom: 20px;
    }
    
    .not-found p {
      color: #666;
      margin-bottom: 30px;
    }
    
    .back-link {
      display: inline-block;
      padding: 10px 25px;
      background: #000;
      color: #fff;
      text-decoration: none;
      border-radius: 30px;
    }
    
    .back-link:hover {
      background: #fff;
      color: #000;
      border: 1px solid #000;
    }
    
    .skeleton {
      animation: skeleton-loading 1s linear infinite alternate;
    }
    
    @keyframes skeleton-loading {
      0% { background-color: #f0f0f0; }
      100% { background-color: #e0e0e0; }
    }
    
    .skeleton-title {
      width: 60%;
      height: 32px;
      margin-bottom: 10px;
      border-radius: 4px;
    }
    
    .skeleton-date {
      width: 30%;
      height: 16px;
      margin-bottom: 20px;
      border-radius: 4px;
    }
    
    .skeleton-preview {
      display: flex;
      gap: 20px;
      align-items: flex-start;
    }
    
    .skeleton-image {
      width: 200px;
      height: 150px;
      border-radius: 4px;
      flex-shrink: 0;
    }
    
    .skeleton-text {
      flex: 1;
    }
    
    .skeleton-line {
      height: 16px;
      margin-bottom: 10px;
      border-radius: 4px;
    }
    
    .skeleton-button {
      width: 150px;
      height: 40px;
      margin-top: 20px;
      border-radius: 30px;
    }
    
    @media (max-width: 600px) {
      .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
      }
      
      .preview-content {
        flex-direction: column;
      }
      
      .preview-image-container {
        max-width: 100%;
      }
    }
}


/* Стили для загрузки */
.loading {
  text-align: center;
  padding: 50px;
}

.loader {
  width: 40px;
  height: 40px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #000;
  border-radius: 50%;
  margin: 20px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error {
  text-align: center;
  padding: 50px;
  color: #c00;
  border: 1px solid #c00;
}

#turnstile-container {
  margin: 20px 0;
  min-height: 70px;
  display: flex;
  justify-content: center;
}

#turnstile-container iframe {
  border-radius: 8px;
  overflow: hidden;
}


.search-section {
    margin: 30px 0 20px;
    padding: 0 0 20px;
    border-bottom: 1px solid #eee;
  }
  
  .search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .search-input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    font-size: 1rem;
    border: 1px solid #000;
    border-radius: 40px;
    outline: none;
    transition: all 0.2s ease;
    background: #fff;
  }
  
  .search-input:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
  }
  
  .clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    line-height: 1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .clear-search:hover {
    color: #000;
    background: #f0f0f0;
  }
  
  .search-stats {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
  }
  
  .search-stats span {
    font-weight: 600;
    color: #000;
  }
  
  .no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    border: 1px dashed #ccc;
    margin: 30px 0;
  }
  
  .no-results p {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .no-results .clear-search-link {
    color: #000;
    text-decoration: underline;
    cursor: pointer;
  }
  
  @media (max-width: 600px) {
    .search-input {
      padding: 12px 40px 12px 15px;
      font-size: 0.95rem;
    }
  }