/* Componentes do conteudo expandido: abas, partes, vocabulario, dialogos, musicas, biblioteca e sobre. */
.tone-purple { background: linear-gradient(145deg, #7a4be0, #33206e); }
.tone-pink { background: linear-gradient(145deg, #e0479b, #6e1f4a); }
.poster-card.no-rank { width: clamp(170px, 17vw, 220px); }
.poster-card.no-rank .poster { flex: 1; }
.poster-count { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800; letter-spacing: .04em; background: rgba(8, 9, 13, .7); padding: 3px 8px; border-radius: 4px; }
.lib-card { width: clamp(220px, 21vw, 280px); min-height: 160px; padding: 18px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 6px; transition: transform .25s ease; }
.lib-card:hover { transform: translateY(-3px); }
.lib-card small { font-size: 11px; letter-spacing: .14em; font-weight: 800; opacity: .85; }
.lib-card strong { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.1; }
.lib-card span { font-size: 13px; color: rgba(255, 255, 255, .85); margin-top: auto; }

.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; gap: 8px; }
.btn.sm svg { font-size: 16px; }
.btn.speaking { box-shadow: 0 0 0 4px rgba(239, 75, 79, .45); }
.icon-btn.sm { width: 34px; height: 34px; font-size: 15px; flex: none; }

.tabs { position: sticky; top: 62px; z-index: 20; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px var(--gutter); background: rgba(12, 14, 20, .96); border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s, background .2s; }
.tab span { font-size: 12px; background: var(--surface-2); padding: 1px 7px; border-radius: 999px; color: #cfd3dc; }
.tab:hover { color: #fff; background: var(--surface); }
.tab.active { color: #fff; box-shadow: inset 0 -3px 0 var(--red); border-radius: 8px 8px 0 0; }
.module-body { padding: 20px var(--gutter) 36px; max-width: 1100px; }

.parts { display: flex; gap: 8px; flex-wrap: wrap; }
.part { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.part small { color: var(--muted); font-weight: 600; font-size: 12px; }
.part:hover { background: var(--surface-2); }
.part.active { background: #fff; color: var(--bg); }
.part.active small { color: #4b5263; }
.part.complete:not(.active) { border-color: rgba(53, 201, 130, .6); }
.module-body .episodes-head { flex-wrap: wrap; align-items: center; }
.ep-child { font-size: 13px; color: #9fd8bb; }
.ep-child b { color: var(--green); font-weight: 700; }
.next-part { margin-top: 20px; }
.next-part svg { font-size: 16px; }

.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.word { position: relative; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 14px 44px 14px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.word:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .2); }
.word strong { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.15; }
.word span { color: #cfd3dc; font-size: 14px; }
.word small { color: var(--faint); font-size: 12px; }
.word i { position: absolute; right: 12px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(255, 255, 255, .1); }
.word.speaking { border-color: var(--red); box-shadow: none; }
.hint { color: var(--faint); font-size: 13px; margin: 12px 0 0; }

.block { margin: 0 0 22px; padding: clamp(16px, 2.4vw, 24px); border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.block h3 { font-size: 22px; }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.block-head small { color: var(--muted); font-size: 14px; }
.block-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kind { display: block; font-size: 11px; letter-spacing: .14em; font-weight: 800; color: var(--yellow); text-transform: uppercase; margin-bottom: 4px; }
.note { color: #cfd3dc; font-size: 14px; background: rgba(255, 200, 61, .08); border-left: 3px solid var(--yellow); padding: 10px 12px; border-radius: 6px; margin: 0 0 14px; }
.note.big { font-size: 15px; margin-top: 24px; }
.expr-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.expr-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface); }
.expr-list li.single { grid-template-columns: 1fr; }
.expr-main { display: flex; align-items: center; gap: 8px; }
.expr-main > span { display: flex; flex-direction: column; margin-left: 4px; }
.expr-main strong { font-size: 16px; }
.expr-main small, .expr-ex small { color: var(--muted); font-size: 13px; }
.expr-ex { display: flex; flex-direction: column; }
.expr-ex em { font-style: normal; color: #e7e9ef; }

.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.line { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; transition: background .2s; }
.line.playing { background: rgba(239, 75, 79, .16); }
.who { flex: none; width: 70px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9fb7ff; }
.line.child .who { color: var(--green); }
.bubble { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bubble strong { font-size: 17px; font-weight: 600; }
.bubble small { color: var(--muted); font-size: 14px; }
.line.child .bubble strong { color: #c9f2dc; }
.lyric-lines .bubble strong { font-family: var(--display); font-size: 19px; font-weight: 500; }
.from { color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin: 26px 0 8px; }

.stage-child { margin: 0 0 22px; padding: 12px 16px; border-radius: 14px; background: rgba(53, 201, 130, .12); border: 1px solid rgba(53, 201, 130, .35); text-align: left; max-width: 560px; width: 100%; }
.stage-child-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--green); }
.stage-child-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.stage-child-row > span { flex: 1; display: flex; flex-direction: column; }
.stage-child-row strong { font-size: clamp(17px, 2vw, 21px); font-weight: 600; }
.stage-child-row small { color: #cdd1db; font-size: 14px; }
.end-extras { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.page.wide { max-width: 1180px; }
.page-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.page-back:hover { color: #fff; }
.page-back svg { font-size: 14px; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 20px; padding: 0 var(--gutter) 4px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.section-title { font-size: 24px; margin: 26px 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.section-title small { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--muted); }
.page .dialogue { margin-top: 22px; }

.verb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.verb { border-radius: 16px; padding: 16px; position: relative; overflow: hidden; }
.verb::after { content: ""; position: absolute; inset: 52px 0 0 0; background: rgba(10, 12, 17, .86); z-index: 0; }
.verb > * { position: relative; z-index: 1; }
.verb h3 { font-size: 22px; margin-bottom: 16px; }
.verb h3 span { opacity: .7; }
.verb h3 small { font-family: var(--body); font-size: 14px; font-weight: 500; opacity: .85; }
.verb-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.verb-row:last-child { border-bottom: 0; }
.vlabel { flex: none; width: 92px; font-size: 12px; font-weight: 700; color: var(--muted); }
.vtext { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.vtext strong { font-size: 16px; }
.vtext small, .answer small { color: var(--muted); font-size: 13px; }
.verb-row.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.verb-row.answers .vlabel { grid-column: 1 / -1; width: auto; }
.answer { min-width: 0; display: flex; flex-direction: column; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.answer strong { color: #c9f2dc; }
.answer:hover { background: var(--surface-2); }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.media-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: background .2s, transform .2s; }
.media-card:hover { background: var(--surface-2); transform: translateY(-2px); }
.media-card .num { position: absolute; top: 12px; right: 14px; font-family: var(--display); color: var(--faint); font-size: 20px; }
.media-card strong { font-family: var(--display); font-size: 19px; font-weight: 600; padding-right: 26px; }
.media-card small { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.media-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #9fb7ff; }
.media-card .go.yt { color: #ff8e91; }
.media-card .go svg { font-size: 14px; }

.about-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 28px; }
.about-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.about-block { padding: 20px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.about-block .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.about-block h3 { font-size: 21px; margin-bottom: 8px; }
.about-block p { margin: 0; color: #d4d8e1; }
.benefits { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.benefits li { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(53, 201, 130, .12); border: 1px solid rgba(53, 201, 130, .35); font-weight: 600; }
.benefits svg { color: var(--green); }
.about-quote { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); text-align: center; margin: 36px 0 0; color: var(--yellow); }

@media (max-width: 760px) {
  .tabs { top: 58px; }
  .expr-list li { grid-template-columns: 1fr; }
  .who { width: 52px; font-size: 11px; }
  .line { padding: 8px 4px; gap: 8px; }
  .bubble strong { font-size: 16px; }
  .verb-grid { grid-template-columns: 1fr; }
  .vlabel { width: 72px; }
  .about-photos { gap: 6px; }
  .about-photos img { border-radius: 10px; }
  .word-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .word { padding-right: 38px; }
  .stage-child { margin-bottom: 16px; }
  .poster-card.no-rank { width: 160px; }
}

/* Cards de modulo horizontais (as artes novas sao 16:9). */
.poster-card, .poster-card.no-rank { width: clamp(270px, 26vw, 360px); }
.poster-card .poster, .poster-card.no-rank .poster { flex: 0 0 auto; width: 100%; aspect-ratio: 16 / 9; }
.poster-card .rank { position: absolute; left: -6px; bottom: -14px; z-index: 2; font-size: clamp(64px, 6vw, 88px); margin: 0; text-align: left; color: rgba(12,14,20,.55); -webkit-text-stroke: 2px rgba(255,255,255,.85); pointer-events: none; }
.poster-card:has(.rank) { position: relative; padding-left: 26px; }
.poster-card:has(.rank) .poster-copy { left: 44px; }
.poster-copy strong { font-size: 19px; }
img.portrait { object-position: center 28%; }
.title-media img.landscape, .player-bg img.landscape { object-position: center 35%; }
@media (max-width: 760px) {
  .poster-card, .poster-card.no-rank { width: 250px; }
  .title-media:has(img.landscape) { aspect-ratio: 16 / 10; }
}
