/*
Theme Name:  TubeCore
Description: High-performance adult tube WordPress theme. Mobile-first, SEO-optimised, CDN-compatible. Inspired by XVideos, Pornhub, xHamster.
Version:     1.0.0
Author:      1805loaded
Author URI:  https://t.me/i1805loaded
Author Email:1805loaded@gmail.com
License:     GPL-2.0+
Text Domain: tubecore
*/

/* =====================================================
   TUBECORE — DESIGN SYSTEM
   Author: 1805loaded | 1805loaded@gmail.com
   WhatsApp: https://wa.me/2347033920473 | Telegram: https://t.me/i1805loaded
   ===================================================== */
:root {
  /* Colors */
  --tc-bg:        #0b0b0e;
  --tc-bg2:       #111115;
  --tc-bg3:       #18181e;
  --tc-bg4:       #1f1f27;
  --tc-border:    #27272f;
  --tc-border2:   #33333d;
  --tc-accent:    #ff3d57;
  --tc-accent2:   #ff6d35;
  --tc-gold:      #ffc107;
  --tc-blue:      #3b82f6;
  --tc-text:      #e8e8f0;
  --tc-text2:     #a0a0b8;
  --tc-muted:     #606075;
  --tc-green:     #22c55e;

  /* Typography */
  --tc-font:      'Inter', system-ui, -apple-system, sans-serif;
  --tc-font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --tc-radius:    8px;
  --tc-radius-lg: 12px;
  --tc-gap:       20px;

  /* Shadows */
  --tc-shadow:    0 4px 24px rgba(0,0,0,.55);
  --tc-shadow-lg: 0 12px 48px rgba(0,0,0,.70);

  /* Transitions */
  --tc-ease:      cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--tc-font);
  background: var(--tc-bg);
  color: var(--tc-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--tc-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--tc-accent2); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ── Layout ── */
.tc-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px)  { .tc-container { padding: 0 24px; } }
@media (min-width: 1200px) { .tc-container { padding: 0 32px; } }

/* ── TOP NAV ── */
#tc-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11,11,14,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tc-border);
  height: 58px;
  display: flex;
  align-items: center;
}
.tc-nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.tc-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--tc-text);
  white-space: nowrap;
  flex-shrink: 0;
}
.tc-logo span { color: var(--tc-accent); }

/* Search */
.tc-search-form {
  flex: 1;
  display: flex;
  max-width: 520px;
  margin: 0 12px;
}
.tc-search-input {
  flex: 1;
  background: var(--tc-bg3);
  border: 1px solid var(--tc-border2);
  color: var(--tc-text);
  padding: 8px 16px;
  border-radius: var(--tc-radius) 0 0 var(--tc-radius);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}
.tc-search-input:focus { border-color: var(--tc-accent); }
.tc-search-btn {
  background: var(--tc-accent);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 0 var(--tc-radius) var(--tc-radius) 0;
  cursor: pointer;
  font-size: .9rem;
  transition: background .2s;
}
.tc-search-btn:hover { background: var(--tc-accent2); }

/* Nav links */
.tc-nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
@media (min-width: 900px) { .tc-nav-links { display: flex; } }
.tc-nav-link {
  color: var(--tc-text2);
  padding: 6px 12px;
  border-radius: var(--tc-radius);
  font-size: .85rem;
  font-weight: 500;
  transition: all .2s;
  white-space: nowrap;
}
.tc-nav-link:hover, .tc-nav-link.active {
  background: var(--tc-bg4);
  color: var(--tc-text);
}
.tc-nav-link.hot { color: var(--tc-accent); }

