* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; background: #1a1a1a; color: #fff; }
html { overflow-y: scroll; }
body { display: flex; flex-direction: column; min-height: 100vh; }

.banner {
  position: relative;
  background: #000000 url("banner_fill.png") center center repeat-x;
  background-size: auto 100%;
  text-align: center;
  border-bottom: 3px solid #629aa9;
}
.banner img {
  display: block;
  width: 100%;
  max-width: 940px;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  margin: 0 auto;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0.07;
  pointer-events: none;
}

.tabs {
  position: relative;
  display: flex;
  justify-content: center;
  background: #222;
  border-bottom: 1px solid #333;
}
.tabs-logo {
  display: none;
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
}
.tabs-logo img {
  height: 100%;
  width: auto;
  display: block;
}
body[data-software-view="frame"] .tabs-logo {
  display: block;
}
.social-links {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 12px;
}
.social-links a {
  color: #dd8022;
  transition: color 0.2s;
  display: flex;
}
.social-links a:hover { color: #fff; }
.social-links svg {
  width: 24px;
  height: 24px;
}
.tab {
  flex: 0 0 auto;
  padding: 14px 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1rem;
  font-family: inherit;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.tab:hover { color: #fff; }
.tab.active {
  color: #fff;
  border-bottom-color: #629aa9;
}

.tab-content {
  flex: 1;
  display: none;
  min-height: 0;
}
.tab-content.active { display: flex; }
#music.tab-content.active { display: block; }
.tab-content > iframe {
  width: 100%;
  flex: 1;
  border: none;
  background: #fff;
  min-height: 70vh;
}

.album-embeds {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px 50px;
  flex-wrap: wrap;
}
.album-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.album-embeds iframe {
  border: 0;
  width: 350px;
  height: 620px;
}
.vinyl-link {
  margin-top: 10px;
  color: #888;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}
.vinyl-link:hover {
  color: #fff;
}

.software-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* background: #F8F8F8; */
  background: #121212;
  color: #333;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
body[data-software-view="frame"] .banner { display: none; }
.software-page[data-view="grid"] .tile-grid { display: grid; }
.software-page[data-view="grid"] .software-frame { display: none; }
.software-page[data-view="frame"] .tile-grid { display: none; }
.software-page[data-view="frame"] .software-frame {
  display: block;
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
  min-height: 70vh;
}
.software-page .tile-grid { padding: 60px 40px; }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 368px);
  gap: 40px;
  justify-content: center;
}
.tile {
  text-align: left;
  text-decoration: none;
  color: #333;
  display: block;
  width: 368px;
}
.tile-cover {
  position: relative;
  width: 368px;
  height: 368px;
  background: #ddd url("plock.png") left top / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.tile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.25;
  transition: opacity 0.2s;
  pointer-events: none;
}
.tile:hover .tile-cover::after { opacity: 0.1; }
.tile-title {
  display: block;
  color: #2DBAE1;
  font-size: 0.95rem;
  line-height: 1.3;
}
.tile-artist {
  display: block;
  color: #666;
  font-size: 0.85rem;
  margin-top: 2px;
}
.stolperbeats-cover {
  background: #1a1e2e url("tripwire.png") center top / cover no-repeat !important;
}
.tile:hover .tile-title { text-decoration: underline; }
