.frobin-player {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 420px;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  gap: 10px;
  border: 1px solid #222;
  padding: 12px;
  background: #000;
  color: #eee;
  box-sizing: border-box;
}

.frobin-art {
  background-size: cover;
  background-position: center;
  border: 1px solid #333;
  min-height: 0; /* allow grid to drive size */
}

.frobin-toggle {
  width: 100%;
  border: 1px solid #444;
  background: #111;
  color: #eee;
  padding: 10px;
  cursor: pointer;
}

.frobin-time {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  font-family: system-ui, sans-serif;
  font-size: 14px;
}

.frobin-bar {
  height: 8px;
  background: #222;
  border: 1px solid #333;
  position: relative;
  cursor: pointer;
}

.frobin-fill {
  height: 100%;
  width: 0%;
  background: #4ad;
}

.frobin-share {
  display: flex;
  gap: 12px;
  justify-content: center;
  font-size: 14px;
}
.frobin-share a { color: #9ed; text-decoration: none; }
.frobin-share a:hover { text-decoration: underline; }

.frobin-audio { display:none; }

.frobin-player {
  position: relative;
  overflow: hidden;
}

.frobin-player > * { position: relative; z-index: 1; }

.frobin-player.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--frobin-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

/* Transparent (dim) overlay of artwork */
.frobin-player.bg-overlay::before {
  opacity: 0.22;
  filter: none;
}

/* Blurred background artwork */
.frobin-player.bg-blur::before {
  opacity: 0.55;
  filter: blur(18px);
  transform: scale(1.08);
}

.frobin-desc {
  font-size: 13px;
  line-height: 1.4;
  color: #d7e5ec;
  background: rgba(0,0,0,.35);
  border: 1px solid #223;
  padding: 8px;
  border-radius: 4px;
}

/* Ensure the art thumbnail remains square */
.frobin-art {
  aspect-ratio: 1 / 1;
  width: 100%;
  background-size: cover;
  background-position: center;
}

/* Layout modes */
.frobin-player.layout-square {
  max-width: 420px;
  margin: 0 auto;
}

.frobin-player.layout-full {
  width: 100%;
  max-width: none;
}

/* Adjustable padding — already set inline by block attribute */
.frobin-player {
  box-sizing: border-box;
}