/* Categories dropdown */
.tc-cat-dropdown { position: relative; }
.tc-cat-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--tc-text2);
  padding: 6px 12px;
  border-radius: var(--tc-radius);
  font-size: .85rem;
  font-weight: 500;
  background: var(--tc-bg3);
  border: 1px solid var(--tc-border);
  cursor: pointer;
  transition: all .2s;
}
.tc-cat-btn:hover { border-color: var(--tc-border2); color: var(--tc-text); }
.tc-cat-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--tc-bg2);
  border: 1px solid var(--tc-border2);
  border-radius: var(--tc-radius-lg);
  min-width: 200px;
  padding: 8px;
  display: none;
  box-shadow: var(--tc-shadow-lg);
  z-index: 200;
}
.tc-cat-dropdown:hover .tc-cat-menu { display: block; }
.tc-cat-menu a {
  display: block;
  color: var(--tc-text2);
  padding: 8px 12px;
  border-radius: var(--tc-radius);
  font-size: .85rem;
  transition: all .15s;
}
.tc-cat-menu a:hover { background: var(--tc-bg4); color: var(--tc-text); }

/* Mobile hamburger */
.tc-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  background: none;
  border: none;
}
@media (min-width: 900px) { .tc-hamburger { display: none; } }
.tc-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tc-text2);
  border-radius: 2px;
  transition: all .3s;
}

/* Mobile nav overlay */
#tc-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--tc-bg2);
  transform: translateX(-100%);
  transition: transform .3s var(--tc-ease);
  padding: 70px 24px 24px;
  overflow-y: auto;
}
#tc-mobile-nav.open { transform: translateX(0); }
.tc-mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--tc-bg4);
  border: none;
  color: var(--tc-text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}
.tc-mobile-nav-links a {
  display: block;
  color: var(--tc-text2);
  padding: 12px 0;
  border-bottom: 1px solid var(--tc-border);
  font-size: 1rem;
  font-weight: 500;
}

/* ── SECTION HEADERS ── */
.tc-section { padding: 28px 0; }
.tc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.tc-section-title {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tc-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: linear-gradient(to bottom, var(--tc-accent), var(--tc-accent2));
  border-radius: 2px;
}
.tc-section-more {
  font-size: .82rem;
  color: var(--tc-muted);
  border: 1px solid var(--tc-border);
  padding: 5px 14px;
  border-radius: 25px;
  transition: all .2s;
}
.tc-section-more:hover { border-color: var(--tc-accent); color: var(--tc-accent); }

/* ── VIDEO GRID ── */
.tc-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px)  { .tc-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 900px)  { .tc-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .tc-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; } }
@media (min-width: 1400px) { .tc-grid { grid-template-columns: repeat(6, 1fr); } }

/* ── VIDEO CARD ── */
.tc-card {
  background: var(--tc-bg2);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-lg);
  overflow: hidden;
  transition: transform .25s var(--tc-ease), border-color .25s, box-shadow .25s;
  cursor: pointer;
  animation: tcSlideUp .35s var(--tc-ease) both;
}
.tc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,61,87,.28);
  box-shadow: 0 16px 40px rgba(0,0,0,.65);
}
@keyframes tcSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Thumbnail */
.tc-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--tc-bg3);
  overflow: hidden;
}
.tc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--tc-ease);
}
.tc-card:hover .tc-thumb img { transform: scale(1.06); }

/* Play overlay */
.tc-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.tc-card:hover .tc-play-overlay { opacity: 1; }
.tc-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tc-accent), var(--tc-accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,61,87,.5);
  transform: scale(.85);
  transition: transform .25s;
}
.tc-card:hover .tc-play-btn { transform: scale(1); }

/* Thumb badges */
.tc-badge-dur {
  position: absolute;
  bottom: 7px;
  right: 7px;
  background: rgba(0,0,0,.82);
  color: #fff;
  font-size: .68rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--tc-font-mono);
}
.tc-badge-hd {
  position: absolute;
  top: 7px;
  right: 7px;
  background: var(--tc-gold);
  color: #000;
  font-size: .62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: .5px;
}
.tc-badge-src {
  position: absolute;
  top: 7px;
  left: 7px;
  font-size: .62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .4px;
  /* bg + color set inline from source config */
}

/* Card body */
.tc-card-body { padding: 10px 12px 12px; }
.tc-card-title {
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--tc-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.tc-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--tc-muted);
}
.tc-card-views { display: flex; align-items: center; gap: 3px; }
.tc-card-rating { color: var(--tc-gold); font-weight: 600; }

