/* ========================================
   base / reset
   文書全体の初期化
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body {
  margin: 0;
  background: #ffffff;
  color: #222222;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

/* ========================================
   basic elements
   基本要素の初期化
======================================== */
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   page frame
   共通外枠（header / main / footer）
======================================== */
header,
footer {
  min-height: 1px;
}

main {
  width: 100%;
  max-width: 690px;
  margin: 0 auto;
  padding: 16px;
}

/* ========================================
   section flow
   main 配下の section 縦積み
======================================== */
main > section + section {
  margin-top: 20px;
}

/* ========================================
   transport core
   transport ボタン列の共通核
======================================== */
.top-player-transport,
.player-transport {
  display: flex;
}

/* ========================================
   progress core
   進行表示バー一式の共通核
======================================== */
.top-player-progress-bar,
.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #ddd;
  overflow: hidden;
}

.top-player-progress-fill,
.progress-fill {
  height: 100%;
  background: #333;
}

.top-player-progress-time,
.progress-time {
  margin-top: 4px;
  font-size: 12px;
  text-align: right;
}

/* ========================================
   artwork core
   アートワーク画像と履歴サムネの共通核
======================================== */
.artwork-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-item {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.history-thumb {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: #efefef;
}

.history-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 26px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #222222;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  pointer-events: none;
}
