/* ============================================================
   Модуль «Каталог файлов» — files-catalog.css
   Дизайн-система: Inter · #132239 · #fbd83d · glassmorphism
   ============================================================ */

/* ── Переменные ─────────────────────────────────────────────── */
:root {
  --fc-bg:            #132239;
  --fc-bg-2:          #0d1a2d;
  --fc-card-bg:       rgba(10, 27, 50, 0.65);
  --fc-card-bg-hover: rgba(15, 35, 65, 0.8);
  --fc-white:         #ffffff;
  --fc-gold:          #fbd83d;
  --fc-gold-dim:      rgba(251, 216, 61, 0.12);
  --fc-gold-border:   rgba(251, 216, 61, 0.3);
  --fc-text:          #ffffff;
  --fc-text-muted:    rgba(255, 255, 255, 0.55);
  --fc-text-light:    rgba(255, 255, 255, 0.75);
  --fc-border:        rgba(255, 255, 255, 0.1);
  --fc-border-hover:  rgba(255, 255, 255, 0.18);
  --fc-radius-xl:     1.5rem;
  --fc-radius-lg:     1rem;
  --fc-radius-md:     0.75rem;
  --fc-radius-sm:     0.5rem;
  --fc-shadow:        0 4px 24px rgba(0, 0, 0, 0.25);
  --fc-shadow-lg:     0 8px 40px rgba(0, 0, 0, 0.35);
  --fc-gradient-gold: linear-gradient(135deg, #fbd83d 0%, #f5a623 100%);
  --fc-gradient-blue: linear-gradient(135deg, #498bfa 0%, #4288ff 100%);
  --fc-gradient-purple: linear-gradient(135deg, #c635ff 0%, #6a44e8 100%);
  --fc-transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Обёртка страницы ────────────────────────────────────────── */
.uc-files-page {
  background-color: var(--fc-bg);
  color: var(--fc-text);
  font-family: Inter, sans-serif;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 1.5rem);
}

.uc-files-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Заголовок раздела ───────────────────────────────────────── */
.uc-files-header {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.uc-files-header h1,
.uc-files-header .uc-page-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fc-white);
  margin: 0 0 0.5rem;
}

.uc-files-header .uc-page-subtitle {
  font-size: 1rem;
  color: var(--fc-text-muted);
  margin: 0;
}

/* ── Хлебные крошки ──────────────────────────────────────────── */
.uc-breadcrumbs,
.uc-files-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--fc-text-muted);
}

.uc-breadcrumbs a,
.uc-files-breadcrumb a {
  color: var(--fc-gold);
  text-decoration: none;
  transition: opacity var(--fc-transition);
}

.uc-breadcrumbs a:hover,
.uc-files-breadcrumb a:hover {
  opacity: 0.75;
}

.uc-breadcrumbs .separator,
.uc-files-breadcrumb .separator,
.uc-breadcrumbs span + span::before,
.uc-files-breadcrumb span + span::before {
  content: "/";
  color: var(--fc-border);
  margin: 0 0.15rem;
}

/* ── Панель инструментов ─────────────────────────────────────── */
.uc-files-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.uc-files-search {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  background: var(--fc-card-bg);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  padding: 0 1rem;
  gap: 0.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--fc-transition);
}

.uc-files-search:focus-within {
  border-color: var(--fc-gold-border);
  box-shadow: 0 0 0 3px rgba(251, 216, 61, 0.1);
}

.uc-files-search svg,
.uc-files-search .search-icon {
  color: var(--fc-text-muted);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.uc-files-search input,
.uc-files-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fc-white);
  font-size: 0.9375rem;
  padding: 0.65rem 0;
  font-family: Inter, sans-serif;
}

.uc-files-search input::placeholder,
.uc-files-search-input::placeholder {
  color: var(--fc-text-muted);
}

.uc-files-sort {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.uc-files-sort label {
  font-size: 0.8125rem;
  color: var(--fc-text-muted);
  white-space: nowrap;
}

.uc-files-sort select,
.uc-sort-select {
  background: var(--fc-card-bg);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-md);
  color: var(--fc-white);
  font-size: 0.875rem;
  font-family: Inter, sans-serif;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  transition: border-color var(--fc-transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff80' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  padding-right: 2rem;
}

.uc-files-sort select:focus,
.uc-sort-select:focus {
  outline: none;
  border-color: var(--fc-gold-border);
}

/* ── Кнопка «Загрузить файл» ─────────────────────────────────── */
.uc-btn-upload,
.uc-files-upload-btn,
a.uc-upload-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--fc-gradient-gold);
  color: #1d1e33;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: Inter, sans-serif;
  padding: 0.6rem 1.25rem;
  border-radius: var(--fc-radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--fc-transition), transform var(--fc-transition), box-shadow var(--fc-transition);
  box-shadow: 0 4px 16px rgba(251, 216, 61, 0.3);
}

.uc-btn-upload:hover,
.uc-files-upload-btn:hover,
a.uc-upload-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(251, 216, 61, 0.45);
}

.uc-btn-upload:active,
.uc-files-upload-btn:active {
  transform: translateY(0);
}

/* ── Сетка категорий ─────────────────────────────────────────── */
.uc-cat-list,
.uc-files-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.uc-cat-item,
.uc-files-category {
  background: var(--fc-card-bg);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--fc-transition), box-shadow var(--fc-transition), background var(--fc-transition);
  overflow: hidden;
}

.uc-cat-item:hover,
.uc-files-category:hover {
  border-color: var(--fc-border-hover);
  background: var(--fc-card-bg-hover);
  box-shadow: var(--fc-shadow);
}

.uc-cat-item a,
.uc-files-category a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1.25rem 1.25rem 1rem;
  text-decoration: none;
  color: var(--fc-white);
}

.uc-cat-icon,
.uc-cat-item .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--fc-radius-md);
  background: var(--fc-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.uc-cat-name,
.uc-cat-item .name {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.uc-cat-count,
.uc-cat-item .count {
  font-size: 0.8125rem;
  color: var(--fc-text-muted);
}

/* ── Список файлов ───────────────────────────────────────────── */
.uc-files-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
      margin-bottom: 40px;
}

/* ── Карточка файла ──────────────────────────────────────────── */
.uc-file-item {
  background: var(--fc-card-bg);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: stretch;
  gap: 1.1rem;
  transition: border-color var(--fc-transition), box-shadow var(--fc-transition), background var(--fc-transition);
  box-shadow: var(--fc-shadow);
}

.uc-file-item:hover {
  border-color: var(--fc-border-hover);
  background: var(--fc-card-bg-hover);
  box-shadow: var(--fc-shadow-lg);
}

.uc-file-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--fc-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--fc-border);
  position: relative;
}

