/* Modo campanha do artigo: assistir o vídeo e inscrever-se no canal */
:root { --yt-red: #E62117; --yt-red-dark: #B5150D; }

.camp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.5rem; border-radius: var(--r-pill);
  font-family: var(--label); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1;
  min-height: 52px; border: 0; cursor: pointer; text-decoration: none !important;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.camp-btn:hover { transform: translateY(-2px); }
.camp-btn-watch { background: var(--blue); color: #fff !important; box-shadow: 0 8px 26px rgba(13, 71, 161, .28); }
.camp-btn-watch:hover { background: var(--teal); box-shadow: 0 10px 30px rgba(0, 178, 169, .35); }
.camp-btn-sub-yt { background: var(--yt-red); color: #fff !important; box-shadow: 0 8px 26px rgba(230, 33, 23, .28); }
.camp-btn-sub-yt:hover { background: var(--yt-red-dark); color: #fff !important; }
.camp-btn-ghost { background: #fff; color: var(--blue) !important; border: 1.5px solid var(--line); }
.camp-btn-ghost:hover { border-color: var(--blue); }
.camp-btn-block { width: 100%; }
.camp-btn-sub { font-weight: 500; opacity: .75; letter-spacing: .08em; }
.camp-btn-watch.is-pulse { animation: campPulse 2.4s ease-in-out infinite; }
@keyframes campPulse {
  0%, 100% { box-shadow: 0 8px 26px rgba(13, 71, 161, .28), 0 0 0 0 rgba(13, 71, 161, .35); }
  50% { box-shadow: 0 8px 26px rgba(13, 71, 161, .28), 0 0 0 10px rgba(13, 71, 161, 0); }
}

/* Topo */
.camp-hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: -.5rem 0 1.75rem; }
@media (max-width: 560px) {
  .camp-hero-cta { flex-direction: column; }
  .camp-hero-cta .camp-btn { width: 100%; }
}

/* Player + cartão do canal */
.camp-player {
  display: grid; gap: 1.5rem; align-items: center;
  margin-bottom: 2.5rem; scroll-margin-top: 100px;
}
.camp-video {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--ink); box-shadow: var(--shadow-lg); aspect-ratio: 16/9;
}
.camp-player.is-vertical .camp-video { aspect-ratio: 9/16; width: 100%; max-width: 380px; margin: 0 auto; max-height: calc(100vh - 130px); max-height: calc(100svh - 130px); }
@media (max-width: 819px) {
  .camp-player.is-vertical .camp-video { width: auto; height: calc(100svh - 130px); max-width: 100%; }
}
@media (min-width: 820px) {
  .camp-player.is-vertical { grid-template-columns: auto minmax(280px, 1fr); gap: 2.5rem; }
  .camp-player.is-vertical .camp-video { margin: 0; width: auto; max-width: none; height: 780px; max-height: none; }
}
.camp-video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.camp-video-play {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(10, 19, 48, 0) 45%, rgba(10, 19, 48, .7) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  color: #fff;
}
.camp-video-play-ico {
  width: 84px; height: 84px; border-radius: 50%; background: var(--yt-red);
  display: grid; place-items: center; box-shadow: 0 10px 40px rgba(230, 33, 23, .5);
  transition: transform var(--t-fast);
  animation: campRing 2.2s ease-out infinite;
}
.camp-video-play-ico svg { width: 38px; height: 38px; margin-left: 4px; }
@keyframes campRing {
  0% { box-shadow: 0 10px 40px rgba(230, 33, 23, .5), 0 0 0 0 rgba(230, 33, 23, .55); }
  100% { box-shadow: 0 10px 40px rgba(230, 33, 23, .5), 0 0 0 22px rgba(230, 33, 23, 0); }
}
.camp-video-play:hover .camp-video-play-ico { transform: scale(1.07); }
.camp-video-play-txt {
  font-family: var(--label); font-weight: 700; font-size: .85rem; letter-spacing: .16em;
  text-transform: uppercase; background: rgba(10, 19, 48, .55); padding: .55rem 1rem; border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
}

/* Tela ao terminar o vídeo */
.camp-video-end {
  position: absolute; inset: 0; z-index: 3;
  background: rgba(8, 20, 52, .92); color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  padding: 1.5rem;
}
.camp-video-end[hidden] { display: none; }
.camp-video-end img { border-radius: 50%; background: #fff; }
.camp-video-end strong { font-family: var(--display); font-size: 1.25rem; line-height: 1.2; }
.camp-video-end span { font-size: .98rem; opacity: .85; max-width: 26ch; margin-bottom: .5rem; }
.camp-replay { background: none; border: 0; color: #fff; opacity: .75; text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; margin-top: .25rem; }

.camp-channel {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.75rem;
}
.camp-channel-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.camp-channel-head img { border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); }
.camp-channel-head strong { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--ink); line-height: 1.2; }
.camp-channel-head span { font-size: .85rem; color: var(--ink-3); }
.camp-channel p { color: var(--ink-2); margin: 0 0 1rem; line-height: 1.6; }
.camp-channel-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .5rem; }
.camp-channel-list li { position: relative; padding-left: 1.6rem; color: var(--ink); font-weight: 500; }
.camp-channel-list li::before {
  content: ''; position: absolute; left: 0; top: .2em; width: 1.05em; height: 1.05em; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat;
}
.camp-link { display: block; text-align: center; margin-top: .9rem; font-size: .9rem; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }

/* CTAs dentro do texto */
.article-body .camp-inline {
  display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap;
  margin: 2.25rem 0; padding: 1.25rem 1.4rem;
  border-radius: var(--r); background: var(--blue-soft); border: 1px solid #cfe3fb;
}
.article-body .camp-inline > div { flex: 1 1 240px; display: grid; gap: .2rem; line-height: 1.4; }
.article-body .camp-inline strong { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.article-body .camp-inline span { font-size: .95rem; color: var(--ink-3); }
.article-body .camp-inline-sub { background: #fff4f3; border-color: #fbd3d0; }
.article-body .camp-inline img { border-radius: 50%; background: #fff; flex: none; }
.article-body .camp-inline a, .article-body .camp-inline a:hover { color: #fff; text-decoration: none; }
@media (max-width: 560px) { .article-body .camp-inline .camp-btn { width: 100%; } }

/* CTA final */
.camp-final {
  margin: 3.5rem 0 2.5rem; padding: 2.5rem 1.5rem; text-align: center;
  border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(circle at 15% 0%, rgba(0, 178, 169, .45), transparent 55%), linear-gradient(135deg, var(--blue-deep), var(--blue));
  box-shadow: var(--shadow-lg);
}
.camp-final img { border-radius: 50%; background: #fff; margin-bottom: 1rem; }
.camp-final h3 { font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0 auto .6rem; max-width: 24ch; line-height: 1.2; color: #fff; }
.camp-final p { margin: 0 auto 1.6rem; max-width: 46ch; opacity: .88; line-height: 1.6; }
.camp-final-btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.camp-final .camp-btn-ghost { background: rgba(255, 255, 255, .12); color: #fff !important; border-color: rgba(255, 255, 255, .35); }
@media (max-width: 560px) { .camp-final-btns .camp-btn { width: 100%; } }

/* Barra fixa */
.camp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: .6rem;
  padding: .7rem max(16px, env(safe-area-inset-left)) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(13, 71, 161, .1);
  transform: translateY(calc(100% + 2rem)); opacity: 0; pointer-events: none;
  transition: transform var(--t), opacity var(--t);
}
.camp-sticky.is-on { transform: none; opacity: 1; pointer-events: auto; }
.camp-sticky .camp-btn { min-height: 50px; padding: .8rem 1rem; font-size: .74rem; }
@media (min-width: 1024px) {
  .camp-sticky { left: auto; right: 1.5rem; bottom: 1.5rem; border-radius: var(--r-pill); border: 1px solid var(--line); padding: .5rem; grid-template-columns: auto auto; }
}
body { padding-bottom: 5.5rem; }

@media (prefers-reduced-motion: reduce) {
  .camp-video-play-ico, .camp-btn-watch.is-pulse { animation: none; }
}

/* v3: vídeo longo principal (horizontal, largura total) */
.camp-kicker {
  display: inline-block; font-family: var(--label); font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--yt-red);
}
.camp-player-title { display: grid; gap: .3rem; }
.camp-player-title strong { font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--ink); line-height: 1.25; }
.camp-player-title > span:last-child { color: var(--ink-3); font-size: .95rem; }
.camp-player:not(.is-vertical) .camp-video { width: 100%; }
@media (min-width: 820px) {
  .camp-player:not(.is-vertical) .camp-channel {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem 2rem;
  }
  .camp-player:not(.is-vertical) .camp-channel-head { margin: 0; }
  .camp-player:not(.is-vertical) .camp-channel p { margin: 0; }
  .camp-player:not(.is-vertical) .camp-channel-list { display: none; }
  .camp-player:not(.is-vertical) .camp-channel .camp-btn-block { width: auto; }
  .camp-player:not(.is-vertical) .camp-link { grid-column: 3; margin-top: 0; }
}

/* Short dentro do texto */
.article-body .camp-short {
  display: flex; gap: 1.5rem; align-items: center; margin: 2.25rem 0;
  padding: 1.25rem; border-radius: var(--r-lg); background: var(--bg-alt); border: 1px solid var(--line);
}
.article-body .camp-short-video { flex: none; width: 190px; aspect-ratio: 9/16; margin: 0; border-radius: var(--r); }
.article-body .camp-short-video .lazyvideo-play::before { width: 64px; height: 64px; }
.article-body .camp-short-video .lazyvideo-play svg { width: 26px; height: 26px; }
.article-body .camp-short-txt { display: grid; gap: .45rem; justify-items: start; line-height: 1.45; }
.article-body .camp-short-txt strong { font-family: var(--display); font-size: 1.1rem; color: var(--ink); }
.article-body .camp-short-txt > span:not(.camp-kicker) { font-size: .95rem; color: var(--ink-3); }
.article-body .camp-short-txt .camp-btn { margin-top: .4rem; color: #fff; text-decoration: none; }
@media (max-width: 560px) {
  .article-body .camp-short { flex-direction: column; text-align: center; }
  .article-body .camp-short-video { width: min(260px, 100%); }
  .article-body .camp-short-txt { justify-items: center; }
  .article-body .camp-short-txt .camp-btn { width: 100%; }
}

/* Continue assistindo */
.camp-more { margin-top: 3.5rem; }
.camp-more h2 { font-family: var(--display); font-size: 1.45rem; color: var(--ink); margin: 0 0 1.25rem; }
.camp-more-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.camp-more-card { display: grid; gap: .7rem; color: var(--ink); text-decoration: none; }
.camp-more-card strong { font-size: 1rem; line-height: 1.35; font-weight: 600; }
.camp-more-card:hover strong { color: var(--blue); }
.camp-more-thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-sm); }
.camp-more-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.camp-more-card:hover .camp-more-thumb img { transform: scale(1.04); }
.camp-more-dur {
  position: absolute; right: .5rem; bottom: .5rem; background: rgba(0, 0, 0, .8); color: #fff;
  font-size: .78rem; font-weight: 600; padding: .2rem .5rem; border-radius: 6px;
}
.camp-more-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: var(--yt-red); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 26px rgba(230, 33, 23, .45);
}
.camp-more-play svg { width: 24px; height: 24px; margin-left: 3px; }

/* v4: Shorts na lista final (verticais) */
.camp-more-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.camp-more-thumb { aspect-ratio: 9/16; }
.camp-more-card strong { font-size: .95rem; }
