/*
Theme Name: SexClipz
Theme URI:  https://sexclipz.com
Author:      SexClipz
Author URI:  https://sexclipz.com
Description: Adult video tube theme for SexClipz. Features a responsive grid of large video thumbnails with big, bold titles, an inline hover video preview, a dedicated video player page, and support for daily scheduled publishing of queued videos.
Version:     2.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.2
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sexclipz
Tags:        video, grid, adult, dark, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================================
   1. Reset & Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #0b0b10;
  color: #e8e8ee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: #d15cff; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}

/* =========================================================================
   2. Layout
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,16,.92);
  border-bottom: 1px solid #222;
}
.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-title { font-size: 1.9rem; font-weight: 800; letter-spacing: 1px; margin: 0; }
.site-title a { color: #d15cff; }
.site-title .dot { color: #fff; }
.site-tagline { font-size: .78rem; color: #9aa; letter-spacing: 2px; text-transform: uppercase; }

.main-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a { color: #eee; font-weight: 600; font-size: 1.02rem; }
.main-nav a:hover { color: #d15cff; text-decoration: none; }

.site-content { max-width: 1320px; margin: 0 auto; padding: 26px 20px 60px; }

.site-footer {
  border-top: 1px solid #222; color: #9aa; font-size: .86rem;
}
.site-footer .footer-inner {
  max-width: 1320px; margin: 0 auto; padding: 26px 20px 40px;
  display: grid; gap: 18px;
}
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.footer-legal a { color: #bbb; }
.footer-legal a:hover { color: #fff; }
.footer-note { color: #778; font-size: .8rem; }

/* =========================================================================
   3. Video Grid (Index / Home)
   ========================================================================= */
.grid-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 0 22px; }
.grid-head h1 { font-size: 1.5rem; font-weight: 800; margin: 0; letter-spacing: .5px; }
.grid-count { color: #9aa; }

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

/* Large card with bold title */
.video-card {
  background: #14141c; border-radius: 14px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
}

.thumb-wrap { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.video-card:hover .thumb-wrap img { transform: scale(1.06); }

/* The video element that previews on hover */
.thumb-wrap video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #000; opacity: 0; transition: opacity .2s ease;
}
.thumb-wrap:hover video { opacity: 1; }

/* Duration badge */
.badge-duration {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,.78); color: #fff;
  font-size: .78rem; font-weight: 700; padding: 2px 7px; border-radius: 5px;
}