/* ── CATEGORIES STRIP ── */
.tc-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  margin-bottom: 24px;
}
.tc-cats::-webkit-scrollbar { display: none; }
.tc-cat-pill {
  background: var(--tc-bg3);
  border: 1px solid var(--tc-border2);
  color: var(--tc-text2);
  padding: 7px 18px;
  border-radius: 25px;
  font-size: .82rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}
.tc-cat-pill:hover, .tc-cat-pill.active {
  background: rgba(255,61,87,.14);
  border-color: rgba(255,61,87,.45);
  color: var(--tc-accent);
}

/* ── SINGLE VIDEO PAGE ── */
.tc-single-layout {
  display: grid;
  gap: 24px;
  padding: 20px 0 40px;
}
@media (min-width: 1024px) {
  .tc-single-layout { grid-template-columns: 1fr 340px; }
}

/* Player wrap */
.tc-player-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--tc-radius-lg);
  overflow: hidden;
  box-shadow: var(--tc-shadow-lg);
}
.tc-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse, rgba(0,0,0,.25), rgba(0,0,0,.6));
}
.tc-poster-play-btn {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tc-accent), var(--tc-accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 32px rgba(255,61,87,.55);
  transition: transform .2s, box-shadow .2s;
}
.tc-poster:hover .tc-poster-play-btn {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(255,61,87,.7);
}
.tc-embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}
.tc-embed-frame.active { display: block; }

/* Video info */
.tc-video-title {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  margin: 14px 0 10px;
  line-height: 1.35;
}
.tc-video-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tc-bg3);
  border: 1px solid var(--tc-border2);
  color: var(--tc-text2);
  padding: 7px 14px;
  border-radius: var(--tc-radius);
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
}
.tc-action-btn:hover { border-color: var(--tc-accent); color: var(--tc-accent); }
.tc-action-btn.liked { background: rgba(255,61,87,.1); border-color: rgba(255,61,87,.4); color: var(--tc-accent); }

/* Tags */
.tc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tc-tag {
  background: var(--tc-bg3);
  border: 1px solid var(--tc-border2);
  color: var(--tc-muted);
  font-size: .76rem;
  padding: 4px 12px;
  border-radius: 25px;
  transition: all .2s;
}
.tc-tag:hover { border-color: var(--tc-accent); color: var(--tc-accent); background: rgba(255,61,87,.06); }

/* Sidebar */
.tc-sidebar { display: flex; flex-direction: column; gap: 12px; }
.tc-sidebar-title {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding-left: 4px;
  border-left: 3px solid var(--tc-accent);
  padding-left: 10px;
}
.tc-sidebar-card {
  display: flex;
  gap: 10px;
  cursor: pointer;
  border-radius: var(--tc-radius);
  padding: 6px;
  transition: background .2s;
}
.tc-sidebar-card:hover { background: var(--tc-bg3); }
.tc-sidebar-thumb {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  border-radius: 5px;
  overflow: hidden;
  background: var(--tc-bg3);
  position: relative;
}
.tc-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tc-sidebar-info { flex: 1; min-width: 0; }
.tc-sidebar-video-title {
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--tc-text);
  margin-bottom: 4px;
}
.tc-sidebar-meta { font-size: .7rem; color: var(--tc-muted); }

/* ── LOAD MORE ── */
.tc-load-more-wrap { text-align: center; padding: 20px 0 40px; }
.tc-load-more {
  background: var(--tc-bg3);
  border: 1px solid var(--tc-border2);
  color: var(--tc-text2);
  padding: 13px 60px;
  border-radius: var(--tc-radius);
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s;
}
.tc-load-more:hover { border-color: var(--tc-accent); color: var(--tc-accent); }

/* ── SKELETON ── */
.tc-skel {
  background: linear-gradient(90deg, var(--tc-bg2) 25%, var(--tc-border) 50%, var(--tc-bg2) 75%);
  background-size: 200% 100%;
  animation: tcShim 1.5s infinite;
  border-radius: var(--tc-radius);
}
@keyframes tcShim { to { background-position: -200% 0; } }

