/* ===========================
   VIDEOS PAGE STYLES
=========================== */

/* Page title */
.vp-page-title {
  padding: 10px 0 14px;
  border-bottom: 3px solid var(--teal);
  margin-bottom: 16px;
}
.vp-page-title h1 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
}
.vp-page-title h1 span {
  font-size: 16px;
  font-weight: 400;
  color: #666;
  font-family: sans-serif;
}

/* Two-column layout */
.vp-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: flex-start;
}
.vp-main { min-width: 0; }

/* ===========================
   FEATURED HERO
=========================== */
.vp-hero {
  display: flex;
  gap: 0;
  background: #0d1b2a;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0;
}

.vp-hero-thumb {
  position: relative;
  flex: 0 0 480px;
  display: block;
  overflow: hidden;
}
.vp-hero-thumb img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.vp-hero-thumb:hover img { transform: scale(1.03); }

.vp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.6));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}
.vp-channel-badge { display: none; }
.vp-strip-badge { display: none; }
.vp-card-badge { display: none; }
.vp-hero-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 52px;
  color: #ff0000;
  opacity: 0.92;
  transition: transform 0.2s, opacity 0.2s;
}
.vp-hero-thumb:hover .vp-hero-play {
  transform: translate(-50%, -50%) scale(1.12);
  opacity: 1;
}

.vp-hero-info {
  flex: 1;
  padding: 22px 22px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.vp-hero-tag {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 700;
  align-self: flex-start;
}
.vp-hero-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
}
.vp-hero-desc {
  font-size: 14px;
  color: #bbb;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vp-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff0000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 4px;
  align-self: flex-start;
  transition: background 0.2s;
}
.vp-watch-btn:hover { background: #cc0000; color: #fff; }
.vp-watch-btn i { font-size: 18px; }

/* ===========================
   THUMBNAIL STRIP
=========================== */
.vp-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: #0d1b2a;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-radius: 0 0 8px 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.vp-strip-card {
  display: block;
  padding: 10px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: background 0.2s;
}
.vp-strip-card:last-child { border-right: none; }
.vp-strip-card:hover { background: rgba(255,255,255,0.06); }

.vp-strip-thumb {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #222;
  margin-bottom: 8px;
}
.vp-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vp-strip-play {
  position: absolute;
  bottom: 6px;
  left: 7px;
  font-size: 22px;
  color: #ff0000;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}
.vp-strip-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #e53935;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  font-family: sans-serif;
}
.vp-strip-card p {
  font-size: 13px;
  color: #ccc;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================
   AD BANNER
=========================== */
.vp-ad-banner {
  margin-bottom: 20px;
  text-align: center;
}
.vp-ad-label {
  font-size: 10px;
  color: #aaa;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.vp-ad-728 {
  background: #f0f0f0;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 13px;
  font-family: sans-serif;
  border-radius: 4px;
  border: 1px dashed #ddd;
}

/* ===========================
   ALL VIDEOS SECTION (no categories)
=========================== */
.vp-all-videos {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

/* Section heading — matches site style */
.vp-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.vp-cat-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  position: relative;
  padding-bottom: 6px;
}
/* Teal underline accent on the heading text */
.vp-cat-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
}
/* Left accent bar */
.vp-cat-header::before {
  content: '';
  display: block;
  width: 5px;
  height: 26px;
  background: var(--teal);
  border-radius: 3px;
  flex-shrink: 0;
}

/* Remove underline on all video page links */
.vp-card,
.vp-card:hover,
.vp-strip-card,
.vp-strip-card:hover,
.vp-sb-item,
.vp-sb-item:hover,
.vp-hero-thumb,
.vp-hero-thumb:hover,
.vp-watch-btn:hover {
  text-decoration: none;
}

/* 3-column grid — bigger thumbnails */
.vp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
}

.vp-card {
  display: block;
  text-decoration: none;
  color: var(--text);
}
.vp-card:hover p { color: var(--teal); }

.vp-card-thumb {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #eee;
  margin-bottom: 9px;
}
.vp-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.vp-card:hover .vp-card-thumb img { transform: scale(1.04); }

.vp-card-play {
  position: absolute;
  bottom: 8px;
  left: 9px;
  font-size: 26px;
  color: #ff0000;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}
.vp-card-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: sans-serif;
}
.vp-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
  font-weight: 500;
}

/* ===========================
   RIGHT SIDEBAR
=========================== */
.vp-sidebar {
  position: sticky;
  top: 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Sidebar ad */
.vp-sb-ad { text-align: center; }
.vp-sb-ad-box {
  width: 300px;
  height: 250px;
  background: #f0f0f0;
  border: 1px dashed #ddd;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 13px;
  font-family: sans-serif;
  text-align: center;
  line-height: 1.8;
}

/* Latest videos list */
.vp-sb-latest {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.vp-sb-heading {
  background: var(--teal);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 14px;
  border-left: 4px solid var(--accent);
}
.vp-sb-list { padding: 8px; }

.vp-sb-item {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: var(--text);
  align-items: flex-start;
}
.vp-sb-item:last-child { border-bottom: none; }
.vp-sb-item:hover p { color: var(--teal); }

.vp-sb-thumb {
  position: relative;
  flex-shrink: 0;
  width: 110px;
  height: 70px;
  border-radius: 4px;
  overflow: hidden;
  background: #eee;
}
.vp-sb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vp-sb-play {
  position: absolute;
  bottom: 4px;
  left: 5px;
  font-size: 16px;
  color: #ff0000;
}
.vp-sb-item p {
  font-size: 13px;
  line-height: 1.5;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .vp-layout { grid-template-columns: 1fr; }
  .vp-sidebar { position: static; }
  .vp-sb-ad-box { width: 100%; }
  .vp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .vp-hero { flex-direction: column; }
  .vp-hero-thumb { flex: none; width: 100%; }
  .vp-hero-thumb img { min-height: 200px; }
  .vp-hero-info { padding: 16px; }
  .vp-hero-title { font-size: 17px; }
  .vp-strip { grid-template-columns: repeat(3, 1fr); }
  .vp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .vp-strip { grid-template-columns: repeat(2, 1fr); }
  .vp-grid { grid-template-columns: 1fr 1fr; }
  .vp-hero-title { font-size: 15px; }
}

/* ===========================
   DYNAMIC PHP EXTRAS
=========================== */

/* Date line under hero title */
.vp-hero-date {
  font-size: 13px;
  color: #888;
  font-family: sans-serif;
}
.vp-hero-date i { margin-right: 5px; color: var(--teal); }

/* Date under grid card */
.vp-card-date {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  font-family: sans-serif;
}
.vp-card-date i { margin-right: 4px; }

/* Sidebar item info block */
.vp-sb-info { flex: 1; min-width: 0; }
.vp-sb-info p {
  font-size: 13px;
  line-height: 1.5;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
  margin-bottom: 4px;
}
.vp-sb-info small {
  font-size: 11px;
  color: #999;
  font-family: sans-serif;
}
.vp-sb-item:hover .vp-sb-info p { color: var(--teal); }

/* Empty state */
.vp-empty {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.vp-empty i {
  font-size: 52px;
  color: #ff0000;
  opacity: 0.3;
  display: block;
  margin-bottom: 14px;
}
.vp-empty p {
  font-size: 16px;
  color: #888;
}