.uc-file-icon.type-pdf   { background: rgba(239, 68,  68,  0.15); border-color: rgba(239, 68, 68, 0.25); }
.uc-file-icon.type-doc,
.uc-file-icon.type-docx  { background: rgba(73,  139, 250, 0.15); border-color: rgba(73, 139, 250, 0.25); }
.uc-file-icon.type-xls,
.uc-file-icon.type-xlsx  { background: rgba(34,  197, 94,  0.15); border-color: rgba(34, 197, 94, 0.25); }
.uc-file-icon.type-zip,
.uc-file-icon.type-rar   { background: rgba(251, 216, 61,  0.15); border-color: rgba(251, 216, 61, 0.25); }
.uc-file-icon.type-mp4,
.uc-file-icon.type-avi   { background: rgba(198, 53,  255, 0.15); border-color: rgba(198, 53, 255, 0.25); }
.uc-file-icon.type-mp3   { background: rgba(0,   255, 242, 0.12); border-color: rgba(0, 255, 242, 0.22); }
.uc-file-icon.type-img,
.uc-file-icon.type-png,
.uc-file-icon.type-jpg   { background: rgba(106, 68,  232, 0.15); border-color: rgba(106, 68, 232, 0.25); }

.uc-file-body {
  flex: 1;
  min-width: 0;
}

.uc-file-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fc-white);
  margin: 0 0 0.35rem;
  line-height: 1.4;
}

.uc-file-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--fc-transition);
}

.uc-file-title a:hover {
  color: var(--fc-gold);
}

.uc-file-description,
.uc-file-desc {
  font-size: 0.875rem;
  color: var(--fc-text-light);
  margin: 0 0 0.65rem;
  line-height: 1.6;
  display: -webkit-box;

  overflow: hidden;
}

.uc-file-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 1rem;
  font-size: 0.8125rem;
  color: var(--fc-text-muted);
}

.uc-file-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.uc-file-meta-item svg,
.uc-file-meta-item .meta-icon {
  width: 16px;
  height: 16px;
}

.uc-file-meta .divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--fc-border);
  display: inline-block;
}

.uc-file-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.uc-file-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--fc-border);
  color: var(--fc-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--fc-transition), color var(--fc-transition);
}

.uc-file-tag:hover {
  background: var(--fc-gold-dim);
  color: var(--fc-gold);
  border-color: var(--fc-gold-border);
}
.uc-files-list.view-grid .uc-file-actions {
  height: auto !important;
  flex-direction: row-reverse; 
  gap: 1rem;
}
.uc-files-list.view-grid .uc-file-actions .entry-moder-container {top: calc(6% - 12.5px) !important;}



.uc-file-actions {
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  margin-left: auto;
}

.uc-btn-download,
.uc-file-download a,
a.uc-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--fc-gold-dim);
  color: var(--fc-gold);
  border: 1px solid var(--fc-gold-border);
  border-radius: var(--fc-radius-lg);
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: Inter, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fc-transition), box-shadow var(--fc-transition), transform var(--fc-transition);
  white-space: nowrap;
}

.uc-btn-download:hover,
.uc-file-download a:hover,
a.uc-download:hover {
  background: rgba(251, 216, 61, 0.22);
  box-shadow: 0 4px 16px rgba(251, 216, 61, 0.2);
  transform: translateY(-1px);
}

.uc-file-size-badge {
  font-size: 0.75rem;
  color: var(--fc-text-muted);
  text-align: right;
}

/* ── Рейтинг / звёзды ────────────────────────────────────────── */
.uc-file-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8125rem;
  color: var(--fc-gold);
}

.uc-file-rating .star-empty {
  color: var(--fc-border);
}

/* ── Пустое состояние ────────────────────────────────────────── */
.uc-files-empty {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  color: var(--fc-text-muted);
}

.uc-files-empty .empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.uc-files-empty .empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fc-text-light);
  margin-bottom: 0.5rem;
}

.uc-files-empty .empty-text {
  font-size: 0.9rem;
}

/* ── Пагинация ───────────────────────────────────────────────── */
.uc-pagination,
.uc-files-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 2.5rem;
}

.uc-pagination a,
.uc-pagination span,
.uc-files-pagination a,
.uc-files-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.65rem;
  border-radius: var(--fc-radius-md);
  background: var(--fc-card-bg);
  border: 1px solid var(--fc-border);
  color: var(--fc-text-light);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: Inter, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fc-transition), border-color var(--fc-transition), color var(--fc-transition);
}

.uc-pagination a:hover,
.uc-files-pagination a:hover {
  background: var(--fc-card-bg-hover);
  border-color: var(--fc-border-hover);
  color: var(--fc-white);
}

.uc-pagination .active,
.uc-pagination span.current,
.uc-files-pagination .active,
.uc-files-pagination .current {
  background: var(--fc-gradient-gold);
  border-color: transparent;
  color: #1d1e33;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(251, 216, 61, 0.3);
}

.uc-pagination .dots,
.uc-files-pagination .dots {
  background: transparent;
  border-color: transparent;
  cursor: default;
  color: var(--fc-text-muted);
}

/* ── Форма загрузки файла ────────────────────────────────────── */
.uc-upload-form {
  background: var(--fc-card-bg);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--fc-shadow);
  margin-bottom: 2rem;
}

/* ── Редактор материала ──────────────────────────────────────── */
.uc-files-editor ul.form-fields,
.uc-files-editor ul.uc-files-form-fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid !important;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto;
  gap: 0.65rem 1rem;
  align-items: start;
  font-family: Inter, sans-serif;
  color: var(--fc-text-light);
}

.uc-files-editor ul.form-fields > li,
.uc-files-editor ul.uc-files-form-fields > li {
  margin: 0;
  padding: 0;
  vertical-align: top;
}

.uc-files-editor ul.form-fields > li.notcolumn,
.uc-files-editor ul.uc-files-form-fields > li.notcolumn {
  grid-column: 1 / -1;
}

.uc-files-editor ul.form-fields > li.security,
.uc-files-editor ul.uc-files-form-fields > li.security {
  grid-column: 1 / -1;
}

.uc-files-editor ul.form-fields label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fc-text-light);
  padding-top: 0.35rem;
}

.uc-files-editor ul.form-fields hr {
  border: 0;
  border-top: 1px solid var(--fc-border);
  margin: 0.75rem 0;
  opacity: 0.85;
}

