body {
  background-image: url("../images/background-gradient.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  height: 100vh;
}

header .logo {
  max-height: 59px;
}

@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1200px;
  }
}

.section {
  margin-top: 100px;
}

.views-more {
  display: inline-block;
  background-size: 200% auto;
  background-position: left;
  color: #fff;
  border-radius: 50px;
  background: linear-gradient(90deg, #9dd2fa 0%, #d57bfb 100%);
  padding: 17px 23px;
  border: none;
  transition: opacity 0.2s;
  font-size: 1.125rem;
  line-height: 24px;
  font-weight: 600;
  max-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-position 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card .card-img-top {
  border-radius: 12px;
}

h2 {
  font-size: 1.625rem;
  font-weight: 700;
}

.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

#wrap {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
}

.btn-custom-secondary {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 500;
  color: #333 !important;
  padding: 0.5rem 1.75rem;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.3s ease;
  backdrop-filter: blur(10px);
  background-color: #eee;
}

.btn-custom-secondary:hover {
  color: #333 !important;
  background-color: #eee;
}

.btn-custom-primary {
  background: linear-gradient(90deg, #6dd5fa, #c579fb);
  font-size: 1.125rem;
  font-weight: 500;
  color: #fff !important;
  padding: 0.5rem 1.75rem;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-custom-primary:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #9dd2fa 0%, #d57bfb 70%, #d57bfb 100%);
  background-position: right;
  backdrop-filter: blur(30px);
  box-shadow: 0px 10px 30px 0px rgba(213, 123, 251, 0.4);
}
.vip-and-noti {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: -458px;
  transition: right 0.4s ease-in-out;
  z-index: 1050;
}

.vip-and-noti.active {
  right: 0;
}

.vip-and-noti .vip-and-noti-wrapper {
  position: relative;
  /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); */
  border-radius: 8px 0 0 8px;
}

.vip-and-noti .vip-and-noti-btn-group {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  left: -48px;
  flex-direction: column;
}

.vip-and-noti .vip-and-noti-btn-group button {
  width: 48px;
  height: 48px;
  border-radius: 8px 0 0 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vip-and-noti .vip-and-noti-btn-group button.vip-and-noti-closer {
  background-color: #6c757d;
  position: absolute;
  /* top is set by JS */
}

.vip-and-noti .vip-and-noti-btn-group button.vip-and-noti-closer img {
  width: 24px;
  height: 24px;
}

.vip-and-noti .vip-and-noti-btn-group button:first-child {
  background-color: #d57bfb;
}

.vip-and-noti .vip-and-noti-btn-group button:last-child {
  background-color: #6750a4;
}

.vip-and-noti .vip-and-noti-btn-group button:first-child img {
  width: 28px;
  height: 28px;
}

.vip-and-noti .vip-and-noti-btn-group button:last-child img {
  width: 40px;
  height: 40px;
}

.vip-and-noti .vip-and-noti-content {
  width: 80vw;
  max-width: 458px;
  height: auto;
  min-height: 366px;
  background-color: white;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
}

.vip-and-noti-pane {
  display: none;
}

.vip-and-noti-pane.active {
  display: block;
}

.notification-list {
  list-style: none;
  margin: 0;
  padding-left: 0px;
  max-height: 320px;
  overflow-y: auto;
}

.notification-list li {
  margin-bottom: 8px;
}

.notification-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #333;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.notification-list li:last-child a {
  border-bottom: none;
}

.notification-list li a:hover .noti-title {
  color: #d57bfb;
}

.noti-icon-pin {
  border-radius: 50%;
  flex-shrink: 0;
}

.noti-icon-pin.icon-pin {
  transform: rotate(15deg);
  font-size: 20px;
}

.noti-icon-pin.green {
  background-color: #0ac949;
  width: 11px;
  height: 11px;
}

.noti-date {
  background-color: #e683d2;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: max-content;
}

.noti-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.noti-view-more {
  text-decoration: none;
  color: #6750a4;
  font-weight: 600;
}

.vip-story-list .vip-story-item .story-title-wrapper {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vip-story-list .vip-story-item .story-title {
  vertical-align: middle;
}

.vip-story-list .vip-story-item:hover .story-title {
  color: #d57bfb;
}

.vip-content-wrapper .badge.border {
  background-color: #f8f9fa;
  color: #212529;
  border-color: #dee2e6 !important;
}

.vip-content-wrapper .badge.border:hover {
  background-color: #e2e6ea;
}

.flex-1 {
  flex: 1;
}

/* Tiêu đề */
h1 {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.23;
  letter-spacing: 0;
  vertical-align: middle;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  white-space: normal;
  word-break: break-word;
}
h2 {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.23;
  letter-spacing: 0;
  vertical-align: middle;
  text-transform: uppercase;
  margin-bottom: 1rem;
  white-space: normal;
  word-break: break-word;
}

.title-btn-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.title-btn-flex a {
  text-transform: capitalize;
}

.title-btn-flex h2 {
  margin-bottom: 0;
}

.hero-section .slider-img {
  min-height: 330px;
}
.hero-section .slider-img #slider {
  height: 100%;
}

.list-comic-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 211 / 280;
  object-fit: cover;
}

