/*
Theme Name: VideoZone
Theme URI: https://example.com
Author: VideoZone
Author URI: https://example.com
Description: A dark video redirect theme. Add posts from the WordPress dashboard — each post shows a fake video player that redirects to your ad URLs.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: videozone
*/

/* ── RESET & BASE ─────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0f0f0f;
  color: #f1f1f1;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── HEADER ───────────────────────────────────── */
.site-header {
  background: #212121;
  border-bottom: 1px solid #383838;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-logo { font-size: 22px; font-weight: 700; color: #ff4444; }
.site-tagline { font-size: 13px; color: #aaa; margin-left: 10px; }

/* ── HOMEPAGE GRID ────────────────────────────── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 28px 16px; }

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

.video-card {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.88);
  transition: filter .2s;
}
.video-card:hover .card-thumb img { filter: brightness(.70); }

.card-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.85); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 2px 6px; border-radius: 4px;
}

.card-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.card-play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.video-card:hover .card-play-btn {
  background: #ff0000;
  transform: scale(1.1);
}
.card-play-btn svg { margin-left: 3px; }

.card-info { padding: 12px; }
.card-title {
  font-size: 15px; font-weight: 600;
  line-height: 1.4; margin-bottom: 6px;
  color: #f1f1f1;
}
.card-meta { font-size: 12px; color: #aaa; display: flex; gap: 6px; flex-wrap: wrap; }

/* No posts */
.no-posts { color: #aaa; text-align: center; margin-top: 60px; font-size: 16px; }

/* ── SINGLE POST ──────────────────────────────── */
.post-wrap { max-width: 820px; margin: 0 auto; padding: 28px 16px; }

.video-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  transition: box-shadow .2s, transform .2s;
  background: #111;
}
.video-player-wrap:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,.7);
  transform: scale(1.01);
}
.video-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(.85);
  transition: filter .2s;
}
.video-player-wrap:hover .video-thumb-img { filter: brightness(.70); }

.video-dur-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.85); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
}

.play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.play-big-btn {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  box-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.video-player-wrap:hover .play-big-btn {
  background: #ff0000;
  transform: scale(1.12);
}
.play-big-btn svg { margin-left: 4px; }

.post-info { margin-top: 14px; }
.post-title {
  font-size: 20px; font-weight: 600;
  margin-bottom: 8px; cursor: pointer; line-height: 1.4;
}
.post-title:hover { color: #aaa; }

.post-stats { color: #aaa; font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.bull { color: #555; }

.channel-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid #272727;
}
.channel-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #333; flex-shrink: 0; overflow: hidden;
}
.channel-avatar img { width: 100%; height: 100%; object-fit: cover; }
.channel-name { font-size: 14px; font-weight: 500; color: #f1f1f1; }
.channel-subs { font-size: 12px; color: #aaa; }

/* ── BACK LINK ────────────────────────────────── */
.back-link { font-size: 13px; color: #aaa; }
.back-link:hover { color: #fff; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
  .site-header { padding: 12px 16px; }
}
