/* 
  TUBEFLEX CSS DESIGN SYSTEM
  Dark-Theme Premium Glassmorphism (Revised with System Fonts)
*/

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Fonts - System Font Stack */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Color Palette (Dark Theme Default) */
  --bg-primary: #0a0a0c;
  --bg-secondary: #121217;
  --bg-card: rgba(22, 22, 30, 0.7);
  --bg-card-hover: rgba(30, 30, 42, 0.85);
  
  --text-primary: #ffffff;
  --text-secondary: #9ea2b0;
  --text-muted: #646875;
  
  /* Gradients & Accents */
  --accent-color: #8c30f5;
  --accent-light: #ff4b5c;
  --accent-gradient: linear-gradient(135deg, #ff4b5c 0%, #8c30f5 100%);
  --accent-gradient-hover: linear-gradient(135deg, #ff6b7a 0%, #9d4eff 100%);
  --gold-gradient: linear-gradient(135deg, #f5b041 0%, #f4d03f 100%);
  --premium-glow: 0 0 20px rgba(140, 48, 245, 0.35);
  
  /* Borders & Blurs */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(140, 48, 245, 0.5);
  --glass-blur: blur(12px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  
  /* Ad Slots (Monetization Style) */
  --ad-bg: rgba(26, 21, 15, 0.8);
  --ad-border: rgba(245, 176, 65, 0.3);
  --ad-glow: 0 0 15px rgba(245, 176, 65, 0.15);
  
  /* UI Constants */
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --header-height: 72px;
}

/* Light Theme Variables */
body.light-theme {
  --bg-primary: #f5f6fa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(240, 242, 247, 0.8);
  --bg-card-hover: rgba(230, 233, 242, 0.95);
  
  --text-primary: #1e2022;
  --text-secondary: #616770;
  --text-muted: #9097a3;
  
  --border-color: rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  
  --ad-bg: rgba(255, 250, 240, 0.95);
  --ad-border: rgba(245, 176, 65, 0.5);
}

/* --- Global Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: inherit;
  font-weight: inherit;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-primary);
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
}

/* --- Utility Classes --- */
.container {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
}

/* Accent Gradients on text */
.title-accent, .logo-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Fallback Gradients for Categories */
.gradient-bg-1 { background: linear-gradient(135deg, #1f4037, #99f2c8); }
.gradient-bg-2 { background: linear-gradient(135deg, #f12711, #f5af19); }
.gradient-bg-3 { background: linear-gradient(135deg, #8a2387, #e94057, #f27121); }
.gradient-bg-4 { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.gradient-bg-5 { background: linear-gradient(135deg, #da22ff, #9114ff); }


/* --- Main Header & Navigation --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(10, 10, 12, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-smooth);
}
body.light-theme .main-header {
  background-color: rgba(255, 255, 255, 0.85);
}

.header-container {
  max-width: 1440px;
  width: 95%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  flex-shrink: 0;
}

.logo-link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

/* Search Bar Area */
.search-area {
  flex: 1 1 200px;
  max-width: 500px;
  min-width: 150px;
  margin: 0 20px;
  position: relative; /* necessary for dropdown positioning */
}

.search-form {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 4px 6px 4px 18px;
  transition: var(--transition-smooth);
}
body.light-theme .search-form {
  background-color: rgba(0, 0, 0, 0.03);
}

.search-form:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(140, 48, 245, 0.15);
  background-color: rgba(255, 255, 255, 0.08);
}

.search-form input {
  flex: 1;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 8px 0;
}
.search-form input::placeholder {
  color: var(--text-muted);
}

.search-submit {
  background: var(--accent-gradient);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.search-submit:hover {
  transform: scale(1.05);
  background: var(--accent-gradient-hover);
}

/* Search suggestions dropdown style */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background-color: rgba(18, 18, 23, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5), var(--premium-glow);
  padding: 16px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}
body.light-theme .search-dropdown {
  background-color: rgba(255, 255, 255, 0.98);
}

/* Trigger reveal dropdown on focus */
.search-area:focus-within .search-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-section h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-light);
  margin-bottom: 8px;
  font-weight: 700;
}

.dropdown-section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropdown-section li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 4px 0;
}
.dropdown-section li a:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.search-drop-icon {
  color: var(--text-muted);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 12px 0;
}

.dropdown-models {
  display: flex;
  gap: 12px;
}

.dropdown-model-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  transition: var(--transition-smooth);
}
body.light-theme .dropdown-model-card {
  background-color: rgba(0, 0, 0, 0.02);
}

.dropdown-model-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
}

.dropdown-model-card img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.drop-model-fallback {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.drop-model-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.dropdown-model-card:hover .drop-model-name {
  color: var(--text-primary);
}

/* Nav links */
.main-nav {
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.premium-btn {
  background: var(--gold-gradient);
  color: #1e2022 !important;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(245, 176, 65, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
}
.premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 176, 65, 0.35);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}
.theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}
body.light-theme .theme-toggle-btn {
  background-color: rgba(0, 0, 0, 0.03);
}

/* Show/Hide Theme icons */
.sun-icon { display: none; }
.moon-icon { display: block; }

body.light-theme .sun-icon { display: block; }
body.light-theme .moon-icon { display: none; }

/* Language Selector */
.lang-select-wrapper {
  position: relative;
}
.lang-select {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 28px;
}
.lang-select-wrapper::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-color: var(--text-secondary);
  clip-path: polygon(100% 0, 0 0, 50% 100%);
  pointer-events: none;
}
.lang-select:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}
.lang-select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}
body.light-theme .lang-select {
  background-color: rgba(0, 0, 0, 0.03);
}
body.light-theme .lang-select option {
  background-color: #ffffff;
  color: #000000;
}

/* Burger Menu Button (Mobile) */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}
.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}


