/* 视频页面专用样式 - videos.css */
/* 注意：大部分通用样式已移至 page.css，此文件仅包含视频页面特有的样式 */

/* 页面标题 */
.page-header {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,246,244,0.9) 100%);
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 32px;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #b81f2d, transparent);
  border-radius: 2px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.page-subtitle {
  color: #6b7280;
  font-size: 16px;
}

/* 筛选和搜索区域 */
.filter-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  border: 1px solid rgba(184, 31, 45, 0.1);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid #e3e6ec;
  border-radius: 8px;
  background: #fff;
  color: #2a2f3a;
  font-size: 14px;
  transition: all .3s ease;
  min-width: 120px;
}

.filter-select:focus {
  outline: none;
  border-color: #b81f2d;
  box-shadow: 0 0 0 3px rgba(184,31,45,0.12);
}

.search-input-small {
  padding: 8px 12px;
  border: 1px solid #e3e6ec;
  border-radius: 8px;
  background: #fff;
  color: #2a2f3a;
  font-size: 14px;
  transition: all .3s ease;
  min-width: 200px;
}

.search-input-small:focus {
  outline: none;
  border-color: #b81f2d;
  box-shadow: 0 0 0 3px rgba(184,31,45,0.12);
}

.filter-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #b81f2d, #9f1925);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all .3s ease;
}

.filter-btn:hover {
  background: linear-gradient(135deg, #9f1925, #8a1520);
  transform: translateY(-1px);
}

/* 视频网格 */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

/* 视频卡片样式 */
.video-card {
  background: #ffffff;
  border: 1px solid rgba(184, 31, 45, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all .3s ease;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(184, 31, 45, 0.15);
}

.media-cover-container {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f8f9fa;
  overflow: hidden;
}

.media-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.video-card:hover .media-cover {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(184, 31, 45, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  backdrop-filter: blur(10px);
  opacity: 0.8;
}

.play-button::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 16px solid white;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.video-card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(184, 31, 45, 1);
  opacity: 1;
}

.duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.media-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.media-director {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 8px;
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
}

.play-count {
  display: flex;
  align-items: center;
  gap: 4px;
}

.play-count::before {
  content: '▶';
  font-size: 10px;
}

.resolution {
  background: linear-gradient(135deg, #f4e9ea, #ede0e1);
  color: #b81f2d;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

/* 分页组件 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 32px 0;
}

.pagination-btn {
  padding: 8px 12px;
  border: 1px solid #e3e6ec;
  background: #fff;
  color: #2a2f3a;
  border-radius: 6px;
  cursor: pointer;
  transition: all .3s ease;
  font-size: 14px;
}

.pagination-btn:hover {
  border-color: #b81f2d;
  color: #b81f2d;
}

.pagination-btn.active {
  background: #b81f2d;
  color: #fff;
  border-color: #b81f2d;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 响应式样式 */
@media (max-width: 768px) {
  .page-header {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-title {
    font-size: 22px;
  }

  .filter-section {
    padding: 16px;
  }

  .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .search-input-small {
    min-width: 100%;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .media-cover-container {
    height: 180px;
  }

  .play-button {
    width: 56px;
    height: 56px;
  }

  .play-button::after {
    border-left: 14px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
  }

  .media-info {
    padding: 16px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 20px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .media-cover-container {
    height: 160px;
  }

  .media-info {
    padding: 14px;
  }

  .media-title {
    font-size: 15px;
  }
}