/* ==========================================================================
   JULIO HERRLEIN - WEBSITE MINIMALISTA
   Estilo monocromático, editorial, focado em legibilidade e espaço em branco.
   ========================================================================== */

/* 1. Variáveis de Tema (Modo Claro padrão) */
:root {
  --font-serif: "Newsreader", "Charis SIL", "EB Garamond", "Charter", Georgia, Cambria, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #ffffff;
  --bg-subtle: #f8f8f8;
  --bg-card: #fafafa;
  --text: #121212;
  --text-muted: #666666;
  --text-dim: #8c8c8c;
  --border: #e2e2e2;
  --border-subtle: #eeeeee;
  --focus-ring: #121212;
  --tag-bg: #f0f0f0;
  --tag-text: #333333;

  --content-width: 760px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.75rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;

  --line-height-body: 1.7;
  --line-height-heading: 1.25;
}

/* Modo Escuro (Acionado via atributo data-theme="dark" ou preferência de sistema) */
[data-theme="dark"] {
  --bg: #111111;
  --bg-subtle: #191919;
  --bg-card: #161616;
  --text: #ededed;
  --text-muted: #a0a0a0;
  --text-dim: #707070;
  --border: #2c2c2c;
  --border-subtle: #222222;
  --focus-ring: #ffffff;
  --tag-bg: #222222;
  --tag-text: #cccccc;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111;
    --bg-subtle: #191919;
    --bg-card: #161616;
    --text: #ededed;
    --text-muted: #a0a0a0;
    --text-dim: #707070;
    --border: #2c2c2c;
    --border-subtle: #222222;
    --focus-ring: #ffffff;
    --tag-bg: #222222;
    --tag-text: #cccccc;
  }
}

/* 2. Reset Básico e Elementos Fundamentais */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  scroll-padding-top: 115px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: var(--line-height-body);
  transition: background-color 0.2s ease, color 0.2s ease;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* Acessibilidade de Foco */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Link para pular ao conteúdo principal */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: 0.85rem;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 1rem;
}

/* 3. Contêiner Principal de Leitura */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

/* 4. Cabeçalho e Navegação */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease;
}

.header-inner {
  display: flex;
  flex-direction: column;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
  gap: 0.75rem;
}

.header-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand-name:hover {
  opacity: 0.8;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Botão de Tema */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

/* Menu de Navegação */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.2rem 0;
  position: relative;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text);
}

/* 5. Seções e Tipografia Geral */
.section,
section[id],
main[id] {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 115px;
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
  color: var(--text);
  position: relative;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: -1rem;
  margin-bottom: var(--spacing-md);
  font-weight: 400;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text);
}

p:last-child {
  margin-bottom: 0;
}

.text-muted {
  color: var(--text-muted);
}

.text-editorial {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
}

/* 6. Links de Texto Minimalistas */
a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.7;
}

.link-discrete {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-discrete:hover {
  color: var(--text);
}

/* Marcador de Edição */
.edit-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background-color: var(--tag-bg);
  color: var(--text-muted);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  margin-left: 0.3rem;
  vertical-align: middle;
  text-decoration: none;
}

/* 7. Seção 1: Home / Hero */
.hero {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-xl);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: var(--spacing-md);
  color: var(--text);
}

.hero-profile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: var(--spacing-md);
}

@media (min-width: 640px) {
  .hero-profile {
    flex-direction: row;
    align-items: flex-start;
  }
}

.hero-photo-wrap {
  flex-shrink: 0;
  width: 140px;
}

.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: grayscale(100%);
  display: block;
}

.hero-intro {
  flex: 1;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: var(--spacing-md);
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.hero-quick-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
}

/* 8. Seção 2: Sobre */
.academic-list {
  list-style: none;
  margin: 1.5rem 0;
  border-left: 1px solid var(--border);
  padding-left: 1.25rem;
}

.academic-list li {
  margin-bottom: 1rem;
}

.academic-list li:last-child {
  margin-bottom: 0;
}

.academic-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.15rem;
}