.page-link {
  color: black;
}
.page-link:not(.active):hover {
  color: #d57bfb;
}
.active > .page-link,
.page-link.active {
  background-color: #d57bfb;
  border-color: #d57bfb;
}
header .header-username {
  padding: 0rem;
  font-size: 1rem;
  gap: 5px !important;
  text-align: left;
  background: transparent;
  border: unset;
  gap: 0 !important;
}
header .header-username img {
  object-fit: cover;
  z-index: 10;
  width: 45px !important;
  height: 45px !important;
  border: 1px solid #fff;
  border-radius: 50%;
}
header .header-username span {
  padding: 9px 20px;
  padding-left: 20px;
  background: red;
  line-height: 1;
  margin-left: -14px;
  border-bottom-right-radius: 26px;
  border-top-right-radius: 26px;
  color: #fff;
  background: linear-gradient(90deg, #9dd2fa, #d57bfb);
  text-wrap: nowrap;
  text-overflow: ellipsis;
}
.section-list-top
  .container
  .custom-card
  .list-group
  .list-group-item
  .story-title {
  margin-bottom: 0;
}
.section-list-top
  .container
  .custom-card
  .list-group
  .list-group-item
  .author-name {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
@media (max-width: 1366px) and (min-width: 1280px) {
  .section-list-top .container {
    max-width: 1000px;
  }
  .section-list-top .container .custom-card .list-group .list-group-item * {
    font-size: 0.9rem;
  }
  .section-list-top
    .container
    .custom-card
    .list-group
    .list-group-item
    .custom-genre {
    font-size: 0.7rem;
  }
  .section-list-top
    .container
    .custom-card
    .list-group
    .list-group-item
    .label-item
    *,
  .section-list-top
    .container
    .custom-card
    .list-group
    .list-group-item
    .author-name,
  .section-list-top
    .container
    .custom-card
    .list-group
    .list-group-item
    .story-stats
    *,
  .section-list-top
    .container
    .custom-card
    .list-group
    .list-group-item
    .views-story
    * {
    font-size: 0.8rem;
  }
  .section-list-top
    .container
    .custom-card
    .list-group
    .list-group-item
    .views-icon {
    width: 15px;
  }
  .ranking-tabs {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .ranking-tabs .btn-outline-primary {
    padding: 0.2rem;
  }
}
@media (max-width: 1024px) {
  .section-list-top .rank {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 576px) {
  .title-btn-flex {
    flex-direction: column;
    align-items: baseline;
    gap: 0.5rem;
  }
  .section {
    margin-top: 4rem;
  }
  .slider-img {
    min-height: 150px;
  }
  .vip-and-noti .vip-and-noti-content {
    max-height: 500px;
    overflow-y: scroll;
  }

  #storyDetail > .row {
    --bs-gutter-x: 0;
  }
  #storyDetail {
    padding-top: 1rem !important;
  }
  #storyDetail .picture_story {
    margin-bottom: 3rem;
    text-align: center;
  }
  #storyDetail .picture_story img {
    max-width: 300px;
  }
  #chapterDetail h1 {
    margin-bottom: 0;
    font-size: 5vw !important;
  }
  #chapterDetail h2 {
    margin-bottom: 0;
    font-size: 6vw !important;
  }

  .actions-story-user {
    max-width: 200px;
    margin: auto;
  }
  .footer {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  .footer > .container > .row {
    gap: 1rem !important;
  }
  #description *,
  #toggle-description {
    font-size: 1rem !important;
  }
}

@media print {
  body {
    display: none !important;
  }
}
