/*
Theme Name: IKUGAY
Theme URI: https://ikugay.com
Author: IKUGAY
Description: Dark video tube theme inspired by traingon.top
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: ikugay
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --bg-primary:   #0d0d0f;
  --bg-secondary: #141418;
  --bg-card:      #18181c;
  --bg-header:    #0d0d0f;
  --bg-footer:    #0a0a0c;
  --text-primary:   #ffffff;
  --text-secondary: #b0b3be;
  --text-muted:     #606470;
    --accent-orange: #6366f1;
  --accent-red:     #6366f1;
  --accent-yellow:  #f5a623;
  --accent-green:   #1db954;
  --accent-purple:  #7c3aed;
  --accent-magenta: #c026d3;
  --border-color:   #232329;
  --card-radius:    8px;
  --header-height:  56px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: all 0.25s ease;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.5);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.6);
  --gradient-logo: linear-gradient(135deg, #8b5cf6, #6366f1);
  --gradient-hero-overlay: linear-gradient(to right, rgba(10,10,12,0.98) 38%, rgba(10,10,12,0.6) 65%, transparent 100%);
  --gradient-card-overlay: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 55%);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color:inherit; text-decoration:none; transition:var(--transition); }
img { max-width:100%; height:auto; display:block; }
ul, ol { list-style:none; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-header);
  height: var(--header-height);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 0;
}

/* Logo */
.site-logo {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: var(--gradient-logo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 28px;
}
.site-logo:hover { filter: brightness(1.15); }

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 7px 13px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  white-space: nowrap;
  transition: var(--transition);
}
.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current-cat a {
  color: var(--text-primary);
  background: rgba(255,255,255,0.07);
}

/* Dropdown */
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1c1c22;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px;
  min-width: 160px;
  box-shadow: var(--shadow-card);
  z-index: 100;
}
.main-nav li:hover > .sub-menu { display:block; animation: fadeInDown 0.2s ease; }
.main-nav .sub-menu a { padding:7px 12px; font-size:0.83rem; border-radius:5px; }

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 16px;
}

/* Search */
.header-search { position: relative; }
.header-search input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 7px 38px 7px 14px;
  border-radius: 6px;
  font-size: 0.83rem;
  width: 170px;
  outline: none;
  transition: var(--transition);
  font-family: var(--font-main);
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search input:focus {
  width: 220px;
  border-color: rgba(232,87,42,0.5);
  background: rgba(232,87,42,0.07);
}
.header-search button {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted);
  padding: 5px 9px;
  cursor: pointer; font-size:0.95rem;
  transition: var(--transition);
}
.header-search button:hover { color: var(--text-primary); }

/* Tags Button */
.tags-toggle {
  background: var(--accent-red);
  color: white; border: none;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  font-family: var(--font-main);
  white-space: nowrap;
}
.tags-toggle:hover { background: #c82a2a; }
.tags-toggle::after { content: ' ▾'; font-size:0.65rem; }

/* Notification Bell */
.notification-bell {
  position: relative; background: none; border: none;
  color: var(--text-secondary); font-size: 1.15rem;
  cursor: pointer; padding: 7px; transition: var(--transition);
}
.notification-bell:hover { color: var(--text-primary); }
.notification-bell .badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--accent-red); color: white;
  font-size: 0.58rem; font-weight: 700;
  width: 15px; height: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Tags Dropdown */