.uc-files-editor ul.form-fields input[type="text"],
.uc-files-editor ul.form-fields input[type="email"],
.uc-files-editor ul.form-fields input[type="password"],
.uc-files-editor ul.form-fields input[type="number"],
.uc-files-editor ul.form-fields input[type="url"],
.uc-files-editor ul.form-fields input[type="tel"],
.uc-files-editor ul.form-fields input[type="search"],
.uc-files-editor ul.form-fields input[type="date"],
.uc-files-editor ul.form-fields input[type="time"],
.uc-files-editor ul.form-fields textarea,
.uc-files-editor ul.form-fields select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-md);
  color: var(--fc-white);
  font-size: 0.9375rem;
  font-family: Inter, sans-serif;
  padding: 0.55rem 0.85rem;
  outline: none;
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color var(--fc-transition), box-shadow var(--fc-transition);
}

.uc-files-editor ul.form-fields textarea {
  min-height: 120px;
  resize: vertical;
  width: 100%;
}

.uc-files-editor ul.form-fields input:focus,
.uc-files-editor ul.form-fields textarea:focus,
.uc-files-editor ul.form-fields select:focus {
  border-color: var(--fc-gold-border);
  box-shadow: 0 0 0 3px rgba(251, 216, 61, 0.1);
}

.uc-files-editor ul.form-fields input::placeholder,
.uc-files-editor ul.form-fields textarea::placeholder {
  color: var(--fc-text-muted);
}

.uc-files-editor ul.form-fields input[type="checkbox"],
.uc-files-editor ul.form-fields input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--fc-gold);
  vertical-align: middle;
}

.uc-files-editor ul.form-fields .form-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--fc-border);
}

.uc-files-editor ul.form-fields .form-buttons input[type="submit"],
.uc-files-editor ul.form-fields .form-buttons input[type="button"],
.uc-files-editor ul.form-fields .form-buttons button {
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: var(--fc-radius-md);
  cursor: pointer;
  border: 1px solid var(--fc-gold-border);
  background: linear-gradient(180deg, rgba(251, 216, 61, 0.22), rgba(251, 216, 61, 0.08));
  color: var(--fc-white);
  transition: background var(--fc-transition), border-color var(--fc-transition), box-shadow var(--fc-transition);
}

.uc-files-editor ul.form-fields .form-buttons input[type="submit"]:hover,
.uc-files-editor ul.form-fields .form-buttons button:hover {
  background: linear-gradient(180deg, rgba(251, 216, 61, 0.35), rgba(251, 216, 61, 0.14));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.uc-files-editor ul.form-fields .form-buttons a {
  color: var(--fc-text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color var(--fc-transition);
}

.uc-files-editor ul.form-fields .form-buttons a:hover {
  color: var(--fc-gold);
}

.uc-files-editor ul.form-fields table,
.uc-files-editor ul.form-fields .bb-editor,
.uc-files-editor ul.form-fields iframe {
  max-width: 100%;
}

.uc-files-editor ul.form-fields .eMessage,
.uc-files-editor ul.form-fields .eBrief {
  color: var(--fc-text-light);
}

@media (max-width: 720px) {
  .uc-files-editor ul.form-fields,
  .uc-files-editor ul.uc-files-form-fields {
    grid-template-columns: 1fr;
  }

  .uc-files-editor ul.form-fields > li:not(.notcolumn) {
    grid-column: 1 / -1;
  }
}

/* ── Страница просмотра файла ────────────────────────────────── */
.uc-file-view {
  background: var(--fc-card-bg);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: var(--fc-shadow-lg);
}

.uc-file-view__hero {
  padding: clamp(1.75rem, 1vw, 3rem);
  border-bottom: 1px solid var(--fc-border);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.uc-file-view__icon-lg {
  width: 80px;
  height: 80px;
  border-radius: var(--fc-radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--fc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

    @media (max-width: 640px) {
	.uc-file-view__header { flex-direction: column !important;}
      .uc-file-view__icon-lg {width: 60px; height: 60px;}
}

.uc-file-view__copy {
  flex: 1;
  min-width: 0;
}

.uc-file-view__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--fc-white);
  margin: 0 0 0.5rem;
}

.uc-file-view__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
  font-size: 0.875rem;
  color: var(--fc-text-muted);
}

.uc-file-view__desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--fc-white);
}

.uc-file-view__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.uc-file-view__body {
  padding: 1.75rem clamp(1.5rem, 4vw, 2.5rem);
}

.uc-files-page .uc-file-view table.eBlock,
.uc-files-page .uc-file-view .eBlock {
  width: 100%;
  border: 0;
  background: transparent;
}

.uc-files-page .uc-file-view .eTitle {
  color: var(--fc-white) !important;
  background: transparent !important;
}

.uc-files-page .uc-file-view .eText {
  color: var(--fc-white) !important;
  background: transparent !important;
}

.uc-files-page .uc-file-view__body .eText,
.uc-files-page .uc-file-view__desc {
  color: var(--fc-white) !important;
}

.uc-files-page .uc-file-view__body p,
.uc-files-page .uc-file-view .eText p {
  color: var(--fc-white) !important;
  margin: 0 0 1rem;
  line-height: 1.75;
  font-size: 0.9375rem;
  font-family: Inter, sans-serif;
}

.uc-files-page .uc-file-view__body .eText li,
.uc-files-page .uc-file-view__body .eText td,
.uc-files-page .uc-file-view__body .eText th,
.uc-files-page .uc-file-view__body .eText blockquote,
.uc-files-page .uc-file-view__body .eText h1,
.uc-files-page .uc-file-view__body .eText h2,
.uc-files-page .uc-file-view__body .eText h3,
.uc-files-page .uc-file-view__body .eText h4 {
  color: var(--fc-white) !important;
}

.uc-files-page .uc-file-view__body .eText span[style],
.uc-files-page .uc-file-view__body .eText font[color] {
  color: var(--fc-white) !important;
}

.uc-files-page .uc-file-view__body .eText a {
  color: var(--fc-gold) !important;
}

.uc-files-page .uc-file-view__body .eText a:hover {
  color: #fff !important;
  text-decoration: underline;
}

.uc-files-page .uc-file-view .eDetails1,
.uc-files-page .uc-file-view .eDetails2 {
  background: transparent !important;
  border: 0 !important;
  color: var(--fc-text-muted) !important;
}

.uc-files-page .uc-file-view .eDetails1 a,
.uc-files-page .uc-file-view .eDetails2 a {
  color: var(--fc-gold);
}

/* ── Комментарии к файлу ─────────────────────────────────────── */
.uc-file-comments {
  border-top: 1px solid var(--fc-border);
  padding: 1.75rem clamp(1.5rem, 4vw, 2.5rem);
}

.uc-file-comments h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fc-white);
  margin: 0 0 1.25rem;
}

.uc-comment {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--fc-border);
}