/* ── FOOTER ── */
#tc-footer {
  background: var(--tc-bg2);
  border-top: 1px solid var(--tc-border);
  padding: 32px 0 20px;
  margin-top: 40px;
}
.tc-footer-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}
@media (min-width: 600px) { .tc-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tc-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.tc-footer-col h4 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; color: var(--tc-text2); }
.tc-footer-col a { display: block; color: var(--tc-muted); font-size: .82rem; margin-bottom: 7px; transition: color .2s; }
.tc-footer-col a:hover { color: var(--tc-accent); }
.tc-footer-bottom {
  border-top: 1px solid var(--tc-border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .76rem;
  color: var(--tc-muted);
}

/* ── AD SLOTS ── */
.tc-ad-slot {
  background: var(--tc-bg3);
  border: 1px dashed var(--tc-border2);
  border-radius: var(--tc-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tc-muted);
  font-size: .76rem;
  min-height: 90px;
  margin: 16px 0;
}

/* ── TOAST ── */
#tc-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  background: var(--tc-bg4);
  border: 1px solid var(--tc-border2);
  color: var(--tc-text);
  padding: 12px 20px;
  border-radius: var(--tc-radius-lg);
  font-size: .85rem;
  transform: translateY(60px);
  opacity: 0;
  transition: all .3s var(--tc-ease);
  pointer-events: none;
  box-shadow: var(--tc-shadow);
}
#tc-toast.show { transform: translateY(0); opacity: 1; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--tc-bg2); }
::-webkit-scrollbar-thumb { background: var(--tc-border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--tc-muted); }

/* ── UTILITIES ── */
.tc-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =====================================================
   BREADCRUMBS — v1.1 fix (no numbered list)
   ===================================================== */
.tc-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 2px;
  padding: 10px 0 14px;
  font-size: .8rem;
  color: var(--tc-muted);
  list-style: none !important;
  margin: 0;
  counter-reset: none !important;
}
.tc-breadcrumbs ol,
.tc-breadcrumbs ul { list-style: none; margin: 0; padding: 0; }
.tc-breadcrumbs a.tc-bc-home,
.tc-breadcrumbs a.tc-bc-cat {
  color: var(--tc-accent);
  text-decoration: none;
  transition: color .15s;
}
.tc-breadcrumbs a:hover { color: var(--tc-accent2); }
.tc-breadcrumbs .tc-bc-sep {
  color: #555;
  margin: 0 5px;
  font-size: .85rem;
  display: inline-block;
}
.tc-breadcrumbs .tc-bc-current {
  color: var(--tc-text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* =====================================================
   CUSTOM LOGO — Appearance > Customize > Site Identity
   ===================================================== */
.tc-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  height: 44px;
}
.tc-logo-wrap .custom-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
/* Fallback text logo when no image uploaded */
.tc-logo-text {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--tc-text);
  white-space: nowrap;
  background: linear-gradient(135deg, #fff 30%, var(--tc-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================
   CATEGORIES DROPDOWN — improved
   ===================================================== */
.tc-cat-dropdown { position: relative; }
.tc-cat-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--tc-bg3);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  color: var(--tc-text2);
  padding: 7px 13px;
  font-size: .85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.tc-cat-btn:hover,
.tc-cat-btn[aria-expanded="true"] {
  border-color: var(--tc-accent);
  color: var(--tc-text);
}
.tc-cat-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  max-width: 260px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--tc-bg3);
  border: 1px solid var(--tc-border2);
  border-radius: var(--tc-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  z-index: 999;
  display: none;
  padding: 6px 0;
}
.tc-cat-menu.open { display: block; }
.tc-cat-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--tc-text2);
  font-size: .85rem;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.tc-cat-menu a:hover { background: var(--tc-bg4); color: var(--tc-text); }
.tc-cat-menu .tc-cat-all {
  color: var(--tc-accent);
  border-bottom: 1px solid var(--tc-border);
  margin-bottom: 4px;
  font-weight: 600;
}
/* Scrollbar in dropdown */
.tc-cat-menu::-webkit-scrollbar { width: 4px; }
.tc-cat-menu::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }

