* {
  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%) } }

/* --- Exit Intent --- */
.exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.exit-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.exit-popup {
  background: #fff;
  border-radius: 20px;
  padding: 44px 32px 36px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  animation: popIn 0.3s ease;
}
@keyframes popIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.exit-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #bbb;
  line-height: 1;
  padding: 4px;
}
.exit-close:hover { color: #555; }
.exit-badge {
  background: #b51414;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 18px;
}
.exit-headline {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 14px;
  color: #111;
}
.exit-headline em { color: #b51414; font-style: normal; }
.exit-body {
  font-size: 15px;
  line-height: 1.65;
  color: #444;
  margin: 0 0 24px;
}
.exit-price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 24px;
}
.exit-price-old {
  text-decoration: line-through;
  color: #aaa;
  font-size: 16px;
}
.exit-price-new {
  font-size: 54px;
  font-weight: 900;
  color: #1e7f4e;
  line-height: 1;
}
.exit-price-label {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}
.exit-cta {
  display: block;
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #1e7f4e 0%, #2fb170 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(31,127,78,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 16px;
  animation: pulse 2.5s infinite;
}
.exit-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31,127,78,0.55);
}
.exit-decline {
  display: block;
  font-size: 12px;
  color: #bbb;
  cursor: pointer;
  text-decoration: underline;
}
.exit-decline:hover { color: #777; }