.uc-comment:last-child { border-bottom: none; }

.uc-comment__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--fc-gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.uc-comment__body { flex: 1; min-width: 0; }

.uc-comment__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.uc-comment__author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fc-white);
}

.uc-comment__date {
  font-size: 0.75rem;
  color: var(--fc-text-muted);
}

.uc-comment__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--fc-text-light);
}

/* ── Уведомления/алерты ──────────────────────────────────────── */
.uc-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--fc-radius-lg);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid;
}

.uc-alert-info    { background: rgba(73, 139, 250, 0.1);  border-color: rgba(73, 139, 250, 0.25); color: #98c0ff; }
.uc-alert-success { background: rgba(34, 197, 94, 0.1);   border-color: rgba(34, 197, 94, 0.25);  color: #86efac; }
.uc-alert-warning { background: rgba(251, 216, 61, 0.1);  border-color: rgba(251, 216, 61, 0.25); color: var(--fc-gold); }
.uc-alert-error   { background: rgba(239, 68, 68, 0.1);   border-color: rgba(239, 68, 68, 0.25);  color: #fca5a5; }

/* ── Скелетон загрузки ───────────────────────────────────────── */
@keyframes uc-skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.uc-skeleton {
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--fc-radius-sm);
  animation: uc-skeleton-pulse 1.8s ease-in-out infinite;
}

/* ── Адаптив ─────────────────────────────────────────────────── */
@media (max-width: 640px) {

  
  .tpl-content {
    width: 100%;
  }
  
  
  .uc-file-view__desc table {
    overflow: scroll !important;
    display: block;
  }
  
  
  .uc-view-toggle {
    display: none !important;
  }

  .uc-file-item {
    flex-direction: column;
    padding: 1.1rem;
  }

  .uc-file-actions {
    flex-direction: row-reverse;
    gap: 1rem;
    align-items: center;
    width: 100%;
    margin-left: 0;
  }

  .uc-btn-download,
  .uc-file-download a,
  a.uc-download {
    max-width: fit-content;
    flex: 1;
    justify-content: center;
  }

  .uc-cat-list,
  .uc-files-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .uc-file-view__hero {
    flex-direction: column;
    gap: 1rem !important;
  }
}

@media (max-width: 400px) {
  .uc-cat-list,
  .uc-files-categories {
    grid-template-columns: 1fr;
  }
}

/* ── Фикс фона страницы ──────────────────────────────────────── */
html,
body {
  background-color: var(--fc-bg) !important;
  margin: 0;
  padding: 0;
}

#layout,
.layout,
.main {
  background-color: var(--fc-bg) !important;
}

/* ── Двухколоночный layout: контент + сайдбар ───────────────── */
.container.main-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 1.5rem;
  background-color: var(--fc-bg) !important;
  box-sizing: border-box;
  margin-top: 50px;
 margin-bottom: 50px;
}

/* Основная колонка контента */
.tpl-content {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  background-color: var(--fc-bg) !important;
}

/* Сайдбар — фиксированная ширина справа */
#sidebar.sidebar,
aside.sidebar {
  flex: 0 0 240px !important;
  width: 240px !important;
  min-width: 0;
  background-color: var(--fc-bg) !important;
}

/* Мобильный: стек вертикально */
@media (max-width: 768px) {
  .container.main-container {
    flex-direction: column !important;
  }

  #sidebar.sidebar,
  aside.sidebar {
    flex: 1 1 auto !important;
    width: 100% !important;
  }
}

/* ── Header ──────────────────────────────────────────────────── */
.uc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 26, 45, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: Inter, sans-serif;
}

.uc-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.65rem clamp(1rem, 3vw, 2rem);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: nowrap;
}

.uc-header__nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uc-header__nav ul,
.uc-header__nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.25rem;
}

.uc-header__nav li {
  position: relative;
  margin: 0;
  padding: 0;
}

.uc-header__nav a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: Inter, sans-serif;
  line-height: 1.35;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--fc-transition), border-color var(--fc-transition);
  white-space: nowrap;
}

.uc-header__nav a:hover,
.uc-header__nav li:hover > a {
  color: var(--fc-gold);
}

.uc-header__nav li.selected > a,
.uc-header__nav li.active > a,
.uc-header__nav li.current > a,
.uc-header__nav a.uc-current {
  color: var(--fc-gold);
  border-bottom-color: rgba(251, 216, 61, 0.55);
}

.uc-header__nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 0.5rem 0;
  margin-top: 0.35rem;
  background: rgba(13, 26, 45, 0.98);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-md);
  box-shadow: var(--fc-shadow-lg);
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  z-index: 200;
}

.uc-header__nav li:hover > ul { display: flex; }

.uc-header__nav ul ul a {
  padding: 0.5rem 1rem;
  white-space: nowrap;
  border-bottom: 0;
}

@media (max-width: 900px) {
  .uc-header__inner { flex-wrap: wrap; }

  .uc-header__nav {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
  }

  .uc-header__nav ul,
  .uc-header__nav ol {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}

.uc-header__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.uc-header__logo-u,
.uc-header__logo-ai {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.uc-header__logo-u svg,
.uc-header__logo-ai svg,
.uc-header__logo-ai > div > svg {
  display: block;
  width: 100%;
  height: 100%;
}

.uc-header__logo-ai {
  border-radius: 9999px;
  overflow: hidden;
}

.uc-header__logo-ai__inner {
  position: absolute;
  inset: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uc-header__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.uc-header__tg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  transition: transform 0.2s ease, opacity 0.2s ease;
  line-height: 0;
}
.uc-header__tg:hover { transform: scale(1.07); opacity: 0.85; }
.uc-header__tg svg { display: block; width: 36px; height: 36px; }

.uc-header__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-family: Inter, sans-serif;
  transition: color var(--fc-transition);
  white-space: nowrap;
}
.uc-header__link:hover { color: var(--fc-gold); }

.uc-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 1.25rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: Inter, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.uc-header__cta:hover { background: #fff; color: #132239; border-color: #fff; }

/* ── Сайдбар — блоки из шаблонов uCoz 2301 ──────────────────── */

.sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
}

.sidebar-block {
  background: var(--fc-card-bg) !important;
  border: 1px solid var(--fc-border) !important;
  border-radius: var(--fc-radius-xl) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: var(--fc-shadow);
}

.sidebar-block .inner {
  padding: 1.1rem 1.25rem !important;
}

.sidebar-block-title {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--fc-text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.85rem !important;
  font-family: Inter, sans-serif;
}

.user-box { font-family: Inter, sans-serif; }

.user-box h3 {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: var(--fc-white) !important;
  margin: 0 0 0.85rem !important;
  background: transparent !important;
}

.user-box-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.user-box-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--fc-border);
}