.academic-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.academic-inst {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.interest-tag {
  background-color: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  font-family: var(--font-sans);
}

/* 9. Seção 3: Obras */
.works-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 600px) {
  .works-filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--text);
  color: var(--text);
}

.filter-btn.active {
  background-color: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.filter-year-select {
  background-color: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  cursor: pointer;
  max-width: 140px;
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.work-item {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: opacity 0.2s ease;
}

.work-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.work-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.work-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
}

.work-year {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.work-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.work-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

.empty-results {
  color: var(--text-muted);
  font-style: italic;
  padding: 1.5rem 0;
  display: none;
}

/* 10. Seção 4: Gravações */
.recordings-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.recording-item {
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.recording-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recording-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.recording-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.recording-desc {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

/* Container de Áudio e Vídeo */
.audio-player-wrap {
  margin: 1rem 0;
}

audio {
  width: 100%;
  height: 36px;
  filter: contrast(90%);
}

.video-embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  margin: 1rem 0;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
}

.video-embed-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.external-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
}

/* 11. Seção 5: Publicações e Pesquisa */
.academic-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0.85rem 1rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.publications-group {
  margin-bottom: 2.5rem;
}

.publications-group:last-child {
  margin-bottom: 0;
}

.group-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pub-item {
  font-size: 0.92rem;
  line-height: 1.6;
}

.pub-links {
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

/* 12. Seção 6: Projetos */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.project-item {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.project-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.project-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

/* 13. Seção 7: Agenda */
.agenda-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.agenda-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.agenda-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.agenda-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.agenda-content h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.agenda-venue {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.agenda-desc {
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

@media (max-width: 540px) {
  .agenda-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* 14. Seção 8: Pedagogia */
.pedagogy-block {
  margin-bottom: 2rem;
}

.pedagogy-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.materials-list {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.material-item {
  font-size: 0.9rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.cta-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-top: 2rem;
  font-size: 0.92rem;
}

/* 15. Seção 9: Contato & Newsletter */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-direct {
  font-size: 1rem;
}

.contact-guidelines {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  background-color: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.65rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  border-radius: 2px;
  transition: border-color 0.15s ease;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--text);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  align-self: flex-start;
  background-color: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  border-radius: 2px;
  font-weight: 500;
  transition: opacity 0.15s ease;
}

.btn-submit:hover {
  opacity: 0.85;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  padding: 0.75rem;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  background-color: var(--bg-subtle);
  display: none;
  margin-top: 0.5rem;
}

.form-status.success {
  display: block;
  border-color: var(--text);
}

.form-status.error {
  display: block;
  border-color: #888888;
}

/* Newsletter / Avisos */
.newsletter-box {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.newsletter-box h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.newsletter-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 440px;
}

.newsletter-input {
  flex: 1;
  background-color: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  border-radius: 2px;
}

.newsletter-btn {
  background: none;
  border: 1px solid var(--text);
  color: var(--text);
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  border-radius: 2px;
}

.newsletter-btn:hover {
  background-color: var(--text);
  color: var(--bg);
}

/* 16. Rodapé */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
}

.back-to-top {
  text-decoration: none;
  color: var(--text-muted);
}

/* ==========================================================================
   16.1. Álbuns Digitais e Plataformas de Streaming
   ========================================================================== */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.album-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: 2px;
  transition: border-color var(--transition-fast);
}

.album-card:hover {
  border-color: var(--border);
}

.album-cover-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--transition-fast);
}

.album-card:hover .album-cover {
  filter: grayscale(0%);
}

.album-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.album-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.album-submeta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.album-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.album-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle);
}

/* Badges e Botões de Links Flexíveis (Obras e Gravações) */
.work-links-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 0.5rem;
}

.link-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.2rem 0.55rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  border-radius: 2px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.link-badge:hover {
  background: var(--border-subtle);
  border-color: var(--text);
  text-decoration: none;
}

.link-badge.badge-spotify {
  border-color: rgba(30, 215, 96, 0.4);
}
.link-badge.badge-spotify:hover {
  background: rgba(30, 215, 96, 0.1);
  border-color: #1ed760;
}

