/* 职责：Library 静态界面的分段筛选、日期与媒体缩略图布局。 */
.library-toolbar {
  width: 56px;
}
.library-segments {
  position: absolute;
  top: 169px;
  left: 16px;
  right: 16px;
  height: 32px;
  border-radius: 20px;
  background: #e3e3e9;
  padding: 2px;
  display: flex;
  align-items: stretch;
}
.library-segments span {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}
.library-segments .active {
  background: white;
  border-radius: 18px;
}
.library-date-heading {
  position: absolute;
  top: 220px;
  left: 16px;
  font-size: 19px;
  line-height: 25px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: #8e8e93;
}
.media-grid {
  position: absolute;
  top: 263px;
  left: 16px;
  right: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.media-tile {
  position: relative;
  height: 128px;
  border-radius: 16px;
  background: white;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.media-tile img {
  display: block;
  width: 100%;
  height: auto;
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 4px 6px;
  border-radius: 8px;
  background: #151515b3;
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  line-height: 20px;
}
.video-duration svg {
  width: 18px;
  height: 15px;
}
.tab {
  flex: 1;
}
.tab.selected {
  flex: 1;
}
