/* ===========================
   Core base (moved from header.php)
   =========================== */

/* Content-only responsiveness (do NOT touch iframes globally) */
.content img,
.content video {
  max-width: 100%;
  height: auto;
}

/* Generic responsive embed wrapper (for your player/embeds only) */
.embed-responsive { position: relative; width: 100%; }
.embed-responsive::before { content: ""; display: block; padding-top: 56.25%; }
.embed-responsive > iframe,
.embed-responsive > video,
.embed-responsive > object,
.embed-responsive > embed {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
}

/* Ad containers: breakpoint visibility + never clip children */
.ad-slot { display: block; width: 100%; margin: 12px 0; overflow: visible !important; }
.ad-slot .ad-unit { display: none; margin-left: auto; margin-right: auto; }

/* Mobile first */
.ad-slot .ad-mobile { display: block; }

/* Tablet ≥ 768px */
@media (min-width: 768px) {
  .ad-slot .ad-mobile { display: none; }
  .ad-slot .ad-tablet { display: block; }
}

/* Desktop ≥ 1024px */
@media (min-width: 1024px) {
  .ad-slot .ad-tablet { display: none; }
  .ad-slot .ad-desktop { display: block; }
}

/* Thumb + skeleton */
.thumb { aspect-ratio: 16/9; object-fit: cover; }
.skeleton { animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* ===========================
   Theme layer (brand palette)
   =========================== */
:root{
  --bg: #F7F7F9;           /* soft off‑white page background */
  --surface: #FFFFFF;       /* cards/sections */
  --text: #1E1E1E;          /* logo dark gray */
  --muted: #6B6B6B;         /* secondary text */
  --line: #E8E8EE;          /* borders */
  --accent: #9C27B0;        /* logo purple */
  --accent-600: #7B1FA2;    /* hover */
  --accent-050: #F8E6FF;    /* subtle tint */
}

/* Override Tailwind bg-white on body without editing markup */
body.bg-white { background-color: var(--bg) !important; }
body { color: var(--text); }

/* Links */
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); text-decoration: underline; }

/* Card-like surfaces (works with many themes) */
.content, .content-area, .container, .page, .widget, .sidebar,
.article, .post, .video-list, .video-grid {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
  padding: 16px;
}

/* Separators */
hr { border: 0; height: 1px; background: var(--line); }

/* Buttons/CTAs */
button, .btn, input[type="submit"], .button, .wp-block-button__link {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
}
button:hover, .btn:hover, input[type="submit"]:hover, .button:hover, .wp-block-button__link:hover {
  background: var(--accent-600);
}

/* Tags / badges */
.tag, .badge, .chip {
  background: var(--accent-050);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

/* Inputs */
input[type="text"], input[type="search"], select, textarea {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(156,39,176,.25);
  outline: none;
}

/* Header/footer subtle framing */
.header, header, .site-header,
.footer, footer, .site-footer,
.nav, .site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

/* Pagination */
.pagination a, .page-numbers {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
}
.pagination a:hover, .page-numbers:hover,
.pagination .current, .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Video thumbs hover polish */
.thumb {
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  border-color: var(--accent);
}

/* Title accent underline (optional) */
h1, h2, h3 { color: var(--text); position: relative; }
h1::after, h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  border-radius: 2px;
}

/* Shimmer skeleton (upgrade) */
.skeleton {
  background: linear-gradient(90deg, #EEE 25%, #F5F5F8 37%, #EEE 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s linear infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Player wrapper polish */
.embed-responsive {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* Ad-slot framing (optional label) */
.ad-slot {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 6px;
  background: #fff;
}
.ad-slot::before {
  content: "Advertisement";
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  background: var(--accent-050);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 999px;
  margin-bottom: 6px;
}
#ageBar {
  font-size: 14px;
  line-height: 1.4;
}
#ageConfirmBtn {
  cursor: pointer;
  transition: background 0.2s ease;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  #ageBar {
    font-size: 13px;
    padding: 10px;
    flex-direction: column;
    text-align: center;
  }
  #ageConfirmBtn {
    width: auto;              /* don’t force full width */
    margin-top: 6px;
    font-size: 12px;          /* smaller text so it fits */
    padding: 6px 12px;        /* tighter padding */
    white-space: nowrap;      /* prevent wrapping */
  }
}



