/* Comunidade Trama: usa as cores e botões de style.css */

[hidden] { display: none !important; }

.ico { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; flex: none; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav__menu a[aria-current="page"] { color: var(--text) !important; }
.com-conta { color: var(--orange-2) !important; font-weight: 600 !important; }

/* ---------------------------------------------------------------- topo */
.com-hero { position: relative; isolation: isolate; padding: 64px 0 40px; overflow: hidden; }
.com-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 620px; z-index: -2;
  background: radial-gradient(560px 300px at 75% 40%, rgba(255,138,61,.2), transparent 70%),
              radial-gradient(420px 260px at 10% 20%, rgba(255,179,107,.09), transparent 70%);
}
.com-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 16em; }
.com-hero .lead { margin: 0; }

/* barra de abas (gruda embaixo do menu) */
.com-bar { position: sticky; top: 68px; z-index: 40; background: rgba(13,14,17,.9); backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.com-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.com-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.com-tabs a {
  display: inline-flex; align-items: center; gap: .5em; padding: .6em 1em; border-radius: 999px;
  color: var(--muted); font-weight: 600; white-space: nowrap;
}
.com-tabs svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.com-tabs a:hover { color: var(--text); text-decoration: none; background: rgba(255,255,255,.04); }
.com-tabs a[aria-current] { color: var(--orange-2); background: rgba(255,138,61,.12); box-shadow: inset 0 0 0 1px rgba(255,138,61,.3); }
.com-bar__actions { display: flex; gap: 10px; }

.com-aviso { background: rgba(255,138,61,.1); border-bottom: 1px solid rgba(255,138,61,.25); color: var(--orange-2); font-size: .92rem; padding: 10px 0; }
.com-aviso b { color: var(--text); }

.com-view { padding: 44px 0 110px; min-height: 60vh; }
.com-carregando { color: var(--muted); padding: 40px 0; text-align: center; }
.com-sutil { color: var(--muted); font-size: .94rem; margin: 0; }

.com-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.com-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .25em; }
.com-head p { color: var(--muted); margin: 0; max-width: 40em; }
.com-voltar { display: inline-flex; align-items: center; gap: .3em; color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.com-voltar:hover { color: var(--text); text-decoration: none; }

/* ---------------------------------------------------------------- filtros */
.com-filtros { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.com-busca { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.com-busca:focus-within { box-shadow: inset 0 0 0 1px rgba(255,138,61,.5); }
.com-busca input { flex: 1; border: 0; background: none; color: var(--text); font: inherit; padding: 12px 0; outline: none; min-width: 0; }
.com-filtros select, .com-form input, .com-form select, .com-form textarea, .com-responder textarea, .com-denuncia select, .com-denuncia input {
  font: inherit; color: var(--text); background: var(--surface); border: 0; border-radius: 12px; padding: 11px 14px;
  box-shadow: inset 0 0 0 1px var(--line); outline: none; width: 100%;
}
.com-filtros select { width: auto; min-width: 190px; }
select { color-scheme: dark; }
.com-form input:focus, .com-form select:focus, .com-form textarea:focus, .com-responder textarea:focus, .com-filtros select:focus { box-shadow: inset 0 0 0 1px var(--orange); }
.com-form textarea, .com-responder textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.com-form input[type="file"] { padding: 9px; font-size: .9rem; }
.com-form input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: 10px; border: 0; border-radius: 8px; padding: 6px 12px; background: var(--surface-2); color: var(--text); cursor: pointer; }

.com-seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.com-seg button { font: inherit; font-weight: 600; font-size: .93rem; color: var(--muted); background: none; border: 0; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.com-seg button[aria-pressed="true"] { color: #160b03; background: linear-gradient(135deg, var(--orange-2), var(--orange)); }
.com-seg--lg { display: flex; margin-bottom: 18px; }
.com-seg--lg button { flex: 1; padding: 11px 14px; }

/* ---------------------------------------------------------------- cartões de track */
.com-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.tcard { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s, box-shadow .25s; }
.tcard:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255,138,61,.35), 0 20px 50px -25px rgba(255,138,61,.4); }
.tcard__topo { position: relative; }
.tcard__capa {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, hsl(var(--h) 70% 45% / .55), transparent 60%),
              linear-gradient(135deg, hsl(calc(var(--h) + 40) 50% 18%), #121318);
}
.tcard__capa img { width: 100%; height: 100%; object-fit: cover; }
.tcard__capa:hover { text-decoration: none; }
.tcard__ini { font: 800 2.6rem var(--font-display); color: rgba(255,255,255,.9); letter-spacing: -.03em; text-shadow: 0 6px 30px rgba(0,0,0,.4); }
.tcard__onda { position: absolute; left: 0; right: 0; bottom: 0; height: 36%; opacity: .35;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 3px, transparent 3px 7px);
  mask-image: linear-gradient(transparent, #000), radial-gradient(ellipse 60% 100% at 50% 100%, #000, transparent);
  mask-composite: intersect; }
.tcard__capa--lg { aspect-ratio: 1; border-radius: var(--radius); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.08); }
.tcard__capa--lg .tcard__ini { font-size: 5rem; }
.tcard__play {
  position: absolute; right: 14px; bottom: -22px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  color: #160b03; background: linear-gradient(135deg, var(--orange-2), var(--orange) 50%, var(--orange-deep)); box-shadow: 0 10px 24px -6px rgba(255,138,61,.7);
  transition: transform .2s;
}
.tcard__play:hover { transform: scale(1.08); }
.tcard__play .ico { width: 20px; height: 20px; }
.tcard__play .ico svg { fill: currentColor; stroke: none; }
.tcard__play.is-on { animation: pulse 1.6s infinite; }
.tcard__preco { position: absolute; left: 12px; top: 12px; padding: .25em .7em; border-radius: 999px; font-size: .82rem; font-weight: 700; background: rgba(13,14,17,.75); backdrop-filter: blur(6px); color: #9be3b0; box-shadow: inset 0 0 0 1px rgba(155,227,176,.3); }
.tcard__preco.is-venda { color: var(--orange-2); box-shadow: inset 0 0 0 1px rgba(255,138,61,.4); }
.tcard__corpo { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; flex: 1; }
.tcard__corpo h3 { margin: 0; font-size: 1.08rem; padding-right: 48px; }
.tcard__corpo h3 a { color: var(--text); }
.tcard__artista { color: var(--muted); font-size: .9rem; margin: -4px 0 0; }
.tcard__meta { margin: auto 0 0; padding-top: 6px; color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tcard__com { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; }

.com-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.com-chips span { font-size: .78rem; font-weight: 600; padding: .2em .6em; border-radius: 6px; background: var(--surface-2); color: #c3c8d1; }
.com-autor { color: var(--text); font-weight: 600; }
.com-mais { display: flex; margin: 30px auto 0; }

/* ---------------------------------------------------------------- página da track */
.tdet { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 48px; align-items: start; }
.tdet__midia { position: sticky; top: 150px; display: grid; gap: 16px; }
.tdet__audio { width: 100%; color-scheme: dark; }
.tdet__semprev { color: var(--muted); text-align: center; font-size: .9rem; }
.tdet__info h1 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: .2em; }
.tdet__artista { color: var(--muted); font-size: 1.08rem; }
.tdet__preco { font: 800 2rem var(--font-display); margin: 22px 0 14px; color: #9be3b0; }
.tdet__preco.is-venda { color: var(--orange); }
.tdet__acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.tdet__acoes .ico { width: 1.2em; height: 1.2em; }
.tdet__aviso { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: .88rem; }
.tdet__desc { margin-top: 26px; white-space: pre-wrap; color: #c3c8d1; line-height: 1.7; }
.tdet__autor { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding: 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.tdet__autor:hover { text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255,138,61,.35); }
.tdet__autor span { display: grid; }
.tdet__autor small { color: var(--muted); }

.com-rodape-acoes { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; align-items: center; }
.com-link { display: inline-flex; align-items: center; gap: .35em; background: none; border: 0; padding: 4px 0; font: inherit; font-size: .88rem; color: var(--muted); cursor: pointer; }
.com-link:hover { color: var(--text); }
.com-link--perigo:hover, .com-link.is-armado { color: #ff7a7a; }

/* ---------------------------------------------------------------- conversas */
.com-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 22px; }
.com-cats a { padding: .4em .9em; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.com-cats a:hover { color: var(--text); text-decoration: none; }
.com-cats a[aria-current] { color: var(--orange-2); background: rgba(255,138,61,.12); box-shadow: inset 0 0 0 1px rgba(255,138,61,.35); }
.com-topicos { display: grid; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.com-topico { display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: var(--text); }
.com-topico + .com-topico { border-top: 1px solid var(--line); }
.com-topico:hover { text-decoration: none; background: rgba(255,255,255,.025); }
.com-topico__txt { flex: 1; display: grid; gap: 3px; min-width: 0; }
.com-topico__txt b { font-weight: 600; font-size: 1.02rem; }
.com-topico__txt small { color: var(--muted); font-size: .85rem; }
.com-topico__n { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.com-cat { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .02em; padding: .12em .55em; border-radius: 6px; background: rgba(255,138,61,.12); color: var(--orange-2); }
a.com-cat:hover { text-decoration: none; }

.com-av { --h: 20; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 65% 55%), hsl(calc(var(--h) + 40) 60% 35%)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.com-av--lg { width: 84px; height: 84px; font-size: 1.8rem; }

.com-post { max-width: 820px; padding: 30px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.com-post h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 10px 0 18px; }
.com-post__autor { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.com-post__autor span { display: grid; }
.com-post__autor small { color: var(--muted); }
.com-post__txt { font-size: 1.04rem; }

.com-sec { margin-top: 48px; max-width: 820px; }
.com-perfil ~ .com-sec, .com-perfil__grade ~ .com-sec { max-width: none; }
.com-sec__tit { font-size: 1.2rem; margin-bottom: 16px; }
.com-msgs { display: grid; gap: 4px; margin-bottom: 20px; }
.com-msg { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.com-msg__corpo { flex: 1; min-width: 0; }
.com-msg__corpo header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.com-msg__corpo time { color: var(--muted); font-size: .82rem; }
.com-msg__txt { white-space: pre-wrap; overflow-wrap: anywhere; color: #d4d8df; }
.com-msg__acoes { display: flex; gap: 16px; margin-top: 4px; }
.com-msg__acoes .com-link { font-size: .8rem; }

.com-responder { display: flex; gap: 14px; align-items: flex-start; }
.com-responder > div { flex: 1; }
.com-responder__pe { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.com-responder__pe small { color: var(--muted); }
.com-entrar-p { padding: 18px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }

.com-denuncia { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); width: 100%; max-width: 560px; }
.com-denuncia select, .com-denuncia input { padding: 8px 12px; font-size: .9rem; }
.com-denuncia > div { display: flex; gap: 8px; }

/* ---------------------------------------------------------------- formulários */
.com-form { display: grid; gap: 22px; max-width: 820px; }
.com-form fieldset { border: 0; margin: 0; padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 16px; min-width: 0; }
.com-form legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font: 700 1.1rem var(--font-display); }
.com-form fieldset input, .com-form fieldset select, .com-form fieldset textarea { background: var(--bg-2); }
.com-form > .btn { justify-self: start; }
.com-form--compacto { gap: 14px; }
.com-form__grupo { display: grid; gap: 16px; }
.com-form__linha { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.com-form__linha--4 { grid-template-columns: 1.3fr 1fr .6fr .6fr; }
.com-form__pe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.com-form__erro { margin: 0; padding: 12px 16px; border-radius: 12px; background: rgba(255,90,90,.1); color: #ffb0b0; box-shadow: inset 0 0 0 1px rgba(255,90,90,.35); }
.com-campo { display: grid; gap: 6px; min-width: 0; }
.com-campo__rot { font-weight: 600; font-size: .92rem; }
.com-campo__ajuda { color: var(--muted); font-size: .82rem; }
.com-check { display: flex; gap: 12px; align-items: flex-start; color: #c3c8d1; font-size: .94rem; cursor: pointer; }
.com-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); flex: none; }

.com-auth { max-width: 460px; margin: 0 auto; padding: 34px; border-radius: 24px; background: linear-gradient(180deg, rgba(29,32,41,.9), rgba(18,19,24,.9)); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,138,61,.22); }
.com-auth h2 { font-size: 1.6rem; }
.com-auth .com-sutil { margin-bottom: 16px; }
.com-auth .com-form input { background: var(--bg-2); }
.com-ok h3 { color: var(--orange-2); }
.com-ok p { color: var(--muted); }

/* ---------------------------------------------------------------- perfis */
.com-perfil { display: flex; align-items: center; gap: 22px; margin-bottom: 34px; }
.com-perfil h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: .15em; }
.com-perfil__bio { margin: 8px 0 0; color: #c3c8d1; max-width: 40em; white-space: pre-wrap; }
.com-perfil__grade { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.com-card { padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; }
.com-card .com-form input, .com-card .com-form textarea { background: var(--bg-2); }

/* ---------------------------------------------------------------- vazio, regras, aviso */
.com-vazio { text-align: center; padding: 60px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.com-vazio > .ico { width: 46px; height: 46px; padding: 11px; border-radius: 12px; color: var(--orange); background: rgba(255,138,61,.12); margin-bottom: 14px; box-sizing: content-box; }
.com-vazio p { color: var(--muted); max-width: 30em; margin: 0 auto 20px; }
.com-vazio--grande { padding: 90px 24px; }

.com-regras { max-width: 820px; }
.com-regras h3 { margin-top: 2em; color: var(--orange-2); }
.com-regras ol { padding-left: 1.3em; display: grid; gap: 10px; color: #c3c8d1; }
.com-regras li b { color: var(--text); }

.com-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; max-width: min(520px, calc(100% - 32px));
  padding: 12px 18px; border-radius: 12px; background: var(--surface-2); color: var(--text); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,138,61,.4); font-weight: 600; font-size: .94rem; }
.com-toast.is-erro { box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,90,90,.6); color: #ffc4c4; }

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 1020px) {
  .tdet { grid-template-columns: 1fr; gap: 28px; }
  .tdet__midia { position: static; max-width: 420px; }
  .com-perfil__grade { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .com-hero { padding: 40px 0 28px; }
  .com-bar { top: 68px; }
  .com-bar__inner { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0; }
  .com-bar__actions .btn { flex: 1; justify-content: center; }
  .com-form__linha, .com-form__linha--4 { grid-template-columns: 1fr 1fr; }
  .com-form fieldset { padding: 20px; }
  .com-topico { padding: 14px 16px; }
  .com-auth { padding: 24px 20px; }
  .com-perfil { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .com-form__linha, .com-form__linha--4 { grid-template-columns: 1fr; }
  .com-filtros select { width: 100%; }
}

/* ---------------------------------------------------------------- entrar com Google / GitHub */
.com-social { display: grid; gap: 10px; margin: 18px 0 4px; }
.com-social__btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 12px 16px; border-radius: 12px; border: 0;
  font: inherit; font-weight: 600; cursor: pointer; transition: transform .15s, filter .15s;
}
.com-social__btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.com-social__btn:disabled { opacity: .6; cursor: wait; }
.com-social__btn .ico { width: 20px; height: 20px; }
.com-social__btn--google { background: #fff; color: #1f1f1f; }
.com-social__btn--github { background: #24292f; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.com-social__nota { margin: 2px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }
.com-ou { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .85rem; }
.com-ou::before, .com-ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* página "em breve" */
.com-hero--breve { min-height: calc(100vh - 68px - 120px); display: grid; align-content: center; padding: 80px 0 100px; }
.com-hero--breve .hero__cta { margin-top: 30px; }
