/* Complete redesign with all CSS embedded - matching reference image exactly */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
  color: #fff;
  overflow-x: hidden;
  padding-bottom: 70px;
  margin-top: 50px;
}
/* 移除筛选项 a 标签的默认样式和下划线 */
.filter-btn {
  text-decoration: none;
  color: inherit;
}

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

.filter-btn:visited {
    /*
  color: inherit;
  */
}

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

@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: 5px;
  overflow: hidden;
  background: #1a1f2e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 0;
  border: none;
  margin-bottom: 8px;
  break-inside: avoid;
  display: inline-block;
  width: 100%;
}

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

.video-auth-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #ce5cf6 0%, rgb(237 157 58 / 50%) 70%);
  backdrop-filter: blur(4px);
  padding: 4px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  font-size: 10px;
  color: #fff;
  font-weight: 600;
  z-index: 5;
}

.video-auth-badge svg {
  width: 14px;
  height: 14px;
  fill: rgba(246 209 92 / 86%)
}

/* 修改标签容器为水平排列，置顶在左，视频认证在右 */
.badge-container {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: row;
  gap: 6px;
  z-index: 5;
}

/* 调整 video-auth-badge 的定位，因为现在在容器内 */
.badge-container .video-auth-badge {
  position: relative;
  top: 0;
  left: 0;
}

/* 添加置顶标识样式 */
.pin-badge {
  position: relative;
  background: linear-gradient(135deg, #ff6b6b 0%, #c92a2a 100%);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255, 107, 107, 0.5);
  box-shadow: 0 2px 4px rgba(201, 42, 42, 0.4);
}

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

.video-auth-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: rgba(15, 20, 25, 0.6);
  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: 600;
  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;
  gap: 4px;
  font-size: 11px;
  color: #aaa;
  flex-shrink: 0; 
}

.video-auth-price-val {
  color: #e3d652;
  font-weight: 600;
  font-size: 13px;
}

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

.video-auth-tag {
  font-size: 10px;
  padding: 3px 6px;
  margin-right: 5px;
  border-radius: 3px;
  background: rgba(30, 30, 40, 0.6);
  color: #ddd;
  border: 0px solid rgba(255, 255, 255, 0.3);
}

/* 添加移动端响应式媒体查询 */
@media (max-width: 768px) {
  .video-auth-grid {
    column-count: 2;
    padding: 10px;
  }

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

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

  .video-auth-price-row {
    font-size: 10px;
  }

  .video-auth-price-val {
    font-size: 12px;
  }

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

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

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

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

  .video-auth-price-row {
    font-size: 9px;
  }

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

/* 移除 max-width 限制，让页面在所有屏幕宽度下都能完整显示 */
.app-container {
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
  min-height: 100vh;
}

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

/* Simplified banner to display single image */
.banner-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 5px;
}

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

/* Pagination styles */
.pagination-section {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(15, 20, 25, 0.6);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 20px;
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

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

.pagination-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.pagination-select {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 80px;
}

.pagination-select:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 添加移动端适配媒体查询 */
@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-section {
    padding: 10px;
  }

  .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: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

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




/* 筛选容器 */
.filter-container {
    margin-top: 55px;
    padding: 10px 10px 0px 10px;
}

/* 筛选行 */
.filter-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.filter-label {
    font-size: 14px;
    color: #9ca3af;
    width: 50px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

/* 选项容器改为单行，超出隐藏 */
.filter-options {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    overflow: hidden;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}

/* 展开时允许换行 */
.filter-options.expanded {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.filter-btn,
.expand-btn {
    text-decoration: none;
    display: inline-block;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 13px;
    color: #9ca3af;
    cursor: pointer;
    white-space: nowrap;
    margin-right: 10px;
    margin-bottom: 0;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* 展开时添加底部间距 */
.filter-options.expanded .filter-btn {
    margin-bottom: 10px;
}

.filter-btn:hover {
    border-color: rgba(138, 100, 200, 0.5);
    color: #c4b5fd;
}

.filter-btn.active {
    border-color: rgba(138, 100, 200, 0.2);
    color: #fff;
    background-color: rgba(138, 100, 200, 0.2);
}

/* 隐藏的选项默认不显示 */
.filter-btn.hidden {
    display: none;
}

.filter-btn.show {
    display: inline-block;
}

/* 展开按钮 */
.expand-btn {
    background-color: transparent;
    border: 1px solid rgba(138, 100, 200, 0.5);
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 13px;
    color: #c4b5fd;
    cursor: pointer;
    white-space: nowrap;
    margin-left: auto;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    text-decoration: none;
}

/* 展开时按钮底部间距 */
.filter-options.expanded .expand-btn {
    margin-bottom: 10px;
}

.expand-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    margin-left: 2px;
}

/* 响应式 */
@media screen and (max-width: 480px) {
    .filter-label {
        width: 38px;
        font-size: 13px;
    }
    
    .filter-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .expand-btn {
        padding: 5px 8px;
        font-size: 12px;
    }
}


