.player-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.player-shell iframe {
  width: 100%;
  height: clamp(400px, 70dvh, 720px);
  min-height: 0;
  border: 0;
}

.player-toolbar {
  min-height: 48px;
  padding: 7px 9px 7px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  background: #171827;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.player-toolbar [data-player-status] {
  margin-right: auto;
  color: #cbc8dc;
  font-size: 12px;
  font-weight: 700;
}

.player-tool {
  min-width: auto;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  color: #fff;
  box-shadow: none;
  font-size: 12px;
}

.player-tool:hover { background: rgba(255,255,255,.16); }
.player-cover { top: 48px; }
.player-cover-icon { font-size: 60px; }

.player-shell.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  height: 100dvh;
  border-radius: 0;
}

.player-shell.is-expanded iframe,
.player-shell:fullscreen iframe,
.player-shell:-webkit-full-screen iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.player-shell:fullscreen,
.player-shell:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}

.player-expanded-open { overflow: hidden; }

@media (max-width: 600px) {
  .player-shell iframe { height: clamp(340px, 65dvh, 560px); }
  .player-tool span { display: none; }
  .player-tool { min-width: 40px; }
}

@media (max-height: 600px) {
  .player-shell iframe { height: calc(100dvh - 48px); }
}
