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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f0f;
  color: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: #ff0000;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: #ff0000;
}

/* Main */
.main {
  padding: 30px 0;
  min-height: calc(100vh - 200px);
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
}

.category-filter select {
  padding: 10px 15px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.back-link {
  color: #ff0000;
  text-decoration: none;
  font-weight: 500;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.video-card {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.video-info {
  padding: 15px;
}

.video-info h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #888;
}

.category {
  color: #ff0000;
  font-weight: 500;
}

/* Video Page */
.video-page {
  margin-bottom: 40px;
}

.video-player {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.video-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-details h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.video-details .video-meta {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.video-description,
.video-tags {
  margin-bottom: 20px;
}

.video-description h3,
.video-tags h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.video-description p {
  color: #aaa;
  line-height: 1.8;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: #333;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: #fff;
}

.related-videos {
  margin-top: 40px;
}

.related-videos h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  padding: 10px 15px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
}

.pagination a:hover {
  background: #333;
}

.pagination span.current {
  background: #ff0000;
  border-color: #ff0000;
}

/* Footer */
.footer {
  background: #1a1a1a;
  border-top: 1px solid #333;
  padding: 30px 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  color: #888;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .page-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
