.sp-page-header {
  padding: 20px;
  background-color: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #333;
}
.sp-section-title-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: default;
  margin: 20px auto;
  width: fit-content;
}
.sp-section-title {
  color: #fff;
  font-size: 2em;
  margin: 0;
  transition: none;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(255, 44, 44, 0.3);
}
.sp-section-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #ff2c2c;
  border-radius: 50%;
  font-size: 0.9em;
  flex-shrink: 0;
  padding: 6px;
  box-sizing: border-box;
  min-width: 32px;
  min-height: 32px;
}
.sp-section-emoji i {
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  text-align: center;
}
.sp-section-title-text {
  position: relative;
  display: inline-block;
}
.sp-section-title-text::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ff2c2c, transparent);
}
.sp-section-hover-text {
  display: none !important;
}
.sp-page-header p {
  color: #dbdbdb;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 15px;
}
.sp-page-header p:last-child {
  margin-bottom: 0;
}
.sp-posts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.sp-anime-item,
.sp-dorama-item,
.sp-movie-item,
.sp-series-item,
.sp-telenovela-item {
  background-color: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s;
}
.sp-anime-item:hover,
.sp-dorama-item:hover,
.sp-movie-item:hover,
.sp-series-item:hover,
.sp-telenovela-item:hover {
  transform: none;
  box-shadow: none;
}
.sp-anime-thumbnail-wrapper,
.sp-dorama-thumbnail-wrapper,
.sp-movie-thumbnail-wrapper,
.sp-series-thumbnail-wrapper,
.sp-telenovela-thumbnail-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 150%;
  border-radius: 8px;
  margin-bottom: 0;
}
.sp-anime-thumbnail-wrapper img,
.sp-dorama-thumbnail-wrapper img,
.sp-movie-thumbnail-wrapper img,
.sp-series-thumbnail-wrapper img,
.sp-telenovela-thumbnail-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.sp-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}
.sp-post-type-label,
.sp-post-year-label {
  position: absolute;
  background-color: #28282ac4;
  color: var(--sp-text-color);
  font-weight: 700;
  padding: 0 6px;
  font-size: 1em;
  z-index: 10;
}
.sp-anime-item:hover .sp-overlay,
.sp-dorama-item:hover .sp-overlay,
.sp-movie-item:hover .sp-overlay,
.sp-series-item:hover .sp-overlay,
.sp-telenovela-item:hover .sp-overlay {
  opacity: 1;
}
.sp-overlay-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 176px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translate(-50%, -50%);
}
.sp-overlay-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.sp-post-type-label {
  border-radius: 3px;
  border: 1px solid var(--sp-text-color);
  top: 8px;
  left: 8px;
}
.sp-post-year-label {
  border-radius: 3px;
  border: 1px solid var(--sp-text-color);
  bottom: 8px;
  right: 8px;
}
.sp-entry-title,
.sp-entry-title a {
  text-decoration: none !important;
  font-weight: 400 !important;
}
.sp-entry-header {
  padding: 0;
  margin: 4px 0 0;
  text-align: center;
  min-height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sp-entry-title {
  display: block !important;
  text-align: center !important;
  margin-top: 8px !important;
  font-size: 16px !important;
  color: #333 !important;
  border: none !important;
  box-shadow: none !important;
  outline: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.sp-entry-title a {
  color: var(--sp-text-color) !important;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}
.sp-no-content-message {
  color: #636363;
  font-style: italic;
  text-align: center;
  padding: 40px;
  grid-column: 1/-1;
}
.load-more-button,
.sp-load-more-button {
  background-color: var(--sp-primary-color);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 700;
}
.load-more-button:hover,
.sp-load-more-button:hover {
  background-color: var(--sp-primary-hover);
  transform: translateY(-2px);
}
.loading-spinner,
.sp-loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #fc261f;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: 1s linear infinite sp-spin;
  margin: 20px auto;
}
@keyframes sp-spin {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
.load-more-container,
.sp-load-more-container {
  text-align: center;
  margin-top: 40px;
  padding-bottom: 30px;
}
.no-more-posts,
.sp-no-more-posts {
  text-align: center;
  margin-top: 20px;
  font-style: italic;
  color: #777;
}
@media screen and (max-width: 1024px) {
  .sp-posts-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
  .sp-container {
    padding: 0 20px;
  }
  .sp-section-title {
    font-size: 1.8em;
  }
  .sp-section-emoji {
    width: 28px;
    height: 28px;
    padding: 5px;
  }
  .sp-section-emoji i {
    font-size: 14px !important;
  }
  .sp-entry-title {
    font-size: 15px !important;
  }
}
@media screen and (max-width: 768px) {
  .sp-posts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .sp-container {
    padding: 0 15px;
  }
  .sp-page-header {
    padding: 15px;
    margin-bottom: 30px;
  }
  .sp-section-title {
    font-size: 1.6em;
    gap: 10px;
  }
  .sp-entry-title {
    font-size: 14px !important;
    padding: 3px 2px;
  }
  .sp-post-type-label,
  .sp-post-year-label {
    font-size: 0.8em;
    padding: 3px 6px;
  }
  .sp-section-hover-text {
    display: none;
  }
  .sp-section-emoji {
    width: 24px;
    height: 24px;
    padding: 4px;
  }
  .sp-section-emoji i {
    font-size: 12px !important;
  }
  .sp-anime-thumbnail-wrapper,
  .sp-dorama-thumbnail-wrapper,
  .sp-movie-thumbnail-wrapper,
  .sp-series-thumbnail-wrapper,
  .sp-telenovela-thumbnail-wrapper {
    padding-top: 145%;
  }
  .sp-overlay {
    display: none !important;
  }
  .sp-anime-item:hover .sp-overlay,
  .sp-dorama-item:hover .sp-overlay,
  .sp-movie-item:hover .sp-overlay,
  .sp-series-item:hover .sp-overlay,
  .sp-telenovela-item:hover .sp-overlay {
    opacity: 0;
  }
}
@media screen and (max-width: 480px) {
  .sp-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .sp-container {
    padding: 0 10px;
  }
  .sp-section-title {
    font-size: 1.4em;
    gap: 8px;
  }
  .sp-page-header p {
    font-size: 0.9em;
  }
  .sp-entry-title {
    font-size: 13px !important;
    padding: 2px 1px;
    line-height: 1.2;
  }
  .sp-anime-thumbnail-wrapper,
  .sp-dorama-thumbnail-wrapper,
  .sp-movie-thumbnail-wrapper,
  .sp-series-thumbnail-wrapper,
  .sp-telenovela-thumbnail-wrapper {
    padding-top: 140%;
  }
  .load-more-button,
  .sp-load-more-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}
@media screen and (max-width: 360px) {
  .sp-posts-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .sp-section-title {
    font-size: 1.2em;
  }
  .sp-section-emoji {
    width: 20px;
    height: 20px;
    padding: 3px;
  }
  .sp-section-emoji i {
    font-size: 10px !important;
  }
  .sp-entry-title {
    font-size: 14px !important;
    padding: 4px 2px;
  }
}
