html {
  scroll-behavior: smooth;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0 20px;
}

.logo {
  width: 54px;
  height: 54px;
}

.user-login {
  display: flex;
  direction: ltr;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #5b6879;
  align-items: center;
}

.user-login .icon {
  padding: 8px;
  border-radius: 9999px;
  background-color: #f9f4ff;
}

.credit {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 8px 16px;
  border: 1px solid #eef1f3;
  color: #02476f;
  font-size: 16px;
  font-weight: 600;
  direction: ltr;
  border-radius: 16px;
}

.credit > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero {
  padding: 18px;
  padding-bottom: 66px;
  background: linear-gradient(
    180deg,
    #f9f4ff 0%,
    #f9f4ff 50%,
    rgba(249, 244, 255, 0.8) 100%
  );
  border-radius: 24px 24px 0px 0px;
  margin: 20px 16px 0 16px;
  position: relative;
}

.hero .title {
  font-size: 22px;
  font-weight: 740;
  color: #493a5f;
  padding: 5px 6px;
  line-height: 35px;
  font-variation-settings: "DOTS" 4;
}

.hero .description {
  font-size: 14px;
  font-weight: 400;
  color: #80758e;
  padding: 4px 8px 0 8px;
  position: relative;
  width: fit-content;
}

.description img {
  position: absolute;
  left: -30px;
  top: 4px;
}

.hero .search-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  padding: 14px;
  gap: 10px;
  font-size: 13px;
  line-height: normal;
  outline-offset: 3px;
  outline-width: 0px;
  outline-style: solid;
  outline-color: #e8d2ff;
  transition: all 100ms;
}

.hero .search-box > input {
  width: 100%;
}

.hero .search-box:has(input:focus) {
  outline-width: 3px;
}

.hero .wave {
  width: fit-content;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}

.hero .hero-head {
  display: flex;
  flex-direction: column;
}

.hero .hero-head > div:first-child {
  padding: 5px 6px;
}

.hero .hero-head .hero-head-img {
  aspect-ratio: 1/1;
}

.hero .head-content {
  flex-grow: 1;
}

.hero .head-content .content-text {
  display: flex;
  justify-content: space-between;
}

.search-box input[type="text"]::placeholder {
  color: #bbbbbb;
}

main {
  margin-top: 18px;
  padding-bottom: 80px;
}

.container {
  padding: var(--container-padding);
  margin: auto;
}

.top-items {
  display: flex;
  align-items: center;
  margin-top: -28px;
  justify-content: center;
  gap: 25px;
  padding: 0 16px;
  position: relative;
  user-select: none;
}

.top-items .item .icon {
  border-radius: 28px;
  transform: rotate(45deg);
  width: 64px;
  height: 64px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-items .item {
  width: fit-content;
}

.top-items > img {
  flex-grow: 1;
}

.top-items .item:first-child .icon {
  border-top-right-radius: 0;
}

.top-items .item:last-child .icon {
  border-bottom-left-radius: 0;
}

.top-items .item .icon img {
  transform: rotate(-45deg);
}

.top-items .item .icon img {
  width: 28px;
}

.top-items .item .content {
  display: flex;
  flex-direction: column;
  row-gap: 0.25rem;
  align-items: center;
  margin-top: -6px;
  z-index: 1;
  position: relative;
}

.top-items .item-title {
  font-size: 14px;
  font-weight: 600;
  color: #434343;
}

.top-items .item .content span:last-child {
  font-size: 12px;
  color: #8b898c;
}

@media screen and (min-width: 576px) {
  .hero {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
  }
}

.banner {
  margin-top: 18px;
  user-select: none;
}

.banner .carousel-cell {
  width: 335px;
}

.banner .carousel-cell:not(.is-selected) > img {
  filter: blur(4px);
}

.banner .carousel-cell img {
  transition: all 250ms;
  border-radius: 22px;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.05), 0px 0px 3px -1px rgba(0, 0, 0, 0.05);
}

.banner .flickity-page-dots {
  bottom: 18px;
}

.flickity-page-dots .dot.is-selected {
  width: 18px !important;
}

.flickity-page-dots .dot {
  border-radius: 9999px;
  width: 7px !important;
  height: 7px !important;
  background-color: #fff !important;
  margin: 0 4px !important;
  transition: all 0.3s ease-in-out;
}

.books .book {
  color: #434343;
  font-size: 12px;
  font-weight: 500;
  width: 115px;
  box-sizing: content-box;
}

.books .carousel-cell:not(:last-child),
.study-priodes .carousel-cell:not(:last-child),
.media-products .carousel-cell:not(:last-child) {
  padding-left: 0 !important;
}

.books .book > img {
  width: 115px;
  height: 165px;
  border-radius: 10px;
  box-shadow: 0 6px 12px -3px rgba(0, 0, 0, 0.1), 0 4px 2px -2px rgba(0, 0, 0, 0.08);
  outline: 1px solid #52555712;
}

.books .book span {
  margin-top: 8px;
  width: 100%;
  text-align: center;
  display: inline-block;
  text-overflow: ellipsis;
  overflow: hidden;
  text-wrap: nowrap;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.top-bar .title {
  font-size: 14px;
  font-weight: 700;
  color: #474747;
  padding-right: 20px;
}

main section .more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #999999;
  padding-left: 20px;
}

.study-priod {
  width: 90%;
  min-width: 310px;
  overflow: hidden;
  border-radius: 25px;
  border: 2px solid #fff;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05), 0 0px 3px -1px rgba(0, 0, 0, 0.05);
  background: #fff;
  max-width: 320px;
  user-select: none;
}

.study-priod:hover {
  cursor: grab;
}

.study-priod:active {
  cursor: grabbing;
}