.user-box-avatar-icon {
  width: 40px;
  height: 40px;
  color: var(--fc-text-muted);
}

.user-box-name {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: var(--fc-white) !important;
}

.user-box-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.user-box-links a {
  font-size: 0.875rem !important;
  color: var(--fc-gold) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-family: Inter, sans-serif;
  transition: opacity var(--fc-transition);
}
.user-box-links a:hover { opacity: 0.75; }
.user-box-links a + a::before {
  content: "|";
  color: var(--fc-border);
  margin: 0 0.4rem;
  font-weight: 400;
}

.sidebar-search-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-search-content form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.sidebar-search-content input[type="text"],
.sidebar-search-content input[type="search"] {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid var(--fc-border) !important;
  border-radius: var(--fc-radius-md) !important;
  color: var(--fc-white) !important;
  font-size: 0.875rem !important;
  font-family: Inter, sans-serif !important;
  padding: 0.6rem 0.9rem !important;
  outline: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color var(--fc-transition), box-shadow var(--fc-transition);
}

.sidebar-search-content input[type="text"]:focus,
.sidebar-search-content input[type="search"]:focus {
  border-color: var(--fc-gold-border) !important;
  box-shadow: 0 0 0 3px rgba(251, 216, 61, 0.1) !important;
}

.sidebar-search-content input[type="text"]::placeholder,
.sidebar-search-content input[type="search"]::placeholder {
  color: var(--fc-text-muted) !important;
}

.sidebar-search-content input[type="submit"],
.sidebar-search-content button[type="submit"] {
  background: var(--fc-gold-dim) !important;
  border: 1px solid var(--fc-gold-border) !important;
  border-radius: var(--fc-radius-md) !important;
  color: var(--fc-gold) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  font-family: Inter, sans-serif !important;
  padding: 0.55rem 1rem !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: background var(--fc-transition), box-shadow var(--fc-transition);
}

.sidebar-search-content input[type="submit"]:hover,
.sidebar-search-content button[type="submit"]:hover {
  background: rgba(251, 216, 61, 0.22) !important;
  box-shadow: 0 4px 16px rgba(251, 216, 61, 0.2) !important;
}

.search-form-icon { display: none !important; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }


/* Основная панель */
.uc-toolbar-panel {
    border-radius: 20px;
    margin-bottom: 30px;
}

.uc-toolbar-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Стилизация системного поиска */
.uc-search-area { flex: 1; min-width: 250px; position: relative; }
.uc-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    padding: 10px 40px 10px 15px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}
.uc-search-input:focus { border-color: var(--fc-gold-border); background: rgba(255, 255, 255, 0.1); }
.uc-search-btn {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--fc-text-muted); cursor: pointer;
}

/* МАГИЯ: Стилизация $SORTING_MENU$ */
.sorting-wrapper {
    font-size: 0; /* Скрывает текст "Сортировать по" и точки-разделители */
    display: flex;
    gap: 8px;
    align-items: center;
}

.uc-sort-label {
    font-size: 13px;
    color: var(--fc-text-muted);
    margin-right: 10px;
}

/* Сами ссылки сортировки */
.catSortLink {
    display: inline-block;
    font-size: 13px !important;
    text-decoration: none !important;
    color: var(--fc-text-light) !important;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid var(--fc-border);
    transition: 0.3s;
}

.catSortLink:hover {
    background: var(--fc-gold-dim);
    border-color: var(--fc-gold-border);
    color: var(--fc-gold) !important;
}

/* Стиль для активной сортировки (uCoz вешает классы darr/uarr) */
.catSortLink.darr, .catSortLink.uarr {
    background: var(--fc-gold);
    color: #132239 !important;
    border-color: var(--fc-gold);
    font-weight: 600;
}

/* Кнопка Добавить */
.uc-add-btn-main {
    background: var(--fc-gold);
    color: #132239;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    transition: 0.3s;
}
.uc-add-btn-main:hover { opacity: 0.9; transform: translateY(-2px); }

/* Контейнер селектора */
.uc-select-sort-wrapper {
    min-width: 200px;
}

.uc-custom-select {
    position: relative;
    width: 100%;
}

/* Стилизация самого выпадающего списка */
.uc-filter-select {
    appearance: none; /* Убираем стандартную стрелку браузера */
    -webkit-appearance: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    padding: 10px 40px 10px 15px;
    color: var(--fc-text-light);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.uc-filter-select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--fc-gold-border);
}

.uc-filter-select:focus {
    border-color: var(--fc-gold);
    box-shadow: 0 0 0 2px var(--fc-gold-dim);
}

/* Иконка стрелочки */
.uc-select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fc-text-muted);
    pointer-events: none; /* Чтобы клик проходил сквозь иконку в селект */
    font-size: 20px !important;
}

/* Стилизация выпадающего меню (для темных схем) */
.uc-filter-select option {
    background: #1a2a44; /* Цвет фона выпадающего меню */
    color: #fff;
}

/* Полноэкранный поиск */
.uc-search-form-full {
    position: relative;
    width: 100%;
    display: flex;
}

