:root {
  --primary-color: #ff5722;
  --primary-hover: #e64a19;
  --accent-color: #ffcc00;
  --bg-dark: #1a1a1a;
  --bg-darker: #222;
  --bg-darkest: #2a2a2a;
  --text-light: #fff;
  --text-muted: #888;
  --text-gray: #ccc;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.3);
  --border-radius: 20px;
  --border-radius-sm: 15px;
  --transition: all 0.3s ease;
}

/* Основные стили */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  box-sizing: border-box;
}

/* Шапка */
.rounded-header {
  background-color: var(--bg-darker);
  padding: 20px;
  border-radius: var(--border-radius);
  margin: 20px auto;
  width: 90%;
  max-width: 1200px;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

.logo {
  height: 150px;
  transition: var(--transition);
  max-width: 100%;
}

.logo:hover {
  transform: scale(1.1);
}

nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.nav-button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: var(--transition);
  box-sizing: border-box;
}

.nav-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Контейнер для новости */
.news-single-container {
  max-width: 800px;
  width: 90%;
  padding: 20px;
  background-color: var(--bg-darker);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 20px auto;
  text-align: left;
  box-sizing: border-box;
}

/* Заголовок новости */
.news-single h1 {
  font-size: 2.5em;
  color: var(--accent-color);
  margin-bottom: 20px;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.2;
}

/* Мета-информация */
.news-meta {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.9em;
}

/* Изображение новости */
.news-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  object-position: center;
}

/* Контент новости с улучшенным форматированием */
.news-content {
  line-height: 1.8;
  font-size: 1.1em;
  color: var(--text-gray);
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  font-family: 'Roboto Mono', monospace, sans-serif;
  padding: 20px;
  background-color: var(--bg-darkest);
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
}

.news-content p {
  margin: 0 0 1.5em;
}

.news-content p:last-child {
  margin-bottom: 0;
}

/* Кнопка "Назад" */
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: var(--transition);
  box-sizing: border-box;
  width: auto;
  max-width: 200px;
  text-align: center;
}

.back-link:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.back-link i {
  margin-right: 10px;
}

/* Видео контейнер */
.video-container {
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 30px auto;
  padding: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: #000;
  box-shadow: var(--shadow);
  position: relative;
  box-sizing: border-box;
}

/* Fluid Player */
#fluid_video_wrapper_my-video,
.fluid_video_wrapper {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius) !important;
  overflow: hidden !important;
  background-color: #000;
}

/* Футер */
.site-footer {
  width: 100%;
  padding: 25px 20px;
  background-color: var(--bg-darker);
  color: var(--text-muted);
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Адаптивность */
@media (max-width: 768px) {
  .news-single h1 {
    font-size: 2em;
  }
  
  .news-content {
    padding: 15px;
    font-size: 1em;
  }
  
  .video-container {
    margin: 20px auto;
  }
}

@media (max-width: 480px) {
  .news-single h1 {
    font-size: 1.8em;
  }
  
  .news-content {
    padding: 12px;
    font-size: 0.95em;
  }
  
  .back-link {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  
  .logo {
    height: 120px;
  }
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.news-single-container {
  animation: fadeIn 0.5s ease-out;
}

/* Дополнительные улучшения */
.news-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-image:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.news-content a {
  color: var(--accent-color);
  text-decoration: underline;
}

.news-content a:hover {
  text-decoration: none;
}

/* Подсветка кода (если нужно) */
.news-content pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
}

.news-content code {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9em;
}