/* =====================================================
   MOBILE NAV improvements
   ===================================================== */
.tc-mob-cat-head {
  padding: 10px 20px 4px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #666;
  font-weight: 700;
}

/* =====================================================
   IMPORT/EXPORT admin page helper classes
   ===================================================== */
.me-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 860px) { .me-grid-2 { grid-template-columns: 1fr; } }
.me-notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: .875rem; }
.me-notice-success { background: rgba(34,197,94,.12); border-left: 4px solid #22c55e; color: #22c55e; }
.me-notice-error   { background: rgba(239,68,68,.12);  border-left: 4px solid #ef4444; color: #ef4444; }
.me-btn-xs { font-size: .78rem; padding: 6px 14px; }

/* Body lock when mobile nav is open */
body.tc-nav-lock { overflow: hidden; }

/* Toast notification */
#tc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1e1e27;
  color: #e0e0f0;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: .85rem;
  border: 1px solid #3a3a50;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  z-index: 9999;
  transition: transform .3s ease, opacity .3s ease;
  opacity: 0;
  pointer-events: none;
}
#tc-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
#tc-toast.tc-toast-err { border-color: var(--tc-accent); color: var(--tc-accent); }

/* No-thumbnail placeholder */
.tc-no-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #111118;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =====================================================
   SHORTIES — TikTok/Reel Style Vertical Video Feed
   ===================================================== */

/* Full-screen reel page */
#tc-shorties-page {
  min-height: 100vh;
  background: #000;
  position: relative;
}

/* Top bar */
.tc-shorties-topbar {
  position: fixed;
  top: 58px; /* below nav */
  left: 0; right: 0;
  z-index: 80;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 8px 0;
}
.tc-shorties-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tc-shorties-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
}
.tc-shorties-count {
  font-size: .72rem;
  font-weight: 400;
  color: #888;
  background: rgba(255,255,255,.08);
  padding: 2px 8px;
  border-radius: 10px;
}
.tc-sh-scroll-hint {
  font-size: .75rem;
  color: #888;
  background: none;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
}

/* Reel wrapper — full viewport snapping */
#tc-reel-wrap {
  height: calc(100vh - 58px);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 44px; /* topbar height */
}
#tc-reel-wrap::-webkit-scrollbar { display: none; }

/* Each slide */
.tc-reel-slide {
  position: relative;
  width: 100%;
  height: calc(100vh - 102px);
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
}

/* Blurred BG */
.tc-reel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(.35) saturate(.6);
  transform: scale(1.1);
  z-index: 0;
}

/* Vertical player (9:16) */
.tc-reel-player {
  position: relative;
  width: min(380px, 90vw);
  aspect-ratio: 9 / 16;
  z-index: 2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.8);
  background: #111;
}
.tc-reel-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  z-index: 3;
}
.tc-reel-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
  gap: 8px;
}
.tc-reel-play-btn {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  transition: transform .2s;
}
.tc-reel-poster:hover .tc-reel-play-btn { transform: scale(1.1); }
.tc-reel-play-label { color: rgba(255,255,255,.8); font-size: .78rem; font-weight: 600; }
.tc-reel-frame {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
  z-index: 2;
}