.link-badge.badge-youtube {
  border-color: rgba(255, 0, 0, 0.35);
}
.link-badge.badge-youtube:hover {
  background: rgba(255, 0, 0, 0.08);
  border-color: #e02424;
}

.link-badge.badge-audio {
  border-color: rgba(59, 130, 246, 0.4);
}
.link-badge.badge-audio:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: #2563eb;
}

.link-badge.badge-pdf {
  border-color: rgba(220, 38, 38, 0.4);
}
.link-badge.badge-pdf:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: #dc2626;
}

/* ==========================================================================
   16.2. Galeria de Fotos e Mídia Visual
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 0.75rem;
  border-radius: 2px;
}

.gallery-thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-subtle);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.gallery-card:hover .gallery-thumb {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.gallery-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.84rem;
}

.gallery-caption {
  font-weight: 500;
  color: var(--text);
}

.gallery-credit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gallery-download {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  text-decoration: underline;
  color: var(--text-muted);
}
.gallery-download:hover {
  color: var(--text);
}

/* ==========================================================================
   16.3. Press Kit / Kit de Imprensa
   ========================================================================== */
.presskit-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}

.presskit-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 2px;
}

.presskit-tab-btn.active {
  background: var(--bg-subtle);
  border-color: var(--border);
  color: var(--text);
  font-weight: 600;
}

.presskit-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: 2px;
  margin-bottom: 2rem;
}

.presskit-panel.active {
  display: block;
}

.presskit-copy-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.btn-copy-text {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  color: var(--text);
}

.btn-copy-text:hover {
  background: var(--border);
}

.press-text-block {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-line;
}

.rider-box {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  background: var(--bg-subtle);
  padding: 1.25rem;
  border-left: 3px solid var(--text);
  white-space: pre-wrap;
}

/* ==========================================================================
   16.4. Otimizações de Responsividade e Ergonomia Mobile (iOS / Android / Tablets)
   ========================================================================== */

/* Interações táteis responsivas instantâneas (sem delay de duplo toque) */
.nav-link,
.filter-btn,
.presskit-tab-btn,
.link-badge,
.btn-submit,
.newsletter-btn,
.theme-toggle-btn,
.btn-copy-text {
  touch-action: manipulation;
}

/* Telas Médias e Pequenas (Tablets e Smartphones: <= 768px) */
@media (max-width: 768px) {
  /* Cabeçalho compacto e navegação horizontal fluida por toque */
  .header-inner {
    padding-top: 0.85rem;
    padding-bottom: 0.65rem;
    gap: 0.6rem;
  }

  .site-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1.15rem;
    padding-bottom: 0.4rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }

  .site-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .nav-link {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.84rem;
    padding: 0.35rem 0.1rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  /* Ajuste no padding das seções para melhor aproveitamento vertical em smartphones */
  .section,
  section[id],
  main[id] {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    scroll-margin-top: 85px;
  }
}

/* Smartphones (<= 680px) */
@media (max-width: 680px) {
  /* Prevenção de auto-zoom indesejado no Safari do iOS (inputs < 16px acionam zoom no iOS) */
  input[type="text"],
  input[type="email"],
  input[type="search"],
  select,
  textarea,
  .form-input,
  .form-select,
  .form-textarea,
  .newsletter-input,
  .filter-year-select {
    font-size: 16px !important;
  }

  /* Alvos de toque (touch targets) confortáveis para dedos em touchscreens */
  .theme-toggle-btn {
    padding: 0.35rem 0.65rem;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }

  .filter-btn {
    padding: 0.45rem 0.85rem;
    min-height: 38px;
    font-size: 0.82rem;
  }

  .presskit-tab-btn {
    padding: 0.45rem 0.85rem;
    min-height: 40px;
  }

  .link-badge {
    padding: 0.38rem 0.75rem;
    min-height: 36px;
  }

  /* Barra de filtros de obras em mobile */
  .works-filter-bar {
    gap: 1rem;
  }

  .filter-buttons {
    gap: 0.45rem;
  }

  .filter-year-select {
    max-width: 100%;
    width: 100%;
    height: 42px;
  }

  /* Perfil do Hero em smartphones */
  .hero-profile {
    align-items: center;
    text-align: left;
  }

  .hero-photo-wrap {
    width: 130px;
    max-width: 40vw;
  }
}

