/* css/style.css */
:root{
	--bg:#0e0f12; --bg-secondary:#1a1d23; --card:#1f2228; --border:#2a2d33; --text:#f8f9fa; --text-muted:#adb5bd; --muted:#adb5bd; --accent:#ff4d6d; --accent-hover:#ff6b8a; --accent-2:#ffb703;
	--primary:#ff4d6d; --secondary:#ffb703; --success:#28a745; --warning:#ffc107; --danger:#dc3545; --info:#17a2b8;
	--space-xs:4px; --space-sm:8px; --space-md:16px; --space-lg:24px; --space-xl:32px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font:16px/1.5 Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial;overflow-x:hidden}
body{position:relative;width:100%;max-width:100vw;touch-action:pan-y}
a{color:inherit;text-decoration:none}
.dg-container{max-width:1160px;margin:0 auto;padding:16px;overflow-x:hidden}
.dg-header{background:linear-gradient(90deg,var(--bg),var(--bg-secondary));border-bottom:1px solid var(--border);padding:12px 0;backdrop-filter:blur(10px);min-height:60px;transition:min-height 0.3s ease}
.dg-header.search-expanded{min-height:auto}
.dg-header .dg-container{display:flex;align-items:center;justify-content:space-between;gap:20px}
.dg-header-left{flex:0 0 auto}
.dg-header-center{flex:1 1 auto;max-width:400px;margin:0 20px}
.dg-search-icon{background:rgba(255,77,109,0.3);border:none;color:#fff;cursor:pointer;padding:10px 16px;border-radius:25px;transition:all 0.3s cubic-bezier(0.4,0,0.2,1);align-items:center;gap:8px;box-shadow:0 1px 4px rgba(255,77,109,0.1);font-weight:600}
.dg-search-icon:hover{transform:translateY(-1px);box-shadow:0 2px 8px rgba(255,77,109,0.15);background:rgba(255,77,109,0.4)}
.dg-search-icon:active{transform:translateY(0);box-shadow:0 1px 2px rgba(255,77,109,0.1)}
.dg-search-icon-text{font-size:14px;font-weight:600}
.dg-search-icon-loupe{font-size:16px}

@media (min-width:769px){
  .dg-search-icon{display:none !important}
}

@media (max-width:768px){
  .dg-header-center{display:none}
}
.dg-header-right{flex:0 0 auto}
.dg-logo{font-weight:800;letter-spacing:.5px;font-size:24px;white-space:nowrap}
.dg-logo span{color:var(--accent)}

/* Search */
.dg-search-wrap{position:relative;width:100%}
.dg-search-wrap input{width:100%;background:var(--card);border:1px solid var(--border);border-radius:20px;padding:8px 16px;color:var(--text);font-size:14px;transition:all 0.3s ease}
.dg-search-wrap input:focus{outline:2px solid var(--accent);outline-offset:2px;border-color:var(--accent);transform:scale(1.02)}
.dg-search-results{position:absolute;top:100%;left:0;right:0;background:var(--card);border:1px solid var(--border);border-radius:8px;z-index:9999;display:none;box-shadow:0 8px 32px rgba(0,0,0,0.5);max-height:400px;overflow-y:auto;margin-top:4px}
@media (min-width:769px){
  .dg-search-results{position:fixed;top:80px;left:50%;transform:translateX(-50%);width:400px;max-width:90vw}
}
.dg-search-list{}
.dg-search-item{display:flex;gap:12px;padding:12px;color:var(--text-muted);text-decoration:none;border-bottom:1px solid var(--border);transition:all 0.2s ease}
.dg-search-item:hover{background:var(--bg-secondary);color:var(--text)}
.dg-search-item:last-child{border-bottom:none}
.dg-search-thumb{width:40px;height:40px;object-fit:cover;border-radius:4px}
.dg-search-info{flex:1}
.dg-search-title{font-weight:600;margin-bottom:4px;font-size:14px}
.dg-search-meta{font-size:12px;color:var(--muted)}
.dg-search-empty{padding:16px;text-align:center;color:var(--muted)}
.dg-search-chips{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.dg-search-chip{padding:4px 8px;background:var(--bg-secondary);border:1px solid var(--border);border-radius:12px;color:var(--text-muted);font-size:12px;cursor:pointer;transition:all 0.2s ease}
.dg-search-chip:hover{background:var(--accent);color:#fff;border-color:var(--accent)}
.dg-search-history{margin-top:8px}
.dg-search-history-title{color:var(--text-muted);font-size:12px;margin-bottom:4px}
.dg-search-history-item{padding:4px 8px;background:var(--bg-secondary);border:1px solid var(--border);border-radius:12px;color:var(--text-muted);font-size:12px;cursor:pointer;transition:all 0.2s ease;margin-right:6px;margin-bottom:4px;display:inline-block}
.dg-search-history-item:hover{background:var(--accent);color:#fff;border-color:var(--accent)}

/* Mobile search modal */
.dg-search-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.8);z-index:10000;display:none;padding:20px}
.dg-search-modal-content{background:var(--card);border-radius:12px;padding:20px;max-width:500px;margin:50px auto 0;position:relative}
.dg-search-modal-close{position:absolute;top:10px;right:15px;background:none;border:none;color:var(--text-muted);font-size:24px;cursor:pointer;padding:5px}
.dg-search-modal-close:hover{color:var(--text)}
.dg-search-modal-title{margin:0 0 15px;font-size:18px;font-weight:600}
.dg-search-modal .dg-search-wrap{margin-bottom:15px}
.dg-search-modal .dg-search-results{position:relative;top:auto;left:auto;right:auto;transform:none;width:auto;max-width:none;margin-top:0;max-height:300px}
.dg-main{min-height:60vh}
.dg-footer{background:var(--bg);border-top:1px solid var(--border);color:var(--muted);padding:40px 0}
.dg-footer-content{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.dg-footer-left p{margin:0;font-size:14px}
.dg-footer-nav{display:flex;gap:20px;flex-wrap:wrap}
.dg-footer-nav a{color:var(--text-muted);text-decoration:none;font-size:14px;transition:color 0.2s ease}
.dg-footer-nav a:hover{color:var(--accent)}

/* Breadcrumbs */
.dg-bc{padding:12px 16px;color:var(--muted)}
.dg-bc a{color:var(--muted)} .dg-bc span{margin:0 6px}

/* Breadcrumbs */
.dg-breadcrumbs{margin:0 0 16px;color:var(--text-muted);font-size:14px}
.dg-breadcrumbs a{color:var(--accent);text-decoration:none;transition:color 0.2s ease}
.dg-breadcrumbs a:hover{color:#fff;text-decoration:underline}
.dg-breadcrumbs span{color:var(--muted)}

/* Filters */
.dg-archive-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.dg-archive-bc{flex:1 1 auto;min-width:240px}
.dg-filters{display:flex;flex-direction:column;gap:10px;margin:8px 0 14px;flex:0 0 auto}
.dg-filter-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-top:12px}
.dg-filter-row-left{display:flex;gap:10px;align-items:center}
.dg-filter-row-right{display:flex;gap:10px;align-items:center}
.dg-filter{padding:8px 12px;background:var(--card);border-radius:999px;color:var(--text-muted);text-decoration:none;transition:all 0.3s cubic-bezier(0.4,0,0.2,1)}
.dg-filter:hover{background:var(--bg-secondary);color:var(--text);transform:translateY(-2px)}
.dg-filter.active{background:var(--accent);color:#fff;box-shadow:0 4px 12px rgba(255,77,109,0.3)}

.dg-filter-favorites{padding:8px 12px;background:linear-gradient(135deg,#ff6b8a,#ff4d6d);border:none;border-radius:6px;color:#fff;cursor:pointer;display:flex;align-items:center;gap:6px;font-weight:600;transition:all 0.3s cubic-bezier(0.4,0,0.2,1);box-shadow:0 4px 12px rgba(255,77,109,0.3);min-width:120px;justify-content:center;font-size:13px}
.dg-filter-favorites:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(255,77,109,0.4)}
.dg-filter-favorites.active{background:linear-gradient(135deg,#ffd700,#ffb703);box-shadow:0 4px 12px rgba(255,215,0,0.3)}
.dg-filter-favorites.active:hover{box-shadow:0 6px 20px rgba(255,215,0,0.4)}
.dg-filter-icon{font-size:16px}
.dg-filter-text{font-size:14px}

.dg-sort-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:8px}
.dg-sort{padding:6px 10px;background:var(--card);border-radius:999px;color:var(--text-muted);text-decoration:none;transition:all 0.3s cubic-bezier(0.4,0,0.2,1);font-size:13px}
.dg-sort:hover{background:var(--bg-secondary);color:var(--text);transform:translateY(-1px)}
.dg-sort.active{background:var(--accent);color:#fff;box-shadow:0 2px 8px rgba(255,77,109,0.3)}

/* Hide search chips on desktop */
@media (min-width:769px){
  .dg-search-chips{display:none !important}
}

/* Grid */
.dg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
@media (max-width:1100px){.dg-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:768px){.dg-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.dg-grid{grid-template-columns:repeat(2,1fr)}}

@media (max-width:768px){
  .dg-grid{gap:12px}
  .dg-card-tags{display:none}
  .dg-tag,.dg-cat{display:none}
  .dg-card-title{font-size:1rem;font-weight:600;line-height:1.1}
  .dg-card-stats .dg-badge{font-size:0.8rem;padding:3px 8px}
  .dg-card-stats .dg-views{font-size:0.8rem}
  .dg-fav-toggle{width:36px;height:36px;font-size:1rem;top:8px;right:8px}
  .dg-card-tags{padding:8px 12px 12px;gap:4px}
  .dg-tag, .dg-cat{font-size:0.7rem;padding:4px 8px}
  
  /* Обновляем подписи в hero-stats на мобильных: просм. и рейтинг текстом */
  .hero-stats .stat:nth-child(3) .stat-label { font-size: 10px; }
  .hero-stats .stat:nth-child(4) .stat-label { font-size: 10px; }
}

/* AJAX фильтры - стабильная верстка карточек */
.dg-grid {
  transition: opacity 0.3s ease;
}

.dg-grid.loading {
  opacity: 0.5;
  pointer-events: none;
}

.dg-card {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Обеспечиваем одинаковую высоту карточек */
.dg-card-media {
  height: 320px; /* Фиксированная высота */
  min-height: 320px;
}

.dg-card-media img {
  height: 100%;
  object-fit: cover;
}

/* Общие стили карточки */
.dg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  background: #0b0c10;
  transition: all 0.25s ease;
}

.dg-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.dg-card.dg-favorite {
  border: 2px solid #FFD54A;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 100, 0.4);
}
/* Фото */
.dg-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.dg-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.dg-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.2);
}
/* Затемнение фона */
.dg-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 6, 8, 0.9), rgba(5, 6, 8, 0.3) 50%, rgba(5, 6, 8, 0) 80%);
  z-index: 1;
}

/* Контент поверх фото */
.dg-card-info {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
  padding: var(--space-md) var(--space-sm);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  color: #fff;
}

/* Заголовок */
.dg-card-title {
  color: var(--text);
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  font-size: 1.1em;
  margin: 0 0 8px;
  line-height: 1.1;
  text-align: center;
}
/* Статистика (фото, видео, просмотры) */
.dg-card-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dg-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 77, 109, 0.15);
  color: var(--text);
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  font-weight: 500;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.9rem;
  transition: background 0.2s;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5), 0 1px 6px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 77, 109, 0.3);
}