.study-priod img.sp-image {
  height: 120px;
  width: 100%;
  object-fit: cover;
  max-width: 320px;
}

.sp-title {
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translate(0, -5px);
}

.sp-profile {
  width: 52px;
  height: 52px;
  border: 3px solid #fff;
  object-fit: cover;
  border-radius: 9999px;
  transform: translate(0, -10px);
}

.sp-title .sp-text {
  font-size: 14px;
  font-weight: 600;
  color: #444444;
}

.sp-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sp-followers {
  display: flex;
  align-items: center;
  direction: ltr;
}

.sp-followers .sp-follower {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 9999px;
  margin-left: -10px;
  border: 2px solid #fff;
}

.sp-followers .sp-follower-more {
  background-color: #e9eaee;
  color: #aeb2c0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-bottom-bar .sp-text {
  display: flex;
  gap: 9px;
  color: #828d99;
  font-size: 12px;
  font-weight: 500;
}

.sp-content {
  padding: 0 16px 12px 20px;
}

.bvp-progress-bar {
  display: inline-block;
  width: 100%;
  height: 5px;
  background: #000;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: all 250ms;
  cursor: default;
}

.bvp-progress-bar:hover {
  height: 10px;
}

.bvp-progress-bar:hover .thumbler {
  height: 50%;
}

.bvp-progress-bar .thumbler {
  content: "";
  position: absolute;
  left: 0;
  width: 0%;
  height: 2px;
  border-radius: 0 999px 999px 0;
  top: 0;
  transition: width 250ms linear;
  background-color: #fff;
}

.media-production {
  width: 300px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.05), 0 0 3px -1px rgba(0, 0, 0, 0.2);
  gap: 12px;
  border-radius: 14px;
  background: #fff;
}

.media-production .mp-content {
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
}

.carousel-cell:nth-child(1) .mp-senario {
  color: #efb156;
}

.carousel-cell:nth-child(2) .mp-senario {
  color: #28c4cc;
}

.carousel-cell:nth-child(3) .mp-senario {
  color: #545865;
}

.carousel-cell:nth-child(4) .mp-senario {
  color: #a86ce4;
}

.mp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-footer .mp-senario {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.mp-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #434343;
  font-size: 12px;
  font-weight: 600;
}

.mp-user img {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
}

.media-production .note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  height: 100%;
  background: url("../images/notebook.jpg");
}

.media-production .note .note-text {
  height: 100%;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  color: #4b4a4a;
}

.media-production .note .note-info {
  width: fit-content;
  align-self: flex-end;
  background-color: #fff;
  border-radius: 9999px;
  font-size: 11px;
  color: #949494;
  padding: 3px 8px;
}

.media-production .mp-picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-production .mp-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-video-player {
  position: relative;
}

.book-video-player .bvp-play-control-btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #00c0c4;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  transition: opacity 250ms;
}

.book-video-player .bvp-play-control-btn img {
  width: 17px;
}

.book-video-player.pause .bvp-pcb-pause {
  display: none;
}

.book-video-player.play .bvp-pcb-play {
  display: none;
}

.mp-content.audio-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 8px;
  background-color: #f7f9fa;
  padding: 10px;
}

.mp-content.audio-content .audio-content-text {
  height: 100%;
  overflow: hidden;
  font-size: 12px;
  color: #4b4a4a;
}

/* book audio */
.baudio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  direction: ltr;
}

.baudio .baudio-btn {
  min-width: 38px;
  min-height: 38px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #28c4cc;
}

.baudio .baudio-btn img:not(.show) {
  display: none;
}

.baudio .baudio-btn img {
  width: 16px;
}

.baudio .baudio-time {
  color: #434343;
  font-size: 12px;
  font-weight: 500;
}

.baudio #bookaudio-container {
  width: 100%;
  height: 40px;
}

@media screen and (min-width: 768px) {
  .hero .content-text-img {
    display: none;
  }

  .side-menu {
    position: absolute !important;
    height: 100vh !important;
  }

  .hero .hero-head-img {
    display: block;
    width: 200px;
  }

  .banner .carousel-cell {
    width: 470px;
  }

  .banner .carousel-cell img {
    width: 470px;
  }
}

.search {
  position: relative;
  margin-top: 35px;
}

.search-result {
  background-color: #fff;
  border-radius: 0 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px;
  padding-top: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translate(0, 100%);
  z-index: 8;
  border-top: 1px solid #eef1f3;
  overflow: hidden;
  width: 100%;
  max-height: 440px;
}

#search-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  overflow: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding-top: 20px;
  position: relative;
}

.search-result .sr-item {
  display: flex;
  gap: 16px;
  padding: 0 4px;
}

.sr-item .sr-book-image {
  width: 70px;
  min-width: 70px;
  height: 104px;
  object-fit: cover;
  border-radius: 10px;
}

.sr-item-content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.sr-item-content .name {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sr-item-content .name :first-child {
  font-size: 14px;
  font-weight: 600;
  color: #434343;
}

.sr-item-content .name :last-child {
  font-size: 12px;
  font-weight: 400;
  color: #707070;
}

.sr-item .types {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: #828d99;
  font-weight: 500;
  align-items: center;
}

.sr-item .types img {
  width: 16px;
}

.sr-item .type {
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-result .sr-advanced-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: #f9f4ff;
  border-radius: 10px;
}

.sr-advanced-search > div {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #a86ce4;
  font-size: 13px;
  line-height: normal;
  font-weight: 400;
}

.search .skeleton-title {
  min-width: 160px;
}

.search .skeleton-description {
  min-width: 100px;
}

.search .skeleton-text {
  min-width: 300px;
}

.search .skeleton-minitext {
  min-width: 35px;
}

.empty-search-result {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  font-size: 16px;
  font-weight: 700;
  color: #c3d1dd;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}