.tags-dropdown {
  display: none;
  position: fixed;
  top: var(--header-height);
  right: 16px;
  background: #1c1c22;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 18px;
  max-width: 420px;
  max-height: 68vh;
  overflow-y: auto;
  z-index: 999;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  animation: fadeInDown 0.25s ease;
}
.tags-dropdown.active { display: block; }
.tags-dropdown .tag-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.tags-dropdown .tag-item {
  display:block; padding:7px 10px; text-align:center;
  background:rgba(255,255,255,0.04); border:1px solid var(--border-color);
  border-radius:6px; font-size:0.78rem; color:var(--text-secondary);
  transition:var(--transition); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.tags-dropdown .tag-item:hover {
  background:rgba(232,87,42,0.15); border-color:var(--accent-orange); color:var(--text-primary);
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none; background:none; border:none;
  color:var(--text-primary); font-size:1.4rem; cursor:pointer; padding:5px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.site-main { margin-top: var(--header-height); min-height: calc(100vh - var(--header-height)); }
.container { max-width: 1440px; margin:0 auto; padding:0 20px; }

/* ============================================
   HERO SLIDER  (traingon.top style)
   ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Background image */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero-slide.active .hero-bg { transform: scale(1); }

/* Gradient overlay */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-hero-overlay);
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 60px;
}

.hero-category {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 4px;
  margin-bottom: 16px;
  width: fit-content;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 6px;
  width: fit-content;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(232,87,42,0.4);
}
.hero-btn:hover {
  background: #d4471a;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232,87,42,0.55);
}
.hero-btn-icon { font-size: 1rem; }

/* Prev / Next arrows */
.hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.5);
  color: #fff; border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(232,87,42,0.7); }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 7px;
}
.hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.hero-dot.active {
  background: var(--accent-orange);
  width: 22px;
  border-radius: 4px;
}

/* ============================================
   SECTION HEADING  (traingon.top style)
   ============================================ */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 22px;
}
.section-heading h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading h2::before {
  content: '';
  display: block;
  width: 4px; height: 18px;
  background: var(--accent-orange);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-more {
  font-size: 0.82rem;
  color: var(--accent-orange);
  font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  transition: var(--transition);
}
.section-more:hover { color: #d4471a; }
.section-more::after { content: ' →'; }

/* Page Title (archive/search) */
.page-title {
  font-size: 1.3rem;
  font-weight: 700;
  padding: 26px 0 18px;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
}
.page-title::before {
  content: '';
  display: block;
  width: 4px; height: 18px;
  background: var(--accent-orange);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================================
   VIDEO GRID
   ============================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  padding-bottom: 36px;
}

/* Video Card */
.video-card {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--bg-card);
  transition: var(--transition);
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.video-card:hover .card-thumbnail img {
  transform: scale(1.06);
}

.card-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111;
}
.card-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.card-thumbnail::after {
  content: '';
  position: absolute; bottom:0; left:0; right:0;
  height: 45%;
  background: var(--gradient-card-overlay);
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
}
.video-card:hover .card-thumbnail::after { opacity: 1; }

/* Duration Badge */
.duration-badge {
  position: absolute;
  bottom: 7px; right: 7px;
  background: rgba(0,0,0,0.82);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  z-index: 2;
}

/* HOT Badge */
.hot-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--accent-red);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  animation: hotPulse 2s infinite;
}
@keyframes hotPulse {
  0%,100% { box-shadow: 0 2px 8px rgba(224,49,49,0.4); }
  50%      { box-shadow: 0 2px 16px rgba(224,49,49,0.65); }
}

