/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #fff;
  color: #0f0f0f;
  line-height: 1.4;
}

/* Block YouTube escape links in embed player (title link, "Watch on YouTube") */
.yt-embed-wrapper {
  position: relative;
}

.yt-embed-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 42px;
  z-index: 10;
  cursor: default;
}

.yt-embed-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 40px;
  z-index: 10;
  cursor: default;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #909090; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #606060; }

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Video Thumbnail - 16:9 aspect ratio */
.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #0f0f0f;
  border-radius: 12px;
  overflow: hidden;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ad slots */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  border: 1px dashed #ccc;
  color: #909090;
  font-size: 12px;
  border-radius: 8px;
  margin: 20px auto;
  overflow: hidden;
}

.ad-slot-leaderboard { width: 100%; max-width: 728px; height: 90px; }
.ad-slot-infeed { width: 100%; height: 100px; }
.ad-slot-rectangle { width: 300px; height: 250px; }

/* Admin table */
.admin-table th, .admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  vertical-align: middle;
}

.admin-tab {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.admin-tab.active {
  background: #0f0f0f;
  color: #fff;
}

.admin-tab:not(.active) {
  background: #f2f2f2;
  color: #0f0f0f;
}

.admin-tab:not(.active):hover {
  background: #e5e5e5;
}

@media (max-width: 768px) {
  .watch-container {
    flex-direction: column !important;
  }
}
