/* Complete redesign with all CSS embedded - matching reference image with project green theme */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  overflow-x: hidden;
  padding-bottom: 70px;
  margin-top: 50px;
}

.filter-btn {
  text-decoration: none;
  color: inherit;
}

.filter-btn:hover {
  text-decoration: none;
}

.video-auth-grid {
  column-count: 2;
  column-gap: 10px;
   padding: 10px 10px 0 10px;
    padding-bottom: 0;
}

@media (min-width: 768px) {
  .video-auth-grid {
    column-count: 3;
  }
}

@media (min-width: 1200px) {
  .video-auth-grid {
    column-count: 4;
  }
}

.video-auth-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 0;
  border: none;
  margin-bottom: 10px;
  break-inside: avoid;
  display: inline-block;
  width: 100%;
}

.video-auth-image {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.video-auth-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, rgb(248 186 87 / 70%) 0%, rgb(231 71 140 / 66%) 100%);
  padding: 3px 6px;
  border-radius: 3px;
  align-items: center;
  font-size: 10px;
  color: #fff;
  font-weight: 500;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-auth-badge svg {
  width: 13px;
  height: 13px;
  margin-right: 0px;
  fill: #FFD700;
}

.badge-container {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: row;
  gap: 6px;
  z-index: 5;
}

.badge-container .video-auth-badge {
  position: relative;
  top: 0;
  left: 0;
}

.pin-badge {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 90, 90, 0.9) 0%, rgba(220, 60, 60, 0.85) 100%);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #fff;
  font-weight: 500;
}

.pin-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.video-auth-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 5px 5px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  gap: 4px;
}

.video-auth-content > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.video-auth-title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.video-auth-price-row {
  display: flex;
  align-items: baseline;
  font-size: 10px;
  color:#fff;
  flex-shrink: 0; 
  padding: 5px 8px;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.6);
}

.video-auth-price-val {
  margin-left: 4px;
  color: #ffd700;
  font-weight: 600;
  font-size: 10px;
}

.video-auth-tags {
  display: flex;
  margin-top: 6px;
  flex-wrap: wrap;
}

.video-auth-tag {
  font-size: 11px;
  padding: 3px 8px;
  margin-right: 6px;
  margin-bottom: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}
.video-auth-tags .video-auth-tag:last-child {
       margin-right:0;
    }

@media (max-width: 768px) {
  .video-auth-grid {
    column-count: 2;
    padding-bottom: 0;
  }

  .video-auth-content {
  }

  .video-auth-title {
    font-size: 13px;
  }





  .video-auth-tag {
    font-size: 10px;
    padding: 3px 6px;
  }
}

@media (max-width: 375px) {
  .video-auth-grid {
    column-count: 2;
    gap: 8px;
     padding: 10px 10px 0 10px;
  }

  .video-auth-content {
    padding: 8px;
  }

  .video-auth-title {
    font-size: 13px;
  }



  .video-auth-tag {
    font-size: 9px;
    padding: 3px 6px;
  }
}

.app-container {
  width: 100%;
  margin: 0 auto;
  background: var(--color-bg-page);
  margin-bottom: 30px;
}

.banner-section {
  position: relative;
  width: 100%;
  padding: 0;
  margin-bottom: 8px;
}

.banner-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 5px;
}

.banner-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pagination-section {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border-top: 1px solid var(--color-border-light);
  margin-top: 20px;
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid var(--color-border-medium);
  background: #fff;
  color: var(--color-text-secondary);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 217, 163, 0.3);
}

.pagination-select {
  padding: 8px 12px;
  border: 1px solid var(--color-border-medium);
  background: #fff;
  color: var(--color-text-primary);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 80px;
}

.pagination-select:hover {
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .banner-wrapper {
    height: 160px;
  }

  .pagination-section {
    padding: 16px 12px;
    gap: 8px;
  }

  .pagination-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .pagination-select {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 70px;
  }
}

@media (max-width: 480px) {
  .banner-wrapper {
    height: 130px;
  }

  

  .filter-label {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-label-text {
    margin-bottom: 8px;
  }

  .pagination-section {
    padding: 12px 8px;
    gap: 6px;
  }

  .pagination-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .pagination-select {
    padding: 5px 8px;
    font-size: 11px;
    min-width: 60px;
  }
}

.privacy-toggle {
    z-index: 10;
}

.message-btn {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background: var(--gradient-primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 217, 163, 0.3);
}

.message-btn svg {
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

/* ===== Filter Section 筛选区域 ===== */
.filter-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.filter-container {
  padding: 12px;
  background: #fff;
}

.filter-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  min-height: 36px;
}

.filter-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  min-width: 54px;
  flex-shrink: 0;
  line-height: 36px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  max-height: 36px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-right: 80px;
  align-items: flex-start;
  margin-right: 8px;
}

.filter-options.expanded {
  max-height: 500px;
}

.filter-option {
  padding: 6px 12px;
  background: #f5f5f5;
  border: 1px solid transparent;
  border-radius: 18px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 36px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 8px;
  margin-bottom: 8px;
  text-decoration: none;
}

.filter-option:hover {
  background: rgba(0, 217, 163, 0.08);
  border-color: rgba(0, 217, 163, 0.3);
  color: var(--color-primary);
}

.filter-option.active {
  background: linear-gradient(135deg, rgba(248 87 87 / 70%) 0%, rgba(255 157 0 / 65%) 100%);
  color: #fff;
  border-color: transparent;
  /* box-shadow: 0 2px 8px rgba(0, 217, 163, 0.3);  */
  font-weight: 500;
}

.filter-toggle-btn {
    position: absolute;
    right: 0;
    top: 0;
    padding: 7px 14px;
    background: #fff;
    color: rgb(255 157 0);
    border: 1px solid rgb(255 157 0 / 86%);
    border-radius: 18px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    height: 36px;
    white-space: nowrap;
}

.filter-toggle-btn svg {
  width: 14px;
  height: 14px;
  margin-left: 0px;
  transition: transform 0.3s ease;
}

.filter-toggle-btn.expanded svg {
  transform: rotate(180deg);
}

@media screen and (max-width: 768px) {
  .filter-container {
    padding: 10px;
  }

  .filter-row {
    margin-bottom: 5px;
    padding-bottom: 5px;
  }

  .filter-label {
    min-width: 50px;
    font-size: 13px;
  }

  .filter-option {
    padding: 6px 12px;
    font-size: 12px;
    height: 32px;
    margin-right: 6px;
    margin-bottom: 6px;
  }

  .filter-options {
    max-height: 32px;
    padding-right: 70px;
  }

  .filter-toggle-btn {
    padding: 6px 10px;
    font-size: 11px;
    height: 32px;
  }

  .filter-toggle-btn svg {
    width: 12px;
    height: 12px;
  }
}

@media screen and (max-width: 480px) {
  .filter-label {
    min-width: 42px;
    font-size: 12px;
  }
  
  .filter-option {
    font-size: 12px;
    height: 25px;
    margin-right: 10px;
    margin-bottom: 5px;
  }

  .filter-options {
    max-height: 25px;
    padding-right: 65px;
  }

  .filter-toggle-btn {
    font-size: 10px;
    height: 25px;
    margin-top:5px;
  }
}



.page-label {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.page-select {
  padding: 6px 10px;
  border: 1px solid var(--color-border-medium);
  background: #fff;
  color: var(--color-text-primary);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