/* --- Mobile Navigation Drawer --- */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

.drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.drawer-content {
  position: absolute;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background-color: var(--bg-secondary);
  box-shadow: -5px 0 25px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-drawer.open .drawer-content {
  right: 0;
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-close-btn {
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
}

.drawer-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 0;
}
.drawer-link.active, .drawer-link:hover {
  color: var(--text-primary);
}

.drawer-premium {
  background: var(--gold-gradient);
  color: #1e2022 !important;
  text-align: center;
  padding: 10px;
  border-radius: 50px;
  margin-top: 10px;
  font-weight: 600;
}

.drawer-search input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 50px;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  margin-bottom: 10px;
}

.drawer-search button {
  width: 100%;
  padding: 12px;
  background: var(--accent-gradient);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
}


/* --- Ad Containers & Banners --- */
.ad-container {
  display: block;
  width: 100%;
  margin: 20px 0;
}

.ad-wrapper {
  position: relative;
  background-color: var(--ad-bg);
  border: 1px solid var(--ad-border);
  box-shadow: var(--ad-glow);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  text-align: center;
}
.ad-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine-ad 6s infinite ease-in-out;
}

@keyframes shine-ad {
  0% { left: -100%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

.ad-label {
  display: none;
}

/* Header Banner Ad Specifics */
.header-ad-section {
  margin-top: calc(var(--header-height) + 15px);
  max-width: 1400px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.banner-728x90 {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header Ad Code Display Toggle */
.ad-desktop-wrapper {
  display: block;
}
.ad-mobile-wrapper {
  display: none;
}

.ad-link-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

.ad-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f5b041;
}

.ad-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
}

.ad-cta {
  background: var(--gold-gradient);
  color: #1e2022;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(245,176,65,0.2);
}
.ad-cta:hover {
  transform: translateY(-1px);
}


/* --- Breadcrumbs Navigation --- */
.breadcrumbs {
  margin-bottom: 20px;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  display: inline-block;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

body.light-theme .breadcrumbs {
  background-color: rgba(0, 0, 0, 0.02);
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs-list li {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.breadcrumbs-list li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--text-muted);
  font-weight: 400;
}

.breadcrumbs-list li a {
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.breadcrumbs-list li a:hover {
  color: var(--accent-light);
  text-shadow: 0 0 5px rgba(255, 75, 92, 0.3);
}

.breadcrumbs-list li span {
  color: var(--text-primary);
  font-weight: 600;
}


/* --- Main Layout Grid --- */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  padding-top: 15px;
}

.content-column {
  min-width: 0;
}


/* --- Component Containers --- */
.section-container {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent-color);
  padding-left: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.view-all-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.view-all-link:hover {
  color: var(--accent-light);
  transform: translateX(4px);
}


.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bottom-full-blocks .categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* --- Generic Hidden Helper --- */
.hidden {
  display: none !important;
}

/* --- Category Filter Box --- */
.category-filter-box {
  position: relative;
  margin-bottom: 24px;
  max-width: 100%;
}

.category-filter-box input {
  width: 100%;
  padding: 12px 40px 12px 18px;
  border-radius: var(--border-radius-md);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

body.light-theme .category-filter-box input {
  background-color: rgba(0, 0, 0, 0.02);
}

.category-filter-box input:focus {
  border-color: var(--border-focus);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 12px rgba(140, 48, 245, 0.15);
}

/* --- Category Row Cards --- */
.categories-list-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-row-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.category-row-card:hover {
  transform: translateY(-2px);
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(140, 48, 245, 0.1);
}

.category-row-link {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 20px;
  width: 100%;
}

.category-row-avatar-wrapper {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.category-row-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-row-card:hover .category-row-avatar {
  transform: scale(1.08);
}

.category-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.category-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.category-row-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.category-row-card:hover .category-row-name {
  color: var(--accent-light);
}

.category-row-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

body.light-theme .category-row-count {
  background-color: rgba(0, 0, 0, 0.03);
}

.category-row-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .category-row-link {
    gap: 12px;
    padding: 12px 14px;
  }
  
  .category-row-avatar-wrapper {
    width: 60px;
    height: 60px;
  }
  
  .category-row-name {
    font-size: 1rem;
  }
  
  .category-row-count {
    font-size: 0.72rem;
    padding: 2px 8px;
  }
  
  .category-row-desc {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
  }
}



.category-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.video-count {
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
  background-color: rgba(0, 0, 0);
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.category-name {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition-smooth);
}

.category-card:hover .category-img {
  transform: scale(1.1);
}

.category-card:hover .category-name {
  color: var(--accent-light);
}


/* --- Videos Grid Component --- */
.filter-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.tab-btn:hover {
  background-color: rgba(255,255,255,0.08);
}
.tab-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bottom-full-blocks .video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.video-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
}
.video-card:hover {
  transform: translateY(-5px);
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(140, 48, 245, 0.1);
}

.video-thumbnail-container {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-placeholder-gradient {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail, 
.video-card:hover .video-placeholder-gradient {
  transform: scale(1.04);
}

/* Overlays on Video Card */
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(10, 10, 12, 0.85);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.05);
}

.video-views-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(10, 10, 12, 0.85);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-rating {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(10, 10, 12, 0.85);
  color: #00ff88; /* Cyberpunk neon green */
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}
.play-overlay svg {
  color: white;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.video-card:hover .play-overlay {
  opacity: 1;
}
.video-card:hover .play-overlay svg {
  transform: scale(1);
}

/* Video card Info details */
.video-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-title {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8rem;
}
.video-title a:hover {
  color: var(--accent-light);
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.video-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-icon {
  color: var(--accent-light);
  display: inline-block;
  flex-shrink: 0;
}

.meta-link-model {
  color: var(--text-primary);
  font-weight: 600;
}
.meta-link-model:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.meta-link-category {
  color: var(--text-secondary);
}
.meta-link-category:hover {
  color: var(--accent-light);
}

.video-stats {
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.video-separator {
  margin: 0 6px;
}

/* Native Ad Card inside grid */
.native-ad-card {
  border: 1.5px solid var(--ad-border);
  box-shadow: var(--ad-glow);
  background-color: var(--ad-bg);
}

.ad-native-graphic {
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f5b041;
  position: relative;
}
.ad-graphic-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
}

.ad-badge {
  margin-top: 10px;
  background: var(--gold-gradient);
  color: #1e2022;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ad-action-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--gold-gradient);
  color: #1e2022;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.ad-tag {
  font-size: 0.65rem;
  color: #f5b041;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.ad-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}


/* --- Mid-Page Premium CTA Banner --- */
.premium-cta-banner {
  background: linear-gradient(135deg, rgba(22, 22, 30, 0.8) 0%, rgba(140, 48, 245, 0.15) 100%);
  border: 1px solid var(--border-color);
  box-shadow: var(--premium-glow);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 30px;
  align-items: center;
  backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
}
.premium-cta-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--accent-gradient);
  filter: blur(60px);
  opacity: 0.3;
}

.premium-cta-content h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.premium-cta-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 600px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 16px;
}

.cta-primary-btn {
  background: var(--accent-gradient);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(140, 48, 245, 0.3);
}
.cta-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(140, 48, 245, 0.45);
  background: var(--accent-gradient-hover);
}

.cta-secondary-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 50px;
}
.cta-secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

.premium-cta-graphic {
  display: flex;
  justify-content: center;
}

.glass-shield {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  animation: float-badge 3s ease-in-out infinite;
}

@keyframes float-badge {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.shield-icon {
  font-size: 2.5rem;
  margin-bottom: 4px;
}

.shield-badge {
  background: var(--gold-gradient);
  color: #1e2022;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}


/* --- Full Width Desktop Blocks (Below Grid Layout) --- */
.bottom-full-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* --- SEO Text Section (Spans 100%) --- */
.seo-text-section {
  margin-top: 40px;
}

.seo-card-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
}

.seo-title, .seo-card-wrapper h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.seo-preview-text, .seo-card-wrapper p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Expandable Details container */
.seo-details {
  border-top: 1px solid var(--border-color);
  margin-top: 15px;
  padding-top: 15px;
}

/* Remove default marker */
.seo-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.9rem;
  user-select: none;
}
.seo-summary::-webkit-details-marker {
  display: none;
}

.summary-text-close {
  display: none;
}

details[open] .seo-summary .summary-text-open {
  display: none;
}
details[open] .seo-summary .summary-text-close {
  display: inline;
}

.summary-arrow {
  transition: transform 0.3s ease;
}

details[open] .summary-arrow {
  transform: rotate(180deg);
}

.seo-details-content {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.seo-details-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 10px;
}

.seo-details-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}