/* Card Info */
.card-info { padding: 10px 12px 14px; }
.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
  transition: var(--transition);
}
.video-card:hover .card-title { color: var(--accent-orange); }
.card-views {
  font-size: 0.76rem;
  color: var(--accent-yellow);
  font-weight: 500;
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */
.single-content { padding: 28px 0; }

.back-home {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.83rem; margin-bottom: 18px;
  transition: var(--transition);
}
.back-home:hover { background:rgba(232,87,42,0.12); color:var(--text-primary); }

/* Video Player */
.video-player-wrap {
  position: relative; width:100%; max-width:900px;
  margin:0 auto 18px; border-radius:10px; overflow:hidden;
  background:#000; aspect-ratio:16/9;
}
.video-player-wrap video,
.video-player-wrap iframe { width:100%; height:100%; border:none; }

/* Server Buttons */
.server-buttons {
  display: flex; gap:7px; margin-bottom:20px;
  max-width:900px; margin-left:auto; margin-right:auto; flex-wrap:wrap;
}
.server-btn {
  padding: 7px 18px; border-radius:6px; font-size:0.83rem; font-weight:600;
  border: 1px solid var(--border-color); cursor:pointer; transition:var(--transition);
  font-family:var(--font-main);
  background:rgba(255,255,255,0.04); color:var(--text-secondary);
}
.server-btn.active { background:var(--accent-orange); color:white; border-color:var(--accent-orange); }
.server-btn:hover:not(.active) {
  background:rgba(232,87,42,0.12); border-color:var(--accent-orange); color:var(--text-primary);
}

/* Single Meta */
.single-header { max-width:900px; margin:0 auto; }
.single-title { font-size:1.35rem; font-weight:700; line-height:1.4; margin-bottom:10px; }
.single-meta {
  display:flex; flex-wrap:wrap; gap:14px; margin-bottom:14px;
  font-size:0.83rem; color:var(--text-muted);
}
.single-meta span { display:inline-flex; align-items:center; gap:5px; }
.single-meta .views-count { color:var(--accent-yellow); }
.single-meta .category-link { color:var(--accent-orange); }
.single-meta .category-link:hover { text-decoration:underline; }

.single-description {
  max-width:900px; margin:0 auto 18px;
  font-size:0.88rem; line-height:1.7; color:var(--text-secondary);
}

/* Tags Pills */
.tags-pills { display:flex; flex-wrap:wrap; gap:7px; max-width:900px; margin:0 auto 18px; }
.tag-pill {
  display:inline-block; padding:5px 13px;
  background:rgba(255,255,255,0.05); border:1px solid var(--border-color);
  border-radius:20px; font-size:0.78rem; color:var(--text-secondary);
  transition:var(--transition);
}
.tag-pill:hover {
  background:rgba(232,87,42,0.15); border-color:var(--accent-orange); color:var(--text-primary);
}

/* Action Buttons */
.action-buttons {
  display:flex; gap:10px; max-width:900px; margin:0 auto 28px; flex-wrap:wrap;
}
.btn-download {
  display:inline-flex; align-items:center; gap:7px;
  padding:9px 22px; background:var(--accent-green); color:white;
  border:none; border-radius:6px; font-size:0.88rem; font-weight:600;
  cursor:pointer; transition:var(--transition); font-family:var(--font-main); text-decoration:none;
}
.btn-download:hover { background:#17a244; transform:translateY(-2px); box-shadow:0 4px 14px rgba(29,185,84,0.3); }

.btn-report {
  display:inline-flex; align-items:center; gap:7px;
  padding:9px 22px; background:transparent; color:var(--accent-orange);
  border:1px solid var(--accent-orange); border-radius:6px;
  font-size:0.88rem; font-weight:600; cursor:pointer;
  transition:var(--transition); font-family:var(--font-main); text-decoration:none;
}
.btn-report:hover { background:rgba(232,87,42,0.1); transform:translateY(-2px); }

/* Photo Gallery */
.photo-gallery { max-width:900px; margin:0 auto 36px; }
.photo-gallery h3 { font-size:1.1rem; font-weight:700; margin-bottom:14px; }
.photo-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.photo-grid img {
  width:100%; aspect-ratio:3/4; object-fit:cover;
  border-radius:6px; cursor:pointer; transition:var(--transition);
}
.photo-grid img:hover { transform:scale(1.05); box-shadow:var(--shadow-hover); }

/* Related Videos */
.related-videos { max-width:1440px; margin:0 auto; padding:0 20px 36px; }
.related-videos h3 {
  font-size:1.1rem; font-weight:700; margin-bottom:18px;
  display:flex; align-items:center; gap:10px;
}
.related-videos h3::before {
  content:''; display:block; width:4px; height:16px;
  background:var(--accent-orange); border-radius:2px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrap {
  display:flex; justify-content:center; align-items:center;
  gap:6px; padding:28px 0 46px;
}
.pagination-wrap a,
.pagination-wrap span {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:40px; height:40px; padding:0 12px;
  border-radius:6px; font-size:0.88rem; font-weight:500;
  transition:var(--transition); border:1px solid var(--border-color);
  color:var(--text-secondary);
}
.pagination-wrap a:hover {
  background:rgba(232,87,42,0.12); border-color:var(--accent-orange); color:var(--text-primary);
}
.pagination-wrap .current,
.pagination-wrap span.current {
  background:var(--accent-orange); color:white;
  border-color:var(--accent-orange); font-weight:700;
  box-shadow:0 4px 14px rgba(232,87,42,0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-color);
  padding: 28px 0;
}
.footer-inner {
  max-width:1440px; margin:0 auto; padding:0 20px;
  display:flex; flex-direction:column; align-items:center; gap:14px;
}
.footer-top {
  display:flex; align-items:center; gap:18px; flex-wrap:wrap; justify-content:center;
}
.footer-logo {
  font-size:1.25rem; font-weight:900;
  background:var(--gradient-logo);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.footer-links { display:flex; align-items:center; gap:14px; }
.footer-links a { color:var(--text-muted); font-size:0.82rem; transition:var(--transition); }
.footer-links a:hover { color:var(--accent-orange); }
.footer-social { display:flex; gap:10px; }
.footer-social a {
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%;
  background:rgba(255,255,255,0.05); color:var(--text-muted);
  font-size:0.95rem; transition:var(--transition);
}
.footer-social a:hover { background:var(--accent-orange); color:white; transform:translateY(-2px); }
.footer-copyright { font-size:0.77rem; color:var(--text-muted); text-align:center; }

/* ============================================
   LIVE CHAT WIDGET
   ============================================ */
.livechat-widget { position:fixed; bottom:28px; right:28px; z-index:998; }
.livechat-widget .chat-btn {
  display:flex; align-items:center; justify-content:center;
  width:52px; height:52px; border-radius:50%;
  background:linear-gradient(135deg, var(--accent-orange), #c2400a);
  color:white; border:none; font-size:1.3rem; cursor:pointer;
  transition:var(--transition); box-shadow:0 4px 18px rgba(232,87,42,0.45);
}
.livechat-widget .chat-btn:hover {
  transform:scale(1.1) translateY(-3px); box-shadow:0 8px 28px rgba(232,87,42,0.6);
}
.livechat-panel {
  display:none; position:absolute; bottom:64px; right:0;
  width:330px; max-height:460px;
  background:#18181c; border:1px solid #2a2a30;
  border-radius:12px; overflow:hidden;
  box-shadow:0 20px 55px rgba(0,0,0,0.55); animation:fadeInUp 0.3s ease; flex-direction:column;
}
.livechat-panel.active { display:flex; }
.livechat-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:13px 15px; background:#222228; border-bottom:1px solid #2a2a30;
}
.livechat-title { font-size:0.92rem; font-weight:700; color:white; }
.livechat-header-right { display:flex; align-items:center; gap:10px; }
.livechat-online {
  display:inline-flex; align-items:center; gap:4px;
  font-size:0.77rem; color:#1db954; font-weight:600;
}
.livechat-online::before {
  content:''; width:7px; height:7px; border-radius:50%; background:#1db954;
  display:inline-block; animation:onlinePulse 2s infinite;
}
@keyframes onlinePulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.livechat-close { background:none; border:none; color:#555; font-size:1rem; cursor:pointer; padding:0; transition:color 0.2s; }
.livechat-close:hover { color:white; }
.livechat-messages {
  flex:1; overflow-y:auto; padding:11px 13px; max-height:300px; min-height:180px;
  display:flex; flex-direction:column; gap:9px;
}
.livechat-welcome { text-align:center; color:var(--accent-green); font-size:0.83rem; font-style:italic; padding:7px 0; }
.livechat-msg { padding:0; }
.livechat-msg-name { font-size:0.73rem; font-weight:700; color:var(--accent-orange); margin-bottom:2px; }
.livechat-msg-name.admin { color:var(--accent-red); }
.livechat-msg-text { font-size:0.83rem; color:#ccc; line-height:1.4; word-break:break-word; }
.livechat-msg-time { font-size:0.62rem; color:#444; float:right; margin-top:2px; }
.livechat-input {
  padding:9px 13px 13px; background:#1c1c20; border-top:1px solid #2a2a30;
  display:flex; flex-direction:column; gap:7px;
}
.livechat-input input {
  background:#242428; border:1px solid #333;
  color:white; border-radius:6px; padding:7px 11px;
  font-size:0.83rem; outline:none; font-family:var(--font-main); transition:border-color 0.2s;
}
.livechat-input input:focus { border-color:var(--accent-orange); }
.livechat-input input::placeholder { color:#555; }
#livechat-name { width:100%; }
.livechat-msg-row { display:flex; gap:7px; }
.livechat-msg-row input { flex:1; }
#livechat-send {
  background:var(--accent-orange); color:white; border:none;
  border-radius:6px; padding:7px 13px; font-size:0.95rem; cursor:pointer; transition:background 0.2s; flex-shrink:0;
}
#livechat-send:hover { background:#c2400a; }

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-header { padding:26px 0 8px; }
.search-header h1 { font-size:1.3rem; font-weight:700; }
.search-header h1 span { color:var(--accent-orange); }

.no-results { text-align:center; padding:70px 20px; color:var(--text-muted); }
.no-results h2 { font-size:1.4rem; margin-bottom:10px; color:var(--text-primary); }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width:7px; }
::-webkit-scrollbar-track { background:var(--bg-primary); }
::-webkit-scrollbar-thumb { background:var(--border-color); border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background:#444; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
  from { opacity:0; transform:translateY(-8px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}
.video-card { animation:fadeInUp 0.4s ease both; }
.video-card:nth-child(1){animation-delay:0.04s} .video-card:nth-child(2){animation-delay:0.08s}
.video-card:nth-child(3){animation-delay:0.12s} .video-card:nth-child(4){animation-delay:0.16s}
.video-card:nth-child(5){animation-delay:0.20s} .video-card:nth-child(6){animation-delay:0.24s}
.video-card:nth-child(7){animation-delay:0.28s} .video-card:nth-child(8){animation-delay:0.32s}
.video-card:nth-child(9){animation-delay:0.36s} .video-card:nth-child(10){animation-delay:0.40s}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,0.96); z-index:2000;
  align-items:center; justify-content:center; cursor:pointer;
}
.lightbox-overlay.active { display:flex; }
.lightbox-overlay img { max-width:90vw; max-height:90vh; object-fit:contain; border-radius:6px; }
.lightbox-close {
  position:absolute; top:18px; right:26px;
  color:white; font-size:1.9rem; cursor:pointer; background:none; border:none; z-index:2001;
}

/* ============================================
   VIDEO UNLOCK OVERLAY
   ============================================ */
#video-unlock-overlay {
  position:absolute; inset:0; background:rgba(0,0,0,0.85);
  display:flex; align-items:center; justify-content:center; z-index:10;
  cursor:pointer; transition:opacity 0.5s ease; backdrop-filter:blur(6px);
}
.unlock-content { text-align:center; padding:18px; }
.unlock-play-icon {
  font-size:3.5rem; color:white; width:84px; height:84px; border-radius:50%;
  background:rgba(232,87,42,0.25); border:2px solid rgba(255,255,255,0.25);
  display:flex; align-items:center; justify-content:center; margin:0 auto 18px; transition:all 0.3s;
}
#video-unlock-overlay:hover .unlock-play-icon { background:rgba(232,87,42,0.45); transform:scale(1.1); }
.unlock-text { color:white; font-size:0.95rem; font-weight:600; margin-bottom:14px; text-shadow:0 2px 4px rgba(0,0,0,0.5); }
.unlock-progress-bar { width:190px; height:5px; background:rgba(255,255,255,0.12); border-radius:3px; overflow:hidden; margin:0 auto; }
.unlock-progress-fill {
  height:100%; width:0%;
  background:linear-gradient(90deg, var(--accent-orange), #ff9a5a);
  border-radius:3px; transition:width 0.4s ease;
}
.unlock-badge {
  display:inline-flex; align-items:center; gap:4px; padding:3px 11px;
  background:rgba(224,49,49,0.12); border:1px solid rgba(224,49,49,0.3);
  border-radius:20px; font-size:0.77rem; font-weight:600; color:var(--accent-red); transition:all 0.3s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .video-grid { grid-template-columns:repeat(4,1fr); gap:16px; }
  .hero-title { font-size:1.8rem; }
}

@media (max-width: 1024px) {
  .video-grid { grid-template-columns:repeat(3,1fr); gap:15px; }
  .main-nav a { padding:6px 9px; font-size:0.8rem; }
  .header-search input { width:130px; }
  .photo-grid { grid-template-columns:repeat(4,1fr); }
  .hero-slider { height:400px; }
  .hero-content { padding-left:40px; }
  .hero-title { font-size:1.6rem; }
}

@media (max-width: 768px) {
  .video-grid { grid-template-columns:repeat(2,1fr); gap:12px; }
  .main-nav {
    display:none; position:fixed;
    top:var(--header-height); left:0; right:0; bottom:0;
    background:var(--bg-secondary); padding:18px;
    flex-direction:column; overflow-y:auto; z-index:999;
  }
  .main-nav.active { display:flex; }
  .main-nav ul { flex-direction:column; width:100%; }
  .main-nav a { padding:13px 14px; font-size:0.95rem; border-bottom:1px solid var(--border-color); border-radius:0; }
  .mobile-menu-toggle { display:block; }
  .header-search input { width:110px; }
  .header-search input:focus { width:150px; }
  .tags-toggle { display:none; }
  .server-buttons { justify-content:center; }
  .photo-grid { grid-template-columns:repeat(3,1fr); }
  .single-title { font-size:1.1rem; }
  .hero-slider { height:320px; }
  .hero-content { padding-left:24px; max-width:85%; }
  .hero-title { font-size:1.3rem; }
  .hero-desc { display:none; }
  .container { padding:0 12px; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns:repeat(2,1fr); gap:9px; }
  .card-info { padding:7px 9px 11px; }
  .card-title { font-size:0.78rem; }
  .card-views { font-size:0.7rem; }
  .duration-badge { font-size:0.66rem; padding:2px 5px; }
  .photo-grid { grid-template-columns:repeat(2,1fr); }
  .action-buttons { flex-direction:column; }
  .btn-download,.btn-report { justify-content:center; }
  .hero-slider { height:260px; }
  .hero-title { font-size:1.1rem; }
  .hero-btn { padding:10px 20px; font-size:0.82rem; }
}
/* =========================================
   STYLE CHO CHỮ "HOT" GÓC PHẢI NHƯ GVHOT
   ========================================= */
.card-thumbnail {
    position: relative;
    overflow: hidden !important;
}

.hot-badge {
    position: absolute;
    top: 12px;
    right: -28px;
    background-color: #fc3041;
    background-image: linear-gradient(135deg, #fc3041, #cf1624);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 30px;
    text-transform: uppercase;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4);
    pointer-events: none;
}
/* ============================================
   MOBILE FIXES — COMPREHENSIVE
   ============================================ */

/* ── Ẩn search text trên điện thoại nhỏ, chỉ giữ icon ── */
@media (max-width: 640px) {
  .header-search input {
    width: 0 !important;
    padding: 7px 8px !important;
    border-color: transparent !important;
    background: transparent !important;
  }
  .header-search input:focus {
    width: 140px !important;
    padding: 7px 36px 7px 12px !important;
    border-color: rgba(232,87,42,0.5) !important;
    background: rgba(232,87,42,0.07) !important;
  }
  .header-search button {
    right: 0; left: 0;
    width: 36px;
    color: var(--text-secondary);
  }

  /* Logo nhỏ hơn chút */
  .site-logo { font-size: 1.2rem; margin-right: 12px; }

  /* Tags toggle ẩn hoàn toàn trên mobile nhỏ */
  .tags-toggle { display: none !important; }

  /* Bell nhỏ lại */
  .notification-bell { padding: 5px; font-size: 1rem; }

  /* Header right gap nhỏ lại */
  .header-right { gap: 6px; }
}

/* ── Hero slider mobile ── */
@media (max-width: 640px) {
  .hero-slider { height: 240px; }
  .hero-content {
    padding: 0 16px 0 16px;
    max-width: 100%;
    justify-content: flex-end;
    padding-bottom: 40px;
  }
  .hero-category { font-size: 0.6rem; padding: 3px 8px; margin-bottom: 8px; }
  .hero-title {
    font-size: 1rem;
    -webkit-line-clamp: 2;
    margin-bottom: 10px;
  }
  .hero-desc { display: none; }
  .hero-btn {
    padding: 8px 16px;
    font-size: 0.78rem;
    gap: 5px;
  }
  .hero-arrow {
    width: 32px; height: 32px; font-size: 0.75rem;
  }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
  .hero-dots { bottom: 10px; gap: 5px; }
}

/* ── Video grid mobile ── */
@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .container { padding: 0 10px; }
  .card-info { padding: 6px 8px 10px; }
  .card-title {
    font-size: 0.76rem;
    -webkit-line-clamp: 2;
  }
  .card-views { font-size: 0.68rem; }
  .duration-badge { font-size: 0.62rem; padding: 2px 5px; }
  .section-heading { padding: 14px 0 12px; }
  .section-heading h2 { font-size: 0.9rem; }
}

/* ── Single post page mobile ── */
@media (max-width: 640px) {
  .single-content { padding: 16px 0; }
  .single-title { font-size: 1rem; }
  .single-meta { gap: 8px; font-size: 0.78rem; }
  .server-buttons { gap: 6px; flex-wrap: wrap; justify-content: center; }
  .server-btn { padding: 6px 14px; font-size: 0.78rem; }
  .action-buttons { flex-direction: column; gap: 8px; }
  .btn-download, .btn-report {
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  .tags-pills { gap: 5px; }
  .tag-pill { padding: 4px 10px; font-size: 0.74rem; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .related-videos { padding: 0 10px 24px; }
  .related-videos h3 { font-size: 0.95rem; margin-bottom: 12px; }
}

/* ── Live chat widget mobile ── */
@media (max-width: 480px) {
  .livechat-widget { bottom: 16px; right: 14px; }
  .livechat-widget .chat-btn { width: 46px; height: 46px; font-size: 1.1rem; }
  .livechat-panel {
    width: calc(100vw - 28px);
    right: 0;
    bottom: 58px;
  }
  /* lc-wrap từ version mới */
  #lc-wrap { bottom: 16px; right: 14px; }
  #lc-panel {
    width: calc(100vw - 28px);
    right: 0;
    bottom: 58px;
  }
  #lc-toggle { width: 46px; height: 46px; }
}

/* ── Footer mobile ── */
@media (max-width: 480px) {
  .footer-top { gap: 12px; flex-direction: column; }
  .footer-links { gap: 10px; }
  .footer-copyright { font-size: 0.72rem; padding: 0 10px; text-align: center; }
}

/* ── Tags dropdown mobile ── */
@media (max-width: 480px) {
  .tags-dropdown {
    right: 8px; left: 8px;
    max-width: none;
    width: auto;
  }
  .tags-dropdown .tag-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Pagination mobile ── */
@media (max-width: 480px) {
  .pagination-wrap { gap: 4px; padding: 20px 0 32px; }
  .pagination-wrap a,
  .pagination-wrap span {
    min-width: 34px; height: 34px;
    font-size: 0.8rem; padding: 0 8px;
  }
}

/* ── Prevent horizontal overflow ── */
html, body { overflow-x: hidden; max-width: 100vw; }
.container { box-sizing: border-box; }

/* ── Touch targets tối thiểu 44px ── */
@media (max-width: 768px) {
  .main-nav a, .tags-toggle, .notification-bell,
  .mobile-menu-toggle, .server-btn {
    min-height: 44px;
    display: flex; align-items: center;
  }
  .mobile-menu-toggle { min-height: unset; }
}

/* ============================================
   CUSTOM PLAYER WRAP — fix khoảng đen
   Dùng padding-bottom 56.25% = tỉ lệ 16:9
   Video position:absolute bên trong → không bao giờ overflow
   ============================================ */
.custom-player-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  /* aspect-ratio cố định — không phụ thuộc video metadata */
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.custom-player-wrap video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
}

/* Play button overlay */
.custom-player-wrap .gvhot-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70px; height: 70px;
  background: linear-gradient(135deg, #e8572a, #b00ebb);
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  transition: opacity 0.3s, transform 0.2s;
  padding-left: 4px;
}
.custom-player-wrap .gvhot-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Click counter text */
.custom-player-wrap #clickCounterText {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  color: #f5c518;
  font-weight: 600;
  text-align: center;
  z-index: 10;
  background: rgba(0,0,0,0.65);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
  margin: 0;
}

/* Mobile: thu nhỏ play button */
@media (max-width: 480px) {
  .custom-player-wrap .gvhot-play-btn {
    width: 54px; height: 54px;
  }
  .custom-player-wrap .gvhot-play-btn svg {
    width: 26px; height: 26px;
  }
  .custom-player-wrap #clickCounterText {
    font-size: 11px;
    padding: 4px 12px;
    bottom: 10px;
  }
}

/* ============================================
   SINGLE PAGE LAYOUT — fix spacing mobile
   ============================================ */
.single-content {
  padding: 20px 0 0;
}

.back-home {
  margin-bottom: 12px;
  display: inline-flex;
}

.container.single-video-layout {
  padding-bottom: 0;
}

/* single-header bọc trong container nếu chưa có */
.single-header,
.single-description,
.tags-pills,
.action-buttons {
  padding-left: 20px;
  padding-right: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .single-header,
  .single-description,
  .tags-pills,
  .action-buttons {
    padding-left: 12px;
    padding-right: 12px;
  }
  .single-title { font-size: 1rem; line-height: 1.4; }
  .single-meta { font-size: 0.76rem; gap: 8px; }
}

/* ============================================
   HEADER MOBILE — clean, không overflow
   ============================================ */
@media (max-width: 480px) {
  :root { --header-height: 52px; }
  .header-inner { padding: 0 12px; gap: 0; }
  .site-logo { font-size: 1.15rem; margin-right: 10px; }

  /* Search box collapse thành icon */
  .header-search { flex-shrink: 0; }
  .header-search input {
    width: 0 !important;
    min-width: 0;
    padding: 6px 30px 6px 6px !important;
    opacity: 0;
    transition: width 0.3s, opacity 0.3s;
    border-color: transparent !important;
    background: transparent !important;
    pointer-events: none;
  }
  .header-search input.expanded,
  .header-search:focus-within input {
    width: 120px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    border-color: rgba(232,87,42,0.5) !important;
    background: rgba(232,87,42,0.07) !important;
  }
  .header-search button {
    color: var(--text-secondary);
    font-size: 1rem;
  }
  .tags-toggle { display: none !important; }
  .header-right { gap: 4px; margin-left: 8px; }
  .notification-bell { padding: 4px; font-size: 1rem; }
  .mobile-menu-toggle { font-size: 1.3rem; padding: 4px; }
}