* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu,
    Cantarell,
    Noto Sans,
    sans-serif;
  background: linear-gradient(180deg, #f8fbf8 0%, #f0fdf4 100%);
  color: #111;
}

.page-title {
  max-width: 980px;
  margin: 24px auto 0;
  padding: 0 24px;
  text-align: center;
  font-size: clamp(24px, 4.5vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111;
}

.page-title .accent { color: #b51414 }

.news-meta { max-width: 980px; margin: 8px auto 0; padding: 8px 24px; text-align: center; color: #333; font-size: 15px; border-top: 1px solid #eee; border-bottom: 1px solid #eee }
.news-meta .author { font-weight: 700; color: #b51414 }

.container {
  max-width: 980px;
  margin: 24px auto;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.video-wrapper {
  position: relative;
}

video {
  width: 100%;
  height: auto;
  background: #000;
}

.video-controls {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px;
  border-radius: 8px;
  z-index: 3;
}

.video-controls button {
  padding: 8px 12px;
  font-size: 15px;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.video-controls button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 2 }
.play-overlay.show { opacity: 1 }
.play-overlay::before { content: ''; width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 38px; color: #fff; background: linear-gradient(135deg, #1e7f4e 0%, #2fb170 100%); box-shadow: 0 14px 34px rgba(31,127,78,.45); transition: transform .2s ease, box-shadow .2s ease }
.play-overlay.icon-play::before { content: '▶' }
.play-overlay.icon-pause::before { content: '⏸' }
.play-overlay.show:hover::before { transform: translateY(-1px); box-shadow: 0 18px 40px rgba(31,127,78,.55) }

.mute-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cta {
  display: block;
  margin: 18px auto 0;
  padding: 18px 28px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #1e7f4e 0%, #2fb170 100%);
  border: none;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(31, 127, 78, 0.45);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  animation: pulse 2.5s infinite, cta-bounce 1.8s ease-in-out infinite;
}

.cta:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(31, 127, 78, 0.55);
}
[hidden] { display: none !important }

@keyframes pulse {
  0% {
    box-shadow: 0 8px 20px rgba(31, 127, 78, 0.35);
  }
  50% {
    box-shadow: 0 12px 28px rgba(31, 127, 78, 0.5);
  }
  100% {
    box-shadow: 0 8px 20px rgba(31, 127, 78, 0.35);
  }
}

@keyframes cta-bounce {
  0% { transform: translateY(0) }
  30% { transform: translateY(-4px) }
  60% { transform: translateY(0) }
  80% { transform: translateY(-2px) }
  100% { transform: translateY(0) }
}
.comments {
  margin-top: 32px;
}
.comment-top-image { display: block; width: 100%; max-width: 680px; margin: 0 auto 12px; border-radius: 12px }
.comment {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #eee;
}

.comment:first-child {
  border-top: none;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ddd;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.comment-body {
  flex: 1;
}
.comment-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}
.comment-meta .name { color: #1877f2 }
.comment-meta .time {
  color: #666;
  font-weight: 400;
}
.comment-text {
  margin-top: 6px;
  line-height: 1.5;
}
.comment-actions { margin-top: 8px; display: flex; gap: 8px; align-items: center }
.comment-actions a { color: #1877f2; font-weight: 600; text-decoration: none }
.comment-actions a:hover { text-decoration: underline }
.comment-actions .sep { color: #999 }
.comment-actions .likes-count, .comment-actions .time { color: #666 }
.comments .avatar { border-radius: 6px }

.likes-count {
  color: #666;
}

.references {
  margin-top: 32px;
}

.references h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
.references .item {
  margin-bottom: 10px;
  line-height: 1.5;
}

.references a {
  color: #0a66c2;
  text-decoration: none;
}
.references a:hover {
  text-decoration: underline;
}

.footer {
  margin-top: 40px;
  background: #0f172a;
  color: #e5e7eb;
  padding: 28px 16px;
  font-size: 14px;
  text-align: center;
}

.footer .content {
  max-width: 980px;
  margin: 0 auto;
  line-height: 1.6;
}
.news-header { background: #b51414; color: #fff }
.news-title { max-width: 980px; margin: 0 auto; padding: 10px 24px; font-weight: 900; text-align: center; letter-spacing: .04em }
.news-ticker { background: #8f0f0f; overflow: hidden }
.news-ticker .ticker-track { display: inline-block; white-space: nowrap; padding: 8px 0; color: #fff; font-weight: 700; letter-spacing: .02em; animation: ticker-move 22s linear infinite }
@keyframes ticker-move { from { transform: translateX(0) } to { transform: translateX(-50%) } }