/* Smartphones Pequenos / Modo Retrato Estreito (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .hero-tagline {
    font-size: 1.5rem;
  }

  .albums-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .album-card,
  .gallery-card {
    padding: 1rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-btn {
    width: 100%;
    height: 44px;
  }

  .btn-submit {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    min-height: 46px;
  }

  .presskit-copy-bar {
    justify-content: stretch;
  }

  .btn-copy-text {
    width: 100%;
    text-align: center;
    min-height: 42px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* 17. Impressão */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }
  .site-header,
  .works-filter-bar,
  .theme-toggle-btn,
  .btn-submit,
  .newsletter-box,
  .skip-to-content,
  .audio-player-wrap,
  .video-embed-wrap {
    display: none !important;
  }
  .section {
    padding: 1.5rem 0;
    border-bottom: 1px solid #ccc;
    page-break-inside: avoid;
  }
  a {
    color: #000 !important;
    text-decoration: none !important;
  }
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
}

/* ==========================================================================
   18. Estilos Editoriais Formatados (Subtítulos, Destaques, Notas)
   ========================================================================== */
.editorial-subheading {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.editorial-subheading:first-child {
  margin-top: 0;
}

.editorial-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
}

.editorial-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.editorial-list {
  margin: 0.75rem 0 1.25rem 1.25rem;
  padding-left: 0.5rem;
  line-height: 1.6;
}

.editorial-list li {
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   19. Destaques Visuais (Obras & Gravações)
   ========================================================================== */
.badge-destaque {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: rgba(212, 175, 55, 0.12);
  color: #997700;
  border: 1px solid rgba(212, 175, 55, 0.4);
  vertical-align: middle;
  margin-left: 0.35rem;
}

[data-theme="dark"] .badge-destaque,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge-destaque {
    background: rgba(212, 175, 55, 0.18);
    color: #f1cc5d;
    border-color: rgba(212, 175, 55, 0.45);
  }
}

.work-item.work-destaque {
  border-left: 3px solid rgba(212, 175, 55, 0.75);
  padding-left: 1rem;
  margin-left: -1rem;
}

.recording-item.recording-destaque,
.album-card.album-destaque {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.08);
}

/* ==========================================================================
   20. Arquitetura Modular de Mídias em Seções
   ========================================================================== */
.section-modular-blocks {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.modular-block-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--text);
}

/* Grades de Vídeos Flexíveis (1, 2, 3 ou 4 vídeos por linha) */
.video-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
  width: 100%;
}

.video-grid-1 {
  grid-template-columns: 1fr;
}

.video-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.video-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.video-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {
  .video-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .video-grid-2,
  .video-grid-3,
  .video-grid-4 {
    grid-template-columns: 1fr;
  }
}

.video-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.video-card:hover {
  border-color: var(--border);
}

.video-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-title {
  padding: 0.75rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* Downloads e Arquivos Modulares */
.modular-downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.modular-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition-fast), background var(--transition-fast);
  gap: 0.75rem;
}

.modular-download-card:hover {
  border-color: var(--text);
  background: var(--bg-subtle);
  text-decoration: none;
}

.modular-download-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
}

.modular-download-name {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modular-download-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.modular-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

/* ==========================================================================
   21. Documentos para Download do Press Kit & Projetos
   ========================================================================== */
.presskit-downloads-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-subtle);
}

.presskit-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.presskit-doc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 1.15rem;
  border-radius: 2px;
  transition: border-color 0.2s ease;
  gap: 0.85rem;
}

.presskit-doc-card:hover {
  border-color: var(--text);
}

.presskit-doc-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

.presskit-doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.presskit-doc-btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  text-decoration: none;
}

.project-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.3rem 0.65rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-top: 0.4rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.project-pdf-link:hover {
  border-color: var(--text);
  background: var(--bg-card);
  text-decoration: none;
}

