*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --yt-text: #0f0f0f;
  --yt-text-muted: #606060;
  --yt-bg: #fff;
  --yt-bg-hover: #f2f2f2;
  --yt-bg-pill: #f2f2f2;
  --yt-border: #e5e5e5;
  --yt-green: #2a8a3f;
  --yt-green-dark: #1f7030;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--yt-bg);
  color: var(--yt-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; padding: 0; }

.yt-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ── HEADER (minimal logo only) ── */
.yt-top {
  background: #fff;
  border-bottom: 1px solid var(--yt-border);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.yt-top__inner {
  display: flex;
  align-items: center;
}
.yt-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.yt-logo__icon {
  width: 28px;
  height: 28px;
  background: var(--yt-green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-logo__icon svg { width: 16px; height: 16px; fill: #fff; }
.yt-logo__text {
  font-size: 18px;
  font-weight: 700;
  color: var(--yt-text);
  letter-spacing: -0.3px;
}

/* ── MAIN PAGE ── */
.yt-page { padding: 0 0 32px; }

/* ── VIDEO ── */
.yt-video {
  margin: 0 -20px 14px;
}
.yt-video #eco-player {
  background: #000;
  border-radius: 0;
  overflow: hidden;
}
@media (max-width: 640px) {
  .yt-wrap { padding-left: 0; padding-right: 0; }
  .yt-title, .yt-meta, .yt-cta, #offer-inline, .yt-comments, .yt-footer .yt-wrap { padding-left: 16px; padding-right: 16px; }
  .yt-video { margin: 0 0 14px; }
  .yt-page { padding: 0 0 28px; }
}

/* ── TITLE ── */
.yt-title {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--yt-text);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

/* ── META (channel + actions) ── */
.yt-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--yt-border);
  flex-wrap: wrap;
}
.yt-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.yt-channel__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.yt-channel__info { min-width: 0; }
.yt-channel__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--yt-text);
  line-height: 1.2;
}
.yt-channel__sub {
  font-size: 12px;
  color: var(--yt-text-muted);
  margin-top: 2px;
}
.yt-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.yt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 36px;
  border-radius: 18px;
  background: var(--yt-bg-pill);
  color: var(--yt-text);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
}
.yt-pill:hover { background: #e5e5e5; }
.yt-pill svg { fill: currentColor; flex-shrink: 0; }
.yt-pill--like { padding: 0; }
.yt-pill__half {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
}
.yt-pill__divider {
  width: 1px;
  height: 22px;
  background: #d0d0d0;
}
@media (max-width: 720px) {
  .yt-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .yt-channel { width: 100%; }
  .yt-actions { width: 100%; overflow-x: auto; gap: 6px; }
  .yt-pill { padding: 0 14px; font-size: 13px; height: 34px; flex-shrink: 0; }
  .yt-pill__half { padding: 0 12px; height: 34px; }
  .yt-channel__avatar { width: 36px; height: 36px; }
}

/* ── CTA (минимальный, сразу под видео) ── */
#offer-inline {
  display: none;
  text-align: center;
  padding: 16px 0;
  margin: 0 0 12px;
}
#offer-inline.yt-cta-reveal { animation: yt-cta-reveal 0.6s ease-out both; }
@keyframes yt-cta-reveal {
  0% { opacity: 0; transform: translateY(-12px); }
  100% { opacity: 1; transform: translateY(0); }
}
.yt-cta__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--yt-green-dark);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.yt-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--yt-green);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 14px 28px;
  border-radius: 22px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 18px rgba(42, 138, 63, 0.4);
  animation: yt-cta-pulse 1.8s ease-in-out infinite;
  transition: background 0.15s ease, transform 0.15s ease;
}
.yt-cta__btn:hover {
  background: var(--yt-green-dark);
  animation: none;
  transform: translateY(-1px);
}
.yt-cta__btn:active { transform: translateY(0); }
.yt-cta__btn svg { stroke: currentColor; flex-shrink: 0; }
@keyframes yt-cta-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 18px rgba(42, 138, 63, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 8px 26px rgba(42, 138, 63, 0.6); }
}
.yt-cta__foot {
  margin-top: 12px;
  font-size: 12px;
  color: var(--yt-text-muted);
}
@media (max-width: 520px) {
  .yt-cta { padding: 20px 16px; }
  .yt-cta__btn { font-size: 15px; padding: 13px 22px; }
}

/* ── COMMENTS ── */
.yt-comments {
  margin-top: 8px;
}
.yt-comments__head {
  font-size: 16px;
  color: var(--yt-text);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.yt-comments__head span {
  font-size: 13px;
  color: var(--yt-text-muted);
  font-weight: 500;
}

.yt-thread {
  padding: 12px 0;
}
.yt-thread + .yt-thread { border-top: none; }

.yt-comment {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.yt-comment + .yt-comment.yt-comment--reply {
  margin-top: 14px;
  margin-left: 50px;
}
.yt-comment__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.yt-comment--reply .yt-comment__avatar { width: 28px; height: 28px; }
.yt-comment__body { flex: 1; min-width: 0; }
.yt-comment__meta {
  font-size: 13px;
  color: var(--yt-text-muted);
  margin-bottom: 2px;
}
.yt-comment__meta b {
  color: var(--yt-text);
  font-weight: 500;
  margin-right: 8px;
}
.yt-comment__body p {
  font-size: 14px;
  color: var(--yt-text);
  line-height: 1.45;
  margin-bottom: 6px;
  word-break: break-word;
}
.yt-comment__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: -8px;
}
.yt-comment__actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 18px;
  color: var(--yt-text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.yt-comment__actions button:hover { background: var(--yt-bg-hover); color: var(--yt-text); }
.yt-comment__actions button svg { fill: currentColor; }

@media (max-width: 520px) {
  .yt-comment + .yt-comment.yt-comment--reply { margin-left: 40px; }
  .yt-comment__avatar { width: 32px; height: 32px; }
  .yt-comment--reply .yt-comment__avatar { width: 26px; height: 26px; }
  .yt-comment__body p { font-size: 13.5px; }
}

/* ── FOOTER ── */
.yt-footer {
  background: #fff;
  border-top: 1px solid var(--yt-border);
  padding: 20px 0 18px;
  text-align: center;
  margin-top: 28px;
}
.yt-footer p {
  font-size: 12px;
  color: var(--yt-text-muted);
  margin-bottom: 4px;
}
.yt-footer__company {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 12px;
}
.yt-footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.yt-footer__links a {
  color: var(--yt-text-muted);
  font-size: 13px;
  transition: color 0.15s ease;
}
.yt-footer__links a:hover { color: var(--yt-text); }

@supports (padding: max(0px)) {
  .yt-footer { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}

.yt-disclaimer{border-top:1px solid #e5e5e5;background:#fafafa;padding:22px 0}
.yt-disclaimer p{max-width:900px;margin:0 auto;padding:0 16px;font-size:12px;line-height:1.6;color:#888}
#cookie-bar{position:fixed;left:0;right:0;bottom:0;z-index:999;display:none;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;background:#1f1f1f;color:#eee;padding:13px 18px;font-size:13px;line-height:1.5}
#cookie-bar.show{display:flex}
#cookie-bar a{color:#7ab7f0}
#cookie-bar button{background:#0e6cc5;color:#fff;border:0;border-radius:6px;padding:8px 18px;font-size:13px;font-weight:600;cursor:pointer}
#cookie-bar button:hover{background:#0b5aa6}
