/* bondi driver — main.css
   columna vertical ordenada pegada a la izquierda + logo sticky flotante arriba a la derecha
   negro absoluto (#000000) por defecto + modo claro fiel a myantiaircraftfriend (#f2f2f2 / black / blue)
   tipografia exacta: 'Times New Roman', Times, serif (sin negritas, sin cursivas, 3 tamanos estrictos)
*/

:root {
  --bg: #000000;
  --text: #e2e2e2;
  --dim: #7f7f7f;
  --link: #e2e2e2;
  --link-visited: #bdbdbd;
  --accent: #9e2222;
  --border: #2b2b2b;
  --border-strong: #5c5c5c;
  --font-main: 'Times New Roman', Times, serif;
  --size-title: 1.9rem;
  --size-subtitle: 1.45rem;
  --size-body: 1.2rem;
  --col-width: 620px;
}

[data-theme="claro"] {
  --bg: #f2f2f2;
  --text: #000000;
  --dim: #555555;
  --link: #0000ee;
  --link-visited: #0000ee;
  --accent: #821b1b;
  --border: #c4c4c4;
  --border-strong: #000000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.38;
}

body {
  font-size: var(--size-body);
  overflow-x: clip;
}

main {
  position: relative;
  min-height: 100vh;
  width: 100%;
}

/* Jerarquia tipografica estricta: 3 tamanos, cero negritas, cero cursivas */
h1,
.site-title {
  font-size: var(--size-title);
  font-weight: 400;
  font-style: normal;
  line-height: 1.15;
}

h2,
.section-title {
  font-size: var(--size-subtitle);
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

p,
li,
a,
span,
div,
button,
input,
label,
footer {
  font-size: var(--size-body);
  font-family: inherit;
  font-weight: 400;
  font-style: normal;
}

/* Enlaces crudos estilo web temprana */
a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

a:visited {
  color: var(--link-visited);
}

a:hover {
  background-color: var(--text);
  color: var(--bg);
  text-decoration: none;
}

[data-theme="claro"] a:hover {
  background-color: transparent;
  color: #0000ee;
  text-decoration: underline;
}

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

/* Logo sticky flotante arriba a la derecha */
.logo {
  position: sticky;
  float: right;
  z-index: 10;
  top: 0;
  right: 0;
  width: clamp(190px, 26vw, 370px);
  margin: 4px 12px -90px 0;
  pointer-events: none;
}

.logo a {
  display: block;
  pointer-events: auto;
  text-decoration: none;
}

.logo a:hover {
  background: none;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-4%);
  filter: none;
}

[data-theme="claro"] .logo img {
  filter: invert(1);
}

/* Columna vertical coherente pegada a la izquierda */
.page-stream {
  position: relative;
  width: 100%;
  max-width: calc(var(--col-width) + 32px);
  margin: 0;
  padding: 14px 16px 48px 16px;
}

/* Bloque principal en /home (foto + bio + columna vertical de links) */
.hero-block {
  width: 100%;
  margin: 0;
}

.band-photo-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: #000000;
}

.band-photo {
  display: block;
  width: 100%;
  height: auto;
}

.vhs-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 12px 0 0 0;
}

.hero-copy {
  flex: 1;
  min-width: 0;
}

.hero-copy .site-meta {
  color: var(--dim);
  margin-top: 2px;
}

.hero-copy .bio-text {
  margin-top: 12px;
  color: var(--text);
}

/* Columna vertical de enlaces alineados a la derecha (index superior) */
.links {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 3px;
  white-space: nowrap;
}

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

.theme-toggle-btn {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--dim);
  cursor: pointer;
  padding: 0;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Cabecera superior para paginas internas (/media, /shows, /epk) */
.sub-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 4px 0 12px 0;
  border-bottom: 1px solid var(--border);
}

.sub-head-title .site-meta {
  color: var(--dim);
  margin-top: 2px;
}

/* Bloques de contenido: todos alineados a la izquierda con el mismo ancho coherente */
.section-block {
  width: 100%;
  margin: 40px 0 0 0;
}

/* Listas */
.plain-list {
  list-style: none;
}

.plain-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.plain-list li:last-child {
  border-bottom: none;
}

.epk-list {
  list-style: none;
}

.epk-list li {
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.epk-list li:last-child {
  border-bottom: none;
}

.epk-role {
  color: var(--dim);
  text-align: right;
}

/* Reproductor crudo en /media */
.bc-player {
  width: 100%;
  background-color: var(--bg);
  border: 1px solid var(--border);
  padding: 16px;
}

.bc-player-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.bc-play-btn {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background-color: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bc-play-btn:hover {
  background-color: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.bc-track-meta {
  flex: 1;
  min-width: 0;
}

.bc-track-title {
  color: var(--text);
  word-break: break-word;
}

.bc-progress-bar {
  margin-top: 10px;
  height: 1px;
  background-color: var(--border-strong);
  width: 100%;
}

.bc-time-row {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  color: var(--dim);
}

.bc-tracklist {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.bc-track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 6px;
  cursor: pointer;
  background-color: var(--bg);
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text);
}

.bc-track-row:hover {
  background-color: var(--text);
  color: var(--bg);
}

.bc-track-row:hover .muted,
.bc-track-row:hover .bc-track-num {
  color: var(--bg);
}

.bc-track-num {
  color: var(--dim);
  margin-right: 8px;
}

/* Botones planos */
.action-btn {
  background-color: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  cursor: pointer;
  padding: 4px 14px;
}

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

.action-btn-danger {
  border-color: var(--accent);
  color: var(--text);
  background-color: var(--bg);
}

.action-btn-danger:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* Modal de confirmacion en /media */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background-color: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  max-width: 440px;
  width: 100%;
  padding: 24px;
}

.modal-text {
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Videos embebidos (mismo ancho que la foto y el reproductor) */
.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background-color: #000000;
  border: 1px solid var(--border);
}

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

/* Chat / Guestbook */
.chat-log {
  width: 100%;
  background-color: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 14px;
  margin-bottom: 12px;
  max-height: 220px;
  overflow-y: auto;
}

.chat-msg {
  margin-bottom: 6px;
  word-break: break-word;
}

.chat-msg:last-child {
  margin-bottom: 0;
}

.chat-msg-user {
  color: var(--text);
}

.chat-msg-time {
  color: var(--dim);
  margin-left: 6px;
}

.chat-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.text-input {
  background-color: var(--bg);
  border: none;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text);
  padding: 4px 2px;
  outline: none;
}

.text-input:focus {
  border-bottom-color: var(--text);
}

.text-input-user {
  width: 130px;
}

.text-input-comment {
  flex: 1;
  min-width: 180px;
}

/* Pie de pagina alineado con la columna izquierda */
.raw-footer {
  width: 100%;
  margin: 56px 0 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Tablet / pantallas medias: logo proporcional sin chocar con la columna izquierda */
@media (max-width: 980px) {
  .logo {
    width: clamp(135px, 22vw, 220px);
    margin: 4px 10px -40px 0;
  }
}

/* Movil: logo arriba a la derecha, columna izquierda limpia al 100% */
@media (max-width: 680px) {
  .logo {
    position: static;
    float: none;
    width: 155px;
    margin: 8px 12px -18px auto;
  }

  .page-stream {
    max-width: 100%;
    padding: 0 14px 36px 14px;
  }

  .flex-row,
  .sub-head {
    gap: 16px;
  }

  .text-input-user,
  .text-input-comment {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
}