.uc-input-full {
    width: 100%;
    background: var(--fc-card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--fc-border);
    border-radius: 16px;
    padding: 16px 60px 16px 24px; /* Отступы побольше для массивности */
    color: var(--fc-text);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Эффект при наведении и фокусе */
.uc-input-full:hover {
    background: var(--fc-card-bg-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.uc-input-full:focus {
    outline: none;
    border-color: var(--fc-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px var(--fc-gold-dim), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Текст плейсхолдера */
.uc-input-full::placeholder {
    color: var(--fc-text-muted);
    font-weight: 400;
}

/* Кнопка с лупой */
.uc-btn-search-full {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--fc-text-light);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.uc-btn-search-full .material-symbols-outlined {
    font-size: 26px !important; /* Лупа покрупнее */
}

.uc-btn-search-full:hover {
    color: var(--fc-gold);
    background: rgba(255, 255, 255, 0.05);
}



/* --- КНОПКИ ПЕРЕКЛЮЧЕНИЯ ВИДА --- */
.uc-view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    padding: 3px;
    gap: 2px;
}

.uc-view-btn {
    background: transparent;
    border: none;
    color: var(--fc-text-muted);
    padding: 6px 6px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uc-view-btn:hover {
    color: var(--fc-text-light);
}

.uc-view-btn.active {
    background: var(--fc-card-bg-hover);
    color: var(--fc-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* --- СЕТОЧНЫЙ ВИД (GRID) --- */
/* Применяем Grid к контейнеру uCoz, когда активен класс .view-grid */
.view-grid #allEntries {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки */
    gap: 20px;
}

/* Адаптивность для мобилок и планшетов */
@media (max-width: 1200px) { .view-grid #allEntries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .view-grid #allEntries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .view-grid #allEntries { grid-template-columns: 1fr; } }

/* Перестраиваем саму карточку под сетку */
.view-grid .uc-file-item {
    flex-direction: column; /* Элементы идут сверху вниз */
    align-items: flex-start;
    height: 100%;
    padding: 20px;
}

.view-grid .uc-file-icon {
    margin-bottom: 16px;
}

.view-grid .uc-file-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Заставляет кнопку скачивания прижаться к низу карточки */
}

/* Ограничиваем описание 3 строками, чтобы карточки были одной высоты */
.view-grid .uc-file-description {
    display: -webkit-box;

    overflow: hidden;
    margin-bottom: 15px;
}

/* Мета-теги (теги, просмотры и т.д.) */
.view-grid .uc-file-meta {
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: auto; /* Отталкивает низ карточки */
    padding-bottom: 15px;
}

.view-grid .uc-file-actions {
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--fc-border);
}

.view-grid .uc-btn-download {
    width: 100%;
    justify-content: center;
}

/* Фикс для системных стилей рейтинга uCoz, чтобы они не ломали флекс-боксы */
.uc-file-rating ul { 
    margin: 0 !important; 
    padding: 0 !important; 
    display: block !important; 
    width: 70px !important; 
}
.uc-file-rating li { 
    margin: 0 !important; 
}

/* Растягиваем карточки в сетке на 100% высоты */
.view-grid #allEntries > div { display: flex; height: 100%; }
.view-grid .uc-file-item { display: flex; flex-direction: column; height: 100%; width: 100%; }

.uc-avatar-user {
    border-radius: 50%;
    max-width: 30px;
}

/* --- СТИЛИ ДЛЯ КОНТЕНТА (PRE И TABLE) --- */

/* 1. Блоки кода (pre) */
.eText pre {
    background: #0d1a2d !important; /* Более темный фон для контраста */
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--fc-text-light);
    font-family: 'JetBrains Mono', 'Fira Code', monospace; /* Моноширинный шрифт */
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
    margin: 20px 0;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Эффект свечения для кода при наведении */


/* Стилизация встроенного кода (code) внутри текста */
.eText code {
    background: var(--fc-gold-dim);
    color: var(--fc-gold);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

/* 2. Таблицы (table) */
.eText table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    overflow: hidden; /* Чтобы скругления работали */
    background: rgba(255, 255, 255, 0.02);
}

.eText th {
    background: rgba(251, 216, 61, 0.05); /* Легкий золотой оттенок для заголовков */
    color: var(--fc-gold);
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid var(--fc-border);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eText td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--fc-border);
    color: var(--fc-text-light);
    font-size: 14px;
    line-height: 1.5;
    vertical-align: middle;
}

/* Убираем нижнюю границу у последней строки */
.eText tr:last-child td {
    border-bottom: none;
}

/* Подсветка строки при наведении */
.eText tr:hover td {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

/* Стилизация заголовков внутри контента (h2, h3) */
.eText h1 {
    color: var(--fc-gold);
    font-size: 1.8rem;
    margin: 15px 0 15px;
    font-weight: 700;
}


/* Стилизация заголовков внутри контента (h2, h3) */
.eText h2 {
    color: var(--fc-gold);
    font-size: 1.4rem;
    margin: 30px 0 15px;
    font-weight: 700;
}

.eText h3 {
    color: var(--fc-text);
    font-size: 1.1rem;
    margin: 20px 0 10px;
    font-weight: 600;
    border-left: 3px solid var(--fc-gold);
    padding-left: 12px;
}

/* Убиваем системную таблицу информера */
.uc-informer-grid table.infTable {
    display: block !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    width: 100% !important;
}

.uc-informer-grid table.infTable tbody {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* 4 колонки в ряд */
    gap: 24px !important;
    width: 100% !important;
}

.uc-informer-grid table.infTable td {
    display: block !important;
    width: 100% !important;
}

/* Стили карточки информера */
.skill-card-informer {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: left; /* Возвращаем выравнивание влево */
}

.skill-card-informer:hover {
    border-color: #FBD83D;
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.skill-card-informer__icon {
    width: 44px;
    height: 44px;
    background: rgba(251, 216, 61, 0.1);
    color: #FBD83D;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.skill-card-informer__title a {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.skill-card-informer__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 12px 0 20px;
    line-height: 1.5;
    flex-grow: 1;
}

/* Фикс для мобилок */
@media (max-width: 1024px) {
    .uc-informer-grid table.infTable tbody { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
    .uc-informer-grid table.infTable tbody { grid-template-columns: 1fr !important; }
}


/* ОБЩИЙ КОНТЕЙНЕР ФОРМЫ */
.comm-form-box {
    background: #0d1a2d;
    border: 1px solid var(--fc-border);
    border-radius: 20px;
    padding: 30px;

}

.comm-form-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* АВАТАР */
.comm-form-avatar {
    flex-shrink: 0;
}

.comm-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid var(--fc-gold);
    object-fit: cover;
}

.comm-form-avatar svg {
    width: 48px;
    height: 48px;
    color: var(--fc-text-muted);
}

/* ТЕКСТОВОЕ ПОЛЕ */
.comm-form-body {
    flex-grow: 1;
}

.comm-form-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--fc-border) !important;
    border-radius: 16px !important;
    color: #fff !important;
    padding: 15px 20px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box;
}

.comm-form-input:focus {
    border-color: var(--fc-gold) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    outline: none;
}

/* ПАНЕЛЬ КНОПОК И ОПЦИЙ */
.comm-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    gap: 15px;
}

/* КНОПКА ОТПРАВКИ */
.comm-form-btn {
    background: var(--fc-gold) !important;
    color: #1d1e33 !important;
    border: none !important;
    padding: 12px 28px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.comm-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 216, 61, 0.2);
}

/* ИКОНКИ ОПЦИЙ (Подписка, Анонимно) */
.comm-form-options {
    display: flex;
    gap: 10px;
}

.comm-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.comm-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--fc-gold);
}

.comm-option svg {
    width: 20px;
    height: 20px;
    fill: var(--fc-text-muted);
}

.comm-option-input {
    display: none; /* Прячем стандартный чекбокс */
}