/* --- Popular Tags Section (New) --- */
.tags-section {
  margin-top: 20px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  justify-content: center;
  align-items: center;
}

.tag-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: 50px;
  transition: var(--transition-smooth);
}

.tag-link:hover {
  color: var(--text-primary);
  border-color: var(--accent-light);
  background-color: rgba(255, 75, 92, 0.08);
  box-shadow: 0 0 10px rgba(255, 75, 92, 0.2);
  transform: translateY(-2px);
}


/* --- Sidebar Column & Widgets --- */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

/* Model Filter Searchbox */
.model-search-box {
  display: flex;
  align-items: center;
  background-color: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 18px;
  position: relative;
  transition: var(--transition-smooth);
}
body.light-theme .model-search-box {
  background-color: rgba(255,255,255,0.7);
}

.model-search-box:focus-within {
  border-color: var(--border-focus);
}

.model-search-box input {
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 100%;
}
.model-search-box input::placeholder {
  color: var(--text-muted);
}

.filter-clear-btn {
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  position: absolute;
  right: 12px;
}
.filter-clear-btn:hover {
  color: var(--text-primary);
}

/* Sidebar Model List item */
.sidebar-models-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-model-item {
  transition: var(--transition-smooth);
}
.sidebar-model-item.hidden {
  display: none;
}

