@charset "UTF-8";
.s1 {
  padding-top: 120px;
}

.video-section {
  padding: 16px;
  font-family: "Noto Sans TC", sans-serif;
}

.category-tags {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin-bottom: 12px;
}
.category-tags .tag {
  flex-shrink: 0;
  padding: 6px 12px;
  background: #f0f0f0;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s;
}
.category-tags .tag.active {
  background-color: #90c320;
  color: #fff;
}
.category-tags .tag:hover {
  background-color: #d2d2d2;
}

.sort-dropdown {
  margin-bottom: 16px;
  font-size: 14px;
}
.sort-dropdown label {
  margin-right: 8px;
}
.sort-dropdown select {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.video-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s;
  margin-bottom: 20px;
}
.video-card:hover {
  transform: translateY(-2px);
}
.video-card .thumbnail-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}
.video-card .thumbnail-wrapper img {
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: block;
}
.video-card .title {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.video-card .category {
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}

.btn-outline-secondary {
  padding: 4px 12px;
  border-color: #ccc;
  border-radius: 8px;
}
.btn-outline-secondary:active:focus, .btn-outline-secondary:focus {
  box-shadow: none;
}
.btn-outline-secondary:hover {
  background: #000;
}

.btn-outline-secondary.active {
  background: linear-gradient(to left, #ff8597, #ab65ff, #7587ff, #00db8f);
  background-size: 200%;
  animation: animateGradient 4s ease infinite;
  border-color: transparent;
}

.input-group-text {
  background: transparent;
  border: none;
}

.form-select {
  border-width: 0 0 1px 0;
  border-radius: 0;
  outline: none;
}

.form-select:focus {
  box-shadow: none;
  border-color: #90c320;
}

.embed-responsive-9by16 {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 177.78%;
}
.embed-responsive-9by16 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 16px 0;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 12px;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
  background-color: #90c320; /* 主色調 */
  color: white;
  border-color: #90c320;
}

.pagination a.active, .pagination span.active {
  background-color: #90c320;
  color: white;
  border-color: #90c320;
  pointer-events: none; /* 禁止點擊當前頁 */
}

.pagination a.first,
.pagination a.last,
.pagination a.prev,
.pagination a.next {
  font-weight: bold;
  border: none;
}
.pagination a.first:hover,
.pagination a.last:hover,
.pagination a.prev:hover,
.pagination a.next:hover {
  background: transparent;
  color: #90c320;
}

@media (min-width: 992px) {
  .col-lg-custom-5 {
    width: 20%;
    flex: 0 0 auto;
    padding: 0 12px;
  }
  .video-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
  }
  .video-card p br {
    display: none;
  }
}
@media (max-width: 768px) {
  .video-section {
    margin: 0;
    max-width: 100%;
  }
  .s1 .s1-item {
    display: none;
  }
}
@media (max-width: 576px) {
  .col-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  .pagination a.first, .pagination a.last {
    display: none;
  }
}/*# sourceMappingURL=shorts-list.css.map */