/**
 * 球员详情页样式
 * 用于显示球员详细统计和投篮视频
 */

/* 球员头部信息 */
.player-header-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.player-header-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
}

.player-header-info h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.player-header-info p {
  margin: 4px 0 0 0;
  font-size: 0.9rem;
  color: #666;
}

/* 统计数据区域 */
.stats-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
}

/* 统计卡片 */
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  color: #333;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
}

.highlight-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.highlight-card h3 {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.stat-value-large {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin: 20px 0;
}

/* 得分细分 */
.scoring-breakdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.scoring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

.scoring-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
}

.scoring-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #4CAF50;
}

/* 投篮统计表格 */
.shooting-stats-table {
  overflow-x: auto;
}

.shooting-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.shooting-table th,
.shooting-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.shooting-table th {
  background: #f8f9fa;
  font-weight: bold;
  color: #333;
}

.shooting-table td {
  color: #666;
}

.shooting-percentage-col {
  color: #4CAF50;
  font-weight: bold;
}

/* 其他统计 */
.other-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.other-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

.other-stat-label {
  font-size: 0.9rem;
  color: #666;
}

.other-stat-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

/* 视频筛选器 */
.video-filter-section {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.video-filter-section h3 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  color: #333;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 0.9rem;
  color: #666;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
  min-height: 44px; /* 触摸目标 */
}

.filter-select:focus {
  outline: none;
  border-color: #667eea;
}

.video-count {
  font-size: 0.85rem;
  color: #999;
}

/* 视频列表 */
.video-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.video-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px; /* 触摸目标 */
}

.video-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.video-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.video-number {
  font-weight: bold;
  color: #667eea;
  font-size: 1.1rem;
}

.video-time {
  font-size: 0.85rem;
  color: #999;
}

.video-details {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.video-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-detail-label {
  font-size: 0.75rem;
  color: #999;
}

.video-detail-value {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

.video-made {
  color: #4CAF50;
}

.video-missed {
  color: #f44336;
}

/* 视频播放器模态框 */
.video-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.video-modal-content {
  position: relative;
  margin: 5% auto;
  max-width: 900px;
  width: 90%;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.video-modal-close:hover {
  color: #ccc;
}

.video-modal-info {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.video-player {
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: 4px;
}

.video-camera-selector {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.camera-button {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  min-height: 44px; /* 触摸目标 */
}

.camera-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.camera-button.active {
  background: #667eea;
  border-color: #667eea;
}

/* 平板及以上 */
@media (min-width: 768px) {
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .scoring-breakdown {
    grid-template-columns: repeat(4, 1fr);
  }

  .video-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 桌面 */
@media (min-width: 1024px) {
  .player-header-avatar {
    width: 100px;
    height: 100px;
  }

  .video-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