.model-item-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-container {
  position: relative;
  width: 44px;
  height: 44px;
}

.model-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  transition: var(--transition-smooth);
}

.model-avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  border: 2px solid var(--border-color);
  transition: var(--transition-smooth);
}

.status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
}

.status-indicator.online { background-color: #2ecc71; }
.status-indicator.offline { background-color: var(--text-muted); }

.model-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.model-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.model-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.model-item-link:hover .model-avatar,
.model-item-link:hover .model-avatar-fallback {
  border-color: var(--accent-light);
  transform: scale(1.05);
}

.model-item-link:hover .model-name {
  color: var(--accent-light);
}

/* Sidebar Ad banner specifics */
.banner-300x250 {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-icon-game {
  font-size: 3rem;
  margin-bottom: 12px;
  text-align: center;
}

.sidebar-ad-section .ad-title {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #f5b041;
  font-weight: 700;
}

.sidebar-ad-section .ad-wrapper {
	height:258px;
}

.sidebar-ad-section .ad-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 16px;
}

.sidebar-ad-section .ad-cta {
  display: block;
  text-align: center;
  width: 100%;
}

/* Stats Widget */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* --- Main Footer Section --- */
.main-footer {
  background-color: #050507;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 100px 0; /* extra padding-bottom to avoid sticky footer ad overlap */
  margin-top: auto;
  transition: var(--transition-smooth);
}
body.light-theme .main-footer {
  background-color: #eaecef;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 300px;
}

.footer-links-group {
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.footer-links-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer-links-col a:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

.premium-btn-footer {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* --- Floating Sticky Footer Ad (PERMANENT) --- */
.sticky-footer-ad-section {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  z-index: 900;
}

.sticky-footer-ad-section .ad-wrapper {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  background-color: rgba(22, 22, 30, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  height: 100px;
}

.ad-desktop-wrapper .ad-wrapper {
	height: 92px;
}

body.light-theme .sticky-footer-ad-section .ad-wrapper {
  background-color: rgba(255, 255, 255, 0.95);
}

.ad-placeholder-footer {
  min-height: 50px;
}

.ad-link-mock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ad-icon {
  font-size: 1.8rem;
  margin-right: 15px;
}

.ad-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: 20px;
}

.ad-headline {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ad-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.sticky-footer-ad-section .ad-cta {
  padding: 6px 16px;
  font-size: 0.8rem;
}


/* --- Models Listing Grid (Option 2) --- */
.models-portrait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.model-portrait-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.model-portrait-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 75, 92, 0.25);
}

.model-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.model-portrait-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.model-portrait-card:hover .model-portrait-img,
.model-portrait-card:hover .model-portrait-fallback {
  transform: scale(1.08);
}

.model-portrait-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.4) 50%, rgba(10, 10, 12, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  box-sizing: border-box;
}

.model-portrait-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.model-badge-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 30px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.model-badge-status.live {
  background-color: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.3);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.2);
}

