/*
 * Music - minimal, side by side widgets
 */

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

body {
  font-family: 'Dupla', sans-serif;
  background: #0a0a0a;
  color: #e8e6e1;
  min-height: 100vh;
  padding: 2rem;
}

main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  height: calc(100vh - 4rem);
}

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

.widget h2,
.mixes h2 {
  font-family: 'Kapra Neue', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  text-align: center;
}

.widget iframe {
  flex: 1;
  min-height: 400px;
}

/* Soundcloud albums stacked */
.albums {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  overflow-y: auto;
}

.albums iframe {
  width: 100%;
  height: 166px;
  min-height: 166px;
  flex: none;
}

/* Mixes section */
.mixes {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mixes h2 {
  margin-bottom: 1rem;
}

/* 5-column x 7-row grid with center text block */
.mix-frame {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(7, auto);
  gap: 0.5rem;
}

.mix-frame a {
  font-size: 0.8rem;
  font-weight: 400;
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
  padding: 0.4rem;
  text-align: center;
}

.mix-frame a:hover {
  color: #e8e6e1;
}

/* Center text block spans middle 3 columns, rows 2-6 */
.mix-frame .mix-text {
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.6;
  color: #444;
  text-align: center;
  padding: 1rem;
  transition: color 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mix-frame .mix-text:hover {
  color: #e8e6e1;
}

.mix-frame .mix-text p {
  margin-bottom: 0.75em;
}

.mix-frame .mix-text p:last-child {
  margin-bottom: 0;
}

.mix-frame .mix-text em {
  font-style: italic;
}

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
    height: auto;
  }

  .widget iframe {
    min-height: 350px;
  }
}
