/* HorizonEnglishTunes — "Como você aprende aqui": cards cinematográficos (escuros nos dois temas, como cenas de filme) */
.bd { margin: 70px 0 56px; }
.bd-head { text-align: center; margin-bottom: 28px; }
.bd-kicker { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); }
.bd-head h2 { margin: 8px 0 0; font-size: clamp(1.8rem, 4.2vw, 3rem); letter-spacing: -.04em; line-height: 1.05; }
.bd-head h2 em { font-style: normal; background: linear-gradient(90deg, #e84393, #6c5ce7 50%, #00b4d8); -webkit-background-clip: text; background-clip: text; color: transparent; }

.bd-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.bd-card { position: relative; overflow: hidden; border-radius: 22px; color: #fff; isolation: isolate; min-height: 250px;
  background: radial-gradient(120% 90% at 100% 0%, var(--a2, #2a1f5c) 0%, transparent 55%), radial-gradient(90% 80% at 0% 100%, var(--a1, #13294a) 0%, transparent 60%), #0b0a16;
  box-shadow: 0 18px 50px rgba(10, 8, 30, .28); display: flex; flex-direction: column; justify-content: flex-end;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease, box-shadow .35s ease; will-change: transform; }
.bd-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 3; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), rgba(255, 255, 255, .06), rgba(232, 67, 147, .7), rgba(108, 92, 231, .7), rgba(0, 180, 216, .7), rgba(255, 255, 255, .06) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; transition: opacity .3s; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes bdSpin { to { --ang: 360deg; } }
.bd-card:hover { box-shadow: 0 28px 70px rgba(10, 8, 30, .42); }
.bd-card:hover::before { opacity: 1; animation: bdSpin 4s linear infinite; }
/* luz que segue o mouse */
.bd-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .13), transparent 45%); }
.bd-card:hover .bd-glow { opacity: 1; }
/* grão de filme */
.bd-card::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.bd-txt { position: relative; z-index: 4; padding: 22px 24px 24px; }
.bd-num { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .2em; color: rgba(255, 255, 255, .45); margin-bottom: 6px; }
.bd-card h3 { margin: 0 0 6px; font-size: 1.28rem; letter-spacing: -.02em; color: #fff; }
.bd-card p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .93rem; line-height: 1.5; }
.bd-card p b { color: #ffb4ec; }
.bd-scene { position: relative; z-index: 4; flex: 1; display: grid; place-items: center; padding: 22px 20px 0; min-height: 130px; }

/* 01 — ouvido (card grande com a capa e a letra acendendo) */
.bd-ouvido { grid-column: span 4; grid-row: span 2; --a1: #3b1d6e; --a2: #6b1f4f; justify-content: space-between; }
.bd-bg { position: absolute; inset: 0; z-index: 0; will-change: transform; background: var(--cover) center/cover; filter: blur(6px) saturate(1.35) brightness(.5); transform: scale(1.45); animation: bdKen 30s ease-in-out infinite alternate; }
@keyframes bdKen { to { transform: scale(1.65) translate(-3%, 2%); } }
.bd-ouvido::after { opacity: .12; }
.bd-ouvido .bd-glow { z-index: 1; }
.bd-ouvido > .bd-bg + .bd-glow::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,10,22,.82) 0%, rgba(11,10,22,.25) 38%, rgba(11,10,22,.35) 60%, rgba(11,10,22,.92) 100%), radial-gradient(80% 70% at 85% 20%, rgba(232,67,147,.35), transparent 60%), radial-gradient(70% 60% at 10% 90%, rgba(108,92,231,.4), transparent 60%); }
.bd-ouvido .bd-glow { opacity: 1; background: none; }
.bd-ouvido:hover .bd-glow { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .12), transparent 45%); }
.bd-ouvido .bd-txt { padding: 30px 32px 0; max-width: 560px; }
.bd-ouvido h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.035em; }
.bd-ouvido p { font-size: 1rem; }
.bd-kara { position: relative; z-index: 4; padding: 18px 32px 30px; }
.bd-kl { font-size: clamp(1.2rem, 2.5vw, 1.9rem); font-weight: 900; line-height: 1.25; color: rgba(255, 255, 255, .28); letter-spacing: -.01em; transition: all .5s cubic-bezier(.2, .9, .3, 1); max-height: 3em; overflow: hidden; }
.bd-kl span { display: inline-block; transition: color .25s, text-shadow .25s, transform .25s; }
.bd-kl.is-on { color: rgba(255, 255, 255, .95); font-size: clamp(1.5rem, 3.4vw, 2.6rem); }
.bd-kl.is-on span.lit { color: #5ef2ff; text-shadow: 0 0 18px rgba(94, 242, 255, .55); }
.bd-kl.is-on span.now { color: #ff7ad9; text-shadow: 0 0 18px rgba(255, 122, 217, .6); transform: translateY(-2px); }
.bd-kl.is-past { color: rgba(255, 255, 255, .18); font-size: clamp(1rem, 1.8vw, 1.25rem); }
.bd-kpt { margin-top: 8px; min-height: 1.4em; color: #ffe7a3; font-style: italic; font-weight: 600; font-size: 1rem; transition: opacity .3s; }
.bd-keq { display: flex; gap: 4px; align-items: flex-end; height: 26px; margin: 14px 0 8px; }
.bd-keq i { width: 5px; border-radius: 3px; background: linear-gradient(to top, #6c5ce7, #e84393); animation: bdEq .9s ease-in-out infinite alternate; height: 30%; }
.bd-keq i:nth-child(3n) { animation-duration: .6s; } .bd-keq i:nth-child(4n+1) { animation-duration: 1.2s; } .bd-keq i:nth-child(5n+2) { animation-duration: .75s; }
@keyframes bdEq { to { height: 100%; } }
.bd-kara small { color: rgba(255, 255, 255, .55); font-size: .8rem; }

/* 02 — macete */
.bd-macete { grid-column: span 2; --a1: #3b2a07; --a2: #5a3c00; }
.bd-idiom { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.bd-idiom b { font-size: 1.6rem; font-weight: 900; color: #ffd166; text-shadow: 0 0 24px rgba(255, 209, 102, .4); }
.bd-idiom .bd-arrow { color: rgba(255, 255, 255, .5); animation: bdBob 1.6s ease-in-out infinite; }
.bd-idiom em { font-style: normal; font-weight: 800; font-size: 1.2rem; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  clip-path: inset(0 100% 0 0); animation: bdType 4.8s steps(16) infinite; }
.bd-idiom small { color: rgba(255, 255, 255, .55); font-size: .78rem; margin-top: 4px; }
@keyframes bdBob { 50% { transform: translateY(4px); } }
@keyframes bdType { 0%, 12% { clip-path: inset(0 100% 0 0); } 40%, 88% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }

/* 03 — revisão */
.bd-revisao { grid-column: span 2; --a1: #082f3a; --a2: #0d3d52; }
.bd-deck { position: relative; width: 150px; height: 88px; }
.bd-deck span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px; font-weight: 900; font-size: 1.2rem; color: #0b0a16;
  background: linear-gradient(135deg, #fff, #dff8ff); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); animation: bdDeal 6s ease-in-out infinite; }
.bd-deck span:nth-child(1) { animation-delay: -4s; } .bd-deck span:nth-child(2) { animation-delay: -2s; }
@keyframes bdDeal { 0% { transform: translateX(0) rotate(-6deg); z-index: 1; opacity: .7; } 30% { transform: translateX(0) rotate(0); z-index: 3; opacity: 1; }
  55% { transform: translateX(120%) rotate(14deg); opacity: 0; z-index: 3; } 56% { transform: translateX(0) rotate(-6deg); opacity: 0; z-index: 0; } 100% { transform: translateX(0) rotate(-6deg); opacity: .7; z-index: 1; } }
.bd-curve { width: 100%; height: 44px; margin-top: 10px; overflow: visible; }
.bd-curve path { fill: none; stroke: #5ef2ff; stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(94, 242, 255, .7)); stroke-dasharray: 340; stroke-dashoffset: 340; animation: bdDraw 5s ease-in-out infinite; }
@keyframes bdDraw { 60%, 100% { stroke-dashoffset: 0; } }

/* 04 — fala */
.bd-fala { grid-column: span 3; --a1: #3a0a2a; --a2: #2b0d4e; }
.bd-fala .bd-scene { display: flex; align-items: center; justify-content: center; gap: 18px; }
.bd-mic { position: relative; width: 62px; height: 62px; display: grid; place-items: center; font-size: 1.7rem; border-radius: 50%; background: linear-gradient(135deg, #e84393, #6c5ce7); box-shadow: 0 0 30px rgba(232, 67, 147, .5); }
.bd-mic i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 122, 217, .6); animation: bdRing 2s ease-out infinite; }
.bd-mic i:last-child { animation-delay: 1s; }
@keyframes bdRing { to { transform: scale(1.9); opacity: 0; } }
.bd-wave { display: flex; align-items: center; gap: 3px; height: 54px; }
.bd-wave i { width: 4px; border-radius: 3px; background: linear-gradient(#ff7ad9, #6c5ce7); height: 20%; animation: bdWave 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -70ms); }
@keyframes bdWave { 50% { height: 100%; } }
.bd-score { position: relative; width: 62px; height: 62px; }
.bd-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bd-score circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 3.4; }
.bd-score circle.v { stroke: #3ddc97; stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; animation: bdScore 4s ease-out infinite; filter: drop-shadow(0 0 4px #3ddc97); }
.bd-score b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .85rem; color: #3ddc97; }
@keyframes bdScore { 15% { stroke-dashoffset: 97.4; } 55%, 100% { stroke-dashoffset: 7.8; } }

/* 05 — quiz */
.bd-quiz { grid-column: span 3; --a1: #0a3324; --a2: #12304a; }
.bd-q { display: flex; flex-direction: column; gap: 7px; width: min(300px, 100%); }
.bd-q small { color: rgba(255, 255, 255, .7); font-size: .82rem; margin-bottom: 2px; }
.bd-q span { padding: 8px 14px; border-radius: 12px; font-size: .9rem; font-weight: 700; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.bd-q span.ok { animation: bdOk 4.5s ease infinite; }
@keyframes bdOk { 0%, 35% { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); }
  45%, 90% { background: rgba(61, 220, 151, .2); border-color: #3ddc97; box-shadow: 0 0 20px rgba(61, 220, 151, .35); } 100% { background: rgba(255, 255, 255, .07); } }
.bd-q span.ok::after { content: " ✓"; color: #3ddc97; opacity: 0; animation: bdFade 4.5s ease infinite; }
@keyframes bdFade { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }

/* entrada ao rolar */
.bd-card { opacity: 0; translate: 0 30px; transition: transform .35s ease, box-shadow .35s ease, opacity .8s ease, translate .8s cubic-bezier(.2, .9, .3, 1); }
.bd-card.in { opacity: 1; translate: 0 0; }
.bd-grid .bd-card:nth-child(2) { transition-delay: 0s, 0s, .08s, .08s; } .bd-grid .bd-card:nth-child(3) { transition-delay: 0s, 0s, .16s, .16s; }
.bd-grid .bd-card:nth-child(4) { transition-delay: 0s, 0s, .24s, .24s; } .bd-grid .bd-card:nth-child(5) { transition-delay: 0s, 0s, .32s, .32s; }

@media (max-width: 900px) {
  .bd-grid { grid-template-columns: 1fr 1fr; }
  .bd-ouvido { grid-column: span 2; grid-row: auto; }
  .bd-macete, .bd-revisao, .bd-fala, .bd-quiz { grid-column: span 1; }
}
@media (max-width: 600px) {
  .bd-grid { grid-template-columns: 1fr; }
  .bd-ouvido, .bd-macete, .bd-revisao, .bd-fala, .bd-quiz { grid-column: auto; }
  .bd-ouvido .bd-txt { padding: 24px 22px 0; } .bd-kara { padding: 14px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .bd *, .bd-card, .bd-card::before { animation: none !important; }
  .bd-card { opacity: 1; translate: none; }
  .bd-idiom em { clip-path: none; }
  .bd-curve path { stroke-dashoffset: 0; }
}

/* botão de ouvir a música com a letra sincronizada (card 01) */
.bd-play-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bd-play { display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: .92rem; color: #fff;
  padding: 10px 18px 10px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); transition: background .2s, transform .15s; }
.bd-play:hover { background: rgba(255, 255, 255, .2); transform: translateY(-1px); }
.bd-play-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; background: linear-gradient(135deg, #e84393, #6c5ce7); box-shadow: 0 0 18px rgba(232, 67, 147, .5); }
.bd-play.is-on .bd-play-ic { animation: etkBtnPulse 1.6s infinite; }
.bd-yt { position: absolute; right: 22px; top: 22px; z-index: 5; width: 220px; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 34px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .15); }
.bd-yt[hidden] { display: none; }
.bd-yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.bd-yt { top: 26px; right: 26px; width: 250px; }
@media (max-width: 900px) { .bd-yt { width: 190px; } }
@media (max-width: 600px) { .bd-yt { position: relative; right: auto; top: auto; width: calc(100% - 44px); margin: 0 22px 22px; } }
@media (min-width: 601px) { .bd-ouvido.has-yt .bd-txt { padding-right: 300px; } }
@media (min-width: 601px) and (max-width: 900px) { .bd-ouvido.has-yt .bd-txt { padding-right: 236px; } }