.model-badge-status.offline {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.model-badge-age {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 30px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.model-portrait-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.model-portrait-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}

.model-portrait-card:hover .model-portrait-name {
  color: var(--accent-light);
}

.model-portrait-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.model-portrait-sep {
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .models-portrait-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .models-portrait-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
}


/* --- Model Profile Card Styling --- */
.model-profile-section {
  margin-bottom: 30px;
}

.model-profile-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), var(--premium-glow);
}

.model-profile-avatar-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.avatar-glow-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 4px;
  background: var(--accent-gradient);
  box-shadow: 0 0 20px rgba(140, 48, 245, 0.3);
}

.profile-avatar-large {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-secondary);
}

.profile-status-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
}

.profile-status-indicator.online {
  background-color: #2ecc71;
  box-shadow: 0 0 10px #2ecc71;
}

.profile-status-indicator.offline {
  background-color: #95a5a6;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.profile-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.subscribe-btn {
  background: var(--accent-gradient);
  color: white;
  border: none;
}
.subscribe-btn:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-1px);
  box-shadow: var(--premium-glow);
}

.tip-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.tip-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-light);
}

.model-profile-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.profile-rank-badge {
  background: var(--gold-gradient);
  color: #1e2022;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(245, 176, 65, 0.2);
}

.profile-stats-row {
  display: flex;
  gap: 30px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}