/* Right actions bar */
.tc-reel-actions {
  position: absolute;
  right: max(calc((100vw - 380px) / 2 - 64px), 12px);
  bottom: 120px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.tc-reel-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.7));
}
.tc-reel-action-count { font-size: .7rem; font-weight: 600; }
.tc-reel-like.liked svg { fill: #ff3366; stroke: #ff3366; }

/* Bottom info */
.tc-reel-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  padding: 60px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.tc-reel-ph-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ff9800;
  color: #000;
  font-size: .68rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.tc-reel-title {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tc-reel-title a { color: #fff; text-decoration: none; }
.tc-reel-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tc-reel-tag { font-size: .72rem; color: rgba(255,255,255,.7); }
.tc-reel-dur { font-size: .72rem; color: rgba(255,255,255,.5); margin-top: 4px; }

/* Nav arrows */
.tc-reel-nav {
  position: absolute;
  right: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  z-index: 15;
  backdrop-filter: blur(4px);
  transition: background .2s;
}
.tc-reel-nav:hover { background: rgba(255,255,255,.25); }
.tc-reel-prev { top: 20px; }
.tc-reel-next { bottom: 20px; }

/* Scroll dots */
#tc-reel-dots {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 50;
}
.tc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  transition: background .2s, transform .2s;
}
.tc-dot.active { background: #fff; transform: scale(1.4); }

/* ── Shorties nav link in header ── */
.tc-nav-short {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #ff0050, #ff9800);
  color: #fff !important;
  border-radius: 20px;
  padding: 5px 14px;
  font-weight: 700;
  font-size: .82rem;
}
.tc-nav-short:hover { opacity: .9; }

/* ── Single Shortie page ── */
.tc-single-short-wrap { padding: 12px 0 40px; }
.tc-single-short-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 28px;
  align-items: start;
}
.tc-short-player-col { position: sticky; top: 80px; }
.tc-short-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  background: #0a0a0a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.tc-short-poster {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  cursor: pointer; z-index: 3;
}
.tc-short-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none; z-index: 2;
}
.tc-short-info { padding: 16px 0; }
.tc-short-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 10px; line-height: 1.4; }
.tc-short-meta  { display: flex; align-items: center; gap: 14px; font-size: .8rem; color: #888; margin-bottom: 10px; flex-wrap: wrap; }
.tc-short-ph-badge { background: #ff9800; color: #000; font-size: .68rem; font-weight: 900; padding: 2px 8px; border-radius: 4px; }
.tc-short-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tc-short-tag { font-size: .78rem; color: var(--tc-accent); background: rgba(255,100,0,.08); padding: 3px 10px; border-radius: 12px; text-decoration: none; }
.tc-short-tag:hover { background: rgba(255,100,0,.18); }
.tc-short-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tc-short-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--tc-bg3); border: 1px solid var(--tc-border);
  color: var(--tc-text2); padding: 8px 16px; border-radius: 20px;
  font-size: .82rem; cursor: pointer; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.tc-short-btn:hover { border-color: var(--tc-accent); color: var(--tc-text); }

/* Related shorts sidebar */
.tc-short-related-col {}
.tc-short-related-list { display: flex; flex-direction: column; gap: 12px; }
.tc-short-related-card {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
  padding: 8px; border-radius: 10px;
  transition: background .15s;
}
.tc-short-related-card:hover { background: var(--tc-bg3); }
.tc-short-related-thumb {
  position: relative; flex-shrink: 0;
  width: 90px; height: 120px;
  border-radius: 8px; overflow: hidden;
  background: #111;
}
.tc-short-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tc-short-related-dur {
  position: absolute; bottom: 4px; right: 4px;
  background: rgba(0,0,0,.7); color: #fff;
  font-size: .65rem; padding: 1px 5px; border-radius: 3px;
}
.tc-short-related-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3); color: #fff; font-size: 1.2rem;
  opacity: 0; transition: opacity .2s;
}
.tc-short-related-card:hover .tc-short-related-play { opacity: 1; }
.tc-short-related-info { flex: 1; min-width: 0; }
.tc-short-related-title { font-size: .82rem; font-weight: 600; margin: 0 0 4px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tc-ph-tiny { font-size: .68rem; color: #ff9800; font-weight: 700; }

/* Responsive */
@media (max-width: 860px) {
  .tc-single-short-layout { grid-template-columns: 1fr; }
  .tc-short-player-col { position: relative; top: auto; max-width: 380px; margin: 0 auto; }
  .tc-reel-actions { right: 10px; }
  #tc-reel-dots { display: none; }
}
@media (max-width: 500px) {
  .tc-reel-player { width: 100vw; border-radius: 0; }
  .tc-reel-slide { height: calc(100vh - 100px); }
}

/* ── WP Post Content Styles (TubeCore v2.0) ── */
.tc-single-post-wrap { padding: 16px 0 40px; }
.tc-post-main { min-width: 0; }
.tc-post-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tc-post-cat-badge { background: rgba(255,102,0,.12); color: var(--tc-accent); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-decoration: none; text-transform: uppercase; letter-spacing: .4px; }
.tc-post-cat-badge:hover { background: rgba(255,102,0,.25); }
.tc-post-title { font-size: 1.8rem; font-weight: 800; line-height: 1.25; margin: 0 0 14px; }
.tc-post-meta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: var(--tc-muted); font-size: .82rem; margin-bottom: 20px; }
.tc-post-meta span { display: flex; align-items: center; gap: 5px; }
.tc-post-hero { margin-bottom: 24px; }
.tc-post-content { color: var(--tc-text2); line-height: 1.85; font-size: .96rem; }
.tc-post-content h1,.tc-post-content h2,.tc-post-content h3 { color: var(--tc-text); margin: 24px 0 10px; font-weight: 700; }
.tc-post-content h2 { font-size: 1.3rem; }
.tc-post-content h3 { font-size: 1.1rem; }
.tc-post-content p { margin: 0 0 16px; }
.tc-post-content a { color: var(--tc-accent); }
.tc-post-content img { max-width: 100%; border-radius: 8px; margin: 12px 0; }
.tc-post-content blockquote { border-left: 3px solid var(--tc-accent); padding-left: 16px; color: var(--tc-muted); font-style: italic; margin: 20px 0; }
.tc-post-content pre { background: #0a0a12; border: 1px solid var(--tc-border); border-radius: 8px; padding: 14px; overflow-x: auto; font-size: .84rem; }
.tc-post-content ul,.tc-post-content ol { padding-left: 24px; margin-bottom: 16px; }
.tc-post-content li { margin-bottom: 6px; }
/* ── (filter pills removed) ── */
/* Post card variation */
.tc-card-post .tc-thumb { aspect-ratio: 16/9; }
.tc-card-date { font-size: .7rem; }

/* ═══════════════════════════════════════════
   SHORTIES REEL STRIP — Facebook Reels style
═══════════════════════════════════════════ */
.tc-reels-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tc-reels-strip::-webkit-scrollbar { display: none; }

.tc-reel-card {
  flex: 0 0 120px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  scroll-snap-align: start;
}
@media (min-width: 600px)  { .tc-reel-card { flex: 0 0 140px; } }
@media (min-width: 900px)  { .tc-reel-card { flex: 0 0 160px; } }
@media (min-width: 1200px) { .tc-reel-card { flex: 0 0 180px; } }

.tc-reel-inner {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #1a1a24;
  border-radius: 10px;
  overflow: hidden;
}
.tc-reel-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}
.tc-reel-card:hover .tc-reel-inner img { transform: scale(1.04); }

.tc-reel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 1.4rem;
}

.tc-reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 7px 8px;
  opacity: 0;
  transition: opacity .2s;
}
.tc-reel-card:hover .tc-reel-overlay { opacity: 1; }

.tc-reel-dur {
  font-size: .68rem;
  color: #fff;
  background: rgba(0,0,0,.5);
  padding: 2px 5px;
  border-radius: 3px;
}
.tc-reel-play {
  font-size: 1.1rem;
  color: #fff;
  background: rgba(255,61,87,.85);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
}

.tc-reel-title {
  font-size: .7rem;
  color: var(--tc-muted, #888);
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
}

.tc-reel-viewall {
  flex: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9 / 16;
  background: rgba(255,255,255,.04);
  border: 2px dashed #2e2e3d;
  border-radius: 10px;
  text-decoration: none;
  color: var(--tc-muted, #888);
  scroll-snap-align: start;
  gap: 4px;
  transition: border-color .2s, background .2s;
}
.tc-reel-viewall:hover { border-color: var(--tc-accent, #ff3d57); background: rgba(255,61,87,.06); color: var(--tc-accent, #ff3d57); }
.tc-reel-viewall span { font-size: 2rem; line-height: 1; }
.tc-reel-viewall small { font-size: .68rem; font-weight: 600; }