/* Тултипы и ссылки */
.comm-form-unsubscribe {
    color: var(--fc-text-muted);
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

.comm-form-unsubscribe:hover {
    color: var(--fc-gold);
}

/* АВТОРИЗАЦИЯ */
.auth-links {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--fc-border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-links-label {
    font-weight: 600;
    color: var(--fc-text-light);
}

/* Смайлы и BB-коды */
.ucf-bb {
    margin-bottom: 10px;
    opacity: 0.8;
}

@media (max-width: 640px) {
    .comm-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .comm-form-btn {
        width: 100%;
    }
}

/* КАРТОЧКА КОММЕНТАРИЯ */
.comm-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--fc-border);
    position: relative;
}

.comm-card:last-child {
    border-bottom: none;
}

/* АВАТАР */
.comm-card-avatar {
    grid-row: 1 / 3;
}

.comm-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--fc-border);
    object-fit: cover;
}

.comm-card-avatar svg {
    width: 48px;
    height: 48px;
    color: var(--fc-text-muted);
}

/* ШАПКА КАРТОЧКИ */
.comm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uc-profile-link {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.uc-profile-link:hover {
    color: var(--fc-gold);
}

.comm-info {
    color: var(--fc-text-muted);
    font-size: 13px;
    margin-left: 10px;
}

/* ТЕКСТ СООБЩЕНИЯ */
.comm-message {
    color: var(--fc-text-light);
    line-height: 1.6;
    font-size: 15px;
    word-break: break-word;
}

/* РЕЙТИНГ И ЛАЙКИ */
.comm-rates {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--fc-border);
}

.u-rate-btn {
    display: flex;
    align-items: center;
    color: var(--fc-text-muted);
    transition: 0.2s;
}

.u-rate-btn:hover svg {
    color: var(--fc-gold);
}

.u-rate-wrapper {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    min-width: 15px;
    text-align: center;
}

/* КАРТОЧКА КОММЕНТАРИЯ - Фикс на Flexbox */
.comm-card {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--fc-border);
    position: relative;
    align-items: flex-start; /* Чтобы аватар не растягивался */
}

.comm-card:last-child {
    border-bottom: none;
}

/* АВАТАР - Фиксируем размер */
.comm-card-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.comm-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--fc-border);
    object-fit: cover;
    display: block;
}

/* КОНТЕНТНАЯ ЧАСТЬ */
.comm-card-right {
    flex-grow: 1;
    min-width: 0; /* Важно для предотвращения вылета текста за границы */
}

.comm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.comm-card-header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.uc-profile-link {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}

.comm-info {
    color: var(--fc-text-muted);
    font-size: 13px;
}

/* ТЕКСТ */
.comm-message {
    color: var(--fc-text-light);
    line-height: 1.6;
    font-size: 15px;
    word-break: break-word;
}

.smiles-grid {display: none;}

.com-order-block {display: none;}

/* --- 1. КНОПКИ ПЕРЕКЛЮЧЕНИЯ ВИДА --- */
.uc-view-toggle { display: flex; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--fc-border); border-radius: 12px; padding: 3px; gap: 2px; }
.uc-view-btn { background: transparent; border: none; color: var(--fc-text-muted); padding: 8px; cursor: pointer; border-radius: 8px; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.uc-view-btn:hover { color: var(--fc-text-light); }
.uc-view-btn.active { background: var(--fc-card-bg-hover); color: var(--fc-gold); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }

/* --- 2. СЕТОЧНЫЙ ВИД --- */
.view-grid #allEntries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1200px) { .view-grid #allEntries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .view-grid #allEntries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .view-grid #allEntries { grid-template-columns: 1fr; } }

#allEntries div[id^=entryID] {margin-bottom:20px;}
.view-grid #allEntries > div { display: flex; height: 100%; }

/* --- 3. КАСТОМНОЕ ВЫПАДАЮЩЕЕ МЕНЮ СОРТИРОВКИ --- */
.sort-select-wrapper { position: relative; min-width: 180px; user-select: none; z-index: 101; }
.sort-select-wrapper::after { display: none !important; content: none !important; }

.custom-select-trigger {
 display: flex; align-items: center; justify-content: space-between;
 background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
 border: 1px solid var(--fc-border); border-radius: 12px; padding: 10px 15px;
 color: var(--fc-gold); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s ease;
 gap: 10px;
}
.custom-select-trigger:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--fc-gold-border); }

.custom-select-trigger svg { transition: transform 0.3s ease; flex-shrink: 0; color: var(--fc-text-muted); }
.sort-select-wrapper.open .custom-select-trigger svg { transform: rotate(180deg); }
.custom-select-trigger:hover svg { color: var(--fc-gold); }

.custom-options {
 position: absolute; top: calc(100% + 8px); left: 0; right: 0;
 background: #0d1a2d; border: 1px solid var(--fc-border); border-radius: 12px;
 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); display: none; overflow: hidden; animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.sort-select-wrapper.open .custom-options { display: block; }

.custom-option { padding: 12px 15px; color: var(--fc-text-light); font-size: 14px; cursor: pointer; transition: all 0.2s ease; }
.custom-option:hover { background: rgba(251, 216, 61, 0.1); color: var(--fc-gold); }
.custom-option.selected { background: rgba(251, 216, 61, 0.05); color: var(--fc-gold); font-weight: 600; }