.profile-stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.profile-meta-grid div strong {
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .model-profile-card {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 20px;
    gap: 20px;
  }
  
  .model-profile-avatar-area {
    width: 100%;
    max-width: 300px;
  }
  
  .model-profile-details {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  
  .profile-name-row {
    flex-direction: column;
    align-items: center;
  }
  
  .profile-stats-row {
    width: 100%;
    justify-content: center;
    gap: 40px;
  }
  
  .profile-meta-grid {
    grid-template-columns: 1fr;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
  }
}


/* --- Cyberpunk Glassmorphic Pagination --- */
.pagination-container {
  margin: 35px 0 15px 0;
  display: flex;
  justify-content: center;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

body.light-theme .pagination-btn {
  background-color: rgba(0, 0, 0, 0.02);
}

.pagination-btn:hover:not(.disabled) {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--accent-light);
  box-shadow: 0 0 10px rgba(255, 75, 92, 0.15);
}

body.light-theme .pagination-btn:hover:not(.disabled) {
  background-color: rgba(0, 0, 0, 0.05);
}

.pagination-btn.active {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  box-shadow: var(--premium-glow);
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Mobile specific styling adjustments for pagination */
@media (max-width: 600px) {
  .pagination-list {
    gap: 4px;
  }
  
  .pagination-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 0.8rem;
    gap: 2px;
  }

  .pagination-btn svg {
    width: 14px;
    height: 14px;
  }
}


/* --- Responsive Media Queries --- */

/* 1. Large Screen / Laptops (Collapse Sidebar into main flow) */
@media (max-width: 1200px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .sidebar-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .sidebar-ad-section {
    grid-column: span 2;
  }
}

/* 2. Tablets (Resizing grids, burger menu introduction) */
@media (max-width: 900px) {
  .categories-grid, .bottom-full-blocks .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bottom-full-blocks .video-grid, .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .ad-link-mock {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .banner-728x90 {
    min-height: 120px;
  }
  
  .ad-subtitle {
    display: none;
  }
  
  /* Header Mobile Ad constraints: 300x100 exactly */
  .ad-desktop-wrapper {
    display: none;
  }
  .ad-mobile-wrapper {
    display: block;
  }
  
  .header-ad-section .ad-wrapper {
    max-width: 320px; /* 300px + some padding gap */
    margin: 0 auto;
    padding: 8px;
    height: 116px;
  }
  
  .banner-mobile-300x100 {
    width: 300px;
    height: 100px;
    min-height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ad-link-mock-mobile {
    width: 100%;
    text-align: center;
    display: block;
  }

  .ad-mobile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .ad-title-mobile {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f5b041;
  }

  .ad-cta-mobile {
    background: var(--gold-gradient);
    color: #1e2022;
    padding: 4px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(245, 176, 65, 0.2);
    display: inline-block;
  }

  .header-ad-section {
    margin-top: calc(var(--header-height) + 10px);
  }
}

/* 3. Small Mobile Devices */
@media (max-width: 600px) {
  :root {
    --header-height: 60px;
  }  
  
  .search-area {
    display: none; /* Hide header search box on mobile; drawer has search input */
  }
  
  .categories-grid, .bottom-full-blocks .categories-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
  }
  
  .view-all-link {
	  display: none;
  }
  
  .video-grid, .bottom-full-blocks .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .sidebar-column {
    grid-template-columns: 1fr;
  }
  
  .sidebar-ad-section {
    grid-column: span 1;
  }

  /* Premium CTA banner adjust */
  .premium-cta-banner {
    grid-template-columns: 1fr;
    padding: 24px;
    text-align: center;
  }
  
  .premium-cta-content p {
    margin-bottom: 16px;
  }
  
  .cta-actions {
    justify-content: center;
  }
  
  .premium-cta-graphic {
    display: none;
  }
  
  /* Footer adjust */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-links-group {
    grid-column: span 1;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Sticky footer ad layout change */
  .sticky-footer-ad-section .ad-wrapper {
    padding: 0;
    height: 102px;
  }

  .banner-footer-mobile {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ad-link-mock-footer-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }

  .ad-headline-mobile {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
    flex: 1;
  }

  .ad-cta-mobile-footer {
    background: var(--gold-gradient);
    color: #1e2022;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.72rem;
    box-shadow: 0 4px 10px rgba(245, 176, 65, 0.2);
    display: inline-block;
  }

  .main-footer {
    padding-bottom: 80px; /* mobile footer ad offset spacing */
  }
}

/* ==========================================================================
   VIDEO WATCH PAGE SPECIFIC STYLES (Template 01)
   ========================================================================= */

/* Player Wrapper & Fluid Player Override */
.player-container-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9; /* Perfect widescreen aspect ratio on desktop */
  min-height: 500px;
  background-color: #000000;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--premium-glow);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#video-player {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
}

/* Fluid player customized style override to match wrapper height */
.player-container-wrapper .fluid_video_wrapper {
  width: 100% !important;
  height: 100% !important;
  min-height: 500px !important;
}

/* Ad Overlay styles (300x250 Banner) */
.player-ad-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99; /* Ensure it floats above fluid player controls */
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.player-ad-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-ad-card {
  width: 300px;
  height: 250px;
  background: rgba(22, 22, 30, 0.98);
  border: 1px solid var(--ad-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--ad-glow), 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.player-ad-header {
  height: 38px;
  padding: 0 12px;
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-ad-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.player-ad-play-btn {
  width: 100%;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.04);
  border: none;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.player-ad-play-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  color: var(--text-muted);
}

.player-ad-play-btn:not(:disabled) {
  background: var(--accent-gradient);
  border-top-color: transparent;
  color: #ffffff;
  box-shadow: 0 -4px 15px rgba(255, 75, 92, 0.15), var(--premium-glow);
}

.player-ad-play-btn:not(:disabled):hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 -4px 25px rgba(255, 75, 92, 0.25), var(--premium-glow);
}

.player-ad-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.player-ad-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.player-ad-link:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.player-ad-graphic {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.ad-icon {
  font-size: 1.4rem;
}

.player-ad-graphic strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f5b041; /* Amber/gold accent for ad title */
}

.player-ad-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2 lines to fit bottom button space */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.player-ad-cta {
  align-self: flex-start;
  background: var(--gold-gradient);
  color: #121217;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(245, 176, 65, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: var(--transition-smooth);
}

.player-ad-link:hover .player-ad-cta {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(245, 176, 65, 0.4);
}

/* Watch Page Meta & Info */
.watch-video-info {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--glass-shadow);
}

.watch-video-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.watch-video-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.watch-left-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.watch-separator {
  color: var(--text-muted);
}

.watch-likes {
  color: var(--accent-light);
  font-weight: 600;
}

.watch-actions {
  display: flex;
  gap: 8px;
}

.watch-action-btn {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.watch-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-light);
  color: var(--text-primary);
  box-shadow: 0 0 10px rgba(255, 75, 92, 0.15);
}

