* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #1a1a1a;
  color: #e0e0e0;
  line-height: 1.4;
}
a {
  color: #6eb5ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  padding: 0.75rem 1rem;
  background: #252525;
  border-bottom: 1px solid #333;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}
.site-title a {
  color: #fff;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-nav a {
  padding: 0.25rem 0.5rem;
}
.search-form {
  display: flex;
  margin-left: auto;
}
.search-form input {
  padding: 0.35rem 0.5rem;
  border: 1px solid #444;
  background: #333;
  color: #e0e0e0;
  border-radius: 4px 0 0 4px;
  min-width: 160px;
}
.search-form button {
  padding: 0.35rem 0.75rem;
  border: 1px solid #444;
  border-left: none;
  background: #444;
  color: #e0e0e0;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
.search-form button:hover {
  background: #555;
}

/* Main */
main {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.page-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.video-card {
  background: #252525;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #333;
}
.video-card a {
  display: block;
  color: inherit;
}
.video-card a:hover {
  text-decoration: none;
}
.video-card .thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}
.video-card .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card .thumb-wrap .preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.video-card:hover .thumb-wrap .preview-video {
  display: block;
}
.video-card:hover .thumb-wrap img {
  display: none;
}
.video-card .info {
  padding: 0.5rem 0.75rem;
}
.video-card .title {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card .duration {
  font-size: 0.8rem;
  color: #888;
}

/* Pagination */
.pagination {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.pagination a,
.pagination span {
  padding: 0.4rem 0.75rem;
  background: #252525;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 0.9rem;
}
.pagination a:hover {
  background: #333;
  text-decoration: none;
}
.pagination .current {
  background: #444;
  color: #fff;
  cursor: default;
}