#uc-system-sort { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }


 /* Доп. стили для кнопок под слайдером */
 .slider-demo-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 12px;
 margin-top: 20px;
 justify-content: center;
 }
 
 .btn-demo-bottom {
 display: flex;
 align-items: center;
 gap: 8px;
 background: rgba(251, 216, 61, 0.1);
 color: var(--fc-gold);
 border: 1px solid var(--fc-gold-border);
 padding: 10px 20px;
 border-radius: 12px;
 font-size: 13px;
 font-weight: 600;
 text-decoration: none;
 transition: all 0.3s ease;
 }
 
 .btn-demo-bottom:hover {
 background: var(--fc-gold);
 color: #1D1E33;
 transform: translateY(-2px);
 }

 .btn-demo-bottom svg { width: 16px; height: 16px; }


 .uc-avatar-user { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; vertical-align: middle;}
 .uc-file-view__meta-item { display: flex; align-items: center; gap: 6px; color: var(--fc-text-light); font-size: 14px; }
 .uc-file-view__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 15px; }

 .uc-version-badge {
 background: rgba(255,255,255,0.08); padding: 6px 8px; border-radius: 6px; 
 font-size: 11px; font-weight: 600; color: var(--fc-text-light); 
 border: 1px solid var(--fc-border); text-transform: uppercase;
 }
 
 .uc-file-view__meta-item svg { width: 20px; height: 20px; }
 .uc-file-view__hero { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
 .uc-file-view__copy { flex-grow: 1; min-width: 0; }
 .uc-file-view__actions-top { flex-shrink: 0; min-width: 160px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
 .uc-verified-icon { display: flex; align-items: center; justify-content: center; }
 .uc-desc-skill {color:white; font-size: 14px; margin: 10px 0;}

 .uc-hashtags-container { display: flex; flex-wrap: wrap; gap: 8px; padding: 0px 30px 0px; }

 @media (max-width: 640px) {
 .uc-hashtags-container { margin-left: 0; justify-content: center; padding: 0; }
 .uc-file-view__hero { flex-direction: column; align-items: stretch; }
 .uc-file-view__actions-top { align-items: flex-start; min-width: 100%; }
 }
 
 .uc-hashtag-item a {
 display: inline-block; background: rgba(251, 216, 61, 0.05); color: var(--fc-gold);
 border: 1px solid var(--fc-gold-border); padding: 4px 12px; border-radius: 20px;
 font-size: 12px; font-weight: 500; text-decoration: none; transition: all 0.2s ease;
 }
 .uc-hashtag-item a:hover { background: var(--fc-gold-dim); border-color: var(--fc-gold); transform: translateY(-1px); }
 .uc-file-view__header { display: flex; gap: 20px; align-items: flex-start; flex-grow: 1;}

 /* СТИЛИ СЛАЙДЕРА */
 .uc-entry-slider { padding: 1.75rem clamp(1.5rem, 4vw, 2.5rem);
 padding-bottom: 0 !important;
 border: none !important;
 background: transparent !important; }
 .swiper-entry { width: 100%; height: 400px; border-radius: 12px; }
 .swiper-slide { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
 .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
 
 .slide-overlay {
 position: absolute; bottom: 0; left: 0; right: 0; 
 padding: 40px 20px 20px;
 background: linear-gradient(to top, rgba(19, 34, 57, 0.9), transparent);
 display: flex; justify-content: center;
 }
 
 .btn-demo {
 background: var(--fc-gold); color: #1D1E33; padding: 10px 24px; 
 border-radius: 50px; font-weight: 700; text-decoration: none;
 font-size: 14px; transition: 0.3s; box-shadow: 0 4px 15px rgba(251, 216, 61, 0.2);
 }
 .btn-demo:hover { transform: translateY(-2px); background: #fff; }

 .swiper-button-next, .swiper-button-prev { color: var(--fc-gold) !important; transform: scale(0.5); }
 .swiper-pagination-bullet-active { background: var(--fc-gold) !important; }

 @media (max-width: 768px) { .swiper-entry { height: 250px; } }
 
 
 /* Запрещаем выделение и синее "облако" вокруг картинок в слайдере */
.swiper-slide img {
 -webkit-user-select: none; /* Safari */
 -ms-user-select: none; /* IE 10+ */
 user-select: none; /* Standard */
 
 /* Запрещаем встроенное браузерное перетаскивание картинки */
 -webkit-user-drag: none;
 user-drag: none;
 
 /* Отключаем реакцию на указатель, чтобы не мешать свайпу самого Swiper */
 pointer-events: none;
 
 /* Убираем выделение тапом на мобилках */
 -webkit-tap-highlight-color: transparent;
}

.smiles-grid { display: none !important;}

html {
 scroll-behavior: smooth;
}
 
 /* Стили Hero-блока */
 .hero-section {
 position: relative;
 padding: 60px 20px;
 overflow: hidden;
 text-align: center;
 background-color: #132239; /* Темный фон для контраста */
 color: #ffffff;
 margin-bottom: 20px;
 }
 
 @media (min-width: 1024px) {
 .hero-section { padding: 100px 20px; }
 }

 .hero-bg {
 position: absolute;
 top: 0;
 left: 50%;
 transform: translateX(-50%);
 width: 100%;
 height: 100%;
 
 pointer-events: none;
 }

 .hero-content {
 max-width: 1100px;
 margin: 0 auto;
 position: relative;
 z-index: 10;
 }

 .hero-title {
 font-size: 32px;
 font-weight: 800;
 line-height: 1.2;
 margin-bottom: 20px;
 color: #fff;
 }

 @media (min-width: 768px) {
 .hero-title { font-size: 56px; }
 }

 .hero-title span { color: #FBD83D; }

 .hero-text {
 color: rgba(255, 255, 255, 0.8);
 font-size: 18px;
 max-width: 750px;
 margin: 0 auto 35px;
 line-height: 1.6;
 }

 .hero-btns {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 16px;
 }

 @media (min-width: 640px) {
 .hero-btns { flex-direction: row; }
 }

 .btn {
 display: inline-flex;
 align-items: center;
 padding: 14px 28px;
 border-radius: 50px;
 font-size: 16px;
 font-weight: 700;
 text-decoration: none;
 transition: all 0.3s ease;
 }

 .btn-main {
 background: #FBD83D;
 color: #132239;
 box-shadow: 0 10px 20px rgba(251, 216, 61, 0.15);
 }

 .btn-main:hover {
 background: #E8C435;
 transform: translateY(-2px);
 }

 .btn-outline {
 border: 1px solid rgba(255, 255, 255, 0.3);
 color: #ffffff;
 }

 .btn-outline:hover {
 background: rgba(255, 255, 255, 0.1);
 }

 .hidden-mobile { display: none; }
 @media (min-width: 768px) { .hidden-mobile { display: block; } }


/* Основной контейнер списка */
.uc-file-view__body ul {
  list-style: none; /* Убираем стандартные точки */
  padding-left: 0;
  margin: 20px 0;
  font-family: sans-serif; /* Подставьте шрифт проекта, если нужно */
  line-height: 1.6;
  color: #ffffff; /* Основной текст белый, как на скриншоте */
}

/* Элементы списка */
.uc-file-view__body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 16px;
}

/* Создаем кастомный маркер */
.uc-file-view__body ul li::before {
  content: "•"; /* Или используйте квадрат "■", если хотите строже */
  position: absolute;
  left: 0;
  color: var(--fc-gold); /* Ваш золотой цвет */
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
  top: 0;
}

/* Стилизация кода внутри списка */
.uc-file-view__body code {
  background: rgba(255, 255, 255, 0.1);
  color: var(--fc-gold);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* Стилизация ссылки */
.uc-file-view__body ul li a {
  color: var(--fc-gold);
  text-decoration: none;
  border-bottom: 1px dotted var(--fc-gold);
  transition: opacity 0.2s;
}

.uc-file-view__body ul li a:hover {
  opacity: 0.8;
}

.uc-file-view__body {
  position: relative;
}

.uc-file-view__body video {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

/* кнопка fullscreen */
.uc-file-view__body .fullscreen-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}

.uc-file-view__body .fullscreen-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

@media (max-width: 640px) {
.sf-nav-link {
    font-size: 16px !important;
    display: block;
    padding: 12px 0;
 }
}