/* Creator Meta Row Link */
.watch-creator-meta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.watch-creator-avatar-mini {
  border-radius: 50%;
  border: 1.5px solid var(--accent-color);
  box-shadow: 0 0 8px rgba(140, 48, 245, 0.3);
  object-fit: cover;
  transition: var(--transition-smooth);
}

.watch-creator-meta-link:hover .watch-creator-avatar-mini {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(140, 48, 245, 0.5);
  border-color: var(--accent-light);
}

.creator-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.watch-creator-meta-link:hover .creator-name {
  color: var(--accent-light);
}

/* Video Description Box */
.watch-video-desc-box {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.watch-video-desc-box p {
  margin-bottom: 16px;
}

.watch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-tag-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  text-decoration: none;
  padding: 4px 10px;
  background-color: rgba(255, 75, 92, 0.05);
  border: 1px solid rgba(255, 75, 92, 0.15);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.watch-tag-link:hover {
  background-color: rgba(255, 75, 92, 0.12);
  border-color: var(--accent-light);
  transform: translateY(-1px);
}

/* Light Theme Styling Overrides */
body.light-theme .player-container-wrapper {
  background-color: #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.light-theme .watch-video-info {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

body.light-theme .watch-action-btn {
  background-color: rgba(0, 0, 0, 0.02);
  color: #1e2022;
}

body.light-theme .watch-action-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #000000;
}

body.light-theme .player-ad-card {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .player-container-wrapper {
    aspect-ratio: 16 / 9 !important;
    min-height: auto !important;
  }
  .player-container-wrapper .fluid_video_wrapper {
    min-height: auto !important;
  }
  .watch-video-title {
    font-size: 1.3rem;
  }
  .watch-video-stats-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .watch-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 500px) {
  .player-ad-card {
    transform: scale(0.9);
  }
}

/* Multiple Creators display in watch page */
.watch-creators-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.watch-creator-avatar-mini.fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  border: 1.5px solid var(--accent-color);
  box-shadow: 0 0 8px rgba(140, 48, 245, 0.3);
}

.creator-comma {
  color: var(--text-muted);
  margin-right: 4px;
}

