/* UI Style 6 - Layout A */

* {
  box-sizing: border-box;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.video-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: #667eea;
}

.video-card h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #2c3e50;
}

.video-card h3 a {
  color: #2c3e50;
}

.video-card h3 a:hover {
  color: #667eea;
  text-decoration: none;
}

.video-card .meta {
  font-size: 13px;
  color: #999;
  margin: 5px 0;
}

.video-card .genre {
  font-size: 14px;
  color: #666;
  margin: 5px 0;
}

.video-card .oneline {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 10px 0 0 0;
}

.video-card .index {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
}

.video-list .video-card {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  header h1 {
    font-size: 24px !important;
  }

  header p {
    font-size: 14px !important;
  }

  main {
    padding: 0 15px !important;
  }

  article {
    padding: 20px !important;
  }

  article h1 {
    font-size: 24px !important;
  }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #667eea;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: #764ba2;
  transform: translateY(-2px);
}

.back-to-top.show {
  display: flex;
}