/* Big bold title */
.video-card h2 {
  margin: 0; font-size: 1.12rem; line-height: 1.2; font-weight: 800;
}
.video-card h2 a { color: #fff; }
.video-card h2 a:hover { color: #d15cff; text-decoration: none; }
.meta {
  color: #8a8a9a; font-size: .8rem; margin-top: 4px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.meta span::before { content: ""; }

/* Pagination */
.pagination { margin-top: 34px; display: flex; gap: 10px; justify-content: center; }
.pagination .page-numbers {
  display: inline-block; padding: 8px 14px; border-radius: 8px; background: #14141c; color: #ddd; font-weight: 600;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: #d15cff; color: #fff; text-decoration: none; }

/* =========================================================================
   4. Single Video Page
   ========================================================================= */
.video-player { margin-bottom: 22px; }
.video-player video { width: 100%; max-height: 76vh; background: #000; border-radius: 12px; }
.video-panel { background: #14141c; border-radius: 14px; padding: 24px; margin-bottom: 28px; }
.video-panel h1 { font-size: 1.7rem; font-weight: 800; margin: 0 0 10px; }
.video-panel .entry-meta { color: #9aa; display: flex; gap: 16px; flex-wrap: wrap; font-weight: 600; }
.tags-list { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags-list a { background: #222; color: #d0d0dd; padding: 4px 12px; border-radius: 20px; font-size: .82rem; }
.tags-list a:hover { background: #d15cff; color: #fff; text-decoration: none; }
.video-desc { margin-top: 20px; border-top: 1px solid #2a2a34; padding-top: 18px; color: #cfcfdd; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 20px; }
.related-grid h3 { grid-column: 1 / -1; font-size: 1.3rem; margin: 0 0 4px; }

/* =========================================================================
   4b. Advertisements
   ========================================================================= */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  text-align: center;
  overflow: hidden;
}
.ad-label {
  display: block;
  font-size: .68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5f5f72;
  margin-bottom: 6px;
}
.ad-slot img,
.ad-slot iframe,
.ad-slot ins,
.ad-slot video { max-width: 100%; }

/* Header leaderboard */
.ad-ad_top_728 { padding: 4px 0 14px; }

/* Side-by-side 300x250 pair at the bottom of a video page */
.ad-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin: 0 0 28px;
}
.ad-row .ad-slot { margin: 0; }

/* Two-column video page: player + right-hand ad rail */
.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
  margin-bottom: 28px;
}
.video-main { min-width: 0; }
.video-ads {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 90px;
}
.video-ads .ad-slot { margin: 0; }
.video-layout .video-panel { margin-bottom: 0; }
.video-layout .video-player { margin-bottom: 22px; }

/* =========================================================================
   5. Pages, Legal, General
   ========================================================================= */
.single-page { max-width: 860px; }
.single-page h1 { font-size: 2rem; font-weight: 800; margin: 0 0 18px; }
.legal-note { font-size: .82rem; color: #9aa; border-left: 3px solid #d15cff; padding-left: 12px; margin: 26px 0; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content code { background: #1d1d27; padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.entry-content a { text-decoration: underline; }

/* Buttons, search */
.search-form { display: flex; gap: 6px; }
.search-form input[type=search] {
  padding: 8px 12px; border-radius: 8px; border: 1px solid #333; background: #17171f; color: #eee; min-width: 220px;
}
.search-form button { background: #d15cff; color: #fff; border: 0; border-radius: 8px; padding: 8px 16px; font-weight: 700; cursor: pointer; }

/* Utility */
.section-title { font-size: 1.45rem; font-weight: 800; margin: 30px 0 18px; }
.no-results { text-align: center; color: #9aa; padding: 60px 0; }

/* Responsive */
@media (max-width: 1024px) {
  .video-layout { grid-template-columns: minmax(0, 1fr); }
  .video-ads {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .video-ads .ad-slot { margin: 0 auto; }
}

@media (max-width: 640px) {
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .video-card h2 { font-size: .98rem; }
  .header-inner { flex-wrap: wrap; }
}
/* Responsive */
@media (max-width: 1024px) {
  .video-layout { grid-template-columns: minmax(0, 1fr); }
  .video-ads {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .video-ads .ad-slot { margin: 0 auto; }
  .video-layout .video-player video { max-height: none; }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .site-header .search-form { width: 100%; justify-content: center; }
  .search-form input[type=search] { min-width: 140px; width: 100%; }
  .video-card { border-radius: 10px; }
  .video-panel { padding: 16px; }
  .grid-head { flex-wrap: wrap; }
  .video-grid { gap: 12px; }
  .pagination { gap: 6px; }
  .pagination .page-numbers { padding: 6px 10px; font-size: .85rem; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .video-card h2 { font-size: .9rem; }
  .video-card .meta { font-size: .72rem; }
  .site-title { font-size: 1.1rem; }
  .site-tagline { font-size: .6rem; letter-spacing: 1px; }
  .main-nav ul { gap: 8px; justify-content: center; }
  .main-nav a { font-size: .82rem; }
  .video-panel { padding: 12px; border-radius: 10px; }
  .related-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
  .single-page { padding: 0 4px; }
  .entry-content { font-size: .92rem; }
}

@media (max-width: 360px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-card h2 { font-size: 1rem; }
  .search-form input[type=search] { min-width: 0; }
  .ad-row { gap: 12px; }
}

@media (min-width: 1600px) {
  .site-content, .header-inner, .footer-inner { max-width: 1500px; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
  .video-card h2 { font-size: 1.2rem; }
  .site-title { font-size: 2.1rem; }
}

@media (min-width: 2200px) {
  .site-content, .header-inner, .footer-inner { max-width: 1800px; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 28px; }
  body { font-size: 18px; }
  .video-panel { padding: 32px; }
}