.dg-badge b {
  font-weight: 700;
}

.dg-badge:hover {
  background: rgba(255, 77, 109, 0.25);
  border-color: rgba(255, 77, 109, 0.5);
}

.dg-views {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 77, 109, 0.15);
  color: var(--text);
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  font-weight: 500;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.9rem;
  transition: background 0.2s;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5), 0 1px 6px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 77, 109, 0.3);
}

.dg-views:hover {
  background: rgba(255, 77, 109, 0.25);
  border-color: rgba(255, 77, 109, 0.5);
}

.dg-card-seo{display:none}
.dg-badge.photos::before{content:"📷"} .dg-badge.videos::before{content:"🎬"} .dg-badge.views::before{content:"👁️"}
.dg-views::before{content:"👁️ ";opacity:.7}
/* Кнопка "в избранное" */
.dg-fav-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 22, 26, 0.6);
  color: #ff5277;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dg-fav-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.dg-fav-toggle.active {
  background: rgba(255, 215, 100, 0.8);
  color: #0b0c10;
}

/* Теги */
.dg-card-tags {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 16px;
  background: #111217;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dg-tag,
.dg-cat {
  display: inline-block;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ccc;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.dg-tag:hover {
  background: rgba(255, 255, 255, 0.18);
}

.dg-cat {
  background: rgba(201, 74, 107, 0.7);
  color: #fff;
  font-weight: 600;
}

.dg-cat:hover {
  background: rgba(216, 87, 119, 0.8);
}

/* Stars */
.dg-stars{display:inline-flex;gap:4px}
.dg-stars .star{width:14px;height:14px;display:inline-block;background:conic-gradient(var(--accent-2) 0 0, transparent 0 100%)}
.dg-stars .star.empty{filter:grayscale(1) opacity(.35)}
.dg-stars .star.half{background:linear-gradient(90deg,var(--accent-2) 0 50%,#444 50% 100%)}
.dg-stars .star.full{background:var(--accent-2)}

/* Single */
.dg-single .dg-title{font-size:28px;font-weight:700;line-height:1.2;margin:4px 0 8px}
.dg-stats{display:flex;gap:10px;align-items:center;color:var(--text-muted)}
.dg-cover{position:relative;display:inline-block;width:100%}
.dg-cover img{width:100%;height:auto;border-radius:14px;margin:10px 0 14px;max-height:70vh;object-fit:cover;box-shadow:0 8px 32px rgba(0,0,0,0.3)}

/* ====== GIRL HERO (header only) ====== */

/* Контейнер */
.girl-hero {
  width: 100%;
  margin-bottom: 28px;
  padding: 0;
}

/* H1 — теперь внутри hero-right, над информационным блоком */
.girl-hero-title {
  margin: 0 0 20px 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  text-align: left;
  letter-spacing: -0.3px;
}

/* Показываем/скрываем заголовки в зависимости от устройства */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

@media (max-width: 880px) {
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
}

/* тело шапки — две колонки */
.girl-hero-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

/* ---- левая колонка (изображение) ---- */
.hero-left .hero-cover {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.04));
  border: 1px solid var(--border);
  box-shadow: var(--wp--preset--shadow--deep);
  max-height: 420px;                 /* ограничение высоты */
  height: 100%;
}
.hero-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform .45s cubic-bezier(.2,.9,.2,1);
}
.hero-cover:hover img { transform: scale(1.03); }

/* Кнопки поверх изображения — компактные, с прозрачной подложкой */
.hero-cover-actions {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  z-index: 6;
}
.btn-ghost {
  background: rgba(0,0,0,0.55);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background .18s, transform .12s;
}
.btn-ghost:hover { background: var(--accent); transform: translateY(-2px); }

/* ---- правая колонка (инфо-блок) ---- */
.hero-right .hero-info-card {
  background: linear-gradient(135deg, var(--card), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.hero-right .hero-info-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

/* Основная информация */
.hero-basic-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-name-age {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-real-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.hero-age {
  background: rgba(255, 77, 109, 0.15);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.hero-country {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.country-label {
  font-weight: 500;
}

.country-name {
  color: var(--text);
  font-weight: 500;
}

/* Статистика в рамке */
.hero-stats-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-around;
}

.hero-stats .stat {
  display: flex;
  flex-direction: column;
  text-align: center;
  min-width: 60px;
}

.stat .stat-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.stat .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Краткий абзац описания - жесткий line-clamp на контейнере */
.hero-shortdesc {
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* десктоп: 3 строки */
  max-height: 4.65em; /* 1.55 * 3 */
}
.hero-shortdesc p { margin: 0; display: inline; }

/* Телефон: не больше 4 строк */
@media (max-width: 768px) {
  .hero-shortdesc {
    -webkit-line-clamp: 4;
    max-height: 6.2em; /* 1.55 * 4 */
  }
}

/* SEO preview clamp: показываем только первые строки до клика */
article.dg-seo-text .dg-seo-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* десктоп: 3 строки */
}
@media (max-width: 768px) {
  article.dg-seo-text .dg-seo-preview { -webkit-line-clamp: 4; }
}

/* Теги и категории */
.hero-tags-cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-tags,
.hero-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.chip.tag {
  background: rgba(255,77,109,0.12);
  color: var(--accent);
  border: 1px solid rgba(255,77,109,0.06);
}

.chip.cat {
  background: rgba(255,183,3,0.10);
  color: var(--secondary);
  border: 1px solid rgba(255,183,3,0.06);
}

.chip:hover { 
  transform: translateY(-2px); 
}

.chip.tag:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.chip.cat:hover {
  background: var(--secondary);
  color: #000;
  border-color: var(--secondary);
}

/* Ограничиваем визуальную высоту всей шапки (чтобы при длинных текстах ничего не ломалось) */
.girl-hero-body { max-height: 460px; overflow: hidden; }

/* Заголовок статьи */
.article-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px 0;
  line-height: 1.2;
  text-align: center;
}

/* Разделители между секциями */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 40px 0;
  border: none;
}

/* Блок содержания - минималистичный стиль */
.dg-toc {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dg-toc h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 20px 0;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.dg-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dg-toc li {
  margin: 0;
}

.dg-toc a {
  display: block;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: all 0.2s ease;
  position: relative;
  border-left: 3px solid transparent;
}

.dg-toc a:hover {
  background: rgba(255, 77, 109, 0.1);
  border-left-color: var(--accent);
  color: var(--accent);
  transform: translateX(4px);
}

.dg-toc a:before {
  content: "→";
  opacity: 0;
  margin-right: 8px;
  transition: opacity 0.2s ease;
}

.dg-toc a:hover:before {
  opacity: 1;
}

/* Лайки для фотографий в галерее */
.dg-g-item-wrapper {
  position: relative;
  display: inline-block;
}

.dg-photo-likes {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.dg-photo-like-btn {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 12px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.dg-photo-like-btn:hover {
  background: rgba(255, 77, 109, 0.6);
  border-color: var(--accent);
  opacity: 0.8;
}

.dg-photo-like-btn.liked {
  background: var(--accent);
  border-color: var(--accent);
}

.dg-photo-like-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.dg-photo-like-btn:disabled:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: none !important;
}

.like-icon {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.dg-photo-like-btn:hover .like-icon {
  transform: scale(1.3);
}

.like-count {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

/* Мобильный поведение */
@media (max-width: 880px) {
  .girl-hero-body { 
    grid-template-columns: 1fr; 
    max-height: none; 
    display: flex;
    flex-direction: column;
  }
  
  /* На мобильных никнейм над картинкой по центру */
  .girl-hero-title.mobile-only {
    font-size: 28px; 
    margin-bottom: 16px;
    text-align: center;
  }
  
  .hero-cover { max-height: 420px; height: 420px; }
  
  /* Блок информации по ширине как фотография */
  .hero-right {
    width: 100%;
    max-width: none;
  }
  
  .hero-right .hero-info-card {
    width: 100%;
    margin: 0;
  }
  
  .article-title { font-size: 24px; margin-bottom: 20px; }
  .section-divider { margin: 30px 0; }
  .dg-toc { padding: 20px; margin-bottom: 24px; }
  .dg-toc h3 { font-size: 14px; margin-bottom: 16px; }
  .dg-toc ul { gap: 4px; }
  .dg-toc a { padding: 10px 14px; font-size: 14px; }
  
  /* Кнопки на фото - выравнивание по левому краю */
  .hero-cover-actions {
    left: 16px;
    bottom: 16px;
  }
  .btn-ghost {
    padding: 10px;
    font-size: 18px;
  }
  
  /* Лайки на мобильных */
  .dg-photo-likes {
    bottom: 8px;
  }
  .dg-photo-like-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
  .like-icon {
    font-size: 14px;
  }
}

/* ====== RATING PAGE ====== */
.dg-rating {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.dg-rating-header {
  text-align: center;
  margin-bottom: 40px;
}

.dg-rating-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.dg-rating-description {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto 20px auto;
}

.dg-update-ratings-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dg-update-ratings-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.dg-update-ratings-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.dg-rating-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dg-rating-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.dg-rating-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Top 3 special styling - less bright */
.dg-rating-item.top-1 {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
  color: white;
  border: 2px solid rgba(102, 126, 234, 0.6);
}

.dg-rating-item.top-2 {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.8) 0%, rgba(169, 169, 169, 0.8) 100%);
  color: white;
  border: 2px solid rgba(192, 192, 192, 0.6);
}

.dg-rating-item.top-3 {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.8) 0%, rgba(160, 82, 45, 0.8) 100%);
  color: white;
  border: 2px solid rgba(205, 127, 50, 0.6);
}

.dg-rating-position {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 60px;
}

.dg-rating-icon {
  font-size: 24px;
}

.dg-rating-number {
  font-size: 18px;
  font-weight: 700;
}

.dg-rating-girl {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.dg-rating-photo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.dg-rating-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dg-rating-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.dg-rating-info {
  flex: 1;
}

.dg-rating-name {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.dg-rating-name a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.dg-rating-name a:hover {
  opacity: 0.8;
}

.dg-rating-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dg-rating-points {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.dg-rating-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .dg-rating {
    padding: 16px;
  }
  
  .dg-rating-header h1 {
    font-size: 28px;
  }
  
  .dg-rating-description {
    font-size: 14px;
  }
  
  .dg-rating-item {
    padding: 16px;
    gap: 16px;
  }
  
  .dg-rating-position {
    min-width: 50px;
  }
  
  .dg-rating-icon {
    font-size: 20px;
  }
  
  .dg-rating-number {
    font-size: 16px;
  }
  
  .dg-rating-photo {
    width: 50px;
    height: 50px;
  }
  
  .dg-rating-name {
    font-size: 16px;
  }
  
  .dg-rating-points {
    font-size: 13px;
  }
}

/* Дополнительно: на главной скрыть More-фильтры на телефонах и ужать отступы секции */
@media (max-width: 768px) {
  .dg-filters-section { padding: 8px 0; margin: 12px 0; }
  .dg-filters-right a[href*="more_photos"],
  .dg-filters-right a[href*="more_videos"] { display: none !important; }
}
  }
}

/* ====== HERO STATS BOX WITH RANKING ====== */
.hero-stats-box {
  background: linear-gradient(135deg, var(--card), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-stats-box:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-ranking-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.hero-ranking-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  width: 100%;
}

.hero-ranking-link:hover {
  color: var(--accent);
  background: rgba(102, 126, 234, 0.15);
  transform: translateY(-1px);
}

.hero-ranking-link .ranking-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-ranking-link .ranking-position {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: center;
}

.stat {
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.stat:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.stat-num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile responsive for stats box */
@media (max-width: 880px) {
  .hero-stats-box {
    padding: 16px;
  }
  
  .hero-ranking-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  
  .hero-ranking-link {
    padding: 6px 10px;
  }
  
  .hero-ranking-link .ranking-label {
    font-size: 13px;
  }
  
  .hero-ranking-link .ranking-position {
    font-size: 15px;
  }
  
  .hero-stats {
    gap: 12px;
  }
  
  .stat {
    padding: 6px;
  }
  
  .stat-num {
    font-size: 18px;
  }
  
  .stat-label {
    font-size: 11px;
  }
}
.hero-name-age-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.hero-name-age-left {
  flex: 1;
  min-width: 0;
}

.hero-name-age-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-real-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.hero-age {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.hero-ranking-top-right {
  flex: 0 0 auto;
  margin-left: 15px;
}

.hero-ranking-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  white-space: nowrap;
}

.hero-ranking-link:hover {
  color: var(--accent);
  background: rgba(102, 126, 234, 0.15);
  transform: translateY(-1px);
}

.hero-ranking-link .ranking-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-ranking-link .ranking-position {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

/* Mobile responsive for name age row */
@media (max-width: 880px) {
  .hero-name-age-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .hero-name-age-left {
    width: 100%;
  }
  
  .hero-name-age-inline {
    gap: 10px;
  }
  
  .hero-real-name {
    font-size: 20px;
  }
  
  .hero-age {
    font-size: 15px;
  }
  
  .hero-ranking-top-right {
    margin-left: 0;
    align-self: flex-end;
  }
  
  .hero-ranking-link {
    padding: 5px 8px;
  }
  
  .hero-ranking-link .ranking-label {
    font-size: 11px;
  }
  
  .hero-ranking-link .ranking-position {
    font-size: 13px;
  }
}

/* ====== HERO TAGS CATEGORIES ====== */
.hero-tags-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Mobile responsive for tags categories */
@media (max-width: 880px) {
  .hero-tags-categories {
    gap: 6px;
  }
}

/* ====== HERO RANKING ====== */
.hero-ranking {
  margin: 15px 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 8px;
  text-align: center;
}

.hero-ranking-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

.hero-ranking-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.ranking-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.ranking-position {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(102, 126, 234, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Mobile responsive for ranking */
@media (max-width: 880px) {
  .hero-ranking {
    margin: 12px 0;
    padding: 10px 12px;
  }
  
  .ranking-label {
    font-size: 13px;
  }
  
  .ranking-position {
    font-size: 16px;
    padding: 3px 10px;
  }
}

/* ====== RANKING CHIPS ====== */
.ranking-chip {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 50px;
  font-size: 9px;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid;
  min-width: 16px;
  text-align: center;
}

.ranking-chip-top-1 {
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
  border-color: rgba(102, 126, 234, 0.3);
}

.ranking-chip-top-2 {
  background: rgba(192, 192, 192, 0.15);
  color: #c0c0c0;
  border-color: rgba(192, 192, 192, 0.3);
}

.ranking-chip-top-3 {
  background: rgba(205, 127, 50, 0.15);
  color: #cd7f32;
  border-color: rgba(205, 127, 50, 0.3);
}

.ranking-chip-top-10 {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
  border-color: rgba(52, 152, 219, 0.3);
}

/* ====== TOP GIRLS SECTION ====== */
.dg-top-girls {
  margin: 20px 0;
  padding: 15px 0;
}

.dg-top-girls-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
}

.dg-top-girls-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.dg-view-rating-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.dg-view-rating-link:hover {
  background: var(--accent);
  color: white;
}

.dg-top-girls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.dg-top-girl-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dg-top-girl-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dg-top-girl-position {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.dg-top-1 .dg-top-girl-position {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dg-top-2 .dg-top-girl-position {
  background: linear-gradient(135deg, #8b8b8b 0%, #696969 100%);
}

.dg-top-3 .dg-top-girl-position {
  background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
}

.dg-top-girl-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.dg-top-girl-image {
  position: relative;
  width: 100%;
  height: 230px; /* +30px высоты */
  overflow: hidden;
}

.dg-top-girl-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease; /* убрали любые фильтры/размытие */
}

/* Responsive heights for top-girl cards */
@media (max-width: 768px) {
  .dg-top-girl-image { height: 200px; }
}
@media (min-width: 1200px) {
  .dg-top-girl-image { height: 250px; }
}

.dg-top-girl-card:hover .dg-top-girl-image img {
  transform: scale(1.05);
}

.dg-top-girl-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  font-size: 48px;
  color: var(--text-muted);
}

.dg-top-girl-info {
  padding: 15px;
}

.dg-top-girl-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.dg-top-girl-rating {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* ====== HOT LEAKS HEADER ====== */
.dg-hot-leaks-header {
  margin: 15px 0;
  padding: 10px 0;
}

.dg-hot-leaks-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  text-align: center;
}

/* ====== FILTERS SECTION ====== */
.dg-filters-section {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dg-filters-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.dg-filters-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dg-filters-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dg-category-dropdown {
  position: relative;
}

.dg-cat-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 25px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dg-cat-dropdown-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.dg-cat-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dg-category-dropdown:hover .dg-cat-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dg-cat-dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.dg-cat-dropdown-menu a:last-child {
  border-bottom: none;
}

.dg-cat-dropdown-menu a:hover,
.dg-cat-dropdown-menu a.active {
  background: var(--accent);
  color: white;
}

.dg-filter-favorites {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 25px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dg-filter-favorites:hover,
.dg-filter-favorites.active {
  background: #e91e63;
  color: white;
  border-color: #e91e63;
}

.dg-filter {
  display: inline-block;
  padding: 10px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 25px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dg-filter:hover,
.dg-filter.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Mobile filters dropdown */
.dg-mobile-filters-dropdown {
  display: none;
  position: relative;
}

.dg-mobile-filters-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 25px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dg-mobile-filters-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.dg-mobile-filters-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dg-mobile-filters-dropdown:hover .dg-mobile-filters-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dg-mobile-filters-menu .dg-filter {
  display: block;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.dg-mobile-filters-menu .dg-filter:last-child {
  border-bottom: none;
}

/* Mobile responsive for filters */
@media (max-width: 768px) {
  .dg-filters-container {
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .dg-filters-left {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
  }
  
  .dg-filters-right {
    display: none; /* Hide right filters on mobile to prevent overlap */
  }
  
  .dg-mobile-filters-dropdown {
    display: none; /* Hide mobile dropdown, use inline filters */
  }
  
  .dg-filters-section {
    margin: 20px 0;
    padding: 15px 0;
  }
}

/* Tablet responsive for filters - keep all in one row */
@media (min-width: 769px) and (max-width: 992px) {
  .dg-filters-container {
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
  }
  .dg-filters-left {
    flex: 1;
    min-width: 0;
  }
  .dg-filters-right {
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
  }
  .dg-mobile-filters-dropdown {
    display: none;
  }
}

@media (max-width: 480px) {
  .dg-filters-container {
    gap: 6px;
  }
  
  .dg-filters-left {
    flex-direction: row;
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: center;
  }
  
  .dg-filters-right {
    display: none; /* Keep hidden on small screens */
  }
  
  .dg-cat-dropdown-btn {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    font-size: 11px;
  }
  
  .dg-cat-dropdown-btn .dg-filter-text {
    display: inline;
  }
  
  .dg-cat-dropdown-btn .dg-filter-icon {
    margin-right: 3px;
  }
  
  .dg-filter-favorites {
    flex: 0 0 auto;
    padding: 6px 8px;
    font-size: 11px;
    min-width: 0;
  }
  
  .dg-filter-favorites .dg-filter-text {
    display: inline;
  }
  
  .dg-filter-favorites .dg-filter-icon {
    margin-right: 3px;
  }
}
@media (max-width: 768px) {
  .dg-top-girls-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .dg-top-girls-header h2 {
    font-size: 20px;
  }
  
  .dg-top-girls-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .dg-top-girl-image {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .dg-top-girls {
    margin: 15px 0;
    padding: 10px 0;
  }
  
  .dg-top-girl-image {
    height: 200px;
  }
  
  .dg-top-girl-info {
    padding: 12px;
  }
  
  .dg-top-girl-name {
    font-size: 15px;
  }
  
  .dg-top-girl-rating {
    font-size: 13px;
  }
}

.dg-menu-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  margin-left: 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.dg-menu-toggle:hover {
  background: var(--card);
  color: var(--accent);
}

.menu-icon {
  font-size: 18px;
  line-height: 1;
}

/* Menu Modal */
.dg-menu-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  backdrop-filter: blur(10px);
}

.dg-menu-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dg-menu-modal-content {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dg-menu-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dg-menu-modal-close:hover {
  background: var(--bg);
  color: var(--accent);
}

.dg-menu-modal-title {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.dg-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.dg-menu-list li {
  margin-bottom: 8px;
}

.dg-menu-list a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 16px;
}

.dg-menu-list a:hover {
  background: var(--bg);
  color: var(--accent);
  transform: translateX(4px);
}

.dg-menu-categories h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.8;
}

.dg-menu-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dg-menu-categories-list li {
  margin-bottom: 6px;
}

.dg-menu-categories-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.dg-menu-categories-list a:hover {
  background: var(--bg);
  color: var(--accent);
  transform: translateX(4px);
}

.category-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.category-name {
  flex: 1;
}

/* Desktop menu - right side */
@media (min-width: 769px) {
  .dg-menu-modal.active {
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
  }
  
  .dg-menu-modal-content {
    max-width: 320px;
    width: 320px;
    margin-top: 60px;
    margin-right: 20px;
  }
}

/* Mobile menu - center */
@media (max-width: 768px) {
  .dg-menu-modal-content {
    max-width: 90%;
    width: 90%;
  }
  
  /* Mobile header scroll behavior */
  .dg-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
  }
  
  .dg-header.hidden {
    transform: translateY(-100%);
  }
  
  /* Add padding to main content to account for fixed header */
  .dg-main {
    padding-top: 70px;
  }
  
  /* Fix spacing between breadcrumbs and header */
  .dg-single {
    padding-top: 20px;
  }
}

/* Кнопки действий на фото заставке */
.dg-cover-actions{
  position:absolute;
  top:16px;
  right:16px;
  display:flex;
  gap:8px;
  z-index:10;
  opacity:0;
  visibility:hidden;
  transition:all 0.3s ease;
}

.dg-cover:hover .dg-cover-actions{
  opacity:1;
  visibility:visible;
}

.dg-cover-share-btn,
.dg-cover-fav-btn{
  display:flex;
  align-items:center;
  gap:6px;
  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:25px;
  padding:8px 12px;
  color:#fff;
  cursor:pointer;
  transition:all 0.3s cubic-bezier(0.4,0,0.2,1);
  font-size:13px;
  font-weight:500;
  text-shadow:0 1px 3px rgba(0,0,0,0.8);
  box-shadow:0 4px 12px rgba(0,0,0,0.3);
}

.dg-cover-share-btn:hover,
.dg-cover-fav-btn:hover{
  background:rgba(255,77,109,0.9);
  border-color:rgba(255,77,109,0.8);
  transform:translateY(-2px) scale(1.05);
  box-shadow:0 6px 20px rgba(255,77,109,0.4);
}

.dg-cover-fav-btn.active{
  background:rgba(255,215,100,0.9);
  border-color:rgba(255,215,100,0.8);
  color:#0b0c10;
  text-shadow:none;
}

.dg-cover-fav-btn.active:hover{
  background:rgba(255,215,100,1);
  box-shadow:0 6px 20px rgba(255,215,100,0.5);
}

.dg-cover-action-icon{
  font-size:14px;
  line-height:1;
}

.dg-cover-action-text{
  font-size:12px;
  white-space:nowrap;
}

/* Мобильная адаптация кнопок на фото */
@media (max-width:768px){
  .dg-cover-actions{
    top:12px;
    right:12px;
    gap:6px;
  }
  
  .dg-cover-share-btn,
  .dg-cover-fav-btn{
    padding:6px 10px;
    font-size:12px;
  }
  
  .dg-cover-action-icon{
    font-size:12px;
  }
  
  .dg-cover-action-text{
    font-size:11px;
  }
}

@media (max-width:480px){
  .dg-cover-actions{
    top:8px;
    right:8px;
    gap:4px;
  }
  
  .dg-cover-share-btn,
  .dg-cover-fav-btn{
    padding:5px 8px;
    font-size:11px;
  }
  
  .dg-cover-action-text{
    display:none;
  }
  
  .dg-cover-action-icon{
    font-size:14px;
  }
}
.dg-media-wrap{display:flex;gap:16px;align-items:flex-start}
.dg-media-main{flex:1 1 auto}
.dg-aside{flex:0 0 260px}
.dg-aside-card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:12px;box-shadow:0 4px 20px rgba(0,0,0,0.2)}
.dg-aside-row{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px dashed var(--border)}
.dg-aside-row:last-child{border-bottom:none}
.dg-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.dg-gallery-title{margin:10px 0 8px}
@media (max-width:1100px){.dg-gallery{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){.dg-gallery{grid-template-columns:repeat(2,1fr)}}
.dg-g-item img{width:100%;height:auto;border-radius:10px;display:block;transition:transform 0.3s ease}
.dg-g-item:hover img{transform:scale(1.05)}

/* Accessible Lightbox */
.dg-lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.9);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  opacity:0;
  visibility:hidden;
  transition:.2s;
  outline:none;
}

.dg-lightbox.open{
  opacity:1;
  visibility:visible;
}

.dg-lightbox-img{
  max-width:92vw;
  max-height:92vh;
  border-radius:10px;
  transition:opacity 0.3s ease, transform 0.3s ease;
  transform-origin:center;
  cursor:zoom-in;
  outline:none;
}

.dg-lightbox-img:focus{
  outline:2px solid var(--accent);
  outline-offset:4px;
}

.dg-lightbox-img.zoomed{
  cursor:grab;
}

.dg-lightbox-img.zoomed:active{
  cursor:grabbing;
}

.dg-lightbox-close{
  position:absolute;
  top:16px;
  right:16px;
  background:rgba(255,255,255,0.9);
  color:#000;
  border:none;
  border-radius:50%;
  width:40px;
  height:40px;
  cursor:pointer;
  font-size:20px;
  font-weight:bold;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.2s ease;
  outline:none;
}

.dg-lightbox-close:hover{
  background:#fff;
  transform:scale(1.1);
}

.dg-lightbox-close:focus{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

.dg-lightbox-next, .dg-lightbox-prev{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(255,255,255,0.9);
  color:#000;
  border:none;
  border-radius:50%;
  width:50px;
  height:50px;
  cursor:pointer;
  font-size:24px;
  font-weight:bold;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.2s ease;
  z-index:10;
  outline:none;
}

.dg-lightbox-next:hover, .dg-lightbox-prev:hover{
  background:#fff;
  transform:translateY(-50%) scale(1.1);
}

.dg-lightbox-next:focus, .dg-lightbox-prev:focus{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

.dg-lightbox-next{
  right:20px;
}

.dg-lightbox-prev{
  left:20px;
}

.dg-lightbox-counter{
  position:absolute;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  background:rgba(0,0,0,0.7);
  color:#fff;
  padding:8px 16px;
  border-radius:20px;
  font-size:14px;
  font-weight:500;
  pointer-events:none;
}

@media (max-width:768px){
  .dg-lightbox-next, .dg-lightbox-prev{
    width:45px;
    height:45px;
    font-size:20px;
    background:transparent;
    color:#fff;
    text-shadow:0 2px 8px rgba(0,0,0,0.8);
  }
  
  .dg-lightbox-next:hover, .dg-lightbox-prev:hover{
    background:transparent;
    transform:translateY(-50%) scale(1.2);
    color:#fff;
  }
  
  .dg-lightbox-next:focus, .dg-lightbox-prev:focus{
    background:rgba(255,255,255,0.2);
    outline:2px solid var(--accent);
  }
  
  .dg-lightbox-next{
    right:15px;
  }
  
  .dg-lightbox-prev{
    left:15px;
  }
  
  .dg-lightbox-close{
    width:35px;
    height:35px;
    font-size:18px;
    top:12px;
    right:12px;
  }
  
  .dg-lightbox-counter{
    bottom:15px;
    font-size:13px;
    padding:6px 12px;
  }
}

/* Focus management for lightbox */
.dg-lightbox *:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dg-lightbox-img:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* High contrast mode support for lightbox */
@media (prefers-contrast: high) {
  .dg-lightbox-close,
  .dg-lightbox-next,
  .dg-lightbox-prev {
    background: #fff;
    color: #000;
    border: 2px solid #000;
  }
  
  .dg-lightbox-counter {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
  }
}

/* Reduced motion support for lightbox */
@media (prefers-reduced-motion: reduce) {
  .dg-lightbox,
  .dg-lightbox-img,
  .dg-lightbox-close,
  .dg-lightbox-next,
  .dg-lightbox-prev {
    transition: none;
  }
  
  .dg-lightbox-img {
    transition: none;
  }
}

/* Load sentinel */
.dg-load-sentinel{height:1px}
.dg-load-more{margin:12px auto 20px;display:block;background:var(--card);color:var(--text-muted);border:1px solid var(--border);border-radius:8px;padding:10px 16px;cursor:pointer;transition:all 0.3s ease}
.dg-load-more:hover{background:var(--accent);color:#fff;transform:translateY(-2px);box-shadow:0 4px 12px rgba(255,77,109,0.3)}
.dg-load-more[disabled]{opacity:.6;cursor:not-allowed;transform:none}

/* Post nav and related */
.dg-post-nav{display:flex;justify-content:space-between;margin:16px 0}
.dg-related h2{margin:18px 0 10px}

/* Top categories */
.dg-top-cats{margin:24px 0}
.dg-top-cats h2{margin:0 0 10px}
.dg-cats-list{display:flex;gap:10px;flex-wrap:wrap}
.dg-cat-tile{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:10px 14px;transition:all 0.3s ease}
.dg-cat-tile:hover{background:var(--accent);color:#fff;transform:translateY(-2px);box-shadow:0 4px 12px rgba(255,77,109,0.3)}

/* Single page additions */
.dg-profile-info{flex:0 0 300px;padding:16px}
.dg-occupation{margin:8px 0;color:var(--accent);font-size:16px;font-weight:500}
.dg-theme{margin:8px 0;color:var(--muted);font-size:14px}
.dg-subscribe{margin:16px 0}
.dg-profile-info .dg-stats{margin:16px 0;display:flex;gap:10px;align-items:center}
.dg-tg-btn{display:inline-block;background:linear-gradient(45deg,#ff4d6d,#ff6b8a);color:#fff;padding:12px 20px;border-radius:25px;text-decoration:none;font-weight:600;animation:pulse 2s infinite;box-shadow:0 4px 15px rgba(255,77,109,0.3)}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
.dg-actions{margin:20px 0;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.dg-share{display:flex;gap:8px;justify-content:flex-start}
.dg-share-btn,.dg-fav-btn{background:var(--card);color:var(--text-muted);border:1px solid var(--border);border-radius:6px;padding:8px 12px;cursor:pointer;transition:all 0.3s ease}
.dg-share-btn:hover,.dg-fav-btn:hover{background:var(--accent);color:#fff;transform:translateY(-2px);box-shadow:0 4px 12px rgba(255,77,109,0.3)}
.dg-fav-btn.active{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:0 4px 12px rgba(255,77,109,0.3)}
.dg-back-link{color:var(--accent)}
.dg-comments{margin:20px 0;padding:16px;background:var(--card);border-radius:8px;border:1px solid var(--border);box-shadow:0 4px 20px rgba(0,0,0,0.2)}
.dg-category-header{margin:16px 0}
.dg-category-desc{margin:8px 0;color:var(--muted)}

/* Category dropdown */
.dg-category-dropdown{position:relative;display:inline-block}
.dg-category-dropdown{white-space:nowrap}
.dg-cat-dropdown-btn{background:var(--card);color:var(--text-muted);border:1px solid var(--border);border-radius:6px;padding:8px 12px;cursor:pointer;transition:all 0.3s ease;display:flex;align-items:center;gap:6px;font-size:13px;min-width:120px;justify-content:space-between}
.dg-cat-dropdown-btn:hover{background:var(--bg-secondary);color:var(--text)}
.dg-cat-dropdown-menu{position:absolute;top:100%;left:0;background:var(--card);border:1px solid var(--border);border-radius:6px;min-width:150px;z-index:1000;display:none;box-shadow:0 8px 32px rgba(0,0,0,0.3);max-width:90vw}
.dg-cat-dropdown-menu a{display:block;padding:8px 12px;color:var(--text-muted);text-decoration:none;transition:all 0.2s ease;border-bottom:1px solid var(--border)}
.dg-cat-dropdown-menu a:last-child{border-bottom:none}
.dg-cat-dropdown-menu a:hover,.dg-cat-dropdown-menu a.active{background:var(--accent);color:#fff}
@media (max-width:480px){
  .dg-cat-dropdown-menu{left:auto;right:0;max-height:50vh;overflow:auto;min-width:120px;max-width:200px}
}

/* SEO text with read more */
.dg-seo-preview{position:relative}
.dg-seo-preview::after{content:'';position:absolute;bottom:0;left:0;right:0;height:40px;background:linear-gradient(transparent,var(--bg));pointer-events:none}
.dg-seo-toggle{text-align:center;margin:12px 0}
.dg-read-more{background:var(--accent);color:#fff;border:none;padding:8px 16px;border-radius:6px;cursor:pointer;transition:all 0.3s ease}
.dg-read-more:hover{background:var(--accent-hover);transform:translateY(-2px);box-shadow:0 4px 12px rgba(255,77,109,0.3)}

/* Emoji reactions */
.dg-reactions{margin:20px 0}
.dg-reactions-wrap{display:flex;gap:12px;flex-wrap:wrap}
.dg-reaction{background:var(--card);color:var(--text-muted);border:1px solid var(--border);border-radius:8px;padding:8px 12px;cursor:pointer;display:flex;align-items:center;gap:6px;font-size:18px;transition:all 0.3s ease}
.dg-reaction:hover{background:var(--bg-secondary);color:var(--text);transform:scale(1.05);box-shadow:0 4px 12px rgba(0,0,0,0.2)}
.dg-reaction-status{margin-top:8px;color:var(--muted)}

/* Table of contents */
.dg-toc{margin:20px 0;padding:16px;background:var(--card);border-radius:8px;border:1px solid var(--border);box-shadow:0 4px 20px rgba(0,0,0,0.2);max-width:720px}
.dg-toc h3{margin:0 0 12px;color:var(--accent);font-size:18px;font-weight:600}
.dg-toc ul{margin:0;padding:0;list-style:none}
.dg-toc li{margin:6px 0}
.dg-toc a{color:var(--text-muted);text-decoration:none;padding:4px 8px;border-radius:4px;display:inline-block;transition:all 0.2s ease}
.dg-toc a:hover{background:var(--accent);color:#fff;transform:translateX(4px)}

/* Video section */
.dg-videos-section{margin:20px 0}
.dg-videos{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;max-width:800px;margin:0 auto}
.dg-video-item{background:var(--card);border-radius:8px;overflow:hidden;border:1px solid var(--border);transition:all 0.3s ease;box-shadow:0 4px 20px rgba(0,0,0,0.2)}
.dg-video-item:hover{transform:translateY(-4px);box-shadow:0 8px 32px rgba(0,0,0,0.3)}
.dg-video-item video{width:100%;height:auto;aspect-ratio:16/9;display:block;background:#000}
.dg-video-title{padding:12px 12px 8px;color:var(--text);font-size:14px;font-weight:500}
.dg-video-meta{padding:0 12px 12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.dg-video-format{background:var(--accent);color:#fff;padding:2px 6px;border-radius:4px;font-size:11px;font-weight:600;text-transform:uppercase}
.dg-video-formats-count{color:var(--text-muted);font-size:12px}
.dg-video-poster-indicator{color:var(--accent);font-size:12px;opacity:0.7}

/* Video fallback */
.dg-video-fallback{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:var(--bg-secondary);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transition:all 0.3s ease;
}

.dg-video-item:has(video:not([src])) .dg-video-fallback,
.dg-video-item video[poster]:not([src]) .dg-video-fallback{
  opacity:1;
  visibility:visible;
}

.dg-video-fallback-content{
  text-align:center;
  padding:20px;
  max-width:300px;
}

.dg-video-fallback-icon{
  font-size:48px;
  margin-bottom:16px;
  opacity:0.7;
}

.dg-video-fallback-content h3{
  color:var(--text);
  font-size:18px;
  margin:0 0 8px;
  font-weight:600;
}

.dg-video-fallback-content p{
  color:var(--text-muted);
  font-size:14px;
  margin:0 0 20px;
  line-height:1.4;
}

.dg-video-fallback-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.dg-video-poster-btn{
  background:var(--accent);
  color:#fff;
  padding:8px 16px;
  border-radius:6px;
  text-decoration:none;
  font-size:13px;
  font-weight:500;
  transition:all 0.2s ease;
  border:none;
  cursor:pointer;
}

.dg-video-poster-btn:hover{
  background:var(--accent-hover);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(255,77,109,0.3);
}

.dg-video-poster-btn{
  background:var(--card);
  color:var(--text);
  border:1px solid var(--border);
}

.dg-video-poster-btn:hover{
  background:var(--bg-secondary);
  border-color:var(--accent);
}

/* Video loading states */
.dg-video-item video[poster]{
  background-image:var(--poster-url);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.dg-video-item video:not([poster]){
  background:linear-gradient(45deg,var(--border) 25%,#3a3d43 50%,var(--border) 75%);
  background-size:20px 20px;
  animation:video-loading 1s linear infinite;
}

@keyframes video-loading{
  0%{background-position:0 0}
  100%{background-position:20px 20px}
}

/* Video loading states */
.dg-video-item.dg-video-loading{
  position:relative;
}

.dg-video-item.dg-video-loading::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,0.5);
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
}

.dg-video-item.dg-video-loading::after{
  content:"⏳";
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  font-size:24px;
  z-index:2;
  animation:video-loading-spin 1s linear infinite;
}

@keyframes video-loading-spin{
  0%{transform:translate(-50%, -50%) rotate(0deg)}
  100%{transform:translate(-50%, -50%) rotate(360deg)}
}

.dg-video-item.dg-video-ready{
  opacity:1;
}

/* Video error handling */
.dg-video-item video[data-error="true"]{
  background:var(--danger);
  opacity:0.3;
}

.dg-video-item video[data-error="true"] + .dg-video-title::after{
  content:"⚠️ Ошибка загрузки";
  color:var(--danger);
  font-size:12px;
  margin-left:8px;
}

/* Video format badges */
.dg-video-format.mp4{background:var(--accent)}
.dg-video-format.webm{background:var(--secondary)}
.dg-video-format.ogg{background:var(--info)}
.dg-video-format.mov{background:var(--warning)}
.dg-video-format.avi{background:var(--danger)}

/* Responsive video adjustments */
@media (max-width:768px){
  .dg-videos{grid-template-columns:1fr;gap:12px;max-width:none}
  .dg-video-item video{aspect-ratio:16/9}
  .dg-video-fallback-content{padding:16px;max-width:250px}
  .dg-video-fallback-icon{font-size:36px;margin-bottom:12px}
  .dg-video-fallback-content h3{font-size:16px}
  .dg-video-fallback-content p{font-size:13px}
  .dg-video-fallback-actions{flex-direction:column;gap:8px}
  .dg-video-poster-btn{width:100%;justify-content:center}
}

/* SEO text on single */
.dg-seo-text{margin:14px 0;color:var(--text-muted);line-height:1.6}
.dg-seo-text p{margin:0 0 10px}

/* Rating */
.dg-rate{margin:18px 0}
.dg-rate-wrap{display:flex;align-items:center;gap:14px}
.dg-rate-avg{font-weight:700;color:#ffd166}
.dg-rate-stars{display:inline-flex;gap:6px;cursor:pointer}
.dg-star{font-size:24px;color:#444;transition:color .15s}
.dg-star.on{color:#ffd166}
.dg-rate-status{margin-top:8px;color:var(--muted)}

/* Loading states */
.dg-loading{display:inline-block;width:20px;height:20px;border:2px solid var(--border);border-top:2px solid var(--accent);border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}

.dg-skeleton{background:linear-gradient(90deg,var(--border) 25%,#3a3d43 50%,var(--border) 75%);background-size:200% 100%;animation:loading 1.5s infinite;border-radius:4px}
@keyframes loading{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* Skeleton Cards */
.dg-skeleton-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0c10;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.dg-skeleton-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(90deg, var(--border) 25%, #3a3d43 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.dg-skeleton-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md) var(--space-sm);
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}

.dg-skeleton-title {
  height: 20px;
  background: linear-gradient(90deg, var(--border) 25%, #3a3d43 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
  width: 80%;
}

.dg-skeleton-stats {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.dg-skeleton-badge {
  height: 24px;
  width: 60px;
  background: linear-gradient(90deg, var(--border) 25%, #3a3d43 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 999px;
}

/* Skeleton cards grid */
.dg-skeleton-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .dg-skeleton-cards { grid-template-columns: repeat(3, 1fr);   }
}

/* Mobile responsive for chips */
@media (max-width: 880px) {
  .ranking-chip {
    font-size: 8px;
    padding: 1px 3px;
    margin-left: 3px;
    min-width: 14px;
  }
  
  .hero-stats {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .hero-stats .stat {
    min-width: 50px;
    flex: 1;
  }
  
  .stat .stat-num {
    font-size: 16px;
  }
  
  .stat .stat-label {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .dg-skeleton-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .dg-skeleton-cards { grid-template-columns: repeat(2, 1fr); }
}

/* Single Page Skeletons */
.dg-skeleton-cover {
  width: 100%;
  height: 400px;
  background: linear-gradient(90deg, var(--border) 25%, #3a3d43 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 14px;
  margin: 10px 0 14px;
}

.dg-skeleton-title-large {
  height: 32px;
  background: linear-gradient(90deg, var(--border) 25%, #3a3d43 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin: 4px 0 8px;
  width: 60%;
}

.dg-skeleton-text {
  height: 16px;
  background: linear-gradient(90deg, var(--border) 25%, #3a3d43 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin: 8px 0;
}

.dg-skeleton-text.short { width: 40%; }
.dg-skeleton-text.medium { width: 70%; }
.dg-skeleton-text.long { width: 100%; }

.dg-skeleton-button {
  height: 40px;
  width: 200px;
  background: linear-gradient(90deg, var(--border) 25%, #3a3d43 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 25px;
  margin: 16px 0;
}

/* Gallery Skeletons */
.dg-skeleton-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dg-skeleton-gallery-item {
  aspect-ratio: 3/4;
  background: linear-gradient(90deg, var(--border) 25%, #3a3d43 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 10px;
}

@media (max-width: 1100px) {
  .dg-skeleton-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .dg-skeleton-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Video Skeletons */
.dg-skeleton-video {
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.dg-skeleton-video-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, var(--border) 25%, #3a3d43 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.dg-skeleton-video-title {
  height: 16px;
  background: linear-gradient(90deg, var(--border) 25%, #3a3d43 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin: 12px;
  width: 80%;
}

/* Comments Skeletons */
.dg-skeleton-comment {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 8px 0;
}

.dg-skeleton-comment-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.dg-skeleton-comment-author {
  height: 16px;
  width: 100px;
  background: linear-gradient(90deg, var(--border) 25%, #3a3d43 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

.dg-skeleton-comment-date {
  height: 12px;
  width: 80px;
  background: linear-gradient(90deg, var(--border) 25%, #3a3d43 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

.dg-skeleton-comment-text {
  height: 14px;
  background: linear-gradient(90deg, var(--border) 25%, #3a3d43 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin: 6px 0;
}

.dg-skeleton-comment-text:nth-child(2) { width: 100%; }
.dg-skeleton-comment-text:nth-child(3) { width: 80%; }
.dg-skeleton-comment-text:nth-child(4) { width: 60%; }

/* Profile Info Skeletons */
.dg-skeleton-profile {
  flex: 0 0 300px;
  padding: 16px;
}

.dg-skeleton-occupation {
  height: 20px;
  width: 150px;
  background: linear-gradient(90deg, var(--border) 25%, #3a3d43 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin: 8px 0;
}

.dg-skeleton-theme {
  height: 16px;
  width: 120px;
  background: linear-gradient(90deg, var(--border) 25%, #3a3d43 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin: 8px 0;
}

.dg-skeleton-stats-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}

.dg-skeleton-stat-badge {
  height: 28px;
  width: 50px;
  background: linear-gradient(90deg, var(--border) 25%, #3a3d43 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 999px;
}

/* Hide skeletons when content is loaded */
.dg-content-loaded .dg-skeleton-card,
.dg-content-loaded .dg-skeleton-cover,
.dg-content-loaded .dg-skeleton-title,
.dg-content-loaded .dg-skeleton-text,
.dg-content-loaded .dg-skeleton-button,
.dg-content-loaded .dg-skeleton-gallery-item,
.dg-content-loaded .dg-skeleton-video-player,
.dg-content-loaded .dg-skeleton-comment,
.dg-content-loaded .dg-skeleton-profile {
  display: none;
}

/* Skeleton loading states */
.dg-skeleton-loading {
  opacity: 0.6;
  pointer-events: none;
}

.dg-skeleton-loading .dg-skeleton-card,
.dg-skeleton-loading .dg-skeleton-cover,
.dg-skeleton-loading .dg-skeleton-title,
.dg-skeleton-loading .dg-skeleton-text,
.dg-skeleton-loading .dg-skeleton-button,
.dg-skeleton-loading .dg-skeleton-gallery-item,
.dg-skeleton-loading .dg-skeleton-video-player,
.dg-skeleton-loading .dg-skeleton-comment,
.dg-skeleton-loading .dg-skeleton-profile {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* Smooth transitions for skeleton elements */
.dg-skeleton-card,
.dg-skeleton-cover,
.dg-skeleton-title,
.dg-skeleton-text,
.dg-skeleton-button,
.dg-skeleton-gallery-item,
.dg-skeleton-video-player,
.dg-skeleton-comment,
.dg-skeleton-profile {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Responsive skeleton adjustments */
@media (max-width: 768px) {
  .dg-skeleton-card {
    border-radius: 8px;
  }
  
  .dg-skeleton-title {
    height: 18px;
    width: 70%;
  }
  
  .dg-skeleton-badge {
    height: 20px;
    width: 50px;
  }
  
  .dg-skeleton-gallery-item {
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  .dg-skeleton-title {
    height: 16px;
    width: 60%;
  }
  
  .dg-skeleton-badge {
    height: 18px;
    width: 40px;
  }
  
  .dg-skeleton-comment-text {
    height: 12px;
  }
}

/* Mobile filters dropdown */
.dg-mobile-filters-dropdown{position:relative;display:none}
.dg-mobile-filters-btn{background:var(--card);color:var(--text-muted);border:1px solid var(--border);border-radius:6px;padding:8px 12px;cursor:pointer;transition:all 0.3s ease;display:flex;align-items:center;gap:6px;font-size:13px;min-width:120px;justify-content:space-between}
.dg-mobile-filters-btn:hover{background:var(--bg-secondary);color:var(--text)}
.dg-mobile-filters-menu{position:absolute;top:100%;left:0;background:var(--card);border:1px solid var(--border);border-radius:6px;min-width:150px;z-index:1000;display:none;box-shadow:0 8px 32px rgba(0,0,0,0.3);max-width:90vw;flex-direction:column}
.dg-mobile-filters-menu a{display:block;padding:8px 12px;color:var(--text-muted);text-decoration:none;transition:all 0.2s ease;border-bottom:1px solid var(--border)}
.dg-mobile-filters-menu a:last-child{border-bottom:none}
.dg-mobile-filters-menu a:hover,.dg-mobile-filters-menu a.active{background:var(--accent);color:#fff}
@media (max-width:480px){
  .dg-mobile-filters-menu{left:auto;right:0;max-height:50vh;overflow:auto;min-width:120px;max-width:200px}
}

/* Mobile optimizations */
@media (max-width:768px){
  .dg-header .dg-container{flex-direction:row;gap:12px;justify-content:space-between}
  .dg-header-center{display:none}
  .dg-header-left{flex:0 0 auto}
  .dg-header-right{flex:0 0 auto;margin-left:auto}
  .dg-profile-info{flex:1 1 100%;padding:12px}
  .dg-toc{margin:16px 0;padding:12px;font-size:14px}
  .dg-grid{gap:8px}
  .dg-card{border-radius:8px}
  .dg-search-wrap input{font-size:16px}
  .dg-title{font-size:24px}
  .dg-card-title{font-size:16px}
  .dg-occupation{font-size:14px}
  .dg-tg-btn{padding:10px 16px;font-size:14px}
  .dg-reactions-wrap{gap:8px}
  .dg-reaction{padding:6px 10px;font-size:16px}
  .dg-videos{grid-template-columns:1fr;gap:12px;max-width:none}
  .dg-video-item video{aspect-ratio:16/9}
  .dg-footer-content{flex-direction:column;text-align:center;gap:20px}
  .dg-footer-nav{gap:16px;justify-content:center}
  /* Prevent horizontal scrolling on mobile */
  .dg-container{overflow-x:hidden;max-width:100vw}
  .dg-grid{overflow-x:hidden}
  .dg-gallery{overflow-x:hidden}
  .dg-videos{overflow-x:hidden}
  
  /* Mobile filters layout */
  .dg-mobile-filters-dropdown{display:block}
  .dg-filter-row-right{display:none}
  .dg-filter-row{flex-direction:row;gap:8px;padding-bottom:6px;justify-content:space-between;align-items:center}
  .dg-filter-row-left{display:flex;gap:8px;align-items:center;flex:1}
  .dg-category-dropdown,.dg-mobile-filters-dropdown,.dg-filter-favorites{flex:0 0 auto}
  .dg-cat-dropdown-btn,.dg-mobile-filters-btn,.dg-filter-favorites{white-space:nowrap;font-size:12px;padding:8px 12px;min-width:100px;justify-content:center}
  .dg-filter-icon{font-size:14px}
  .dg-filter-text{font-size:12px}
  .dg-filter-arrow{font-size:10px}
}

@media (max-width:480px){
  .dg-container{padding:8px}
  .dg-grid{gap:6px}
  .dg-filters{gap:8px}
  .dg-filter{padding:6px 10px;font-size:13px}
  .dg-breadcrumbs{font-size:13px}
  .dg-toc{font-size:13px;padding:10px}
  .dg-toc h3{font-size:16px}
  .dg-actions{flex-direction:column;gap:8px;align-items:flex-start}
  .dg-share{justify-content:flex-start}
  .dg-back-link{text-align:center}
  .dg-footer{padding:24px 0}
  .dg-footer-nav{gap:12px;flex-direction:column}
  .dg-footer-nav a{font-size:13px}
  .dg-video-item video{aspect-ratio:16/9}
  
}

@media (max-width:400px){
  /* Extra small screens - slightly reduce filter sizes */
  .dg-filter-row{flex-direction:row;gap:6px;padding-bottom:4px;justify-content:space-between;align-items:center}
  .dg-filter-row-left{display:flex;gap:6px;align-items:center;flex:1}
  .dg-category-dropdown,.dg-mobile-filters-dropdown,.dg-filter-favorites{flex:0 0 auto}
  .dg-cat-dropdown-btn,.dg-mobile-filters-btn,.dg-filter-favorites{white-space:nowrap;font-size:11px;padding:6px 8px;min-width:80px;justify-content:center}
  .dg-filter-icon{font-size:12px}
  .dg-filter-text{font-size:11px}
  .dg-filter-arrow{font-size:9px}
}

@media (max-width:760px){
  .dg-media-wrap{flex-direction:column}
  .dg-aside{flex:1 1 auto}
}

/* Accessibility improvements */
.dg-filter:focus,
.dg-share-btn:focus,
.dg-fav-btn:focus,
.dg-read-more:focus,
.dg-reaction:focus,
.dg-cat-dropdown-btn:focus{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

/* Smooth scrolling */
html{scroll-behavior:smooth}

/* Focus visible for better keyboard navigation */
.dg-filter:focus-visible,
.dg-share-btn:focus-visible,
.dg-fav-btn:focus-visible,
.dg-read-more:focus-visible,
.dg-reaction:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text: #ffffff;
    --text-muted: #e0e0e0;
    --border: #666666;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* VIP Chat Styles */
.dg-vip-chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dg-vip-chat-modal.show {
    opacity: 1;
    visibility: visible;
}

.dg-vip-chat-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dg-vip-chat-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.4s ease-out;
}

.dg-vip-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
}

.dg-vip-chat-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.dg-vip-chat-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dg-vip-chat-close:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
}

.dg-vip-chat-access {
    padding: 15px 25px;
    background: rgba(255, 215, 0, 0.05);
    border-bottom: 1px solid var(--border);
}

.dg-vip-chat-access-text {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
}

.dg-vip-chat-access-text.vip-access {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.dg-vip-chat-access-text.read-only {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.dg-vip-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 300px;
    min-height: 200px;
}

.dg-vip-chat-welcome {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.dg-vip-chat-welcome-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.dg-vip-chat-welcome-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.dg-vip-message {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.dg-vip-message.own {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-left: 20px;
}

.dg-vip-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dg-vip-message-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dg-vip-message-nickname {
    font-weight: 600;
    color: var(--accent);
    font-size: 13px;
}

.dg-vip-message-level {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dg-vip-message-time {
    font-size: 11px;
    color: var(--text-muted);
}

.dg-vip-message-text {
    color: var(--text);
    line-height: 1.4;
    font-size: 14px;
}

/* Header Layout Fix */
.dg-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: visible;
    height: auto;
    min-height: 40px;
}

.dg-search-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.dg-search-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

.dg-search-icon-text {
    font-weight: 500;
}

.dg-search-icon-loupe {
    font-size: 16px;
}

.dg-profile-icon {
    position: relative;
    cursor: pointer;
}

.dg-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dg-profile-avatar:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.dg-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
}

.dg-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .dg-header-right {
        gap: 10px;
    }
    
    .dg-search-icon {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .dg-search-icon-text {
        display: none;
    }
    
    .dg-profile-avatar {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .dg-menu-toggle {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}
.dg-profile-icon {
    position: relative;
    cursor: pointer;
    margin-left: 15px;
}

.dg-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dg-profile-avatar:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.dg-profile-menu {
    display: none; /* Hide dropdown menu completely */
}

.dg-profile-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
    font-size: 14px;
}

.dg-profile-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.dg-profile-menu-item-hidden {
    display: none;
}

.dg-profile-menu-item-hidden.show {
    display: block;
}

/* Auth Modal */
.dg-auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dg-auth-modal.show {
    opacity: 1;
    visibility: visible;
}

.dg-auth-modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.dg-auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.dg-auth-modal-close:hover {
    color: var(--accent);
}

.dg-auth-tabs {
    display: flex;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
}

.dg-auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--text-muted);
    font-weight: 500;
}

.dg-auth-tab.active {
    background: var(--accent);
    color: white;
}

.dg-auth-form {
    display: none;
}

.dg-auth-form.active {
    display: block;
}

.dg-auth-form h3 {
    margin: 0 0 20px 0;
    color: var(--text);
    text-align: center;
    font-size: 24px;
}

.dg-form-group {
    margin-bottom: 20px;
}

.dg-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
}

.dg-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 16px;
    transition: all 0.2s ease;
}

.dg-form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.dg-auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), #667eea);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dg-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* CAPTCHA Styles */
.dg-captcha-refresh {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.dg-captcha-refresh:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.dg-form-group label span {
    color: var(--accent);
    font-weight: 600;
}

#captcha-question {
    display: inline-block;
    background: rgba(255, 77, 109, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 4px;
}

/* Profile Modal */
.dg-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dg-profile-modal.show {
    opacity: 1;
    visibility: visible;
}

.dg-profile-modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.dg-profile-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.dg-profile-modal-close:hover {
    color: var(--accent);
}

.dg-profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dg-profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid var(--accent);
}

.dg-profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dg-profile-info h2 {
    margin: 0 0 10px 0;
    color: var(--text);
    font-size: 24px;
}

.dg-profile-level {
    color: var(--text-muted);
}

.dg-profile-progress {
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 8px 0;
    overflow: hidden;
}

.dg-profile-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--accent), #667eea);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.dg-profile-tabs {
    display: flex;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
}

.dg-profile-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--text-muted);
    font-weight: 500;
}

.dg-profile-tab.active {
    background: var(--accent);
    color: white;
}

.dg-profile-tab-content {
    display: none;
}

.dg-profile-tab-content.active {
    display: block;
}

.dg-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.dg-reward-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.dg-reward-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.dg-reward-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.dg-reward-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.dg-reward-description {
    font-size: 12px;
    color: var(--text-muted);
}

.dg-quest-history {
    max-height: 300px;
    overflow-y: auto;
}

.dg-quest-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dg-quest-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.dg-quest-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.dg-quest-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.dg-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.dg-stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dg-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.dg-wheel-results {
    max-height: 300px;
    overflow-y: auto;
}

.dg-wheel-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.dg-wheel-icon {
    font-size: 32px;
    width: 50px;
    text-align: center;
}

.dg-wheel-info {
    flex: 1;
}

.dg-wheel-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.dg-wheel-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.dg-wheel-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .dg-profile-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .dg-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .dg-profile-avatar-large {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .dg-profile-tabs {
        flex-direction: column;
    }
    
    .dg-rewards-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

.dg-vip-message-time {
    font-size: 11px;
    color: var(--text-muted);
}

.dg-vip-message-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.4;
    word-wrap: break-word;
}

.dg-vip-chat-input-section {
    padding: 20px 25px;
    border-top: 1px solid var(--border);
    background: rgba(102, 126, 234, 0.02);
}

.dg-vip-chat-user-info {
    margin-bottom: 15px;
}

.dg-vip-chat-user-info input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s ease;
}

.dg-vip-chat-user-info input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dg-vip-chat-user-info input:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.dg-vip-chat-input {
    display: flex;
    gap: 10px;
}

.dg-vip-chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s ease;
}

.dg-vip-chat-input input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dg-vip-chat-input input:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.dg-vip-chat-input button {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent), #667eea);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.dg-vip-chat-input button:hover:not(:disabled) {
    background: linear-gradient(135deg, #667eea, var(--accent));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.dg-vip-chat-input button:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dg-vip-chat-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

.dg-vip-chat-counter span {
    font-weight: 600;
}

.dg-vip-chat-online {
    padding: 15px 25px;
    border-top: 1px solid var(--border);
    background: rgba(102, 126, 234, 0.02);
}

.dg-vip-chat-online-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.dg-vip-chat-online-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dg-vip-online-user {
    padding: 4px 8px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

/* Mobile responsive for VIP chat */
@media (max-width: 768px) {
    .dg-vip-chat-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .dg-vip-chat-header {
        padding: 15px 20px;
    }
    
    .dg-vip-chat-header h3 {
        font-size: 18px;
    }
    
    .dg-vip-chat-messages {
        padding: 15px;
        max-height: 250px;
    }
    
    .dg-vip-chat-input-section {
        padding: 15px 20px;
    }
    
    .dg-vip-chat-online {
        padding: 12px 20px;
    }
    
    .dg-vip-message.own {
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .dg-vip-chat-content {
        margin: 5px;
        border-radius: 15px;
    }
    
    .dg-vip-chat-header {
        padding: 12px 15px;
    }
    
    .dg-vip-chat-header h3 {
        font-size: 16px;
    }
    
    .dg-vip-chat-messages {
        padding: 12px;
        max-height: 200px;
    }
    
    .dg-vip-chat-input-section {
        padding: 12px 15px;
    }
    
    .dg-vip-chat-online {
        padding: 10px 15px;
    }
    
    .dg-vip-chat-input {
        flex-direction: column;
    }
    
    .dg-vip-chat-input button {
        min-width: auto;
    }
}

.dg-card.dg-hidden-treasure::before {
  content: '🔥';
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 20px;
  z-index: 10;
  animation: treasure-glow 2s infinite;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes treasure-glow {
  0%, 100% { 
    opacity: 0.8; 
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 183, 3, 0.5);
  }
  50% { 
    opacity: 1; 
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 183, 3, 0.8);
  }
}

/* Gamification trigger button positioning */
.dg-gamification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

@media (max-width: 768px) {
  .dg-gamification {
    bottom: 20px;
    right: 20px;
  }
}

/* Gamification Telegram Quest Button */
.dg-gamification-telegram-btn {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

.dg-gamification-telegram-btn:hover {
    background: linear-gradient(135deg, #006699 0%, #004d73 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.dg-gamification-telegram-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 136, 204, 0.3);
}

/* Mobile responsive for Telegram button */
@media (max-width: 480px) {
    .dg-gamification-telegram-btn {
        padding: 6px 12px;
        font-size: 11px;
        margin-left: 4px;
    }
}

/* New Wheel of Fortune Styles */
.dg-wheel-prizes-list {
    margin: 15px 0;
}

.dg-wheel-prizes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.dg-wheel-prize-item {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s ease;
}

.dg-wheel-prize-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.dg-wheel-prize-item.premium-prize {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
    font-weight: 600;
}

.dg-wheel-prize-item.premium-prize:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Wheel Spinning Modal */
.dg-wheel-spinning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dg-wheel-spinning-modal.show {
    opacity: 1;
    visibility: visible;
}

.dg-wheel-spinning-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dg-wheel-spinning-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.4s ease-out;
}

.dg-wheel-spinning-header h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: var(--text);
    font-weight: 700;
}

.dg-wheel-prizes-display {
    margin-bottom: 30px;
}

.dg-wheel-prizes-display h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
}

.dg-wheel-prizes-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dg-spinning-prize-item {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 10px 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
}

.dg-wheel-spinning-area {
    margin: 30px 0;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.dg-wheel-spinning-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 15px;
}

.dg-wheel-spinning-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.dg-wheel-spinning-dots .dot {
    font-size: 24px;
    color: var(--accent);
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.dg-wheel-result {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(25, 135, 84, 0.1));
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 12px;
    animation: fadeInUp 0.5s ease-out;
}

.dg-wheel-result-content {
    text-align: center;
}

.dg-wheel-result-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.dg-wheel-result-prize {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.dg-wheel-result-points {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
}

/* Premium reward styles */
.dg-gamification-history-item.premium-reward {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
}

.dg-gamification-history-item.premium-reward .dg-gamification-history-icon {
    color: #ffd700;
    font-size: 20px;
}

.dg-premium-link {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    display: inline-block;
}

.dg-premium-link:hover {
    background: linear-gradient(135deg, #ffb347, #ff8c00);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
    color: #000;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive for wheel modal */
@media (max-width: 480px) {
    .dg-wheel-spinning-content {
        padding: 20px;
        margin: 10px;
    }
    
    .dg-wheel-prizes-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .dg-spinning-prize-item {
        padding: 8px 6px;
        font-size: 10px;
    }
    
    .dg-wheel-spinning-text {
        font-size: 18px;
    }
    
    .dg-wheel-result-prize {
        font-size: 18px;
    }
    
    .dg-wheel-result-points {
        font-size: 14px;
    }
}

/* Mobile styles for Auth Modal - уменьшенные отступы для телефонов */
@media (max-width: 480px) {
    .dg-auth-modal-content {
        padding: 20px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .dg-auth-tabs {
        margin-bottom: 20px;
        padding: 3px;
    }
    
    .dg-auth-tab {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    .dg-auth-form h3 {
        margin: 0 0 15px 0;
        font-size: 20px;
    }
    
    .dg-form-group {
        margin-bottom: 15px;
    }
    
    .dg-form-group label {
        margin-bottom: 6px;
        font-size: 14px;
    }
    
    .dg-form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .dg-auth-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .dg-auth-modal-close {
        top: 12px;
        right: 12px;
        font-size: 20px;
    }
}

/* Hero Stats Styles */
.hero-stats {
    display: flex;
    gap: 16px;
    align-items: stretch; /* Растягиваем все элементы на одинаковую высоту */
}

.hero-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    min-height: 60px; /* Минимальная высота для всех коробочек */
    flex: 1; /* Равномерно распределяем ширину */
    transition: all 0.3s ease;
}

.hero-stats .stat:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-stats .stat-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
    line-height: 1;
}

.hero-stats .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}

/* Мобильные стили для hero-stats */
@media (max-width: 768px) {
    .hero-stats {
        gap: 8px;
    }
    
    .hero-stats .stat {
        padding: 8px 12px;
        min-height: 50px;
    }
    
    .hero-stats .stat-num {
        font-size: 16px;
        margin-bottom: 2px;
    }
    
    .hero-stats .stat-label {
        font-size: 10px;
    }
}

/* Archive Head Styles */
.dg-archive-head {
    margin-bottom: 20px;
}
/* Hide top category header on mobile, show duplicate below load more */
@media (max-width: 768px) {
  .dg-category-header--top { display: none; }
  .dg-category-header--mobile-bottom { display: block; margin-top: 12px; }
}
@media (min-width: 769px) {
  .dg-category-header--mobile-bottom { display: none; }
}

.dg-archive-bc {
    margin-bottom: 15px;
}

.dg-breadcrumbs {
    font-size: 14px;
    color: var(--text-muted);
}

.dg-breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}

.dg-breadcrumbs a:hover {
    text-decoration: underline;
}

.dg-filters {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.dg-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dg-filter-row-left {
    flex: 1;
}

.dg-filter-row-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dg-filter-favorites {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 77, 109, 0.1);
    border: 1px solid rgba(255, 77, 109, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--accent);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dg-filter-favorites:hover {
    background: rgba(255, 77, 109, 0.2);
    border-color: rgba(255, 77, 109, 0.5);
}

.dg-filter {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.dg-filter:hover,
.dg-filter.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.dg-sort-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.dg-sort-row span {
    color: var(--text-muted);
    font-size: 13px;
    margin-right: 4px;
}

.dg-sort {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.dg-sort:hover,
.dg-sort.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Category filters: mirror homepage filters visuals */
.dg-archive-head .dg-filters {
    margin: 0;
    padding: 20px 0;
    border: none;
}

.dg-archive-head .dg-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.dg-archive-head .dg-filter-row-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dg-archive-head .dg-filter-row-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.dg-archive-head .dg-filter,
.dg-archive-head .dg-filter-favorites {
    border-radius: 25px; /* match pills on homepage */
}

.dg-archive-head .dg-sort-row { display: none !important; }

/* Мобильные стили для архивов */
@media (max-width: 768px) {
    .dg-archive-head {
        margin-top: 20px; /* Отступ между шапкой и хлебными крошками */
        margin-bottom: 8px; /* меньше отступ снизу */
    }
    
    .dg-archive-bc { margin-bottom: 0; }
    
    .dg-breadcrumbs { font-size: 13px; margin: 0; }
    
    .dg-archive-head .dg-filters {
        padding: 6px 8px;    /* меньше отступы сверху/снизу на мобиле */
        margin: 0;
        overflow: hidden;    /* чтобы внутренние скроллы не ломали верстку */
        border: none;
    }
    
    .dg-filter-row {
        flex-direction: row;  /* в одну строку */
        gap: 8px;             /* меньше зазоры */
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 0;     /* убираем margin-bottom 12px на телефоне */
    }
    
    .dg-archive-head .dg-filter-row-right {
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;                  /* горизонтальный скролл, если не помещается */
        -webkit-overflow-scrolling: touch;  /* плавный скролл на iOS */
        padding-bottom: 2px;                /* меньше место под скроллбар */
    }
    
    .dg-archive-head .dg-filter-favorites {
        justify-content: flex-start;
        width: auto;        /* убираем width:100% */
        padding: 8px 12px;
        display: inline-flex;
    }
    
    .dg-archive-head .dg-filter {
        padding: 8px 12px;
        font-size: 12px;
        flex: 0 0 auto;       /* не растягиваем, чтобы не вылазило за экран */
        text-align: center;
        white-space: nowrap;   /* не переносим надписи, лучше скролл */
    }

    /* Скрыть на телефонах фильтры Больше фото/видео в категориях */
    .dg-archive-head .dg-filter-row-right a[href*="more_photos"],
    .dg-archive-head .dg-filter-row-right a[href*="more_videos"] { display: none !important; }
    
    .dg-archive-head .dg-sort-row {
        justify-content: flex-start;
        padding-top: 10px;
        gap: 8px;
        overflow-x: auto;                  /* горизонтальный скролл, если не помещается */
        -webkit-overflow-scrolling: touch;  /* плавный скролл на iOS */
        padding-bottom: 4px;
    }
    
    .dg-archive-head .dg-sort-row span {
        display: none; /* Убираем текст "Сортировка:" на мобильных */
    }
    
    .dg-archive-head .dg-sort {
        padding: 6px 10px;
        font-size: 11px;
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* Lazy Loading Styles */
.dg-lazy-loading {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.dg-lazy-loaded {
    opacity: 1;
}

.dg-lazy-placeholder {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 24px;
    min-height: 200px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Video lazy loading */
.dg-video-lazy {
    position: relative;
    background: #000;
    display: flex;
    flex-direction: column;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent; /* Убираем подсветку при касании на мобильных */
}

.dg-video-lazy:hover {
    background: #111;
}

.dg-video-lazy .dg-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dg-video-lazy .dg-video-poster {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 150px;
}

.dg-video-lazy .dg-video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.dg-video-lazy .dg-video-play-icon {
    font-size: 48px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.dg-video-lazy:hover .dg-video-play-icon {
    opacity: 1;
}

.dg-video-lazy .dg-video-title {
    padding: 8px 12px;
    background: rgba(0,0,0,0.7);
    font-size: 14px;
    font-weight: 500;
}

.dg-video-lazy .dg-video-meta {
    padding: 4px 12px 8px;
    background: rgba(0,0,0,0.7);
    font-size: 12px;
    opacity: 0.8;
}

.dg-video-loaded {
    background: transparent;
}

.dg-video-loaded video {
    width: 100%;
    height: auto;
    min-height: 200px;
    display: block;
}

.dg-video-loaded .dg-video-title,
.dg-video-loaded .dg-video-meta {
    background: rgba(0,0,0,0.7);
    padding: 8px 12px;
    margin: 0;
}

/* Ensure lazy loaded images maintain aspect ratio */
.dg-g-item img.dg-lazy-loading {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video container lazy loading */
.dg-video-item.dg-lazy-loading {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Mobile-specific video fixes */
@media (max-width: 768px) {
    .dg-video-lazy {
        min-height: 180px;
        border-radius: 6px;
    }
    
    .dg-video-lazy .dg-video-poster {
        min-height: 120px;
    }
    
    .dg-video-lazy .dg-video-play-icon {
        font-size: 36px;
    }
    
    .dg-video-lazy .dg-video-title {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .dg-video-lazy .dg-video-meta {
        font-size: 11px;
        padding: 3px 10px 6px;
    }
    
    .dg-video-loaded video {
        min-height: 180px;
    }
    
    /* Улучшаем отзывчивость касаний на мобильных */
    .dg-video-lazy:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Убираем hover эффекты на мобильных */
    .dg-video-lazy:hover {
        background: #000;
    }
    
    .dg-video-lazy:hover .dg-video-play-icon {
        opacity: 0.8;
    }
}