* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: #0f0f0f;
  color: #fff;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background-color: #212121;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #333;
}

.logo-area h1 {
  font-size: 1.4rem;
  color: #ff0000;
}

.btn-admin {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 12px;
  border: 1px solid #444;
  border-radius: 4px;
}

.btn-admin:hover {
  color: #fff;
  border-color: #888;
}

/* Grid Video */
.container {
  padding: 20px 5%;
}

.section-title {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #ddd;
}

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

.video-card {
  background-color: #181818;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.video-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-info {
  padding: 12px;
}

.video-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal Popup Xem Video */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.hidden { display: none !important; }

.modal-content {
  background: #212121;
  width: 92%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 12px;
  overflow-y: auto;
  padding: 20px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

.video-player-container iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  margin-top: 10px;
}

.video-details h2 {
  font-size: 1.1rem;
  margin: 15px 0;
  color: #fff;
}

/* Khung Bình Luận Disqus */
.comments-section {
  margin-top: 20px;
  border-top: 1px solid #383838;
  padding-top: 15px;
}

.comments-section h3 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #aaa;
}
